HP Serviceguard Enterprise Cluster Master Toolkit User Guide (5900-2145, April 2013)

Table Of Contents
3. Configure the Tomcat user configuration file hatomcat.conf as explained in “Creating
Serviceguard Package Using Modular Method” (page 117).
4. Copy this package configuration directory to all other package nodes.
Use the same procedure to create multiple Tomcat packages (multiple Tomcat instances) that will
be running on the cluster.
Creating Serviceguard Package Using Modular Method
To create Serviceguard package using Modular method:
1. Create a directory for the package.
# mkdir /etc/cmcluster/pkg/tomcat_pkg/
2. Copy the toolkit template and script files from tomcat directory.
#cd /etc/cmcluster/pkg/tomcat_pkg/
#cp /opt/cmcluster/toolkit/tomcat/* ./
3. Create a configuration file (pkg.conf).
#cmmakepkg -m ecmt/tomcat/tomcat pkg.conf
4. Edit the package configuration file.
NOTE: Tomcat toolkit configuration parameters in the package configuration file are prefixed
by ecmt/tomcat/tomcat when used in Serviceguard A.11.19.00 or later.
For Example:
/etc/cmcluster/pkg/tomcat_pkg/pkg.conf
Edit the configuration file according to the instructions in that file. The package name must be
unique within the cluster.
For Example:
PACKAGE_NAME tomcat
NODE_NAME node1
NODE_NAME node2
Set the TKIT_DIR variable as the path of <package_directory>. For example, TKIT_DIR
/etc/cmcluster/pkg/tomcat_pkg.
5. Use cmcheckconf command to check for the validity of the configuration specified.
For Example:
#cmcheckconf -P pkg.conf
6. If the cmcheckconf command does not report any errors, use the cmapplyconf command
to add the package into Serviceguard environment.
For Example:
#cmapplyconf -P pkg.conf
Setting up the Toolkit
Toolkit overview
After installing the toolkit, four scripts and one README file are installed in the location /opt/
cmcluster/toolkit/tomcat. Two more scripts and one file are installed which will be used
only for modular packages. The two scripts are in the /etc/cmcluster/scripts/ecmt/
tomcat directory. The third file is in the /etc/cmcluster/modules/ecmt/tomcat the
directory.
Table 29 (page 118) shows the scripts used in legacy packages.
Creating Serviceguard Package Using Modular Method 117