Table 5 Verifying Cluster Components (continued)

Component (Context)

Tool or Command; More Information

Comments

 

 

exist and are executable. Service

 

 

commands whose paths are nested

 

 

within an unmounted shared

 

 

filesystem are not checked.

IP addresses (cluster)

cmcheckconf (1m), cmapplyconf

Commands check that all IP

 

(1m)

addresses configured into the

 

 

cluster are in each node's /etc/

 

 

hosts.

Package IP addresses (package)

cmcheckconf (1m), cmapplyconf

 

 

(1m)

 

File systems (package)

cmcheckconf (1m), cmapplyconf

For LVM only, commands check

 

(1m)

that file systems have been built on

 

 

the logical volumes identified by

 

 

the fs_name parameter.

EMS resources (package)

cmcheckconf (1m), cmapplyconf

Commands check that configured

 

(1m)

resources are available on each

 

 

node that can run the package.

External scripts and pre-scripts

cmcheckconf (1m), cmapplyconf

A non-zero return value from any

(modular package)

(1m)

script will cause the commands to

 

 

fail.

SGeRAC Toolkit files consistency

cmcheckconf (1m), cmapplyconf

Checked for modular packages

(package)

(1m)

only, as part of package validation

 

 

(cmcheckconf -P).

Cluster Interconnect subnet (package)

cmcheckconf (1m), cmapplyconf

Checked for modular packages

 

(1m)

only, as part of package validation

 

 

(cmcheckconf -P).

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

Page 125
Image 125
HP Serviceguard Extension for RAC (SGeRAC) manual Setting up Periodic Cluster Verification, Example