Cause
This situation occurs because the same UUID is attached to each LVM disk. Any LVM command, such as pvscan or lvscan, fails because of that error. You can find more details about Bug 454645 ” Bringing a snapshot of an LVM on-line on the same system” here: https://bugzilla.redhat.com/show_bug.cgi?id=454645
This situation can also occur when the machine contains a volume group that has the same name as a volume group that exists on the original disk.
Resolving the problem
If you perform file level recovery in a Linux virtual guest machine that uses LVM, and, when using iSCSI exposure to the same machine from which the data was backed up, duplicate disks are exposed to the machine. In that case, it is important to ensure that file level information is available for restoration.When performing file level restore from a Linux disk with LVM information, it might be easier to perform the operation to a secondary Linux machine, on which no duplicate disk signature issues will occur.
The LVM2 vgimportclone command adds support for importing duplicated Volume Groups. The vgimportclone command does not exist on all LVM versions. It was added at version lvm-2.02.46. Here is an example of the use of the vgimportclone command:
The new LVM device name (for example, /dev/sde2) is recognized. Issue the following commands:
1. vgimportclone /dev/sde2.
2. pvscan
3. vgscan
4. lvscan
The lvscan output is shown in all the LVM volumes. On the output from lvscan you can see the new volumes that are not in activate state and its logical volume path. Here is an example of lvscan output:
# lvscan
inactive ‘/dev/VolGroup001/LogVol00’ [37.94 GB] inherit
inactive ‘/dev/VolGroup001/LogVol01’ [1.94 GB] inherit
ACTIVE ‘/dev/testvg/testvg’ [1.95 GB] inherit
ACTIVE ‘/dev/VolGroup00/LogVol00’ [37.94 GB] inherit
ACTIVE ‘/dev/VolGroup00/LogVol01’ [1.94 GB] inherit
1. For each volume that you want to activate, run the following command
lvchange -a y < LogicalVolumePath >
For example:
lvchange -a y /dev/VolGroup001/LogVol00
2. Then mount the LogicalVolumePath to a folder.
For example:
mount /dev/VolGroup001/LogVol00 /LVCopyNewMountFolder
Recent Comments