I cloned the entire drive, two partitions, a small ext4 boot partition and a larger LVM2 partition. I just booted to separate (third) drive and tried pvhcange again
Code:
# pvchange --uuid /dev/sdb2
Volume group containing /dev/sdb2 has active logical volumes
0 physical volumes changed / 1 physical volume not change
I'll try booting with both cloned drives in the machine and run vgimportclone and report back.
edit: It seems to have worked. I'll try to mount it to be sure
Code:
# vgimportclone --basevgname vg_4brxrc1 /dev/sda2 /dev/sdb2
WARNING: Activation disabled. No device-mapper interaction will be attempted.
Found duplicate PV 7CBVufOmlK2OnUUVM0O7nAs8I3zvOFKg: using /tmp/snap.vC3D9qKh/vgimport0 not /tmp/snap.vC3D9qKh/vgimport1
Unable to find /tmp/snap.vC3D9qKh/vgimport1 in vg_4brxrc1
0 physical volumes changed / 0 physical volumes not changed
Internal error: Volume Group vg_4brxrc1 was not unlocked
Device '/tmp/snap.vC3D9qKh/vgimport0' has been left open.
Device '/tmp/snap.vC3D9qKh/vgimport1' has been left open.
You have a memory leak (not released memory pool):
[0x19d7710] format_instance
[0x1dcd710] read_vg
Internal error: Unreleased memory pool(s) found.
WARNING: Activation disabled. No device-mapper interaction will be attempted.
Found duplicate PV 7CBVufOmlK2OnUUVM0O7nAs8I3zvOFKg: using /tmp/snap.vC3D9qKh/vgimport1 not /tmp/snap.vC3D9qKh/vgimport0
Volume group "vg_4brxrc1" successfully changed
Found duplicate PV 7CBVufOmlK2OnUUVM0O7nAs8I3zvOFKg: using /tmp/snap.vC3D9qKh/vgimport1 not /tmp/snap.vC3D9qKh/vgimport0
Volume group "vg_hallen4brxrc1" successfully renamed to "vg_4brxrc11"
Reading all physical volumes. This may take a while...
Found duplicate PV 7CBVufOmlK2OnUUVM0O7nAs8I3zvOFKg: using /dev/sdb2 not /dev/sda2
Found volume group "vg_4brxrc11" using metadata type lvm2
edit2:
It worked, thanks for the help. I was able to mount /dev/vg_4brxrc11/lv_root and /dev/vg_4brxrc11/lv_home without any problems.