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

C Sample package configuration file for the DB2 HADR
standby package created using the separate method of
packaging
This section provides with a sample package configuration file for the DB2 HADR standby package
created using the separate method of packaging:
# **********************************************************************
# ****** HIGH AVAILABILITY PACKAGE CONFIGURATION FILE (template) *******
# **********************************************************************
# ******* Note: This file MUST be edited before it can be used. ********
# * For complete details about package parameters and how to set them, *
# * consult the Serviceguard manual.
# **********************************************************************
package_name hadr4p
package_description "Serviceguard Package"
package_type failover
node_name node1
script_log_file /etc/cmcluster/hadr4p/$SG_PACKAGE.log
# ************ DB2 HADR TOOLKIT PARAMETERS ************
tkit/db2hadr/hadr/TKIT_DIR /etc/cmcluster/hadr4p
tkit/db2hadr/hadr/HADR_ROLE standby
tkit/db2hadr/hadr/HADR_DATABASE hadr4
tkit/db2hadr/hadr/ROLE_MANAGEMENT yes
tkit/db2hadr/hadr/HADR_IP 10.10.2.121:10.10.2.0
tkit/db2hadr/hadr/RESTORE_ROLE yes
tkit/db2hadr/hadr/MAINTENANCE_FLAG yes
tkit/db2hadr/hadr/MONITOR_INTERVAL 30
service_name db2hadr_service
service_cmd "$SGCONF/scripts/tkit/db2hadr/tkit_module.sh db2hadr_monitor"
service_restart none
service_fail_fast_enabled no
service_halt_timeout 300
dependency_name hadr4p_dep
dependency_condition db2p = up
dependency_location same_node
priority 20
Provide Client traffic IP and Interconnect traffic IP as package IP, if the package is configured to failover
to another node.
ip_subnet 10.10.2.0
ip_address 10.10.2.115
NOTE:
To configure the package configuration file for a primary package, add primary as the
HADR_ROLE attribute. You must change the service_name attribute for both DB2 and DB2
HADR, if the primary package is also configured in the same cluster.
The dependency condition specifies that the ECMT DB2 package must be up on the same
node where the package is starting.
60 Sample package configuration file for the DB2 HADR standby package created using the separate method of packaging