Upgrading by re-initializing HADR deployments
You can disable HADR to upgrade the Db2 or Db2 Warehouse primary and standby database instances and re-enabling it.
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 manage_hadr -stop command from the Db2 engine pod to stop HADR.
- On the primary database instances, Exec into the Db2 engine pod and remove the /mnt/blumeta0/home/db2inst1/governor/db2.yml 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 oc delete db2uhadr <db2uhadr instance name> command to delete the CR.
Transition standby database instances to Active state:
- On the standby database instances, Exec into the Db2 engine pod and run the su - db2inst1 -c "db2 rollforward db <DBNAME> complete" command.
- On the standby database instances, Exec into the Db2 engine pod and run the su - db2inst1 -c "db2 connect to <DBNAME> command to ensure you can connect to your database.