Managing HP Serviceguard for Linux Ninth Edition, April 2009

Managing the Running Cluster
This section describes some approaches to routine management of the cluster. For more
information, see Chapter 7: “Cluster and Package Maintenance” (page 221). You can
manage the cluster from Serviceguard Manager, or by means of Serviceguard commands
as described below.
Checking Cluster Operation with Serviceguard Commands
cmviewcl checks the status of the cluster and many of its components. A non-root
user with the role of Monitor can run this command from a cluster node or see
status information in Serviceguard Manager.
cmrunnode is used to start a node. A non-root user with the role of Full Admin,
can run this command from a cluster node or through Serviceguard Manager.
cmhaltnode is used to manually stop a running node. (This command is also
used by shutdown(1m).) A non-root user with the role of Full Admin can run
this command from a cluster node or through Serviceguard Manager.
cmruncl is used to manually start a stopped cluster. A non-root user with Full
Admin access can run this command from a cluster node, or through Serviceguard
Manager.
cmhaltcl is used to manually stop a cluster. A non-root user with Full Admin
access, can run this command from a cluster node or through Serviceguard
Manager.
You can use these commands to test cluster operation, as in the following:
1. If the cluster is not already running, start it:
cmruncl -v
By default, cmruncl will check the networks. Serviceguard will probe the actual
network configuration with the network information in the cluster configuration.
If you do not need this validation, use cmruncl -v -w none instead, to turn
off validation and save time
2. When the cluster has started, make sure that cluster components are operating
correctly:
cmviewcl -v
Make sure that all nodes and networks are functioning as expected. For more
information, refer to the chapter on “Cluster and Package Maintenance.”
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.
184 Building an HA Cluster Configuration