HP CIFS Server Administrator's Guide Version A.03.01.04 (5900-2303), April 2012

4. If you want to use the HP CIFS Server monitor script, set the SERVICE_NAME variable to the
value of the SERVICE_NAME variable in the package configuration file samba.conf.
SERVICE_NAME[0]=samba_mon1
SERVICE_CMD[0]=/etc/cmcluster/samba/pkg1/samba.mon
for pkg1, and
SERVICE_NAME[0]=samba_mon2
SERVICE_CMD[0]=/etc/cmcluster/samba/pkg2/samba.mon
for pkg2.
5. If you have an smb.conf file which makes use of winbind, you need to uncomment these
winbind lines for winbind support in the cluster.
Edit the samba.mon monitor script
To configure the samba.mon Monitor Script file, you must complete the following tasks:
1. Use the following template provided with samba.mon.
for pkg1:
CONF_FILE=/etc/opt/samba/smb.conf.pkg1
LOG_FILE=/var/opt/samba/pkg1/logs
SMBD_PID_FILE=/var/opt/samba/pkg1/locks/smbd.pid
NMBD_PID_FILE=/var/opt/samba/pkg1/locks/nmbd.pid
#WINBIND_PID_FILE=/var/opt/samba/pkg1/locks/winbindd.pid
for pkg2:
CONF_FILE=/etc/opt/samba/smb.conf.pkg2
LOG_FILE=/var/opt/samba/pkg2/logs
SMBD_PID_FILE=/var/opt/samba/pkg2/locks/smbd.pid
NMBD_PID_FILE=/var/opt/samba/pkg2/locks/nmbd.pid
#WINBIND_PID_FILE=/var/opt/samba/pkg2/locks/winbindd.pid
NOTE: If you have an smb.conf file which makes use of winbind, you need to uncomment
these winbind lines for winbind support.
Create the MC/ServiceGuard binary configuration file
NOTE: In the following example, the cluster configuration file will be assigned the name /
etc/cmcluster/cluster.conf and the HA HP CIFS Server package configuration file will be assigned
the name /etc/cmcluster/samba/pkg1/samba.conf. The actual cluster and HA HP CIFS Server
package configuration file names on your system may be different.
1. On alternate nodes create a cluster package directory:
mkdir /etc/cmcluster/samba/pkg1 or pkg2, pkg3..n
Copy the package scripts from the primary node.
rcp -r primary_node:/etc/cmcluster/samba/* \
alternate_node:/etc/cmcluster/samba
2. Use the cmquerycl command to create a cluster configuration file for the CIFS server:
cmquerycl -v -C clucifs.conf -n primary_node -n alternate_node
144 Configuring HA HP CIFS