Managing Serviceguard Eighteenth Edition, September 2010

System multi-node packages run on all cluster nodes simultaneously; halting these
packages stops them running on all nodes. A multi-node package can run on several
nodes simultaneously; you can halt it on all the nodes it is running on, or you can
specify individual nodes.
Halting a Package that Has Dependencies
Before halting a package, it is a good idea to use the cmviewcl command to check for
package dependencies.
You cannot halt a package unless all the packages that depend on it are down. If you
try, you’ll see a Serviceguard message telling you why the operation failed, and the
package will remain up.
If this happens, you can repeat the halt command, this time including the dependent
package(s); Serviceguard will halt all the packages in the correct order. First, use
cmviewcl to be sure that no other running package has a dependency on any of the
packages you are halting.
You can use Serviceguard Manager, or Serviceguard commands as shown below, to
halt a package.
Using Serviceguard Commands to Halt a Package
Use the cmhaltpkg command to halt a package, as follows:
cmhaltpkg pkg1
This halts pkg1, and, if pkg1 is a failover package, also disables it from switching to
another node.
You cannot halt a package unless all packages that depend on it are down. If you try,
Serviceguard will take no action, except to send a message indicating that not all
dependent packages are down. Before you halt a system multi-node package, or halt
all instances of a multi-node package, halt any packages that depend on them
Moving a Failover Package
You can use Serviceguard Manager, or Serviceguard commands as shown below, to
move a failover package from one node to another.
Using Serviceguard Commands to Move a Running Failover Package
Before you move a failover package to a new node, it is a good idea to run cmviewcl
-v -l package and look at dependencies. If the package has dependencies, be sure
they can be met on the new node.
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.
352 Cluster and Package Maintenance