Managing HP Serviceguard A.11.20.00 for Linux, June 2012

SGRUN=/opt/cmcluster/run # location of core dumps from daemons
SGAUTOSTART=/opt/cmcluster/conf/cmcluster.rc # SG Autostart file
Throughout this document, system filenames are usually given with one of these location prefixes.
Thus, references to $SGCONF/<FileName> can be resolved by supplying the definition of the
prefix that is found in this file. For example, if SGCONF is /usr/local/cmcluster/conf, then
the complete pathname for file $SGCONF/cmclconfig would be
/usr/local/cmcluster/conf/cmclconfig.
Enabling Serviceguard Command Access
To allow the creation of a Serviceguard configuration, you should complete the following steps on
all cluster nodes before running any Serviceguard commands:
1. Make sure the root user’s path includes the Serviceguard executables. This can be done by
adding the following environment variable definition to the root user’s profile for Red Hat:
PATH=$PATH:/usr/local/cmcluster/bin
For SUSE:
PATH=$PATH:/opt/cmcluster/bin
2. Edit the /etc/man.config file to include the following line for Red Hat:
MANPATH /usr/local/cmcluster/doc/man
For SUSE:
MANPATH /opt/cmcluster/doc/man
This will allow use of the Serviceguard man pages.
3. Enable use of Serviceguard variables.
If the Serviceguard variables are not defined on your system, then include the file /etc/
cmcluster.conf in your login profile for user root:
. /etc/cmcluster.conf
You can confirm the access to the one of the variables as follows:
cd $SGCONF
Configuring Root-Level Access
The subsections that follow explain how to set up root access between the nodes in the prospective
cluster. (When you proceed to configuring the cluster, you will define various levels of non-root
access as well; see “Controlling Access to the Cluster” (page 143)).
NOTE: For more information and advice, see the white paper Securing Serviceguard at http://
www.hp.com/go/hpux-serviceguard-docs -> HP Serviceguard -> White Papers.
Allowing Root Access to an Unconfigured Node
To enable a system to be included in a cluster, you must enable Linux root access to the system by
the root user of every other potential cluster node. The Serviceguard mechanism for doing this is
the file $SGCONF/cmclnodelist. This is sometimes referred to as a “bootstrap” file because
Serviceguard consults it only when configuring a node into a cluster for the first time; it is ignored
after that. It does not exist by default, but you will need to create it.
You may want to add a comment such as the following at the top of the file:
###########################################################
# Do not edit this file!
# Serviceguard uses this file only to authorize access to an
# unconfigured node. Once the node is configured,
122 Building an HA Cluster Configuration