HP Serviceguard Enterprise Cluster Master Toolkit User Guide (5900-2145, April 2013)

Table Of Contents
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
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).
#cmmakepkg -m ecmt/apache/apache pkg.conf
4. Edit the package configuration file.
NOTE: Apache toolkit configuration parameters in the package configuration file are prefixed
by ecmt/apache/apache when they are used in Serviceguard A.11.19.00 or later.
For Example:
/etc/cmcluster/pkg/apache_pkg/pkg.conf
The configuration file must be edited as indicated by the comments in that file. The package
name must be unique within the cluster.
For Example:
PACKAGE_NAME apache
NODE_NAME node1
NODE_NAME node2
Set the TKIT_DIR variable as the path of <package_directory>. For example, TKIT_DIR
/etc/cmcluster/pkg/apache_pkg.
5. Use cmcheckconf command to check for the validity of the configuration specified.
For Example:
#cmcheckconf -P pkg.conf
6. If the cmcheckconf command does not report any errors, use the cmapplyconf command
to add the package into Serviceguard environment.
For Example:
#cmapplyconf -P pkg.conf
Error Handling
On startup, the Apache server application checks for the existence of the httpd.conf file in the
directory <SERVER ROOT>/conf/httpd.conf. If the configuration file does not exist in this
location or Apache does not start for some other reason the Apache toolkit script halts the package
on that node and attempts to run it on another node. To troubleshoot and start Apache correctly
108 Using an Apache Toolkit in a HP Serviceguard Cluster