Importing a VG with existing name
Hello,
can anybody tell me what the best way is to import a volume group, when the vg's name already exists in the system?
Many Linux installations (like Fedora or RedHat) use default names for volume groups. Whenever the issue arises to access the VGs from another system, trying to imprt the VG leads to an inconsistent LVM database.
I failed to rename the still exported VG, which is already plugged into thethis leads to a wrong checksum.
So: what is the best solution?
Best regards
Oliver Tennert
Signature · 16 lines
Waiter: "Tea or coffee, gentlemen?"
1st customer: "I'll have tea."
2nd customer: "Me, too -- and be sure the glass is clean!"
(Waiter exits, returns)
Waiter: "Two teas. Which one asked for the clean glass?"
--
__
________________________________________creating IT solutions
Dr. Oliver Tennert
Senior Solutions Engineer
CAx Professional Services
science + computing ag
phone +49(0)7071 9457-598 Hagellocher Weg 71-75
fax +49(0)7071 9457-411 D-72070 Tuebingen, Germany
[email protected] www.science-computing.deQuoted 2 lines · Oliver Tennert
can anybody tell me what the best way is to import a volume group, when the vg's name already exists in the system?
Version 2.02.05 lets you rename it by giving its uuid to vgrename in place of its name.
Prior to that you can set up a one-off lvm.conf file with filters that exclude everything except the disk(s) being imported and use the LVM_SYSTEM_DIR environment variable to point lvm at the temporary configuration file.
Alasdair
Signature · 1 line
[email protected]