Posted Nov 2, 2012 7:49 UTC (Fri) by Cato (subscriber, #7643)
[Link]
I've seen similar issues on mailing lists when a hard disk from one Fedora machine is plugged into another Fedora machine - since they both use the default VG and LV names, much confusion results and it's not easy to recover from.
One tip for using LVM is to never use the default VG and LV names, to avoid this sort of thing.
I've lost far more time (and data) due to LVM complexities/issues than I have saved through easy expansion/moving of FSs. It makes upgrades and transferring to new PCs much more complex.
Fedora and LVM
Posted Nov 2, 2012 13:07 UTC (Fri) by Tobu (subscriber, #24111)
[Link]
I've just tried it (using a VM to create a colliding VG name, then kpartx -a to make the nested partitions show up).
Accessing the partition was very easy, but then I had to edit the root= boot parameter to boot the VM (vgcfgrestore to undo the rename would also work). This could be improved by having root= be uuid-based (which Debian/Ubuntu don't do for LVM, don't know about Fedora), as well as by having the Fedora installer pick a more unique VG name.
Debian and Ubuntu pick the hostname as the VG name, this seems like a good way to prevent these collisions entirely.