LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   LVM: Deleted my system VG0 and reinstalled system, can't find VG1 (https://www.linuxquestions.org/questions/linux-software-2/lvm-deleted-my-system-vg0-and-reinstalled-system-cant-find-vg1-595564/)

CoolAJ86 10-29-2007 03:06 PM

LVM: Deleted my system VG0 and reinstalled system, can't find VG1
 
I used to be a linux geek... then I went to albania for 2 years. I had all this cool stuff set up on my computer and now I have no idea how to use it.

I had been experimenting with LVM2 so I created 13 partitions and used a few small ones as normal /, /boot, swap, etc and the rest I used as LVMs. The partitions were in two groups vg0 and vg1. The one group contained lv named things like vg0-var, vg0-opt, vg0-home, etc that corresponded to /var, /opt, /home, etc. The second was my storage space.

When I came home my system was all messed up from family use and not remembering anything about linux I simply reformatted the partitions that were solely attached to vg0 as reiserfs and reinstalled the latest version of Ubuntu (7.10)

I've installed lvm2 but now I don't know what to do to safely re-add the lvm partitions to vg1 and get back my stuff.

here's what cfdisk thinks of my hard drive:

Code:

      Name              Flags            Part Type      FS Type                  [Label]              Size (MB)
 -------------------------------------------------------------------------------------------------------------------------
      sda1              Boot              Primary        Linux ext2                                          32.91
      sda2                                Primary        Linux ReiserFS            [/]                    1003.49
      sda5                                Logical        Linux ReiserFS                                  14715.03
      sda6                                Logical        Linux ReiserFS                                  14715.03
      sda7                                Logical        Linux                                            14715.03       
      sda8                                Logical        Linux LVM                                        14715.03
      sda9                                Logical        Linux LVM                                        14715.03
      sda10                                Logical        Linux LVM                                        14715.03
      sda11                                Logical        Linux LVM                                        14715.03
      sda12                                Logical        Linux LVM                                        14715.03
      sda13                                Logical        Linux                                            14715.03

When I run vgchange -a y I get

Code:

  Couldn't find device with uuid 't2iDpK-GAXD-5QzZ-XJz4-jWWR-W4mk-2ZjRGe'.
  Couldn't find all physical volumes for volume group vg1.
  Volume group "vg1" not found

I think that I may have deleted one of the partitions by accident but then put it back right away without changing any data on it.

Is there any hope of running a few simple commands to get this stuff back? If it would take me more than 2 hours it's not worth it. The only stuff not backup up on my DVDs is a few TV shows and a ton of music I got from a friend.

I'm more interested in learning how to do it for the sake of knowing and being able to help someone else in the future than out of desperate need.


All times are GMT -5. The time now is 08:36 PM.