HP Serviceguard for Linux Version A.11.20.00 Deployment Guide, August 2012

19
Serviceguard System Configuration Automation script
User will configure the following:
Enabling Serviceguard command.
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
2. Edit the /etc/man.config file to include the following line for Red Hat:
MANPATH /usr/local/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 nodes in a
prospective cluster.
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,
and must be created.
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,
# Serviceguard will not consult this file.
###########################################################
The format for entries in cmclnodelist should be as follows:
[hostname] [user] [#Comment]
eve root #cluster1, node1
adam root #cluster1, node2
Serviceguard also accepts the use of a “+” in the cmclnodelist file; this indicates that
the root user on any Serviceguard node can configure Serviceguard on this node. This
file needs to be created on the other node as well.
Configuring Name Resolution
Serviceguard uses the name resolution services built into Linux.
Serviceguard nodes can communicate over any of the cluster’s shared networks, so the