Managing Serviceguard NFS for Linux, July 2007
Sample Configurations
Configuring One Adoptive Node for an NFS package with File Lock Migration
Chapter 372
FS_TYPE[0]="ext2";
FS_MOUNT_OPT[0]="-o rw"
# FS_UMOUNT_COUNT=""
# FS_MOUNT_RETRY_COUNT=""
IP[0]="192.100.112.243"
SUBNET[0]="192.100.112.0"
HA_APP_SERVER="pre-IP"
#SERVICE_NAME[0]=""
#SERVICE_CMD[0]=""
#SERVICE_RESTART[0]=""
function customer_defined_run_cmds
{
$HA_APP_SCRIPT lock_migration:${IP[0]}
test_return 51
}
The function customer_defined_run_cmds calls the toolkit.sh script
with lock_migration:<IP_address> parameter for file lock migration.
The argument to be passed to the HA_APP_SCRIPT for lock migration
should contain the same name or IP address used by the clients while
mounting the exported file system.
NFS Toolkit Configuration File for pkg01(hanfs.conf)
This section shows the NFS toolkit configuration file (hanfs.conf) for
the package pkg01 on this sample configuration. This example enables
the File Lock Migration feature.
XFS[0]="-o rw *:/hanfs/nfsu011"
NFS_SERVICE_NAME[0]="nfs1.monitor"
NFS_SERVICE_CMD[0]="/usr/local/cmcluster/pkg1/nfs.mon"
NFS_SERVICE_RESTART[0]="-r 0"
LOCK_MIGRATION=YES