Operating System - HP-UX
1832516 Members
3993 Online
110043 Solutions
New Discussion

Installation Document or Step-By-Step

 
cheesytime
Regular Advisor

Installation Document or Step-By-Step

Hello,

We are in the process of installing Service Guard -- is there any step by step guide to do this?

Any help or information will be appreciated thanks
3 REPLIES 3
Mel Burslan
Honored Contributor

Re: Installation Document or Step-By-Step

serviceguard installation is nothing more different than installing any other HPUX application using swinstall. Setting up a cluster and configuration of a package is the trickier part of serviceguard.

Since every SG implementation is unique to the environmant and application it needs to run on cluster, there is no cookie cutter step by step instructions for it. This set of documents from HP is a good place to start learning about configuring and administering clusters:

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

Hope this helps
________________________________
UNIX because I majored in cryptology...
Basheer_2
Trusted Contributor

Re: Installation Document or Step-By-Step

Here are the steps.

if you have EOE or MCOE , service guard is already installed in the system.

check what /usr/lbin/cmcld

Node 1
Assume you have set up all the volume groups, logical volumes and file systems and mountd them.

you already have your database and applications running on this machine.

so basically everything is working normally in your node1 server.

now you want to configure service guard, so it will failover your DB and applications from node1 to node2 if there are any problems in node1.

you can use the sgmgr ( gui tool)

node1

now for all vgs
1) copy the current config of vg
2) creating the mapfiles

cat /tmp/vglist
#(this will have all your vgnames in this file)
vgapp


# cat export_vg
#!/bin/sh
mkdir /tmp/node1.mapfiles
TMP=/tmp/node1.mapfiles
for vg in $(cat vglist)
do
vgchange -a r $vg
vgcfgbackup -f $TMP/$vg.bkp $vg
vgexport -p -s -m $TMP/$vg.map -v -f $TMP/$vg.f $vg
done;

the above script creates $TMP/vgapp.map

ll /dev/*/group
crw-r----- 1 root sys 64 0x000000 Dec 3 2006 /dev/vg00/group
crw-r--r-- 1 root sys 64 0x010000 May 15 13:14 /dev/vgapp/group


vg00 is not part of the cluster. here i have only one vg vgapp

node2
mkdir /dev/vgapp/group
mknod c 64 0x010000 /dev/vgapp/group

0x## this number must be the same as in node1

cat import_vg
#!/bin/sh
for vg in $(cat vglist)
do
vgimport -s -m $TMP/$vg.map /dev/$vg
done;

create cluster config file

cmquerycl -v -C /etc/cmcluster/cmclconfig.ascii

modify cmclconfig.ascci
self exaplantory

cmcheckconf -v -C /etc/cmcluster/cmclconfig.ascii

distribute the cluster binary to other files
cmapplyconf

start the cluster

cmruncl -v

those are the basic steps to create the cluster.

then you need to create packages

I need to go now.
Sajjad Sahir
Honored Contributor

Re: Installation Document or Step-By-Step


Dear Andrew

take the attachment also

thanks and regards

Sajjad Sahir