HP Serviceguard Linux Contributed Toolkit Suite A.04.02.01 User Guide (696979-001, June 2012)

NOTE:
To enable the AUTORUN parameter, run:
# cmmodpkg e APACHE1
To enable package switching, run:
# cmmodpkg e -n node-1, -n node-2 ... -n node-n APACHE1
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 Apache
web server toolkit. Before integrating the instances, you must create an instance of the Apache
server.
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.
For easy comprehension, the following naming conventions are used in this section:
The Serviceguard Apache toolkit package is named as APACHE2. The corresponding service
name is apache2_service.
The Apache toolkit package is configured to listen to a relocatable IP address. Ensure that the
IP address is not used by any other application.
To create multiple Apache toolkit packages for multiple Apache instances:
1. Configure volume groups for each Apache instance.
To create volume groups applicable for both shared and local configuration:
a. Create another volume group, such as 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 the files from the server root directory to /mnt/vgtry2/apache.
2. Create another package directory.
For example, consider ${SGCONF}/pkg/apache2 as the package directory of the second
apache instance.
3. Edit the package configuration file pkg.conf.
ExampleVariable
APACHE2PACKAGE_NAME
${SGCONF}/pkg/apache2/pkg.cntlRUN_SCRIPT
${SGCONF}/pkg/apache2/pkg.cntlHALT_SCRIPT
apache2_serviceservice_name
4. Specify the following parameters to integrate multiple instances of the Apache server.
ExampleVariable
/dev/vgtry2VG
/dev/vgtry2/lvolLV
14 Apache Toolkit