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
- Block the source database server with the onmode -c block command.
- Externally back up all chunks on the source database server.
- When the backup completes, unblock the source database server with the onmode -c unblock command.
- Make the source database server the primary server with the following command: onmode -d primary secondary_servername
- On the target database server, restore the data from the external backup with a copy or file-backup program.
- 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.
- Make the target database server the secondary server with the following command: onmode -d secondary primary_servername
- 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.