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

NOTE: If CFS mounted file systems are used then volume groups, logical volumes and file
systems must not be configured in the package control script but dependency on SG CFS
packages must be configured.
3. Configure the Apache user configuration file hahttp.conf as explained in the next section.
4. Copy this package configuration directory to all other package nodes.
Use the same procedure to create multiple Apache packages (multiple Apache instances) that will
be running on the cluster.
Setting up The Toolkit
Toolkit Overview
After installing the toolkit, four scripts and one README file will be installed in the location /opt/
cmcluster/toolkit/apache. Two more scripts and one file will be installed which will be
used only for modular packages. The two scripts will be in the /etc/cmcluster/scripts/
ecmt/apache directory. The third file will be in the /etc/cmcluster/modules/ecmt/apache
directory.
For legacy packages, one user configuration script (hahttp.conf) and three functional scripts
(toolkit.sh, hahttp.sh and hahttp.mon) will work together to integrate Apache web server with the
Serviceguard package control script.
Table 25 (page 105) lists the scripts used in legacy packages are:
Table 25 Scripts in Legacy Packages
DescriptionScript Name
This script contains a list of pre-defined variables that may be customized
for the user's environment. This script provides the user a simple format of
User Configuration file (hahttp.conf)
the user configuration data. This file will be included (that is, sourced) by
the toolkit main script hahttp.sh.
This script contains a list of internal-use variables and functions that support
the start and stop of an Apache instance. This script will be called by the
Toolkit Interface Script to do the following:
Main Script (hahttp.sh)
On package start, it starts the Apache server instance.
On package stop, it stops the Apache server instance.
Monitoring functionality will be initiated by calling the toolkit with the
"monitor" parameter as "toolkit.sh monitor".
Monitor Script (hahttp.mon)
This script is an interface between the Serviceguard package control script
and the toolkit main script (hahttp.sh).
Interface Script (toolkit.sh)
Toolkit User Configuration
All the user configuration variables are kept in a single file hahttp.conf in shell script format.
The variable names and their sample values are listed in Table 26 (page 105):
Table 26 Configuration Variables
DescriptionConfiguration Variables
This is the base directory where HP Apache web server is installed. By
default HP Apache is installed in the directory /opt/hpws22/apache
and hence this is also the default value.
HP_APACHE_HOME (for example,
HP_APACHE_HOME="/opt/hpws22/apache")
This variable holds the root directory of an Apache server instance. Each
Apache instance must have its own root directory that contains its own
SERVER_ROOT (for example,
SERVER_ROOT="/opt/hpws22/apache")
server configuration file (httpd.conf). The Apache's system default
Setting up The Toolkit 105