Managing HP Serviceguard A.11.20.10 for Linux, December 2012
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 232).)
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 163) 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 205).
• Maintenance mode is chiefly useful for modifying networks while the package is running.
See “Performing Maintenance Using Maintenance Mode” (page 214).
• Partial-startup maintenance mode allows you to work on package services, file systems, and
volume groups.
See “Performing Maintenance Using Partial-Startup Maintenance Mode” (page 215).
• Neither maintenance mode nor partial-startup maintenance mode can be used for legacy
packages, multi-node packages, or system multi-node packages.
• Package maintenance does not alter the configuration of the package, as specified in the
package configuration file.
For information about reconfiguring a package, see “Reconfiguring a Package” (page 232).
NOTE: In order to run a package in partial-startup maintenance mode, you must first put it in
maintenance mode. This means that packages in partial-startup maintenance mode share the
characteristics described below for packages in maintenance mode, and the same rules and
dependency rules apply. Additional rules apply to partial-startup maintenance mode, and the
procedure involves more steps, as explained underPerforming Maintenance Using Partial-Startup
Maintenance Mode.
7.5.1 Characteristics of a Package Running in Maintenance Mode or Partial-Startup
Maintenance Mode
Serviceguard treats a package in maintenance mode differently from other packages in important
ways. The following points apply to a package running in maintenance mode:
• Serviceguard ignores failures reported by package services, subnets, generic resources, and
file systems; these will not cause the package to fail.
212 Cluster and Package Maintenance