Operating System - HP-UX
1834475 Members
3408 Online
110067 Solutions
New Discussion

Re: Doing vgexport with cluster up and running

 
Danny Baldono
Frequent Advisor

Doing vgexport with cluster up and running

I got two node cluster (HPUX 11.11 w/ SG).
I added a new disk on an existing vg (vgsapdata5). To update the LV information on the other node, I need to vgexport (for map) on the primary and vgexport plus vgimport on the secondary node. Can I do the vgexport while the cluster is running? See the result below.

# vgexport -s -p -v -m /tmp/vgsapdata5_new.map /dev/vgsapdata5
Beginning the export process on Volume Group "/dev/vgsapdata5".
vgexport: Volume group "/dev/vgsapdata5" is still active.
/dev/dsk/c1t1d0
# vgchange -a e /dev/vgsapdata5
Volume group "/dev/vgsapdata5" has been successfully changed.
# vgexport -s -p -v -m /tmp/vgsapdata5_new.map /dev/vgsapdata5
Beginning the export process on Volume Group "/dev/vgsapdata5".
vgexport: Volume group "/dev/vgsapdata5" is still active.
/dev/dsk/c1t1d0
#

The vg is always "active". How can get the mapping on the primary node then?

Don't fix a good machine or you will end up fixing it.
1 REPLY 1
Danny Baldono
Frequent Advisor

Re: Doing vgexport with cluster up and running

I tried again here on our test environment the same scenario. Before I was always confused by the word "active". Before this word indicates to me that this vg is in active mode and I cannot get the mapping thru vgexport. But now do not be confused by the word "active". You can do vgexport -p -s -m /tmp/vgsapdata5_new.map and a new file vgsapdata5_new.map will be created and if you look in to the file you will see the vgid and the lv associated with the said vg.
No need to do also vgchange -a e. Therefore you can get the vg map even online (the cluster up and running).
Don't fix a good machine or you will end up fixing it.