Managing HP Serviceguard for Linux, Sixth Edition, August 2006

Planning and Documenting an HA Cluster
Package Configuration Planning
Chapter 4118
In the package control script file, enter values into an
array known as SERVICE_CMD. Enter one service
command string for each service. The SERVICE_NAME,
SERVICE_CMD, and SERVICE_RESTART parameters are
set in the package control script in groups of three.
Service Restart Parameter
Enter a number of restarts. One valid form of the
parameter is -r n where n is a number of retries. A
value of -r 0 indicates no retries. A value of “ ” means
do not restart and -R indicates infinite restarts. The
default is 0, or no restarts.
In the package control script file, enter values into an
array known as SERVICE_RESTART. Enter one restart
value for each service. The SERVICE_NAME,
SERVICE_CMD, and SERVICE_RESTART parameters are
set in the package control script in groups of three.
The package control script will clean up the environment and undo the
operations in the event of an error. Refer to the section on “How Package
Control Scripts Work” in Chapter 3 for more information.
Package Configuration Worksheet
Assemble your package configuration and control script data in a
separate worksheet for each package. Examples of each are shown in
Figure 4-2 and Figure 4-3.
Figure 4-2 Package Configuration Worksheet
=============================================================================
Package Configuration File Data:
=============================================================================
Package Name: ______pkg11_______________
Failover Policy: _CONFIGURED_NODE__ Failback Policy: ___AUTOMATIC___
Primary Node: ______ftsys9_______________
First Failover Node:____ftsys10_______________
Additional Failover Nodes:__________________________________
Package Run Script: __/usr/local/cmcluster/pkg1/control.sh