Managing Serviceguard 12th Edition, March 2006
Cluster and Package Maintenance
Reconfiguring a Package
Chapter 7 349
Reconfiguring a Package
The process of reconfiguration of a package is somewhat like the basic
configuration described in Chapter 6. Refer to that chapter for details on
the configuration process.
The cluster can be either halted or running during package
reconfiguration. The types of changes that can be made and the times
when they take effect depend on whether the package is running or not.
If you reconfigure a package while it is running, it is possible that the
package could fail later, even if the cmapplyconf succeeded. For
example, consider a package with two volume groups. When this package
started, it activated both volume groups. While the package is running,
you could change its configuration to list only one of the volume groups,
and cmapplyconf would succeed. If you issue cmhaltpkg command,
however, the halt would fail. The modified package would not deactivate
both of the volume groups that it had activated at startup, because it
would only see the one volume group in its current configuration file.
Reconfiguring a Package on a Halted Cluster
You can also make permanent changes in package configuration while
the cluster is not running. Use the following steps:
• On one node, reconfigure the package as described earlier in this
chapter. You can do this by using Serviceguard Manager or by
editing the package ASCII file.
• Edit the package control script directly if not in Serviceguard’s
guided mode (in guided mode, Serviceguard manager does it
automatically at reconfiguration). Any changes in service names will
also require changes in the package configuration file.
• Click the Apply button in Serviceguard Manager, or enter
cmapplyconf on the command line. This copies the binary cluster
configuration file to all nodes. On the command line, use the -P
option, specifying the package to be changed; do not use the -C
option. This file overwrites any previous version of the binary cluster
configuration file.