Before configuring disaster recovery (DR) services, check the database environments of the production end and the DR end where DB2 databases reside, and the storage end environment. If the database environments do not meet requirements, modify database configurations.
Check the database environments of the production end and the DR end where DB2 databases reside.
When the DB2 RHCS is used at the production end and the logical volume is managed in CLVM, a single machine is used at the DR end is not supported.
eReplication Agent starts to protect data consistency between DB2 databases only after you have configured environment variables for DB2 databases at the production end respectively. You are advised to configure environment variables before installing the eReplication Agent. If you have installed the eReplication Agent, restart it after configuring environment variables.
Before configuring environment variables, check the default shell type of user rdadmin on eReplication Agent.
This document uses shell type bash in AIX to modify the .profile file as an example.
After you run this command, the system continues to run when no operation is performed, resulting a risk. For security purposes, you are advised to run exit to exit the system after completing your operations.
DB2_HOME=/home/db2inst1/sqllib PATH=$PATH:$DB2_HOME/bin:/usr/sbin:/sbin DB2INSTANCE=db2inst1 INSTHOME=/home/db2inst1 export DB2_HOME PATH DB2INSTANCE INSTHOME
In Linux, you need to add VCS script path in PATH variable, for example PATH=$PATH:$DB2_HOME/bin:/usr/sbin:/opt/VRTS/bin:/sbin.
Variable |
Value |
Example |
|---|---|---|
DB2_HOME |
Installation directory of a DB2 instance |
DB2_HOME=/home/db2inst1/sqllib |
PATH |
Indicates the bin folder under the home directory of a DB2 instance user |
PATH=$PATH:$DB2_HOME/bin:/usr/sbin:/sbin |
DB2INSTANCE |
Name of a DB2 instance |
DB2INSTANCE= db2inst1 |
INSTHOME |
Home directory of a DB2 instance user |
INSTHOME=/home/db2inst1 |
eReplication of the current version supports DR for DB2 databases on AIX, Linux and HP-UX. To enable eReplication to perform DR for DB2 databases, the DB2 databases must meet the following requirements:
If the database environments at the DR end and production end are not the same, the user should deal with it to make sure that the DR end and production end have the same database environments.
Table 2 describes the lists configuration requirements.
Check Item |
Configuration Requirement |
|---|---|
Installation |
The operating system and its edition run by DB2 databases are the same as that at production end. |
The versions of DB2 databases are the same as that at the production end. |
|
Configuration |
The cluster where the DB2 databases reside at the DR end has the same configuration as that at the production end. The two clusters must have the same resource configuration and dependency among resources. |
The environment variable configurations are the same as that at the production end. |
|
Instance |
The instance names, user names, and passwords of databases are the same as that at the production end. |
The user groups to which users of DB2 database instances belong are the same as that at the production end. |
|
The installation directories of DB2 instances at the DR end reside on local disks or independent storage devices. |
|
The DB2 databases to be recovered are created under DB2 instances at the DR end and ensure that the created databases meet the following requirements:
|
After checking the database environments, close databases on the DR end before creating a recovery plan.
Check the HyperMetro between the production end and the DR end. Before using HyperMetro to protect objects at the production end, ensure that the HyperMetro is normal between the production end and the DR end.