This might help you, See the article "Recovery of RAID and LVM2 Volumes" at http://www.linuxjournal.com/article/8874, in its section named " Recovering and Renaming the LVM2 Volume" it describes editing the duplicate vol group's backup file to change the volgroup's name and using vgcfgrestore -f to make LVM rewrite that volgroup's metatdata from the edited file. also see Listing 7 and way way down, the "corrected listing 6".
-------------------------------------------------------- This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. -----Original Message----- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of RPN01 Sent: Friday, February 09, 2007 11:50 AM To: [email protected] Subject: Renaming an LVM volume group... There is a LVM command ³vgrename² that can rename a volume group from one name to another, but what if you have a volume group you¹ve just attached to the system, and its name matches the name of one of the volume groups you already have on the system? How can you rename this volume group, without effecting the one you already have? How can you distinguish between the two? We¹ve run into this several times on Linux images on the z, but I just ran into the same issue on an Intel box we were working on rebuilding / cloning. What I¹d specifically like to do today is to ³dd² copy the disk, and then change the name of the volume group on the copied disk before attempting to mount it up. In the state I¹m in right now, I can¹t mount it, so I can¹t complete the clone before removing the disks and parting them out to two other Intel boxes. I¹m asking here because we¹re much more likely to run into this situation than on an Intel, so I¹m hoping this may be a better place to find an answer... -- .~. Robert P. Nix Mayo Foundation /V\ RO-OC-1-13 200 First Street SW / ( ) \ 507-284-0844 Rochester, MN 55905 ^^-^^ ----- "In theory, theory and practice are the same, but in practice, theory and practice are different." ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
