Upgrading Db2 servers in HADR environments

Upgrading a single partition Db2 Version 10.5 Fix Pack 6 or earlier primary database or a Db2 pureScale® Version 10.5 Fix Pack 8 or earlier primary database, to Db2 Version 11.1 changes the database role from primary to standard. Upgrading a single partition Db2 Version 10.5 Fix Pack 6 or earlier standby database or a Db2 pureScale Version 10.5 Fix Pack 8 or earlier standby database to Db2 Version 11.1 is not supported because these databases are in rollforward pending state.

Because of these restrictions, upgrading an HADR environment to Db2 Version 11.1 requires that you stop HADR, upgrade your Db2 server where the primary database resides, and then reinitialize HADR.

Procedure

  1. Stop the HADR primary or standby databases. For more information, see Stopping DB2® High Availability Disaster Recovery (HADR).
  2. Upgrade the Db2 server where the primary database resides by using one of the following tasks:
  3. Reinitialize HADR database. For more information, see Initializing high availability disaster recovery (HADR). Before you activate your standby database, you must move the log files from the previous version of Db2 out of the log path of the new version of Db2. If you do not move the log files, Db2 might try to use the old files and fail to initialize.