Table of Contents
IBM Tivoli® System Automation for Multiplatforms (SA MP) is the recommended cluster manager for automating HADR failover. On Linux/Unix platforms, SA MP is integrated in DB2. "DB2 high availability instance configuration utility" (db2haicu) is the user interface to manage the integrated cluster manager. On Windows, SA MP is not Integrated in DB2 and db2haicu is not available. But you can still configure SA MP on Windows using scripts. See "
HADR auto failover on Windows
" section below.
Starting in Db2 version 11.5.5, Pacemaker as an alternate cluster manager is available for automated failover to HADR standby on Linux for on-premise and non-containerized cloud deployments. See IBM Documentation topic
Pacemaker (Linux)
for prerequisites and usage instructions.
DB2 Info Center provides complete reference to using the integrated cluster manager. In Info Center, navigate from the page "
Configuring a clustered environment for high availability
" , or just search for "db2haicu".
If you would like to use other cluster managers, such as
See the page " Supported cluster management software " in Info center
See " Configure multiple HADR databases in a DB2 instance for automated failover using Tivoli System Automation for Multiplatforms " in IBM Community
Automated failover is often used with automated client reroute. See Client Reroute .
http://www.redbooks.ibm.com/redbooks/pdfs/sg247363.pdf
Title: High Availability and Disaster Recovery Options for DB2 for Linux, UNIX, and Windows
Automated cluster controlled HADR configuration setup using the IBM DB2 high availability instance configuration utility (db2haicu)
White paper. 58 pages. 2009. Authors: Steve Raspudic, Saurabh Sehgal, Malaravan Ponnuthurai
General usage of db2haicu with HADR.
DB2 system topology and configuration for automated multi-site HA and DR
White paper, 77 pages, 2010, Authors: Aruna De Silva, Steve Raspudic, Sunil Kamath
Focuses on multi-site (remote site for DR purpose) setup.
Recommendations for a TSAMP controlled DB2 HA/HADR environment
Tech note for Tivoli System Automation for Mutl-iplatforms (TSAMP) configuration in DB2 HA/HADR environment.
Using DB2 High Availability Disaster Recovery with Tivoli Systems Automation and Reliable Scalable Cluster Technology
,
Tutorial, 2010, Authors: Dipali Kapadia, Michelle Chiu
Focuses on troubleshooting
Automating HADR on DB2 10.1 for Linux, UNIX and Windows Failover Solution Using Tivoli System Automation for Multiplatforms , Dec 2012, By Steve Raspudic, etc. This paper gives 2 examples of setting up HADR with automation: first via db2haicu in interactive mode; the second via db2haicu with XML input file. 2014 revision: http://public.dhe.ibm.com/software/dw/im/dm-0907hadrdb2haicu/db2-10-hadr-tsa.pdf
Enabling continuous access to read on standby databases using Virtual IP addresses
White paper, 12 pages, 2011, Authors: Steve Raspudic, Aruna De Silva, Louise McNicoll.
This paper describes how to set up two VIP addresses with HADR, one for read/write workload on primary database and one for read-only workload on the standby database. VIP is recommended for rerouting clients when reads on standby is enabled. Automatic client reroute should not be used when reads on standby is enabled.
Automated instance failover using the IBM DB2 High Availability Instance Configuration Utility (db2haicu)
White paper, 69 pages, 2009, Authors: Steve Raspudic, Selvaprabhu Arumuggharaj
Db2haicu can be used with or without HADR. This is about the shared disk solution for local HA (without HADR).
Note that starting from DB2 V10.1, HADR supports multiple standbys. You can use a local standby for HA and remote standby(s) for DR. In older releases, you can set up shared disk solution for local HA and use HADR for DR (standby at remote site).
On Windows, it used to be possible to implement automated failover using older version of TSA, but that is no longer possible starting in TSA 4.1 (due to dropped support of Windows).
Customers looking at automating HADR failover on Windows would likely need to select a different cluster manager product. See following article on using HADR on Windows with Microsoft Cluster Server.
Set up DB2 for Linux, UNIX, and Windows for high ... - IBM
It is a common usage scenario with the following environment:
The following procedure will setup TSA in both data centers to handle automated failover. Details of db2haicu usage can be found in the
Automated cluster controlled HADR configuration setup using the IBM DB2 high availability instance configuration utility (db2haicu)
white paper.
Note that the above setup creates two disjoint TSA domains, one in Datacenter1 and the other in Datacenter2. After the above setup, the HADR system is now enabled with the following:
Procedure for performing maintenance (the key point is : there is nothing special, all the same as if there is no TSA):
If there is a need to perform graceful takeover from an auxiliary standby (say C in Datacenter2), use the following procedure. Note that step 1 and 3 are new.
In an event of disaster that takes out entire Datacenter1, procedure for manual failover to Datacenter2:
Deploying a two-sites multiple standby cluster with same-site failover automation