HP Serviceguard Enterprise Cluster Master Toolkit User Guide, June 2014
4. On the other nodes in the cluster remove or rename the /opt/hpws22/tomcat directory.
5. 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, see the white paper Modular package support in Serviceguard for Linux and ECM Toolkits
available at http://www.hp.com/go/hpux-serviceguard-docs —>HP Serviceguard Enterprise
Cluster Master Toolkit.
Setting up the Package
The following procedure describes the method to configure a Serviceguard package running the
Tomcat instance, which includes customizing the Serviceguard package configuration file and
package control script. For more information on cluster configuration, see the latest Managing
Serviceguard manual available at http://www.hp.com/go/hpux-serviceguard-docs —>HP
Serviceguard .
In the following procedure, consider that the name of the Serviceguard Tomcat package is
"tomcat_pkg1", which consists of one service named "tomcat1_monitor". The Tomcat instance is
listening to a relocatable IP address "192.168.0.201" and all its configuration and document
files are on a file system "/shared/tomcat_1" directory. This file system resides on a logical volume
"lvol1" in a shared volume group "/dev/vg01". Consider that you have already determined the
Serviceguard cluster configuration, including cluster name, node names, heartbeat IP addresses,
and so on. For more information, see the latest Managing Serviceguard manual available at http://
www.hp.com/go/hpux-serviceguard-docs —>HP Serviceguard .
NOTE: To increase the number of packages that can 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 you configure the package, create a directory (for example, /etc/cmcluster/pkg/
tomcat_pkg1) to run this package. This directory must 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/*.
To configure a Serviceguard package running the Tomcat instance:
1. Create a Serviceguard package configuration file with the command cmmakepkg -p
tomcat_pkg1.confaccording to the instructions provided. Edit the package configuration
file tomcat_pkg1.conf 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
Setting up the Package 115