Installing and Configuring Apache Toolkit for Serviceguard for Linux

toolkit.sh Script that acts as an Interface between the package control script and
main script (hahttp.sh)
pkg.conf The package configuration file
pkg.cntl The package control script
2. Edit the package configuration file.
Enter the following command to open the package configuration file:
#vi /usr/local/cmcluster/pkg/apache1/pkg.conf
You can edit the following variables in the package configuration file.
PACKAGE_NAME APACHE1
PACKAGE_TYPE FAILOVER
FAILOVER_POLICY CONFIGURED_NODE
FAILBACK_POLICY MANUAL
NODE_NAME photon3
NODE_NAME photon4
AUTO_RUN YES
NODE_FAIL_FAST_ENABLED NO
The package configuration file contains variables that characterize the package. The package
name and the service name mentioned must be unique.
Initialize the RUN_SCRIPT and the HALT_SCRIPT in the package control script. You can edit
these variables based the requirement of your environment.
RUN_SCRIPT /usr/local/cmcluster/pkg/apache1/pkg.cntl
RUN_SCRIPT_TIMEOUT NO_TIMEOUT
HALT_SCRIPT /usr/local/cmcluster/pkg/apache1/pkg.cntl
HALT_SCRIPT_TIMEOUT NO_TIMEOUT
PRIORITY NO_PRIORITY
SUCCESSOR_HALT_TIMEOUT 0
SERVICE_NAME apache1_service
SERVICE_FAIL_FAST_ENABLED NO
SERVICE_HALT_TIMEOUT 300
3. Edit the package control script.
Edit the package control script (pkg.cntl) to customize it to the environment.
IMPORTANT: HP recommends that you configure the server root directory and the document
root directory on a shared storage.
In these examples, the volume group, /dev/vgtry1 is used as the server root directory and
the document root directory.
a. Mount the logical volume lvol on vgtry1 under the mount point
/mnt/vgtry1/apache. Use an IP address that is not being used by any other
application. In this example, 15.70.191.6.You can edit the following variables in the
package control script.
GFS="NO"
DATA_REP="none"
RAIDSTART="raidstart -c ${RAIDTAB}"
RAIDSTOP="raidstop -c ${RAIDTAB}"
VGCHANGE="vgchange -a y"
VG[0]="/dev/vgtry1"
LV[0]="/dev/vgtry1/lvol"; FS[0]="/mnt/vgtry1/apache
";
FS_TYPE[0]="ext2"; FS_MOUNT_OPT[0]="-o rw"