1823202 Members
3757 Online
109648 Solutions
New Discussion юеВ

about vgimport

 
SOLVED
Go to solution
Rambo_1
Regular Advisor

about vgimport

If should I disable the vg01 which still active on host-B when I use vgimport command to import the vg01.map on host-A.


thanks
4 REPLIES 4
RAC_1
Honored Contributor
Solution

Re: about vgimport

At any point it will be active on one node only. So if it is active on node B, you do not do anything on node A. You can take the vgimport(preview only. for exporting it, it has to be de-activated)

On node B
vgexport -pv -s -m /tmp/vg01.map /dev/vg01

rcp/scr/ftp the file to node A

On node A

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -vs -m /tmp/vg01 /dev/vg01

Anil
There is no substitute to HARDWORK
Jeff Schussele
Honored Contributor

Re: about vgimport

Hi,

No, you won't need to disable on host B to import on host A. But you will need to create the /dev/vg_name dir & created the group node special file prior to the importation.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Sundar_7
Honored Contributor

Re: about vgimport

Hi Rambo,

You need NOT deactivate the volume group in HOST-B while executing vgimporting on HOST-A.

But remember, under no circumstances, a VG be activated in more than one node at the same time (except in cases of MC/OPS where there is no filesystem involved, only raw logical volumes).

-- Sundar.
Learn What to do ,How to do and more importantly When to do ?
G. Vrijhoeven
Honored Contributor

Re: about vgimport

Hi Rambo,

Like others have mentioned it is possible to do a vgimport ( using map/dev files or just plain device files)
I just like to add that is is possible to do activate the volumegroup on node B while active on node a just activate readonly.
vgchange -a r /dev/vg
this can be usefull if you want to do a vgcfgbackup on node B.
Do not forget to vgchange -a n /dev/vg on node B after the backup is complete.

Regards,

Gideon