Using Tomcat Toolkit in a HP Serviceguard Cluster README Revision: B.06.00

5. Now you can configure the hatomcat.conf file as required for the
Tomcat Server package on all nodes in case of legacy packages and
the Tomcat toolkit parameters in the package ASCII file in case of
modular packages.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTE: The following sections describe the method for
creating the Serviceguard package using the legacy method. For
information on creating the Serviceguard package using the
modular method, please refer to the white paper "Modular
package
support in Serviceguard for Linux and ECM Toolkits" located at
http://docs.hp.com/en/ha.html
C. Setting Up The Package
The following procedures include the steps to configure a Serviceguard
package running the Tomcat instance, which includes customizing the
Serviceguard package configuration file and package control script.
(Please refer to the manual "Managing Serviceguard" for more
detailed instructions on cluster configuration.
The procedures below assume that the user is configuring a
Serviceguard Tomcat package named "tomcat_pkg1", consisting of one
service named "tomcat1_monitor". The Tomcat instance is listening to
a relocatable IP address "192.168.0.201" and all of its configuration
and document files are 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, etc. Refer to the manual "Managing
Serviceguard" for more detail.
Note: To increase the number of packages that may be added to this
cluster, please 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, you must create a
directory (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.
Example:
$ mkdir /etc/cmcluster/pkg/tomcat_pkg1
$ cd /etc/cmcluster/pkg/tomcat_pkg1
$ cp /opt/cmcluster/toolkit/tomcat/* .
To create both the package configuration (tomcat_pkg.conf) and package