Managing HP Serviceguard A.11.20.20 for Linux, May 2013

When a node having detached packages is back up after a reboot they can:
Rejoin the cluster and the detached packages can move to "running" or "failed" state. If
the detached packages are moved to running state, then they must be halted and rerun
as they may have several inconsistencies post reboot.
Not rejoin the cluster and the detached packages remain detached. Such packages must
be halted and rerun to avoid any inconsistencies that can be caused due to the reboot.
If you halt a package and disable it before running cmhaltcl -d to detach other packages
running in the cluster, auto_run will be automatically re-enabled for this package when the
cluster is started again, forcing the package to start.
To prevent this behavior and keep the package halted and disabled after the cluster restarts,
change auto_run to no in the package configuration file (page 176), and re-apply the
package, before running cmhaltcl -d.
7.3.4 Halting a Node and Detaching its Packages
To halt a node and detach its packages, proceed as follows:
1. Make sure that the conditions spelled out under “Rules and Restrictions” (page 214) 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 -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 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 214) 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
216 Cluster and Package Maintenance