HP-UX HB v13.00 Ch-15 - Serviceguard
HP-UX Handbook – Rev 13.00 Page 35 (of 108)
Chapter 15 Serviceguard
October 29, 2013
the configuration file. The external script is used to start and stop applications. The Managing
Serviceguard manual and a SAW document explain how to implement external scripts.
To create a legacy package, create the package configuration and control templates. File names
are not consequential.
# cmmakepkg –p <pkg_name.config>
# cmmakepkg –s <pkg_name.cntl>
Edit the <pkg_name.config> file. Locate the parameters identified in upper case, and customize
as appropriate.
Edit <pkg_name.cntl> and customize uppercase parameters as appropriate.
Copy the package directory to the adoptive nodes in the cluster.
After customizing the package file(s), add the package to the cluster binary:
# cmapplyconf –f -P <pkg_name.config>
Note: cmapplyconf can include both cluster ASCII and package ASCII files and build the cluster
entirely with one command.
Starting the cluster
After cluster configuration is completed, the cmruncl command causes all nodes or specified
nodes in the cluster to start their cluster daemons and form a cluster.
root@Node1:/# cmruncl -v
cmruncl: Validating network configuration...
cmruncl: Network validation complete
Waiting for cluster to form ..... done
Cluster successfully formed.
Check the syslog files on all nodes in the cluster to verify that no warnings
occurred during startup.
To start a cluster on a subset of nodes, use the –n option of cmruncl. Notice the important
warning in the following example. If the –f option is not supplied, you must confirm the action
(as in the example).
root@Node1:/# cmruncl -n Node1 -f
cmruncl: Validating network configuration...
cmruncl: Network validation complete
WARNING:
Performing this task overrides the data integrity protection normally
provided by Serviceguard. You must be certain that no package applications
or resources are running on the other nodes in the cluster:
Node2
To ensure this, these nodes should be rebooted (i.e. /usr/sbin/shutdown -r)
before proceeding.
Are you sure you want to continue (y/[n])? y