HP CIFS Server 3.0b Administrator's Guide version A.02.01.01

Configuring HA HP CIFS
Overview of HA HP CIFS Server
Chapter 11 235
Below is an example of copied data from the required HP CIFS
Server directories to the logical volumes in the volume group
vgsamba. The same can be done for vgasambapkg2.
mkdir /tmp/share1_copy /tmp/share2_copy
mount /dev/vgsamba/lvol1 /tmp/share1_copy
mount /dev/vgsamba/lvol2 /tmp/share2_copy
cp -r /opt/share1/* /tmp/share1_copy
cp -r /homes/share2/* /tmp/share2_copy
umount /tmp/share1_copy
umount /tmp/share2_copy
rm -rf /tmp/share1_copy /tmp/share2_copy
4. Create a directory for HP CIFS Server cluster package:
mkdir /etc/cmcluster/samba
mkdir /etc/cmcluster/samba/sambapkg1
5. Copy the sample scripts samba.conf, samba.cntl and samba.mon
from /opt/samba/HA to /etc/cmcluster/sambapkg1 (or
/etc/cmcluster/sambapkg2) on the primary node. Make all scripts
writeable.
cp /opt/samba/HA/samba.* /etc/cmcluster/sambapkg1
chmod 666 samba.conf samba.cntl samba.mon
6. Customize the sample scripts for your MC/ServiceGuard
configuration. A sample customization of the HA HP CIFS Server
package configuration, control and monitor scripts are shown below.
7. Ensure that the control (samba.cntl) and monitor (samba.mon)
scripts are executable.
chmod 750 samba.cntl samba.mon
Edit the package configuration file samba.conf
To configure the samba.conf configuration file, complete the following
tasks below:
1. Set the PACKAGE_NAME variable.
PACKAGE_NAME cifs_pkg1
or
PACKAGE_NAME cifs_pkg2
...depending on which package you are currently working on.