How to resurrect invisible LVM volumes

I had some LVM volumes configured in PCLinuxOS. Never utilised the features, only suffered from the occasional problem or incompatibility. I find the whole thing immensely complex and obscure, so I probably won’t use this again any time soon.

But at least I would like to have access to my old LVM volumes from Ubuntu Gutsy now, and I had a hard time figuring out the correct command sequence to make them visible again (given you know the name of the volume group you want to resurrect):

# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "system" using metadata type lvm1
# vgchange -a y system
  2 logical volume(s) in volume group "system" now active
# ls -l /dev/mapper/
crw-rw---- 1 root root  10, 63 2008-11-29 13:11 control
brw-rw---- 1 root disk 254,  0 2008-11-29 12:53 system-1
brw-rw---- 1 root disk 254,  1 2008-11-29 12:53 system-2
# mount /mnt/pclos/system/1/
# mount /mnt/pclos/system/2/

The corresponding fstab entries are

/dev/mapper/system-1 /mnt/pclos/system/1 ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 0
/dev/mapper/system-2 /mnt/pclos/system/2 ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 0

Comments

Comments are closed.