Managing HP Serviceguard A.11.20.10 for Linux, December 2012

7.2.2 Adding Previously Configured Nodes to a Running Cluster
You can use Serviceguard Manager, or HP Serviceguard commands as shown, to bring a configured
node up within a running cluster.
Use the cmrunnode command to add one or more nodes to an already running cluster. Any node
you add must already be a part of the cluster configuration. The following example adds node
ftsys8 to the cluster that was just started with only nodes ftsys9 and ftsys10. The-v (verbose)
option prints out all the messages
cmrunnode -v ftsys8
By default, cmrunnode will do network validation, making sure the actual network setup matches
the configured network setup. This is the recommended method. If you have recently checked the
network and find the check takes a very long time, you can use the -w none option to bypass the
validation.
Since the node's cluster is already running, the node joins the cluster and packages may be started,
depending on the package configuration (see node_name (page 170)). If the node does not find
its cluster running, or the node is not part of the cluster configuration, the command fails.
7.2.3 Removing Nodes from Participation in a Running Cluster
You can use Serviceguard Manager, or Serviceguard commands as shown below, to remove
nodes from operation in a cluster. This operation removes the node from cluster operation by halting
the cluster daemon, but it does not modify the cluster configuration. To remove a node from the
cluster configuration permanently, you must recreate the cluster configuration file. See the next
section.
Halting a node is a convenient way of bringing it down for system maintenance while keeping its
packages available on other nodes. After maintenance, the package can be returned to its primary
node. See “Moving a Failover Package ” (page 211).
To return a node to the cluster, use cmrunnode.
NOTE: HP recommends that you remove a node from participation in the cluster (by running
cmhaltnode as shown below, or Halt Node in Serviceguard Manger) before running the Linux
shutdown command, especially in cases in which a packaged application might have trouble
during shutdown and not halt cleanly.
7.2.3.1 Using Serviceguard Commands to Remove a Node from Participation in a Running Cluster
Use the cmhaltnode command to halt one or more nodes in a cluster. The cluster daemon on
the specified node stops, and the node is removed from active participation in the cluster.
To halt a node with a running package, use the -f option. If a package was running that can be
switched to an adoptive node, the switch takes place and the package starts on the adoptive node.
For example, the following command causes the Serviceguard daemon running on node ftsys9
in the sample configuration to halt and the package running on ftsys9 to move to ftsys10:
cmhaltnode -f -v ftsys9
This halts any packages running on the node ftsys9 by executing the halt instructions in each
package's master control script. ftsys9 is halted and the packages start on the adoptive node,
ftsys10.
7.2.4 Halting the Entire Cluster
You can use Serviceguard Manager, or Serviceguard commands as shown below, to halt a running
cluster.
The cmhaltcl command can be used to halt the entire cluster. This command causes all nodes
in a configured cluster to halt their HP Serviceguard daemons. You can use the -f option to force
204 Cluster and Package Maintenance