Using the DB2 database Toolkit in a Serviceguard Cluster in HP-UX Release README: B.06.00
In the package directory, modify the hadb2.conf configuration file
for this
DB2 instance.
Example:
Edit the hadb2.conf as indicated by the comments in that script.
For Example,
INSTANCE_NAME=db2_payroll_inst
PARTITION_NUMBER[0]=0
PARTITION_NUMBER[1]=1
MONITOR_PROCESSES[0]=db2sysc
MONITOR_PROCESSES[1]=db2acd
MAINTENANCE_FLAG=YES
MONITOR_INTERVAL=30
TIME_OUT=30
After setting up the Serviceguard environment, each clustered DB2
instance
should have the following files in the related package directory.
E.g.,
the DB2 package, located at /etc/cmcluster/pkg/db2_pkg, would
contain the
following files:
$PKG.cntl (Serviceguard package control script for legacy packaging
style)
$PKG.conf (Serviceguard package configuration file)
hadb2.sh (Main shell script of the toolkit)
hadb2.mon (Monitor the health of the application)
hadb2.conf (Toolkit DB2 configuration file)
toolkit.sh (Interface between pkg.cntl and hadb2.sh)
F. Adding the Package to the Cluster
After the setup is complete, add the package to the SG cluster and
start it
up.
cmapplyconf -P pkg.conf
cmmodpkg -e -n <node1> -n <node2> db2_payroll
cmmodpkg -e db2_payroll
If necessary, consult the "Managing ServiceGuard" manual for
information on managing packages.
J. Database Maintenance