HP Serviceguard Enterprise Cluster Master Toolkit User Guide, June 2014
|
VG[0]="vg01" | VXVM_DG[0]="DG_00"
|
LV[0]="/dev/vg01/lvol1" | LV[0]="/dev/vx/dsk/DG_00/LV_00
FS[0]="/shared/apache1" | FS[0]="/shared/apache1"
FS_TYPE[0]="vxfs" | FS_TYPE[0]="vxfs"
FS_MOUNT_OPT[0]="-o rw" | FS_MOUNT_OPT[0]="-o rw"
IP[0]="192.168.1"
SUBNET[0]="192.168.0.0"
SERVICE_NAME="http1_monitor"
SERVICE_CMD="/etc/cmcluster/pkg/http_pkg1/toolkit.sh monitor"
SERVICE_RESTART="-r 0"
Edit the customer_defined_run_cmds function to run the toolkit.sh script with the start
option. In the following example, the line /etc/cmcluster/pkg/http_pkg1/toolkit.sh
start is included, and the ":" null command line deleted.
For example:
function customer_defined_run_cmds
{
# Start the Apache Web Server.
/etc/cmcluster/pkg/http_pkg1/toolkit.sh start
test_return 51
}
Edit the customer_defined_halt_cmds function to run the toolkit.sh script with the stop option.
In the following example, the line /etc/cmcluster/pkg/http_pkg1/toolkit.sh
stop is included, and the ":" null command line deleted.
For example:
function customer_defined_halt_cmds
{
# Stop the Apache Web Server.
/etc/cmcluster/pkg/http_pkg1/toolkit.sh stop
test_return 51
}
NOTE: If you use CFS mounted file systems, 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 run on the cluster.
Setting up the Toolkit
Toolkit overview
After you install the toolkit, install four scripts and one README file in the location /opt/
cmcluster/toolkit/apache. You must also install two more scripts and one file which are
used only for modular packages. The two scripts for the modular packages are located in the
Setting up the Toolkit 105