Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-09-2006, 11:45 AM   #1
LQ Newbie
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
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.
Old 02-09-2006, 02:39 PM   #2
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
why does that matter?
Old 02-09-2006, 03:34 PM   #3
LQ Newbie
Registered: Feb 2006
Posts: 2

Original Poster
Rep: Reputation: 0
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
FREEBSD5.3 platform: PHP setcookie() successful, but $uid = $_COOKIE['uid']; fail tclwp Programming 1 03-30-2005 09:05 PM
changing UID of a user to "0" paeng16 Linux - Security 5 06-17-2004 12:31 AM
changing permissions and the UID... viper91681 Solaris / OpenSolaris 3 03-11-2004 10:47 AM
changing uid, gid zeke1955 Linux - General 4 01-10-2004 12:53 AM
Changing User IDs (UID) totalcommand Linux - Newbie 5 06-06-2003 07:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration