Operating System - HP-UX
1833785 Members
2306 Online
110063 Solutions
New Discussion

Migrate Packages - service guard

 
SOLVED
Go to solution
Fernando Jose P de Souz
Regular Advisor

Migrate Packages - service guard

Hi,

I'll migrate my packages to new servers and new cluster.

I create the procedure.

cmhaltpkg p1
vgexport -m /etc/cmcluster/mapavgp1 -s -p -v /dev/vgp1
cmhaltcl -v
rcp between the servers
vgimport -m /etc/cmcluster/mapavgp1 -s -v
vgchange, mount e IP
Test Oracle DB
umount, vgchange e IP
cmquerycl -v -C /etc/cmcluster/cmclconf.ascii -n hpxjf55 -n hpxjf65
cmcheckconf -v -C /etc/cmcluster/cmclconf.ascii Verificar o arquivo /etc/cmcluster/cmclconf.ascii
cmapplyconf -v -C /etc/cmcluster/cmclconf.ascii cmmakepkg -p /etc/cmcluster/p1/p1.conf
Copy the packages files the old packages to new cluster and start packages
cmcheckconf -C /etc/cmcluster/cmclconf.ascii -P /etc/cmcluster/p1/p1.conf
cmapplyconf -C /etc/cmcluster/cmclconf.ascii -P /etc/cmcluster/p1/p1.conf
cmrunpkg -n hpxjf55 p1

3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Migrate Packages - service guard

Shalom,

Nice procedure.

To actually do this with minimal downtime, the nodes intended for the new cluster are going to have to join the old one.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stephen Doud
Honored Contributor
Solution

Re: Migrate Packages - service guard

ON OLD CLUSTER:
# cmhaltpkg
For each VG in the package:
# vgexport -pvs -m /dev/
# vgchange -c n
# rcp *.map NEW_CLUSTER_NODE_A:/etc/lvmconf/
# rcp -pr /etc/cmcluster/ NEW_CLUSTER_NODE_A:/etc/cmcluster

ON NEW CLUSTER NODE_A:
Connect the disk array to the new cluster

# rm /etc/cmcluster//*log
# rcp -pr /etc/cmcluster/ NEW_CLUSTER_NODE_B:/etc/cmcluster

For each VG in the package, do the following on each node in the new cluster:
# mkdir /dev/
# mknod /dev//group c 64 0xUU0000 <<-- where UU is a unique minor number
# vgimport -vs -m /etc/lvmconf/.map /dev/

Insure at least 2 active networks or 1 network and 1 standby NIC are configured.
Build the cluster:
cmquerycl -v -C /etc/cmcluster/cmclconf.ascii -n hpxjf55 -n hpxjf65
vgchange -a y
cmapplyconf -v -C /etc/cmcluster/cmclconf.ascii
vgchange -a n

For each new package:
cmapplyconf -P
/ -f
~
~
Fernando Jose P de Souz
Regular Advisor

Re: Migrate Packages - service guard

It's Ok.

The procedure is ok.

Thanks.