Unable to Change UUID of Cloned Drive - "Device Left Open"?
I have a drive that I cloned using clonezilla. I am trying to add the logical volume to a new LV group so I can rsync updated files, but first I need to change the UUID because right now it's showing up the same as the drive on /dev/sda1. I run
Code:
pvchange --uuid /dev/sdb2 Code:
Found duplicate PV 7CBVufOmlK2OnUUVM0O7nAs8I3zvOFKg: using /dev/sda2 not /dev/sdb2 |
Have you rebooted. A memory leak is RAM, not HDD. Is there swap space available on the system? It's used as virtual ram when physical ram is not available.
|
Yes, I have tried rebooting. There is plenty of swap and memory available. This is essentially a fresh install that I have cloned.
|
Did you force the UUID when you "cloned" the system? The UUID is partition specific and generated when you mkfs the filesystem. You might use blkid to check the UUID of each component device.
Code:
Found duplicate PV 7CBVufOmlK2OnUUVM0O7nAs8I3zvOFKg: using /dev/sda2 not /dev/sdb2 |
You didn't say specifically what is was that you "cloned" (entire physical drive? partition? LV?) so when you say you're trying to "add the logical volume to a new LV group" I'm not sure if you wish to add a partition from a cloned physical drive, or a cloned copy of a partition now residing in another partition, etc, etc...
Anyway, have you tried vgimportclone? SYNOPSIS vgimportclone [-n|--basevgname VolumeGroupName] [-i|--import] PhysicalVolume [PhysicalVolume...] DESCRIPTION vgimportclone is used to import a duplicated VG (e.g. hardware snapshot). Duplicate VG(s) and PV(s) are not able to be used until they are made to coexist with the origin VG(s) and PV(s). vgimportclone renames the VG associated with the specified PV(s) and changes the associated VG and PV UUIDs. |
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 edit: It seems to have worked. I'll try to mount it to be sure Code:
# vgimportclone --basevgname vg_4brxrc1 /dev/sda2 /dev/sdb2 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. |
All times are GMT -5. The time now is 02:45 AM. |