[Discuss] LVM on removable drives

Steven Kurylo sk at infinitepigeons.org
Mon Aug 14 10:13:52 PDT 2006


> For various reasons I need to do a reinstall. I have a LVM-managed
> partition on an external USB drive and am suddenly wondering exactly
> how this will be handled during a reinstall.
>
> I guess a related question would be could I take this drive and attach
> it to another system?

I assume its a single external drive, and the LG its a part of doesn't
have any other PVs?

Plug the drive into any machine and run

vgscan # to find the volume group
vgexport # make the VG ready to import
vgimport # make the VG known to the system
pvscan # find the physical volumes

vgchange -ay # make the logical volumes known to the kernel (the
device nodes will be created)

You should now be able to mount the logical volume

-- 
Steven Kurylo


More information about the Discuss mailing list