Managing Serviceguard NFS for Linux, March 2009

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 NO
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
If you want to prevent a shared adoptive node from adopting both packages together, specify
the cmmodpkg command with the package control option (-d) in the external script. The external
script template is provided at /usr/local/cmcluster/conf/examples/
external_script.template in Red Hat and at /opt/cmcluster/conf/examples/
external_script.template in SLES. Copy and rename the external_script.template
to the package directory with the following command: # cp
/usr/local/cmcluster/conf/examples/external_script.template \
/usr/local/cmcluster/pkg01/external_script.sh
Add the additional external script into the package configuration file. For Example:
external_script /usr/local/cmcluster/pkg01/external_script.sh
Modify the external script in the adoptive node only. Specify the cmmodpkg command with the
package control option (-d) in the function start_command. As below:
function start_command
{
sg_log 5 "start_command"
cmmodpkg d n `hostname` pkg02 &
return $?
}
Also, add the cmmodpkg command with package control option (-e ) in the function
stop_command for re-enabling the package (pkg02) when the package (pkg01) is halted. For
example:
function stop_command
{
sg_log 5 "stop_command"
cmmodpkg e n `hostname` pkg02 &
return $?
}
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,
52 Sample Configurations