Managing Serviceguard NFS for Linux, September 2006

Installing and Configuring Serviceguard NFS for Linux
Configuring a Serviceguard NFS Package
Chapter 2 29
6. Specify that this package uses the high availability NFS server by
uncommenting the HA_APP_SERVER variable. Uncomment the
following line:
HA_APP_SERVER=”pre-IP”
7. If two packages have the same adoptive node, and you want to
prevent a shared adoptive node from adopting both packages at once,
specify the cmmodpkg command with the package control option (-d)
in the customer_defined_run_cmds. For example:
function customer_defined_run_cmds
{
cmmodpkg -d -n ‘hostname‘ pkg02 &
}
This package control function can prevent an adoptive node from
becoming overloaded when multiple packages fail over. If an
adoptive node becomes overloaded, it can fail.
In this example, if a host is an adoptive node for both pkg01 and
pkg02, the above cmmodpkg -d command, in the control script for
pkg01, would prevent the host that is running pkg01 from adopting
pkg02.
Add a similar line in the control script for pkg02 to prevent the host
that is running pkg02 from adopting pkg01.
The ampersand (&) causes the cmmodpkg command to run in the
background. The cmmodpkg command in the background allows the
control script to complete and finish bringing up the package.
There is a small window of time, during which if one package has
begun to fail over but the cmmodpkg command has not executed, the
other package can fail over and the host will adopt it. In other words,
if two packages fail over at approximately the same time, a host may
adopt both packages, even though the package control option is
specified.
See “Configuring One Adoptive Node to Support Failover of Multiple
Packages” on page 43 for a sample configuration using the package
control option.