HP CIFS Server 3.0k Administrator's Guide version A.02.04

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
3. Use the cmcheckconf command to verify the contents of your cluster and package
configuration. At this point it is assumed that you have created your MCServiceGuard
cluster configuration file (clucifs.conf) through MCServiceGuard procedures.
cmcheckconf -C /etc/cmcluster/clucifs.conf \
-P /etc/cmcluster/samba/pkg1/samba.conf \
-P /etc/cmcluster/samba/pkg2/samba.conf
4. Activate the shared volume for cluster locks.
vgchange a y /dev/vglock
5. Use the cmapplyconf command to copy the binary configuration file to all the nodes in
the cluster.
cmapplyconf -v -C /etc/cmcluster/clucifs.conf \
176 Configuring HA HP CIFS