LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 02-09-2006, 10:45 AM   #1
jambraun
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, 01:39 PM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 11, Sabayon 3.1
Posts: 1,464

Rep: Reputation: 46
why does that matter?
 
Old 02-09-2006, 02:34 PM   #3
jambraun
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.
 
  


Reply


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 08:05 PM
changing UID of a user to "0" paeng16 Linux - Security 5 06-16-2004 11:31 PM
changing permissions and the UID... viper91681 Solaris / OpenSolaris 3 03-11-2004 09:47 AM
changing uid, gid zeke1955 Linux - General 4 01-09-2004 11:53 PM
Changing User IDs (UID) totalcommand Linux - Newbie 5 06-06-2003 06:47 PM


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

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