Using Tomcat Toolkit in a HP Serviceguard Cluster README Revision: B.06.00
1. mkdir -p /etc/cmcluster/pkg/http_pkg1
/etc/cmcluster/pkg/tomcat_pkg1
2. Copy the Apache and Tomcat toolkits files into the respective
directories.
3. Edit the user configuration files of both Apache and Tomcat and
make suitable changes. Please refer to the README files for each
of the toolkits for more details.
4. cd /etc/cmcluster/pkg/tomcat_pkg1
5. Create the Serviceguard Package configuration and Package
control scripts
cmmakepkg -p pkg1.ascii (Serviceguard Package configuration
script)
cmmakepkg -s pkg1.cntl (Serviceguard Package control script).
6. Edit the Package Configuration script "pkg1.ascii" and configure
it. Also configure two services "http_pkg1.monitor" and
"tomcat_pkg1.monitor" as shown below:-
SERVICE_NAME tomcat_pkg1.monitor
SERVICE_FAIL_FAST_ENABLED NO
SERVICE_HALT_TIMEOUT 300
SERVICE_NAME http_pkg1.monitor
SERVICE_FAIL_FAST_ENABLED NO
SERVICE_HALT_TIMEOUT 300
7. Edit the Package Control script "pkg1.cntl" and configure the two
toolkits as show below:-
Example:
VG[0]="vg01"
LV[0]="/dev/vg01/lvol1"
FS[0]="/share/pkg_1"
FS_MOUNT_OPT[0]="-o rw"
FS_UMOUNT_OPT[0]=""
FS_FSCK_OPT[0]=""
FS_TYPE[0]="vxfs"
Configure the two services one for Tomcat and Apache instances
respectively
SERVICE_NAME[0]="tomcat_pkg1.monitor"
SERVICE_CMD[0]="/etc/cmcluster/pkg/tomcat_pkg1/toolkit.sh monitor"
SERVICE_RESTART[0]=""