Operating System - HP-UX
1850543 Members
3022 Online
104054 Solutions
New Discussion

Re: Migrate cluster lock device

 
ArvindMenon
Advisor

Migrate cluster lock device

Hi,

I am planning to migrate cluster lock VG from old storage box to new one. What would be the best procedure to do it?

Presentely i am planning following procedure.

Create a new cluster lock volume group.

Frist node
# pvcreate /dev/rdsk/c_t_d_
# mkdir /dev/vglocknew
# mknod /dev/vglocknew/group c 64 0x0100000
# vgcreate /dev/vglocknew /dev/dsk/c_t_d_"
# vgexport -pvs -m map.vglocknew /dev/vglocknew
# rcp map.vglocknew SECONDNODE:/etc/lvmconf

Second Node
# mkdir /dev/vglocknew
# mknod /dev/vglocknew/group c 64 0x0100000
# cd /etc/lvmconf
# vgimport -vs -m map.vglocknew /dev/vglocknew
# vgchange -a y vglocknew
# vgchnage -a n vglocknew

# cmgetconf cluster.ascii
# cp cluster.ascii cluster.ascii.backup

Edit following parameter in the ascii file.

FIRST_CLUSTER_LOCK_VG /dev/vglocknew
FIRST_CLUSTER_LOCK_PV /dev/dsk/c_t_d_
FIRST_CLUSTER_LOCK_PV /dev/dsk/c_t_d_
VOLUME_GROUP /dev/vglocknew


# cmcheckconf -C /etc/cmcluster/cluster.ascii"

Bring all package down
# cmhaltpkg

Bring cluster down.
# cmhaltcl -v

Activate the lock VG.
# vgchange -a y vglocknew

Apply new configuration file.
# cmapplyconf -f -C /etc/cmcluster/cluster.ascii"
# vgchange -a n vglocknew

Start the cluster.
# cmruncl -v
# vgchnage -c y /dev/vglocknew"
#cmrunpkg

Reagards
Arvind
5 REPLIES 5
Stephen Doud
Honored Contributor

Re: Migrate cluster lock device

Looks good to me!
(Note the typo "vgchnage") near the bottom.
melvyn burnard
Honored Contributor

Re: Migrate cluster lock device

looks well planned and ok to me
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Carsten Krege
Honored Contributor

Re: Migrate cluster lock device

The procedure you are using is correct and supported by HP (besides of multiple typos "vgchnage"). The only thing I can add is that you might want to add the "-K" option for cmapplyconf if you want to minimize the downtime (available with SG A.11.15 and later). THis limits the disk checking of cmapplyconf to the cluster lock VG. Otherwise if you deal with a large disk farm, you might have to wait for a long time.

There is no way that you can change the cluster lock disk while keeping the cluster online.

Carsten
-------------------------------------------------------------------------------------------------
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
ArvindMenon
Advisor

Re: Migrate cluster lock device

Thanks All for there effort.
ArvindMenon
Advisor

Re: Migrate cluster lock device

Thanks