Operating System - Linux
1748257 Members
3886 Online
108760 Solutions
New Discussion юеВ

Re: importing vg's on RHEL

 
itai weisman
Super Advisor

importing vg's on RHEL

Hi,
does anyone know how can I import a vg, on linux LVM 2, when there's already exist a vg with the name of the vg I wish to import?
on hpux it was easy - I had to use map file or device names - and I would set the vg name when importing .. on linux it's impossible - I can't rename a vg when importing, and if there is already a vg with the name of the vg I wish to import - the import fails...
5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: importing vg's on RHEL

The vgrename command could be run in the source system before exporting the VG.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
itai weisman
Super Advisor

Re: importing vg's on RHEL

is that the only way to do that?
Mike Stroyan
Honored Contributor

Re: importing vg's on RHEL

If you have a recent RHEL 5 update then you can use vgrename to fix a duplicate volume group name.
This november 2007 errata-
http://rhn.redhat.com/errata/RHBA-2007-0516.html
notes a fix for a problem using vgrename with duplicate vg names.
https://bugzilla.redhat.com/show_bug.cgi?id=244793
itai weisman
Super Advisor

Re: importing vg's on RHEL

and if I have RHEL 4.6?
Mike Stroyan
Honored Contributor

Re: importing vg's on RHEL

The RHEL4U6 version of "man vgrename" says that you should be able to rename the conflicting volume group by UUID with "vgrename UUID newname". But it also notes that the system may not boot at all if the volume group name of the root filesystem is duplicated.