Upgrading Db2 or Db2 Warehouse HADR deployments- Failure scenarios
When upgrading Db2 or Db2 Warehouse HADR deployments, may come across some failure scenarios on your primary or standby database instances.
Procedure
- On your primary database instance, the db2ckupgrade commands runs the Kubernetes upgrade job. If the upgrade job fails, review the logs in the ${SUPPORTDIR}/upgrade_update.log file to identify the issue.
- Exec into the Db2 engine pod as the db2inst1 user and run the db2_update_upgrade command to re-run the instance upgrade. If the re-run operation fails, you must failover to the standby instance by redirecting all your applications.
- Open a support case with IBM to review the primary database instance.
- If high availability is not available and you do not have access to your
primary and standby databases:
- Deploy a new Db2 instance for the version prior to your upgrade. For more information, see Deploying Db2 or Db2 Warehouse.
- Restore your database from a backup image. For more information, see Backing up and restoring Db2 or Db2 Warehouse.
- On the standby database instances, Run the manage_hadr -stop command from the Db2 engine pod to stop HADR.
- Run the su - db2inst1 -c "db2 rollforward db <DBNAME> complete" command to rollforward the database to complete. For more information, see ROLLFORWARD DATABASE command.
- Perform all the steps in Configuring and starting HADR.
- On your primary database instance, if the db2_update_upgrade --databases command fails, review the logs in the ${SUPPORTDIR}/upgrade_update.log file to identify the issue.
- Exec into the Db2 engine pod as the db2inst1 user and run the db2_update_upgrade --databases command to re-run the database upgrade. If the re-run operation fails, you must failover to the standby instance by redirecting all your applications.
- Follow instructions in Step 3 and Step 4.
- On your primary database instance, if the db2_update_upgrade --post-upgrade command fails, review the logs in the ${SUPPORTDIR}/upgrade_update.log file to identify the issue.
- Exec into the Db2 engine pod as the db2inst1 user and run the db2_update_upgrade --post-upgrade command to re-run the instance upgrade. If the re-run operation fails, you must failover to the standby instance by redirecting all your applications.
- Follow instructions in Step 3 and Step 4.
- On your standby database instance, the db2ckupgrade commands runs the Kubernetes upgrade job. If the upgrade job fails, review the logs in the ${SUPPORTDIR}/upgrade_update.log file to identify the issue.
- Exec into the Db2 engine pod as the db2inst1 user and run the db2_update_upgrade command to re-run the instance upgrade. If the re-run operation fails, you must failover to the standby instance by redirecting all your applications.
- Open a support case with IBM to review the standby database instance.
- If high availability is not available and you do not have access to your primary and
standby databases:
- Deploy a new Db2 instance for version s12.1.0.0. For more information, see Deploying Db2 or Db2 Warehouse.
- On the primary database instances, Run the manage_hadr -stop command from the Db2 engine pod to stop HADR.
- Run the su - db2inst1 -c "db2 rollforward db <DBNAME> complete" command to rollforward the database to complete. For more information, see ROLLFORWARD DATABASE command.
- Perform all the steps in Configuring and starting HADR.
- On your standby database instance, if the db2_update_upgrade --databases command fails, review the logs in the ${SUPPORTDIR}/upgrade_update.log file to identify the issue.
- Exec into the Db2 engine pod as the db2inst1 user and run the db2_update_upgrade --databases command to re-run the database upgrade. If the re-run operation fails, you must failover to the standby instance by redirecting all your applications.
- Follow instructions in Step 3 and Step 4.
- On your standby database instance, if the db2_update_upgrade --post-upgrade command fails, review the logs in the ${SUPPORTDIR}/upgrade_update.log file to identify the issue.
- Exec into the Db2 engine pod as the db2inst1 user and run the db2_update_upgrade --post-upgrade command to re-run the instance upgrade. If the re-run operation fails, you must failover to the standby instance by redirecting all your applications.
- Follow instructions in Step 3 and Step 4.