Performing an external backup of an RS secondary server
Before you begin
To perform an external backup of an RS secondary server, the STOP_APPLY configuration parameter must not be enabled. If STOP_APPLY is enabled, an error is returned. The server switches to STOP_APPLY mode when a backup is performed on an RS secondary. After the archive checkpoint is processed, the RS secondary server stops applying logical logs, but continues receiving logs from the primary server.
To perform an external backup of an RS secondary server that has a DELAY_APPLY configuration parameter value greater than 0, it might be necessary to temporarily decrease the parameter value. Performing the backup requires that the RSS process a checkpoint in the logical log, and if no checkpoint is observed within the amount of time that is specified by the onmode -c block timeout command in the second step of the following procedure, a backup is not permitted. The DELAY_APPLY configuration parameter can be decreased by the onmode -wf DELAY_APPLY=setting command.
About this task
The primary database server must be online or in quiescent mode during an external backup.
To perform an external backup:
Procedure
Results
After the backup completes, if the DELAY_APPLY setting on the RS secondary server was decreased, it can be set to its original value by the onmode -wf DELAY_APPLY=setting command. After an external backup, you can perform an external restore if a disk or the whole system fails.