[linux-lvm] Recovery from a failed motherboard

James Hawtin oolon at ankh.org
Fri Jul 15 14:04:02 UTC 2011


Tom Epperly wrote:
> I am wondering if there is a way I can plug these two physical disks
> into another Linux box and access the file system that's on the
> logical volume group. I looked at the LVM FAQ about moving groups, but
> it assumes you can run commands on the old system before moving to the
> new system. In this case, the old system is gone.
>   
That is not a problem, it just helps if you export them first, as then 
they will not clash with any existing volume group, if you have 
different volume group names, just plug them into the new machine. On 
booting you might just get lucky and it will activate the volume group. 
If you have the same names, your need to boot from a rescue disk, then 
rename the volume group to something else (vgrename). Then they should 
work fine with the alternative system. If you don't have root on LVM 
your alternative systems "rescue" mode might be enough to bring things 
online.

If you do boot from a rescue disk you can use
pvscan
vgscan
vgchange -a y

To bring up the disks if it does not do it automatically. You need to do 
a vgchange -a n before you can rename a volume group.

You rescue disk may require you to type

lvm pvscan
lvm vgscan

etc. Some

James




More information about the linux-lvm mailing list