HP CIFS Server 3.0g Administrator's Guide verison A.02.03.01

mount /dev/vg01/lvol1 /tmp/share1
mount /dev/vg01/lvol2 /tmp/share2
cp -r /your/data1/* /tmp/share1
cp -r /your/data2/* /tmp/share2
umount /tmp/share1
umount /tmp/share2
rm -rf /tmp/share1 /tmp/share2
4. Create a directory for HP CIFS Server cluster package:
mkdir /etc/cmcluster/samba/pkg1
5. Copy the sample scripts samba.conf, samba.cntl and samba.mon from /opt/samba/HA to
/etc/cmcluster/samba/pkg1 (or /etc/cmcluster/samba/pkg2) on the primary node. Make all scripts
writeable.
cp /opt/samba/HA/samba.* /etc/cmcluster/samba/pkg1
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 pkg1
or
PACKAGE_NAME pkg2
...depending on which package you are currently working on.
2. Create a NODE_NAME variable for each node that will run the package. The first NODE_NAME
should specify the primary node. All other NODE_NAME variables should specify the
alternate nodes in the order in which they will be tried.
NODE_NAME ha_server1
NODE_NAME ha_server2
...for pkg1,
NODE_NAME ha_server2
NODE_NAME ha_server1
...for pkg2, etc.
3. Set the RUN_SCRIPT and HALT_SCRIPT variables to the full path name of the control script.
RUN_SCRIPT /etc/cmcluster/samba/pkg1/samba.cntl
RUN_SCRIPT_TIMEOUT NO_TIMEOUT
HALT_SCRIPT /etc/cmcluster/samba/pkg1/samba.cntl
HALT_SCRIPT_TIMEOUT NO_TIMEOUT
...for pkg1, and
RUN_SCRIPT /etc/cmcluster/samba/pkg2/samba.cntl
Overview of HA HP CIFS Server 169