Managing Serviceguard NFS for Linux, March 2009
3. Specify the IP address for the package and the address of the subnet to which the IP address
belongs. For example:
IP[0]=192.100.112.10
SUBNET[0]=192.100.112.0
The IP address you specify is the relocatable IP address for the package. NFS clients that
mount the file systems in the package will use this IP address to identify the server. You
should configure a name for this address in the DNS or NIS database, or in the /etc/hosts
file.
4. 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”
5. 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 function 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. If pkg02 fails, it will failover to another adoptive node (if configured)
where pkg01 is not running.
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.
NOTE: 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” (page 40)
for a sample configuration using the package control option.
6. Use the default values for the rest of the variables in the control script, or change them as
needed. For instructions on modifying the default values, see the Managing HP Serviceguard
for Linux manual, or read the comments in the pkg.cntl template file.
Editing the NFS Configuration File (hanfs.conf)
The following steps describe the required modifications to the NFS Configuration file:
NOTE: The following procedures assume your environment is Red Hat. If your environment
is SLES, replace all occurrences of "/usr/local" with “/opt”.
1. Create a separate XFS[n] variable for each NFS directory to be exported. Specify the directory
name and any export options. For example:
XFS[0]=”*:/ha_root”
XFS[1]="*:/users/scaf"
XFS[2]="-o ro *:/ha_data"
24 Installing and Configuring Serviceguard NFS for Linux