Managing HP Serviceguard for Linux, Sixth Edition, August 2006

Configuring Packages and Their Services
Applying and Distributing the Configuration
Chapter 6 205
Applying and Distributing the Configuration
Use the cmapplyconf command to apply and distribute a binary cluster
configuration file containing the package configuration among the nodes
of the cluster. Example:
# cmapplyconf -v -C $SGCONF/cmcl.config -P \
$SGCONF/pkg1/pkg1.config
The cmapplyconf command creates a binary cluster configuration
database file and distributes it to all nodes in the cluster. This action
ensures that the contents of the file are consistent across all nodes.
NOTE cmcheckconf and cmapplyconf must be used again any time changes
are made to the cluster and package configuration files.
Copying Package Control Scripts with Linux
commands
Use Linux commands to copy package control scripts from the
configuration node to the same pathname on all nodes which can possibly
run the package. Use your favorite method of file transfer (e. g., scp or
ftp). For example, from ftsys9, you can issue the scp command to copy
the package control script to ftsys10:
# scp $SGCONF/pkg1/control.sh ftsys10:$SGCONF/pkg1/control.sh
NOTE If you use ftp, you have to set execute permission on the file after
copying it.
Testing Cluster and Package Operation
While configuring your Serviceguard cluster, it’s a good idea to test that
the various components of the cluster behave correctly in case of a
failure. See the chapter “Troubleshooting Your Cluster” for an
explanation of how to test that your cluster responds properly in the
event of a package failure, a node failure, or a LAN failure.