Upgrading by re-initializing Db2 HADR databases
You can disable HADR to upgrade the Db2 primary and standby database instances.
Before you begin
You must stop and disable HADR on your primary and standby database instances:
- On the primary and standby database instances, run the following command from the Db2 engine pod to stop
HADR:
manage_hadr -stop - On the primary HADR database instances, Exec into the Db2 engine pod and remove the /mnt/blumeta0/home/db2inst1/governor/db2.yml file to ensure that automation does not detect it as an HADR instance.
- If you have configured HADR using a Db2uHADR custom resource (CR), then run the following
command to delete the
CR:
oc delete db2uhadr <db2uhadr instance name>
Transition standby database instances to Active state:
- On the standby database instances, Exec into the Db2 engine pod and run the following
command:
su - db2inst1 -c "db2 rollforward db <DBNAME> complete" - On the standby database instances, Exec into the Db2 engine pod and run the following
command:
su - db2inst1 -c "db2 connect to <DBNAME>