HP Enterprise Cluster Master Toolkit User Guide (5900-2131, December 2011)

NOTE: Before working on the toolkit configuration, the package directory (for example, /etc/
cmcluster/pkg/http_pkg1) must be created and all toolkit scripts copied to the package
directory.
1. Edit the Apache Toolkit user configuration file.
In the package directory, edit the user configuration file ( hahttp.conf) as indicated by the
comments in that file.
For example:
SERVER_ROOT="/shared/apache1/httpd"
PID_FILE="/var/run/httpd1.pid"
SSL="yes"
MAINTENANCE_FLAG="yes"
2. Copy the entire package directory at the same path on all nodes configured for the package.
For this example, each package node must have the following files in the package directory:
http_pkg.conf #Package configuration file
http_pkg.cntl #Package control file
hahttp.conf #Apache toolkit user configuration file
hahttp.mon #Apache toolkit monitor program
hahttp.sh #Apache toolkit main script
toolkit.sh #Interface file between the package
#control file and the toolkit
3. Apply the Serviceguard package configuration using the command cmapplyconf -P
http_pkg.conf.
Use the same procedures to create multiple Apache instances for Serviceguard packages that
will be running on the cluster.
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/apache_pkg/
2. Copy the toolkit template and script files from apache directory.
#cd /etc/cmcluster/pkg/apache_pkg/
#cp /opt/cmcluster/toolkit/apache/* ./
3. Create a configuration file (pkg.conf) as follows.
#cmmakepkg -m ecmt/apache/apache pkg.conf
4. Edit the package configuration file.
NOTE: Apache toolkit configuration parameters in the package configuration file have been
prefixed by ecmt/apache/apache when used in Serviceguard A.11.19.00 or later.
For Example:
/etc/cmcluster/pkg/apache_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 apache
NODE_NAME node1
NODE_NAME node2
Creating Serviceguard package using Modular method. 107