Online Diagnostics (EMS and STM) Administrator's Guide March 2013

Configuring HP Serviceguard Package Resource Dependencies with the PSM
PSM enables you to create HP Serviceguard package dependencies for resources monitored by
EMS Hardware Monitors.
To use the PSM with HP Serviceguard, you must configure one or more of the resource instances
available in PSM as HP Serviceguard package dependencies. This creates an EMS monitoring
request that monitors the status of the resource and alerts HP Serviceguard if the status of the
resource changes.
You can use the PSM monitoring requests as follows:
When one copy of data is shared among all the nodes in a cluster, you can fail over a package
if the host adapter fails on the node running the package. However, package failover to
another node might not occur successfully because buses, controllers, and disks that are shared
fail. To ensure proper failover in a shared data environment, you must create identical package
dependencies on all nodes in the cluster. HP Serviceguard can compare the resource UP
values on all nodes and fail over to the node that has the correct resources available.
When each node in a cluster has its own copy of data, you can fail over a package to another
node for a host adapter, bus, controller, or disk failure. In such a cluster of Web servers,
where each node has a copy of the data and users are distributed for load balancing, you
can fail over a package to another node with the correct resources available. However, you
must configure the package resource dependencies on all the nodes in the same way.
NOTE: You must create the same requests on all nodes in a HP Serviceguard cluster.
Following are the methods for configuring PSM package dependencies:
Using HP System Management Homepage (HP SMH)
Editing the package configuration file
Configuring Package Dependencies by Editing the Configuration File
You can add PSM package dependencies by editing the package /etc/cmcluster/pkg.ascii
configuration file. For information on how to modify this file, see Managing HP Serviceguard at:
http://www.hp.com/go/hpux-SG-docs
When you use the HP Serviceguard commands, such as cmapplyconf, to specify the use of the
PSM Resource Monitor, do the following:
1. Uncomment the section of the package configuration file that has the RESOURCE_NAME
keyword.
2. Set the value of the desired resource name.
The PSM has a different resource path name for the hardware resource being monitored.
For example, to create a dependency on a SCSI disk whose resource path is
/storage/status/disks/default/10_0_5.0.0, with a polling interval of 10 seconds and
the UP state as the only state that does not cause failover, you must add the following entry to the
configuration file:
RESOURCE_NAME /storage/status/disks/default/10_0_5.0.0
RESOURCE_POLLING_INTERVAL 10
RESOURCE_UP_VALUE =UP
NOTE: You can configure package resource dependencies using HP SMH on the HP-UX 11i v3
system.
For information on how to configure package resource dependencies or create EMS Monitoring
Requests for PSM, using HP SMH on HP-UX 11i v3, see Managing HP Serviceguard at:
http://www.hp.com/go/hpux-SG-docs
44 Configuring and Administering EMS Hardware Monitors