Managing Serviceguard NFS for Linux, March 2009
NOTE: The above changes in the customer_defined_halt_cmds and
customer_defined_run_cmds must be done only in the package control scripts of the adoptive
node and not on the package control script in the primary node. If there are more than 2 packages
the user may repeat the cmmodpkg command as many times required with other package names.
User may consider making FAILBACK_POLICY as AUTOMATIC to free the adoptive node as early
as possible so that adoptive node is ready to accept pkg01 in case it fails.
NFS Toolkit Configuration File for pkg02
This section shows the NFS Toolkit configuration file (hanfs.conf) for the package pkg02 on
this sample configuration:
XFS[0]="-o rw *:/hanfs/nfsu021"
QUOTA_MON=YES
LOCK_MIGRATION=NO
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/local”
with “/opt”.
Package Configuration File for pkg01
This section shows 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 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/
Configuring One Adoptive Node to Support Failover of Multiple Packages 45