HP-UX HB v13.00 Ch-15 - Serviceguard

HP-UX Handbook Rev 13.00 Page 34 (of 108)
Chapter 15 Serviceguard
October 29, 2013
Before distributing the configuration, ensure that your security files permit copying among the
cluster nodes. (For security file details see “Preparing Your Systems” in the Managing
Serviceguard, Chapter 5 Building an HA Cluster Configuration.
Use the following steps to generate the binary configuration file and distribute the configuration
to all nodes in the cluster:
Activate the cluster lock volume group so that the lock disk can be initialized:
# vgchange -a y /dev/vgspare
Generate the binary configuration file and distribute it:
# cmapplyconf -k -v -C /etc/cmcluster/cluster.ascii
or
# cmapplyconf -k -v -C /etc/cmcluster/cluster.ascii
Deactivate the cluster lock volume group.
# vgchange -a n /dev/vgspare
The cmapplyconf command creates a binary version of the cluster configuration 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 that the cmapplyconf command does not distribute the ASCII
configuration file.
NOTE The apply will not complete unless the cluster lock volume group is activated on only
one node before applying. There is one exception to this rule: a cluster lock had been previously
configured on the same physical volume and volume group. After the configuration is applied,
the cluster lock volume group must be deactivated.
Adding packages to a cluster
The value in Serviceguard comes from the automating the operation (and recovery) of software
business solutions. As stated earlier, there are two styles of packages; legacy and modular.
Package should not share. To start creating a package, do the following:
# cd /etc/cmcluster
# mkdir <pkg_name>
# cd <pkg_name>
To create a modular package, determine which modules should be incorporated in the package.
If the package will be a standard failover package that does not incorporate any extra toolkits,
use the following command to create a modular package configuration file:
# cmmakepkg n <pkg_name> <pkg_name.config>
Edit the <pkg_name.config> file, uncommenting those parameters that are required to activate
system resources. Additionally, it may be necessary to incorporate external_script references to