setup_hadr

This command sets up HADR in an SMP environment.

As a user with host operating system root authority, issue the following command on the primary node:
docker exec -it Db2wh setup_hadr {-primary|-standby} -remote hostname:IP_address {-use_backup|-use_snapshot} [-reinit]
-primary|-standby
Specifies whether you are setting up HADR on the primary or the standby node.
-remote hostname:IP_address
Specifies the remote host. If you are running the command on the primary node, specify the host name and IP address of the standby node. If you are running the command on the standby node, specify the host name and IP address of the primary node.
-use_backup|-use_snapshot
Specifies how to initialize the standby node: by using either a database backup or a snapshot copy.
-reinit
Reinitializes HADR. If you reinitialize HADR on the primary node, you must reinitialize HADR on the standby node, too.