Using SAMBA Toolkit in a Serviceguard Cluster README Revision: B.06.00
configuration, including cluster name, node names, heartbeat IP
addresses, etc. Refer to the manual "Managing Serviceguard" for
specific details on cluster configuration.
Note: To increase the number of packages that may be added to this
cluster, please modify the cluster configuration file and set
the variable MAX_CONFIGURED_PACKAGES to reflect the number of
packages to be added to the cluster. After the edit, apply the
change to the cluster via "cmapplyconf -C cluster_config_file".
Before working on the package configuration, create a directory
(example, /etc/cmcluster/smb1) for this package. This directory
should belong to a single HP CIFS Server package (that is, each
package will have its own directory). Copy all SAMBA toolkit scripts
from the directory /opt/cmcluster/toolkit/samba to the package
directory.
Example:
$ mkdir /etc/cmcluster/smb1
$ cd /etc/cmcluster/smb1
$ cp /opt/cmcluster/toolkit/samba/* . #copy to $PWD
To create both the package configuration (smb_pkg.conf) and package
control (smb_pkg.cntl) files, cd to the package directory (example, cd
/etc/cmcluster/smb1)
1. Create a package configuration file with the command "cmmakepkg
-p". The package configuration file must be edited as indicated by
the comments in that file. The package name must be unique within
the cluster.
Example:
PACKAGE_NAME smb1
NODE_NAME node1
NODE_NAME node2
RUN_SCRIPT /etc/cmcluster/smb1/smb_pkg.cntl
HALT_SCRIPT /etc/cmcluster/smb1/smb_pkg.cntl
SERVICE_NAME smb1_monitor
If you are using CFS mounted file system you need to configure
dependency of this Samba package on SG CFS package. If the Samba
package is configured to depend on a SG CFS package, the Samba
package will run as long as the dependee package is running. If
the dependee package fails, then the dependent Samba package will
also fail.
To configure dependency of the Samba package, you must set the
following configurable parameters in the package configuration file.
DEPENDENCY_NAME smb1_dependency
DEPENDENCY_CONDITION SG-CFS-MP-1 = up