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

Configuring HA HP CIFS
Configure a Highly Available HP CIFS Server
Chapter 7162
2. Create a separate LV[n] and FS[n] variable for each volume group
and file system that will be mounted on the server, for example:
LV[0]=/dev/vgsamba/lvol1;FS[0]=/opt/share1
LV[1]=/dev/vgsamba/lvol2;FS[1]=/home/share2
LV[2]=/dev/vgsamba/lvol3;FS[1]=/etc/opt/samba
Add additional LV variables, if required.
3. Specify the relocatable IP address and the address of the subnet to
which the IP address belongs.
IP[0]=15.13.171.20
SUBNET[0]=15.13.168.0
4. If you want to use the HP CIFS Server monitor script, set the
NFS_SERVICE_NAME variable to the value of the
SERVICE_NAME variable in the package configuration file
samba.conf.
SERVICE_NAME[0]=samba_mon
SERVICE_CMD[0]=/etc/cmcluster/samba/samba.mon
5. Use the following example as a template for
customer_defined_run_cmds :
function customer_defined_run_cmds
{
# ADD customer defined run commands.
findproc smbd
if [ "$pid" = "" ]
then
findproc nmbd
if [ "$pid" = "" ]
then
/opt/samba/bin/startsmb
else
/opt/samba/bin/stopsmb
/opt/samba/bin/startsmb
fi
else
findproc nmbd
if [ "$pid" = "" ]
then
/opt/samba/bin/stopsmb
/opt/samba/bin/startsmb
fi
fi