How to Mount Another LVM
My wife's desktop PC became unusable recently when the power supply failed. It was an old PC and the power supply was rather unique. It was running Fedora Linux 7 with LVM2.
I thought I could simply remove the hard drive containing Fedora 7 volumes and install it into an external USB hard drive case. However, once it was set up, only the boot volume was visible, not the volume containing all the data.
Using my limited knowledge of LVM only yielded a duplicate volume name error message.
After some research, I found a solution, which I will document here for the benefit of others.
Before using the following commands, launch a terminal session, type in "su -" without the double quotes, and enter the root password when prompted.
List the Logical Volume Groups
List the Physical Volumes
Rename the Logical Volume Group
Rename the logical volume group of the external drive from Vol
Group00 to Vol
Group01 (or other unique name):
vgchange -ay VolGroup01
Mount the Drive
Create a folder for use in mounting the external drive:
Next, mount the data partition of the external drive:
mount -t ext3 /dev/VolGroup01/LogVol01 /mnt/external