Managing HP Serviceguard A.11.20.10 for Linux, December 2012

2. Halt any packages that do not qualify for Live Application Detach, such as legacy and system
multi-node packages.
For example:
cmhaltpkg -n node1 legpak1 legpak2
NOTE: If you do not do this, the cmhaltnode in the next step will fail.
3. Halt the node with the -d (detach) option:
cmhaltnode -d node1
NOTE: -d and -f are mutually exclusive. See cmhaltnode (1m) for more information.
To re-attach the packages, restart the node:
cmrunnode -n node1
You cannot halt or detach a node if any package on the given node is in the halt_aborted
state; cmhaltnode will fail. However, you can forcefully halt the node using cmhaltnode (1m)
with the -f option. The node is halted irrespective of the package state.
7.3.5 Halting a Detached Package
To halt a package that is detached on node1, proceed as follows:
1. Log in as superuser on another node that is still running in the cluster.
2. Halt the package; for example:
cmhaltpkg node1 pkg1
7.3.6 Halting the Cluster and Detaching its Packages
1. Make sure that the conditions spelled out under “Rules and Restrictions” (page 205) are met.
2. Halt any packages that do not qualify for Live Application Detach, such as legacy and system
multi-node packages.
For example:
cmhaltpkg legpak1 legpak2 legpak3 smnp1
NOTE: If you do not do this, the cmhaltcl in the next step will fail.
3. Halt the cluster with the -d (detach) option:
cmhaltcl -d
NOTE: -d and -f are mutually exclusive. See cmhaltcl (1m) for more information.
To re-attach the packages, restart cluster:
cmrunnode node1
7.3.7 Example: Halting the Cluster for Maintenance on the Heartbeat Subnets
Suppose that you need to do networking maintenance that will disrupt all the cluster's heartbeat
subnets, but it is essential that the packages continue to run while you do it. In this example we'll
assume that packages pkg1 through pkg5 are unsupported for Live Application Detach, and pkg6
through pkgn are supported.
Proceed as follows:
1. Halt all the unsupported packages:
cmhaltpkg pkg1 pkg2 pkg3 pkg4 pkg5
208 Cluster and Package Maintenance