HP Serviceguard Enterprise Cluster Master Toolkit User Guide, June 2014
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. Once the cluster is edited, change it through thecmapplyconf
-C cluster_config_file
Before working on the package configuration, create a directory (for example, /etc/cmcluster/
pkg/http_pkg1) for this package to run. This directory must belong to a single Apache package.
Copy all Apache toolkit scripts from the directory /opt/cmcluster/toolkit/apache to the
package directory.
For example:
$ mkdir /etc/cmcluster/pkg/http_pkg1
$ cd/etc/cmcluster/pkg/http_pkg1
$ cp/opt/cmcluster/toolkit/apache/*.
To create both the package configuration (http_pkg.conf) and package control
(http_pkg.cntl) files, cd to the package directory (example, cd /etc/cmcluster/pkg/http_pkg1).
1. Create a Serviceguard package control file using the command cmmakepkg -s
http_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.
For Example:
PACKAGE_NAME http_pkg1
NODE_NAME node1
NODE_NAME node2
NOTE: When you configure an Active - Active configuration, the package configuration file
must hold the name of only the single node on which the instance will run. For example, on
node1, NODE_NAME parameter in the package configuration file must be edited as
NODE_NAME node1 and in node2 as, NODE_NAME node2
RUN_SCRIPT /etc/cmcluster/pkg/http_pkg1/http_pkg.cntl
RUN_SCRIPT /etc/cmcluster/pkg/http_pkg1/http_pkg.cntl
HALT_SCRIPT /etc/cmcluster/pkg/http_pkg1/http_pkg.cntl
SERVICE_NAME http1_monitor
If you see the CFS mounted file system is used, configure dependency of this Apache package
on SG CFS package. If the Apache package is configured to depend on a SG CFS package,
the Apache package runs as long as the SG CFS package is running. If the SG CFS package
fails, the dependent Apache package will also fail.
To configure the dependency of the Apache package, set the following configurable parameters
in the package configuration file:
DEPENDENCY_NAME
http1_dependency
DEPENDENCY_CONDITION SG-CFS-MP-1 = up
DEPENDENCY_LOCATION SAME_NODE
2. Create a Serviceguard package control file with command cmmakepkg -s http_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.
#The service name and the name defined in the package #configuration file must be same.
For example:
LVM | VxVM
----- | ------
104 Using an Apache Toolkit in a HP Serviceguard Cluster