||02-09-2006 11:45 AM
Changing the UID of a Physical Volume to a specific UID
I'm trying to recreate an LVM partition identical to one used by one of our servers for restore purposes and after creating the LVM partition by hand, of course, the Physical Volume UID (pvdisplay) and LV/LG UIDs differ from the originals. I thought for sure there was a way to recreate the LVM from a file containing metadata, like using lvconfigrestore, but I haven't been able to do so. As far as I've gotten, I was able to do a 'pvchange -u /dev/hda2', which will change the UID of the PV randomly...but no matter what I try I cannot set the UID to a specific UID.