HP CIFS Server 2.2i Administrator's Guide version A.01.11.01

Configuring HA HP CIFS
Overview of HA HP CIFS Server Active-Active
Chapter 7178
Make sure that all processes/applications that access the file
systems mounted by sambapkg are shutdown in the
customer_defined_halt_cmds subroutine. This will allow the
filesystems to be unmounted and failed over to the adoptive
node. Package failover may not occur if any of the filesystems
mounted by the sambapkg cannot be unmounted.
Edit the samba.mon Monitor Script
To configure the samba.mon Monitor Script file, you must complete the
following tasks:
1. Set the NETBIOS_NAME variable to your NetBIOS name.
NETBIOS_NAME=ha_server1
...and sambapkg1,
NETBIOS_NAME=ha_server2
...for sambapkg2, etc.
2. Use the following template provided with samba.mon.
CONF_FILE=/etc/opt/samba/smb.conf.${NETBIOS_NAME}
LOG_FILE=/var/opt/samba/${NETBIOS_NAME}/log
SMBD_PID_FILE=/var/opt/samba/${NETBIOS_NAME}/locks/smbd.
pid
NMBD_PID_FILE=/var/opt/samba/${NETBIOS_NAME}/locks/nmbd.
pid
INTERVAL=30
MAX_NMBD_RETRYS=1
MAX_SMBD_RETRYS=1
PATH=$PATH:/opt/samba/bin
error_msg()
{
print "$(date '+%b %e %X') - $1"
}
#
# Function findproc
#
findproc() { # return pid of the named process(es)