B Sample package configuration file for the DB2 HADR standby package
This section provides with a sample package configuration file for the DB2 HADR standby package:
#**********************************************************************
#****** 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 hadr_standby
package_description "Serviceguard Standby Package"
package_type failover
node_name node1
script_log_file /etc/cmcluster/hadr_standby/$SG_PACKAGE.log
#************ ECMT DB2TOOLKIT PARAMETERS ************
ecmt/db2/db2/TKIT_DIR /etc/cmcluster/hadr_standby ecmt/db2/db2/ALERT_MAIL_ID mailid@hp.com ecmt/db2/db2/INSTANCE_NAME db2inst1 ecmt/db2/db2/PARTITION_NUMBER 0 ecmt/db2/db2/MONITOR_PROCESSES db2sysc ecmt/db2/db2/MAINTENANCE_FLAG yes ecmt/db2/db2/MONITOR_INTERVAL 30 ecmt/db2/db2/TIME_OUT 30
service_name db2_service
service_cmd "$SGCONF/scripts/ecmt/db2/tkit_module.sh db2_monitor" service_restart none
service_fail_fast_enabled no service_halt_timeout 300
service_name db2hard_service
service_cmd "$SGCONF/scripts/tkit/db2hadr/tkit_module.sh db2hadr_monitor" service_restart none
service_fail_fast_enabled no service_halt_timeout 300
#************
tkit/db2hadr/db2hadr/HADR_ROLE standby tkit/db2hadr/db2hadr/HADR_DATABASE sample tkit/db2hadr/db2hadr/ROLE_MANAGEMENT yes tkit/db2hadr/db2hadr/HADR_IP 10.76.1.200:10.76.1.0 tkit/db2hadr/db2hadr/RESTORE_ROLE yes
#Provide Client traffic IP and Interconnect traffic IP as package IP, if the # package is configured to failover to another node.
ip_subnet 10.76.1.0
ip_address 10.76.1.100
#Provide VG name if the database is configured in a VG. vg vg_standby
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.
52 Sample package configuration file for the DB2 HADR standby package