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 7160
NOTE If you plan to use a username mapping file, HP recommends that you
configure its location under the /etc/opt/samba directory. This way,
when changes are made, all nodes will be updated.
Below is an example of copied data from the required HP CIFS
Server directories to the logical volumes in the volume group
vgsamba.
mkdir /tmp/share1_copy /tmp/share2_copy /tmp/etc_copy
mount /dev/vgsamba/lvol1 /tmp/share1_copy
mount /dev/vgsamba/lvol2 /tmp/share2_copy
mount /dev/vgsamba/lvol3 /tmp/etc_copy
cp -r /opt/share1/* /tmp/share1_copy
cp -r /home/share2/* /tmp/share2_copy
cp -r /etc/opt/samba/* /tmp/etc_copy
umount /tmp/share1_copy
umount /tmp/share2_copy
umount /tmp/share3_copy
rm -rf /tmp/share1_copy /tmp/share2_copy /tmp/etc_copy
2. Create a directory for the HP CIFS Server cluster package.
mkdir /etc/cmcluster/samba
3. Copy the sample scripts samba.conf, samba.cntl and samba.mon
from /opt/samba/HA to /etc/cmcluster/samba on the primary
node. Make all of the scripts writeable.
cp /opt/samba/HA/active_standby/samba.* /etc/cmcluster/samba
chmod 666 samba.conf samba.cntl samba.mon
4. Customize the sample scripts for your MC/ServiceGuard
configuration. A sample customization of the HA HP CIFS Server
package configuration, control and monitor scripts is shown below.
5. Ensure that the control (samba.cntl) and monitor (samba.mon)
scripts are executable.
chmod 777 samba.cntl samba.mon
Edit the samba.conf Configuration File
To configure the samba.conf configuration file, complete the following
tasks on the Primary Node of your MC/ServiceGuard cluster: