Managing HP Serviceguard A.11.20.10 for Linux, December 2012

3. Verify that nodes leave and enter the cluster as expected using the following steps:
Halt the cluster. You can use Serviceguard Manager or the cmhaltnode command.
Check the cluster membership to verify that the node has left the cluster. You can use the
Serviceguard Manager main page or the cmviewcl command.
Start the node. You can use Serviceguard Manager or the cmrunnode command.
Verify that the node has returned to operation. You can use Serviceguard Manager or
the cmviewcl command again.
4. Bring down the cluster. You can use Serviceguard Manager or the cmhaltcl -v -f
command.
See the manpages for more information about these commands. See Chapter 8: “Troubleshooting
Your Cluster” (page 241) for more information about cluster testing.
5.3.2 Setting up Autostart Features
Automatic startup is the process in which each node individually joins a cluster; Serviceguard
provides a startup script to control the startup process. If a cluster already exists, the node attempts
to join it; if no cluster is running, the node attempts to form a cluster consisting of all configured
nodes. Automatic cluster start is the preferred way to start a cluster. No action is required by the
system administrator.
There are three cases:
The cluster is not running on any node, all cluster nodes must be reachable, and all must be
attempting to start up. In this case, the node attempts to form a cluster consisting of all
configured nodes.
The cluster is already running on at least one node. In this case, the node attempts to join that
cluster.
Neither is true: the cluster is not running on any node, and not all the nodes are reachable
and trying to start. In this case, the node will attempt to start for the AUTO_START_TIMEOUT
period. If neither of these things becomes true in that time, startup will fail.
To enable automatic cluster start, set the flag AUTOSTART_CMCLD to 1 in the $SGAUTOSTARTfile
($SGCONF/cmcluster.rc) on each node in the cluster; the nodes will then join the cluster at
boot time.
Here is an example of the $SGAUTOSTART file:
SGAUTOSTART=/usr/local/cmcluster/conf/cmcluster.rc
#*************************** CMCLUSTER *************************
# Highly Available Cluster configuration
#
# @(#) $Revision: 82.2 $
#
#
# AUTOSTART_CMCLD
#
# Automatic startup is the process in which each node individually
# joins a cluster. If a cluster already exists, the node attempts
# to join it; if no cluster is running, the node attempts to form
# a cluster consisting of all configured nodes. Automatic cluster
# start is the preferred way to start a cluster. No action is
# required by the system administrator. If set to 1, the node will
# attempt to join/form its CM cluster automatically as described
# above. If set to 0, the node will not attempt to join its CM
# cluster.
AUTOSTART_CMCLD=1
5.3 Managing the Running Cluster 159