on a file system "/shared/tomcat_1" directory, that resides on a logical volume "lvol1" in a shared volume group "/dev/vg01". Here, it is assumed that the user has already determined the Serviceguard cluster configuration, including cluster name, node names, heartbeat IP addresses, and so on. See the Managing ServiceGuard manual available at http://www.hp.com/go/ hpux-serviceguard-docs —>HP Serviceguard for more detail.

NOTE: To increase the number of packages that may be added to this cluster, modify the cluster configuration file and set the variable MAX_CONFIGURED_PACKAGES to reflect the number of packages to be added to the cluster. After the edit, apply the change to the cluster via cmapplyconf -C cluster_config_file.

Before working on the package configuration, create a directory (for example, /etc/cmcluster/ pkg/tomcat_pkg1) for this package to run. This directory should belong to a single Tomcat package. Copy all Tomcat toolkit scripts from the directory /opt/cmcluster/toolkit/tomcat to the package directory.

To create both the package configuration (tomcat_pkg.conf) and package control (tomcat_pkg.cntl) files, cd to the package directory (example, cd /etc/cmcluster/pkg/tomcat_pkg1).

For Example:

$mkdir /etc/cmcluster/pkg/tomcat_pkg1$cd /etc/cmcluster/pkg/tomcat_pkg1$cp /opt/cmcluster/toolkit/tomcat/*.

1.Create a Serviceguard package configuration file with the command cmmakepkg -p tomcat_pkg1.conf. The package configuration file tomcat_pkg1.conf must be edited as indicated by the comments in that file. The package name must be unique within the cluster.

For Example:

PACKAGE_NAME tomcat_pkg1

NODE_NAME node1

NODE_NAME node2

RUN_SCRIPT /etc/cmcluster/pkg/tomcat_pkg1/http_pkg.cntl HALT_SCRIPT /etc/cmcluster/pkg/tomcat_pkg1/http_pkg.cntl SERVICE_NAME tomcat1_monitor

2.Create a Serviceguard package control file with command cmmakepkg -s

tomcat_pkg.cntl. The package control file must be edited as indicated by the comments in that file. The package control file must be customized to your environment.

116 Using Tomcat Toolkit in a HP Serviceguard Cluster