Operating System - HP-UX
1831999 Members
3020 Online
110034 Solutions
New Discussion

single node cluster in mc/service guard

 
Ricky_4
Frequent Advisor

single node cluster in mc/service guard

Hi Everyone,

We are planning to test it first our scripts for starting and shutting down the packages before applying into production. Is it possible to configure MC/Service Guard as single node cluster just to check just to test those scripts?

Please provide us procedure considering mc/service guard has already been installed.

Regards,

Ricky
3 REPLIES 3
Sunil Sharma_1
Honored Contributor

Re: single node cluster in mc/service guard

Yes. It is possible to have single node cluster.

Please see this document for more details

http://docs.hp.com/hpux/onlinedocs/B3936-90073/B3936-90073.html

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Sridhar Bhaskarla
Honored Contributor

Re: single node cluster in mc/service guard

Hi Ricky,

Yes it is very much possible to create a single node cluster and I do it to test my serviceguard scripts. You just need to follow the same procedure that you follow for creating multiple node cluster except that you have to ignore heartbeat/cluster lock errors.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Geoff Wild
Honored Contributor

Re: single node cluster in mc/service guard

Yes it is possible - I run 2 clusters like that - 1 test and one for QA. Great way to test scripts before moving to Production.

Just specify 1 node in the cmquerycl:

Here's how I did it on my test workstation:

Detailed Description :
install mc/sg from disk 5012-7838 with
add sha1, localhost to /etc/cmcluster/cmnodelist
add localhost /.rhost

cmquerycl -v -C /etc/cmcluster/sha1.ascii -n sha1
vi /etc/cmcluster/sha1.ascii
CLUSTER_NAME sha1
HEARTBEAT_INTERVAL 2000000
NODE_TIMEOUT 8000000
VOLUME_GROUP /dev/vg01

cmapplyconf -v -C /etc/cmcluster/sha1.ascii

cmapplyconf -v -P /etc/cmcluster/SOFTWARE/software.cfg
vi /etc/cmcluster/SOFTWARE/software.cfg
PACKAGE_NAME softwarepkg
NODE_NAME sha1
LOCAL_LAN_FAILOVER_ALLOWED NO
RUN_SCRIPT /etc/cmcluster/SOFTWARE/software.cntl
RUN_SCRIPT_TIMEOUT NO_TIMEOUT
HALT_SCRIPT /etc/cmcluster/SOFTWARE/software.cntl
HALT_SCRIPT_TIMEOUT NO_TIMEOUT

cmapplyconf -v -s /etc/cmcluster/SOFTWARE/software.cntl
vi /etc/cmcluster/SOFTWARE/software.cntl
VG[0]=vg01
LV[0]="/dev/vg01/lvswtool"; FS[0]="/var/software/tools"
LV[1]="/dev/vg01/lvswmisc"; FS[1]="/var/software/misc"
LV[2]="/dev/vg01/lvpatch"; FS[2]="/var/software/patch"

vi /etc/lvmrc
AUTO_VG_ACTIVATE=0
custom_vg_activation()
{
# e.g. /sbin/vgchange -a y -s
# parallel_vg_sync "/dev/vg00 /dev/vg01"
# parallel_vg_sync "/dev/vg02 /dev/vg03"
/sbin/vgchange -a y -s /dev/vg00

return 0
}

vgchange -c y vg01

cmrunpkg softwarepkg


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.