Operating System - HP-UX
1826337 Members
3961 Online
109692 Solutions
New Discussion

Creating SG failover package

 
SOLVED
Go to solution
Francis Flan
Regular Advisor

Creating SG failover package

Hi,
Need a few tips as i'm new to SG and testing it.
I have a 2 HP-UX 11.31 servers clustered set up and now want to create a package eg VG package.

I've a shared SAN disk presented to both servers and now need some tips for creating a package over the server cluster. (Im using the smh so far.)

thanks
4 REPLIES 4
sujit kumar singh
Honored Contributor
Solution

Re: Creating SG failover package


Hi

you can find this as helpful.

http://thomasvogt.wordpress.com/2008/08/26/mcserviceguard-cluster-installation-on-hp-ux-1131/

refer to the Service Guard Manual:
http://docs.hp.com/en/B3936-90140/B3936-90140.pdf

creation of package.
node1:

1) create the VG(s) say vg02 to be used by the cluster package on one node. create LVs and filesys.

make this VG cluster aware.
#vgchahge -c y /dev/vg02
create a map and rcp to the other node

#vgexport -p -v -s -m /tmp/vg02.map /dev/vg02
#rcp /tmp/vg02.map node2:/tmp
2) import this VG on node2

node2:

#mkdir /dev/vg02
#mknod /dev/vg02/group c 64 0X020000
#vgimport -v -s -m /tmp/vg02.map /dev/vg02

your VGs are configured.


on node1: create the pkg template files for configuration and control.

node1:


#cd /etc/cmcluster
#mkdir pkg1
#cd pkg1
#cmcmakepkg -s pkg1.cntl
#cmamkepakg -p pkg1.conf

edit pkg1.conf
PACKAGE_NAME pkg1
PACKAGE_TYPE FAILOVER
FAILOVER_POLICY CONFIGURED_NODE
FAILBACK_POLICY MANUAL
SUBNET <192.168.0.0_SUBNET_ADDRESS>
run_script
halt_script
NODENAME node1
NODENAME node2
NODE_FAIL_FAST_ENABLED NO
SERVICE_NAME
SERVICE_FAIL_FAST_ENABLED NO

edit the pkg1.cntl

VG_NAME=
FS check and mount options -- put the VG,LV name amnd mount points and mount option
IP -- IP address of the package
SUBNET -- SUBNET as given in pkg1.conf
SERVICE_NAME
SERVICE_CMD
etc

create the mount points as mentioned in the pkg1.cntl on node1 as well as node2.

rcp these pkg1.conf and pkg1.cntl to node2 alsp creating on node2 /etc/cmcluster/pkg1.


cmcheckconf -v -P /etc/cmcluster/pkg1.conf
no errors returned
cmapplyconf -v -P /etc/cmcluster/pkg1.conf


cmrunpkg -v pkg1 - to start the package
cmhaltpkg -v pkg1 - to halt the package


regards
sujit
Steven E. Protter
Exalted Contributor

Re: Creating SG failover package

Shalom,

http://www.docs.hp.com/en/B3936-90117/ch03s03.html

http://docs.hp.com/en/15682/optimizingfailoversg-1119.pdf

http://docs.hp.com/en/B3936-90100/ch04s08.html

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
Sajjad Sahir
Honored Contributor

Re: Creating SG failover package

Dear Francis

u can see the all manuals of service guard
here

http://docs.hp.com/en/ha.html#Serviceguard

thanks and regards

Sajjad sahir
Basheer_2
Trusted Contributor

Re: Creating SG failover package

Hi Francis,

Procedure for creating and my very brief cookbook

1) mkdir /etc/cmcluster/package_name
2) cd /etc/cmcluster/package_name
3) cmmakepkg -v -p pkg.conf
4) vi pkg.conf
5) cmmakepkg -v -s pkg.cntl
6) vi pkg.cntl
7) ftp pkg.cntl to all other nodes
8) cmcheckconf -v -P /etc/cmcluster/package_name/pkg.conf
9) cmapplyconf -v -P /etc/cmcluster/package_name/pkg.conf