Using Serviceguard Extension for RAC Version A.11.20 - (August 2011)

Table 5 Verifying Cluster Components (continued)
CommentsTool or Command; More InformationComponent (Context)
exist and are executable. Service
commands whose paths are nested
within an unmounted shared
filesystem are not checked.
Commands check that all IP
addresses configured into the
cmcheckconf (1m), cmapplyconf
(1m)
IP addresses (cluster)
cluster are in each node's /etc/
hosts.
cmcheckconf (1m), cmapplyconf
(1m)
Package IP addresses (package)
For LVM only, commands check
that file systems have been built on
cmcheckconf (1m), cmapplyconf
(1m)
File systems (package)
the logical volumes identified by
the fs_name parameter.
Commands check that configured
resources are available on each
node that can run the package.
cmcheckconf (1m), cmapplyconf
(1m)
EMS resources (package)
A non-zero return value from any
script will cause the commands to
fail.
cmcheckconf (1m), cmapplyconf
(1m)
External scripts and pre-scripts
(modular package)
Checked for modular packages
only, as part of package validation
(cmcheckconf -P).
cmcheckconf (1m), cmapplyconf
(1m)
SGeRAC Toolkit files consistency
(package)
Checked for modular packages
only, as part of package validation
(cmcheckconf -P).
cmcheckconf (1m), cmapplyconf
(1m)
Cluster Interconnect subnet (package)
Setting up Periodic Cluster Verification
You can use cron (1m) to run cluster verification at a fixed interval. Specify the commands to
run in a crontab file (see crontab (1)).
NOTE: The job must run on one of the nodes in the cluster. Because only the root user can run
cluster verification, and cron (1m) sets the job’s user and group ID’s to those of the user who
submitted the job, you must edit the file /var/spool/cron/crontabs/root as the root user.
Example
The short script that follows runs cluster verification and sends an email to admin@hp.com when
verification fails.
#!/bin/sh
cmcheckconf -v >/tmp/cmcheckconf.output
if (( $? != 0 ))
then
mailx -s "Cluster verification failed" admin@hp.com 2>&1 </tmp/cmcheckconf.output
fi
To run this script from cron, you would create the following entry in /var/spool/cron/
crontabs/root:
0 8,20 * * * verification.sh
See the cron (1m) manpage for more information.
Checking the Cluster Configuration and Components 125