Managing Serviceguard NFS for Linux, March 2009
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
LOCK_MIGRATION=YES
NFS_FLM_HOLDING_DIR="/hanfs/nfsu011/sm"
PROPAGATE_INTERVAL=5
NFS_FLM_MONITOR=YES
NFS_FLM_RESTART=4
Sample Configuration for Modular Packages
Configuration files of two Modular packages are described in this section. These samples are
applicable to Red Hat environment. For SLES user can replace all occurrences of /usr/localwith
/opt.
Package Configuration File for pkg01
This section shows an example of the package configuration file (pkg01.conf) for the package
pkg01 in this sample configuration. The comments are not shown.
package_name pkg01
package_type failover
failover_policy configured_node
failback_policy manual
node_name thyme
node_name sage
auto_run yes
node_fail_fast_enabled no
script_log_file /usr/local/cmcluster/pkg01/log
TKIT_DIR /usr/local/cmcluster/pkg01
XFS[0] "-o rw *:/hanfs/nfsu011"
QUOTA_MON YES
LOCK_MIGRATION YES
NFS_FLM_HOLDING_DIR /hanfs/nfsu011/sm
PROPAGATE_INTERVAL 5
NFS_FLM_MONITOR YES
NFS_FLM_RESTART 4
monitored_subnet 192.100.112.0
monitored_subnet_access full
service_name nfs1.monitor
service_cmd "$SGCONF/scripts/tkit/nfs/tkit_module.sh nfs_monitor"
service_restart none
service_fail_fast_enabled no
service_halt_timeout 300
external_script $SGCONF/scripts/tkit/nfs/lock_migration.sh
ip_subnet 192.100.112.0
#ip_subnet_node
ip_address 192.100.112.243
vgchange_cmd "vgchange -a y"
vg nfsu01
fs_name /dev/nfsu01/lvol1
fs_directory /hanfs/nfsu011
fs_type ext3
fs_mount_opt "-o rw"
# fs_umount_opt
# fs_fsck_opt
Configuring One Adoptive Node for an NFS package with File Lock Migration 57