linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Importing a VG with existing name
@ 2006-05-02 11:33 Oliver Tennert
  2006-05-03 16:32 ` Alasdair G Kergon
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Tennert @ 2006-05-02 11:33 UTC (permalink / raw)
  To: linux-lvm

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

-- 
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
O.Tennert@science-computing.de          www.science-computing.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-lvm] Importing a VG with existing name
  2006-05-02 11:33 [linux-lvm] Importing a VG with existing name Oliver Tennert
@ 2006-05-03 16:32 ` Alasdair G Kergon
  0 siblings, 0 replies; 2+ messages in thread
From: Alasdair G Kergon @ 2006-05-03 16:32 UTC (permalink / raw)
  To: LVM general discussion and development

On Tue, May 02, 2006 at 01:33:13PM +0200, Oliver Tennert wrote:
> 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
-- 
agk@redhat.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-03 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-02 11:33 [linux-lvm] Importing a VG with existing name Oliver Tennert
2006-05-03 16:32 ` Alasdair G Kergon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).