Installing and Configuring Apache Toolkit for Serviceguard for Linux

Once the package starts, it starts an Apache server instance comprising of the Apache daemon,
httpd, which spawns a number of sub-processes to handle numerous http requests. It also
launches the Apache monitor script.
Configuring Multiple Instances
This section describes how to integrate multiple Apache Web Server instances using the High
Availability Apache Web Server toolkit. Before integrating the instances, you must first create an
instance of the Apache server. For more information on creating a single Apache instance, see
Configuring a Single Instance.
After you create an instance of the Apache server, you must create another instance using the
following procedure. All instances of the Apache server must be configured in the same way.
Following are the naming conventions that are used in this procedure:
The Serviceguard Apache package is named as APACHE2. The corresponding service
name is apache2_service.
The Apache package is assumed to be listening to a relocatable IP address
15.70.191.7. Ensure that this IP address is not used by any other application.
1. Create a volume group.
You must configure volume group(s) for each Apache instance. This procedure describes how
to create a volume groups that is applicable for a shared configuration as well as a local
configuration.
a. Create another volume group.
For example:
vgtry2
b. Create a logical volume lvol in the volume group that you just created.
c. Create a file system on this logical volume and mount it.
For example:
/mnt/vgtry2/apache.
d. Copy all files from server root directory to /mnt/vgtry2/apache.
2. Create a package directory.
Create another package directory, as described in Configuring a Single Instance.
For example, for the second instance, consider /usr/local/cmcluster/pkg/apache2 as
the package directory of the second apache instance.
3. Edit the package configuration script.
Edit the package configuration file pkg.conf.
You must specify the following parameters to integrate multiple instances of the Apache server.
The remaining parameters in the file must be configured as per the instructions for configuring a
single instance package.
Specify another name for this package. For example: APACHE2
Specify another name for the corresponding server. For example: apache2_service.
This service name must be unique.
PACKAGE_NAME APACHE2
RUN_SCRIPT /usr/local/cmcluster/pkg/apache2/pkg.cntl
HALT_SCRIPT /usr/local/cmcluster/pkg/apache2/pkg.cntl
SERVICE_NAME apache2_service