Managing HP Serviceguard for Linux Ninth Edition, April 2009

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 262).)
Maintaining a Package: Partial-Startup Maintenance Mode
Serviceguard provides a maintenance mode for modular, failover packages that allows
you to start the package partially and perform maintenance on some package modules
while the other modules are running. (See Chapter 6 (page 189) for information about
package types and modules.) This is called partial-startup maintenance mode,
sometimes abbreviated to maintenance mode.
IMPORTANT: The package must be down and disabled before you can place it in, or
take it out, of partial-startup maintenance mode.
You can use partial-startup maintenance mode to perform maintenance on package
services, networks, file systems, or volume groups. You do this by starting the package
partially, so that the modules you want to work on are not started. For example, if you
wanted to do maintenance on the networks used by a package, you could put the
package in maintenance mode and start the package such that the services, file system,
and volume group modules were started but not the network modules. You could then
do the necessary maintenance on the networks. Once you had verified (by manual
testing) that the network reconfiguration was working correctly, you would halt the
package, bring it out of maintenance mode, and restart it normally. The section that
follows provides an example.
Performing Maintenance Using Partial-Startup Maintenance Mode
Follow this procedure to perform maintenance on a package. In this example, we'll call
the package pkg1, and we'll assume we want to do maintenance on the package's
services.
1. Halt the package:
cmhaltpkg pkg1
2. Place the package in maintenance mode:
cmmodpkg -m on pkg1
3. Run the package in maintenance mode. In this example, we'll start pkg1 such that
only the modules up to and including the package_ip module are started. (See
“Package Modules and Parameters” (page 191) for a list of package modules. The
Maintaining a Package: Partial-Startup Maintenance Mode 237