Managing HP Serviceguard for Linux, Sixth Edition, August 2006

Cluster and Package Maintenance
Reconfiguring a Package on a Running Cluster
Chapter 7256
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
Maximum
Configured Packages
as defined in the cluster configuration file.
To create the package, follow the steps given in the chapter “Configuring
Packages and Services” with the following difference:
do not
specify the
cluster ASCII file when verifying and distributing the configuration with
the cmapplyconf command. For example, to verify the configuration of
newly created
pkg1
on a running cluster:
# cmcheckconf -P $SGCONF/pkg1/pkg1conf.ascii
Use a command like the following to distribute the new package
configuration to all nodes in the cluster:
# cmapplyconf -P $SGCONF/conf/pkg1/pkg1conf.ascii
Remember to copy the control script to the $SGCONF/pkg1 directory on all
nodes that can run the package.
Deleting a Package from a Running Cluster
You can delete a package from all cluster nodes by using the
cmdeleteconf command. The command can only be executed when the
package is not running; the cluster may be up. The command removes
the package information from the binary configuration file on all the
nodes in the cluster.
The following example halts package
mypkg
and removes the package
configuration from the cluster:
# cmhaltpkg mypkg
# cmdeleteconf -p mypkg
The command prompts for a verification before deleting the files unless
you use the -f option. The directory $SGCONF/mypkg is not deleted by
this command.