Restoring a replica from backup

This topic provides instructions for restoring a replica from a backup.
About this task
To restore a replica from backup:
  1. Use your vendor database tools to restore a copy of the replicated database from backup.
  2. Use the restorereplica command to start the restoration procedure.

    This command places a special lock on the replica. Between this point and the completion of step 6, the syncreplica –import command adjusts the lock temporarily to permit application of the update, and then restores the full lock. During this time, you can only modify the replica by using the syncreplica –import command.

  3. Verify that all update packets have been processed at their destination replicas.
  4. At the restored replica, generate update packets for all other replicas in the family, and send the packets to the sibling replicas.

    You can send the packets using your standard synchronization method. To recover the replica more quickly, create the packets with syncreplica –export –fship.

    Because your replica is in the special restoration state, each outgoing update packet includes a special request for a return acknowledgment. It also includes your replica’s old epoch numbers, which are now its current epoch numbers, by virtue of the restoration in step 1. Each destination replica uses these numbers to roll back its row for your replica.

  5. Wait for each replica in the family to send an update packet to the restored replica. As in step 4, you can accelerate the creation and delivery of the update packets.

    Collectively, these update packets include all the operations that occurred between the time of the backup and the last update that your replica sent before its storage was lost, including operations that originated at your replica. (The packets also include more recent operations that originated at other replicas.) Each incoming packet also includes the requested return acknowledgment from the sending host.

  6. Process the incoming update packets by using the syncreplica –import command. When your replica has received return acknowledgments from all other replicas in its family, syncreplica –import reports that restoration of the replica is complete:
    Database <name> is unlocked after restoration.

Development work in the replica can now resume.


Feedback