Operating System - HP-UX
1748183 Members
3306 Online
108759 Solutions
New Discussion юеВ

HPUX MC/ServiceGuard: vgexport/vgimport commands

 
SOLVED
Go to solution
LG Porter
Frequent Advisor

HPUX MC/ServiceGuard: vgexport/vgimport commands

I have a two node cluster, Node A and Node B running MCSG 10.10. I have created a volume group on Node A called " /dev/vgoracle" and I would like to update the LVM configuration on Node B. Question: A) What is the correct vgexport/vgimport syntax for exporting and importing volume groups from within a MCSG cluster? B) Can the "map" file for vgoracle volume group on Node A be created while the cluster and package on Node A is running? Thanks
5 REPLIES 5
S.K. Chan
Honored Contributor
Solution

Re: HPUX MC/ServiceGuard: vgexport/vgimport commands

This document has the recipe..
(doc id = UXSGLVKBAN00000012)

http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000058849494
melvyn burnard
Honored Contributor

Re: HPUX MC/ServiceGuard: vgexport/vgimport commands

All documented in teh Managing MC/ServiceGuard manual available at:
http://docs.hp.com/hpux/ha

But simple answer, yes you can do this while it is active;
vgexport -p -m mapfilename -s vgname

This assumes you are NOT using large VG configured on something like an EMC or XP array.
If you are using these, then the -s option is not recommended.
man vgexport

then copy the mapfile to the othernode, make sur eyou have created the vg directory and group file correctly, then
vgimport -m mapfilename -s vgname


again same restriction on the -s option.

If you do NOT use -s, you will need to specify the device files for each pv or lun that has to be in hte vg.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
PIYUSH D. PATEL
Honored Contributor

Re: HPUX MC/ServiceGuard: vgexport/vgimport commands

Hi,

On nodeA

#vgexport -p -s -m /tmp/vgoracle.map /dev/vgoracle

# rcp /tmp/vgoracle.map nodeB:/tmp/vgoracle.map

On nodeB

# mkdir /dev/vgoracle
#mknod /dev/vgoracle/group c 64 0x0x0000

x= vg no.....check in /dev dir

#vgimport -s -m /tmp/vgoracle.map /dev/vgoracle

The

#vgchange -a y /dev/vgdata

Mount lvol on the directory for checking

If you are using PVGs then check the /etc/lvmpvg file also on both the nodes.

Do a vgchange -a n /dev/vgoracle after that

Piyush
Oleg Zieaev_1
Regular Advisor

Re: HPUX MC/ServiceGuard: vgexport/vgimport commands

To add vgoracle to MC/SG cluster I would do following:
(MC/SG is up)
on node A:
vgchange -a n /dev/vgoracle
vgchange -c y /dev/vgoracle
vgchange -a e /dev/vgoracle

vi /etc/cmcluster/cmclconf.ascii
(add VOLUME_GROUP /dev/vgoracle).
vi /etc/cmcluster/packageA/packageA.cntl
(add VG[XX]=/dev/vgoracle)
XX is next index for VGs in this file.
rcp cmclconf.ascii to nodeB
rcp packageA.cntl to nodeB

cd /etc/cmcluster/packageA
vgexport -v -p -s -m vgoracle.map /dev/vgoracle

rcp vgoracle.map nodeB:/etc/cmcluster/packageA

go to node B.
on node B:

mkdir /dev/vgoracle
mknod /dev/vgoracle/group c 64 0xXX0000
(XX next available or especially assigned minor number)
cd /etc/cmcluster/packageA
vgimport -v -s -m vgoracle.map /dev/vgoracle

set correct permissions for devices (like for raw devices oracle uses etc to reflect exact settings on nodeA.
Professionals will prevail ...
liem_idt
New Member

Re: HPUX MC/ServiceGuard: vgexport/vgimport commands

I tried the steps given:

On nodeA

vgexport -p -s -m /tmp/oldqhr_test.map /dev/vgna_oldqhr

            vgexport: Volume group "/dev/vgna_oldqhr" is still active.

           vgexport: Preview of vgexport on volume group "/dev/vgna_oldqhr" succeeded.

rcp /tmp/oldqhr_test.map oldqhr:/tmp/oldqhr_test.map

 cat /tmp/oldqhr_test.map

                VGID df5bfad24fe2be32

               1 lvol1

 

On node B:

mkdir /dev/vgna_oldqhr

mknod /dev/vgna_oldqhr/group c 64 0x330000

vgimport -s -m /tmp/oldqhr_test.map /dev/vgna_oldqhr

          Couldn't access the list of physical volumes for volume group "/dev/vgna_oldqhr".

 

What did I miss, please tell me.