Managing HP Serviceguard A.11.20.20 for Linux, May 2013

To move the package, first halt it where it is running using the cmhaltpkg command. This action
not only halts the package, but also disables package switching.
After it halts, run the package on the new node using the cmrunpkg command, then re-enable
switching as described below.
7.4.4 Changing Package Switching Behavior
There are two options to consider:
Whether the package can switch (fail over) or not.
Whether the package can switch to a particular node or not.
For failover packages, if package switching is NO the package cannot move to any other node; if
node switching is NO, the package cannot move to that particular node. For multi-node packages,
if package switching is set to NO, the package cannot start on a new node joining the cluster; if
node switching is set to NO, the package cannot start on that node.
Both node switching and package switching can be changed dynamically while the cluster is
running. The initial setting for package switching is determined by the auto_run parameter,
which is set in the package configuration file (see page (page 176)). If auto_run is set to yes,
then package switching is enabled when the package first starts. The initial setting for node switching
is to allow switching to all nodes that are configured to run the package.
You can use Serviceguard Manager to change package switching behavior, or Serviceguard
commands as shown below.
You can change package switching behavior either temporarily or permanently using Serviceguard
commands.
To temporarily disable switching to other nodes for a running package, use the cmmodpkg
command. For example, if pkg1 is currently running, and you want to prevent it from starting up
on another node, enter the following:
cmmodpkg -d pkg1
This does not halt the package, but will prevent it from starting up elsewhere.
You can disable package switching to particular nodes by using the -n option of the cmmodpkg
command. The following prevents pkg1 from switching to node lptest3:
cmmodpkg -d -n lptest3 pkg1
To permanently disable switching so that the next time the cluster restarts, the change you made
in package switching is still in effect, change the auto_run flag in the package configuration
file, then re-apply the configuration. (See “Reconfiguring a Package on a Running Cluster ”
(page 241).)
7.5 Maintaining a Package: Maintenance Mode
Serviceguard provides two ways to perform maintenance on components of a modular, failover
package while the package is running. (See Chapter 6 (page 169) for information about package
types and modules.) These two methods are called maintenance mode and partial-startup
maintenance mode.
NOTE: If you need to do maintenance that requires halting a node, or the entire cluster, you
should consider Live Application Detach; see “Halting a Node or the Cluster while Keeping Packages
Running” (page 213).
220 Cluster and Package Maintenance