LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing the UID of a Physical Volume to a specific UID (http://www.linuxquestions.org/questions/linux-newbie-8/changing-the-uid-of-a-physical-volume-to-a-specific-uid-413483/)

jambraun 02-09-2006 10: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.

satinet 02-09-2006 01:39 PM

why does that matter?

jambraun 02-09-2006 02:34 PM

I'm restoring data from backupsets and the initrd references the UID of these devices on startup. In order to pull data down on to these partitions I need to first create the LVM. The problem lies that the initrd pulled down from the backup sets differs from the UIDs of the LVM devices and grub will fail to switch over to the new Root. I'm trying to save myself a step and not do a 'mkinitrd' by initially having the UIDs match.


All times are GMT -5. The time now is 12:10 PM.