I'm trying to resize my virtual hard disk, so I've cloned it, and right now I have two disks in my virtual machine.
I'm trying now to boot off the old virtual disk and then resize the new hard disk's partitions, but when I do pvresize complains that there duplicate physical volumes (PV) with the same ID (presumably because I cloned my disk).
What do I do?
Can i just change the ID of one of the physical volumes?
Have you considered trying pvchange -u on the new physical volume to give it a new UUID?
Why can't you just disconnect the old volume since you have already cloned it?
I haven't tried this and I would do it om a disk that I didn't care about but the LVM FAQ says "pvcreate only overwrites the lvm metadata areas on disk and doesn't touch the data areas (the logical volumes). ". So you might be able to get away with doing a pvremove followed by a pvcreate although as I say I would do it with a disc of data I didn't care about first