Enterprise Cluster Master Toolkit User Guide April 2011 (5900-1606)
Table 35 Legacy Package Scripts (continued)
DescriptionScript Name
This script contains a list of internal-use variables and functions for monitoring
an HP CIFS Server server instance. This script will be called by the toolkit main
script ( hasmb.sh) and will constantly monitor two HP CIFS Server daemons,
smbd and nmbd.
Monitor Script (hasmb.mon)
This script is an interface between a package control script and the toolkit
main script (hasmb.sh ).
Interface Script (toolkit.sh)
Creating Serviceguard package using Modular method.
Follow the steps below to create Serviceguard package using Modular method:
1. Create a directory for the package.
#mkdir /etc/cmcluster/pkg/samba_pkg/
2. Copy the toolkit template and script files from samba directory.
#cd /etc/cmcluster/pkg/samba_pkg/
#cp /opt/cmcluster/toolkit/samba/* ./
3. Create a configuration file (pkg.conf) as follows.
#cmmakepkg -m ecmt/samba/samba pkg.conf
4. Edit the package configuration file.
NOTE: Samba toolkit configuration parameters in the package configuration file have been
prefixed by ecmt/samba/samba when used in Serviceguard A.11.19.00.
For Example:
/etc/cmcluster/pkg/samba_pkg/pkg.conf
The configuration file should be edited as indicated by the comments in that file. The package
name needs to be unique within the cluster.
For Example:
PACKAGE_NAME samba
NODE_NAME node1
NODE_NAME node2
Set the TKIT_DIR variable as the path of <package_directory>. For example, TKIT_DIR
/etc/cmcluster/pkg/pkg01.
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
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
DEPENDENCY_LOCATION SAME_NODE
5. Use cmcheckconf command to check for the validity of the configuration specified.
For Example:
132 Using SAMBA Toolkit in a Serviceguard Cluster