Managing Serviceguard 12th Edition, March 2006

Cluster and Package Maintenance
Managing Packages and Services
Chapter 7 337
You cannot halt a package unless all the packages that depend on it are
down. If you try, Serviceguard will send a message telling why it cannot
complete the operation. If this happens, you can repeat the halt
command, this time including the dependency package(s); Serviceguard
will halt the all the listed 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.
Using Serviceguard Manager to Halt a Package
Select the package you wish to halt; for system multi-node or multi-node
packages, select their cluster. Right-click to display the action list. Select
“Halt package
<pkgname>
.” The package must be running. No other
packages should have a configured dependency on the package you want
to halt. To see package dependency information, open the package’s
properties.
The progress window shows messages as the action takes place. This will
include a message about successfully halting the package, or a message
about why Serviceguard cannot halt the package.
Using Serviceguard Commands to Halt a Package
Use the cmhaltpkg command to halt a package, as follows:
# cmhaltpkg pkg1
This halts pkg1. If pkg1 is a failover package, it will also disables it from
switching to another node.
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
packages that depend on it are down. If you try, Serviceguard will take
no action, except to send a message indicating that not all dependency
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 to move a
failover package from one node to another.