Starting an HADR configuration for Db2

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

Before you begin

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.