Starting an HADR configuration

To start a high availability disaster recovery (HADR) configuration on Db2®, use the manage_hadr tool.

Before you begin

Important: When you start an HADR configuration, the backup images that are in the ${BACKUPDIR} path are deleted. To preserve existing backup images, move the images to a subdirectory under ${BACKUPDIR}. For example, ${BACKUPDIR}/backup_001.

Procedure

  1. Start HADR on the standby database pod:
    Note: Use -start_as standby for both the principal and auxiliary standby databases.
    oc exec -it db2oltp-1573144443-db2u-0 -- manage_hadr -start_as standby
    
  2. Start HADR on the primary database pod:
    oc exec -it db2oltp-1573141715-db2u-0 -- manage_hadr -start_as primary
    

What to do next

Connect clients to the HADR configuration.