HP Serviceguard A.11.20- Managing Serviceguard Twentieth Edition, August 2011

IMPORTANT: Restrictions on package names, dependency names, and service names have
become more stringent as of A.11.18. Packages that have or contain names that do not
conform to the new rules (spelled out under package_name (page 234)) will continue to run,
but if you reconfigure these packages, you will need to change the names that do not conform;
cmcheckconf and cmapplyconf will enforce the new rules.
4. Verify your changes as follows:
cmcheckconf -v -P pkg1.conf
5. Distribute your changes to all nodes:
cmapplyconf -v -P pkg1.ascii
6. If this is a legacy package, copy the package control script to all nodes that can run the
package.
Renaming or Replacing an External Script Used by a Running Package
In most cases, you can rename an external_script (page 252) while the package that uses it
is running, but you need to be careful; follow the instructions below.
1. Make a copy of the old script, save it with the new name, and edit the copy as needed.
2. Edit the package configuration file to use the new name.
3. Distribute the new script to all nodes that are configured for that package.
Make sure you place the new script in the correct directory with the proper file modes and
ownership.
4. Run cmcheckconf to validate the package configuration with the new external script.
CAUTION: If cmcheckconf fails, do not proceed to the next step until you have corrected
all the errors.
5. Run cmapplyconf on the running package.
This will stop any resources started by the original script, and then start any resources needed
by the new script.
6. You can now safely delete the original external script on all nodes that are configured to run
the package.
Reconfiguring a Package on a Halted Cluster
You can also make permanent changes in package configuration while the cluster is not running.
Use the same steps as in “Reconfiguring a Package on a Running Cluster ” (page 311).
Adding a Package to a Running Cluster
You can create a new package and add it to the cluster configuration while the cluster is up and
while other packages are running. The number of packages you can add is subject to the value
of MAX_CONFIGURED_PACKAGES in the cluster configuration file.
To create the package, follow the steps in the chapter “Configuring Packages and Their Services
(page 227). Use a commands such as the following to verify the configuration of a newly created
pkg1 and distribute the configuration to all nodes in the cluster:
cmcheckconf -P /etc/cmcluster/pkg1/pkg1conf.ascii
cmapplyconf -P /etc/cmcluster/pkg1/pkg1conf.ascii
If this is a legacy package, remember to copy the control script to the/etc/cmcluster/pkg1
directory on all nodes that can run the package.
312 Cluster and Package Maintenance