Managing HP Serviceguard for Linux, Sixth Edition, August 2006

Configuring Packages and Their Services
Creating a Disk Monitor Configuration
Chapter 6206
Creating a Disk Monitor Configuration
HP Serviceguard provides disk monitoring for the shared storage that is
activated by packages in the cluster. The monitor daemon on each node
tracks the status of all the disks that are flagged for monitoring on that
node in the package configuration files and control scripts. In order to
monitor disks, you first create monitor configuration files that include all
the disks that you wish to track. The configuration is done separately for
each node in the cluster, because each node monitors only the group of
disks that can be activated on that node, and this group depends on
which packages are allowed to run on the node.
To set up monitoring, first configure your packages, and include a service
for monitoring in each package that has disks that you wish to track.
Since service names must be unique across the cluster, you can use the
package name in combination with a string that indicates monitoring.
The following shows the entry as included in the package ASCII file for
Pkg1:
SERVICE_NAME cmresserviced_Pkg1
SERVICE_FAIL_FAST_ENABLED YES
SERVICE_HALT_TIMEOUT 300
CAUTION Because of a limitation in LVM, SERVICE_FAIL_FAST_ENABLED must be
set to YES to allow a package to fail over if it loses its storage; otherwise
the package halt will not complete and the package will not fail over to
another node.
The following shows the corresponding entry for this service in the
control script:
SERVICE_NAME[0]=”cmresserviced_Pkg1”
SERVICE_CMD[0]=”cmresserviced /dev/sdd1 /dev/sde1
SERVICE_RESTART[0]=””