Initializing HDR with an external backup and restore

About this task

You can use external backups to initialize High-Availability Data Replication (HDR).

To initialize HDR with an external backup and restore:

Procedure

  1. Block the source database server with the onmode -c block command.
  2. Externally back up all chunks on the source database server.
  3. When the backup completes, unblock the source database server with the onmode -c unblock command.
  4. Make the source database server the primary server with the following command: onmode -d primary secondary_servername
  5. On the target database server, restore the data from the external backup with a copy or file-backup program.
  6. On the target database server, restore the external backup of all chunks with the onbar -r -e -p command.
    On HDR, secondary server can restore only level-0 archives.
  7. Make the target database server the secondary server with the following command: onmode -d secondary primary_servername
  8. If the logical-log records written to the primary database server since step 1 still reside on the primary database server disk, the secondary database server reads these records to perform the logical recovery. Otherwise, perform the logical recovery with the onbar -r -l command.

    The database server operational messages appear in the message log on the primary and secondary servers.