HP Serviceguard Toolkits for Database Replication Solutions User Guide, March 2012

tkit/db2hadr/db2hadr and tkit/db2hadr/hadr are the names of the DB2
HADR toolkit modules.
pkg.conf is the name of the package configuration file. Edit the package
configuration file, and apply it using the cmapplyconf command.
4. Edit the following attributes manually in this file before creating the package:
DescriptionAttributes
The package name must be unique in the cluster.package_name
Package must be a failover package.package_type
Name of the cluster node on which the package will
run. Ensure that the primary package and the standby
node_name
package have different node names. The primary and
the standby packages must not run on the same node.
It is the package log file path where the package log is
stored.
script_log_file
This is the package directory where the toolkit
configuration files are generated when the package is
TKIT_DIR
created. This directory need not be same for the Primary
and the Standby packages.
It is the administrator’s email ID. The package sends
alert mails during package failure.
ALERT_MAIL_ID
It is the DB2 instance name (e.g. db2inst1)INSTANCE_NAME
Set it to 0 since DB2 HADR toolkit does not support
multiple partitions. The default value is 0.
PARTITION_NUMBER
The default value is db2sysc. Do not change this value.MONITOR_PROCESSES
This attribute is used to enable or disable the
maintenance mode. The default value is [yes].
MAINTENANCE_FLAG
This is the time interval (in seconds) between the monitor
cycles and the default value is 30 seconds. The toolkit
MONITOR_INTERVAL
monitors the health of the package every
[MONITOR_INTERVAL ]seconds.
NOTE: This value adds to the time for role takeover
and hence should be set to an optimum value.
This value is used when a package is halted. During
this time the toolkit awaits the completion of a normal
TIME_OUT
package shutdown before forcefully halting the
application.
Set it either to [primary] or [standby] based on the role
that the HADR is supposed to play on the node.
HADR_ROLE
This is the DB2 database name on which HADR is
configured.
HADR_DATABASE
Set it either to [yes ]or [no]. The value must be same for
both the primary and standby packages. If this attribute
ROLE_MANAGEMENT
is set to [yes ]then package handles role takeover and
final role switch. If it is set to [no ]then package does
not handle role takeover and final role switch. It can
only function as a failover package. The default value
is set to [no].
NOTE: If this attribute is set to [yes ]then HADR_IPand
RESTORE_ROLE attributes must be defined.
Using the DB2 HADR toolkit 45