In a High Availability Disaster Recovery (HADR) environment, the data is continually replicated from the source (primary) database to the target (standby) database by using the DB2 transaction logs. If something happens to the primary database, then the standby database is immediately ready to take over for the primary database.
Perform the following configuration procedure, backup procedure, and restore procedure to use DB2 HADR with the Commvault software.
DB2 High Availability Disaster - DB2 Automated Failover Using the IBM Tivoli System Automation (TSA) with a Virtual IP Address
Before You Begin
Make sure that you have configured all databases according to the IBM HADR specifications.
Procedure
-
Install the DB2 Agent on the primary database server and standby database server. To install DB2 iDA on participating nodes, you need to follow step1 and step2 from Getting Started with the DB2 Agent.
Note
you must use the same Commvault installation path on the primary database server and the standby database server.
-
Configure the cluster server on the CommServe and add the primary database server and standby database server. For information on the cluster configuration, see Cluster Configuration - Overview.
Use the following values when you configure the cluster.
-
Option
Value
New Unix Cluster Client dialog box, Client Name box
The name of the virtual client.
New Unix Cluster Client dialog box, Host Name box
The full name of the virtual client.
Advanced Client Properties dialog box, Cluster Configuration tab, Nodes tab, Available box
The DB2 HADR clients.
Advanced Client Properties dialog box, Cluster Configuration tab, Agents tab, Available box
DB2 Agent
Advanced Client Properties dialog box, Job Configuration tab, Job Results Directory box
The full path to job results directory.
Note
The directory must exist on all DB2 nodes and Commvault must own the directory.
-
On the cluster server client, add the following for the primary database:
-
Note
Do not configure the same database on physical clients.
-
Optimize the MediaAgents that are associated with the storage policy for concurrent LAN backups. For more information, see Configuration - Optimize a MediaAgent for Concurrent LAN Backups. If you cannot enable the MediaAgents, then configure a persistent pipeline for DB2 HADR operations.For more information, see Configuring a Persistent Pipeline for DB2 HADR Operations.
-
If you have a CommServe firewall, then run the SetClientProp.sql qScript on the CommServe computer command line from the software_installation_path\Base folder:
qoperation execscript -sn SetClientProp.sql -si c=virtualClientName -si UsePhysicalnode=y
Example
C:\Program Files\CommVault\Simpana\Base>qoperation execscript -sn SetCLientProp.sql -si c=db2hadrVirtualClient -si UsePhysicalNode=Y
-
Perform an online backup.
-
To perform a CommCell Console backup, see Performing DB2 HADR Backups.
-
To perform a command line backup, see Online Backups.
Note
For takeover scenarios, configure the cvclusternotify script.
-