HP Serviceguard Linux NFS-Toolkit-A.03.03.00 User Guide (696981-001, June 2012)
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 cmmodpkg
-d command, in the control script for pkg01, prevents the host that is running pkg01
from adopting pkg02. If pkg02 fails, it fails over 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 (&) in the command causes the cmmodpkg command to run in the
background and 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.
g. Use the default values for the rest of the variables in the control script, or change them
as required.
7. Edit the NFS configuration file (hanfs.conf).
a. 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"
XFS[3]="-o fsid=23,rw *:/pkg3"
NOTE: Do not configure these exported directories in the /etc/exports file. When
an NFS server boots up, it attempts to export all file systems in its /etc/exports file.
If those file systems are not currently present on the NFS server node, the node does not
boot properly. This happens if the server is an adoptive node for a file system, and the
file system is available on the server only after failover of the primary node.
b. If you want to start and monitor rpc.quotad daemon, set QUOTA_MON to YES. For
example:
QUOTA_MON=YES
If you do not want to start and monitor rpc.quotad daemon, set QUOTA_MON to NO.
For example:
QUOTA_MON=NO
NOTE: HP recommends that you specify the fsid for the directory on the file system that
must be exported. This ensures that permanent device minor number is retained during the
failover to the adoptive node.
8. Create the Serviceguard binary configuration file.
a. Use the cmapplyconf command to verify the content of your cluster and package
configuration, and to copy the binary configuration file to all the nodes in the cluster.
In the following example, the cluster configuration file is ${SGCONF}/cluster.conf.
On your system, use the names of your own cluster configuration and package
configuration files.
Deploying NFS toolkit packages 13