Backing Up and Restoring a Database Following Local Disk Failover
Following a failure of a host that contains a master forest configured for local disk failover, the database attached to the master forest fails over to the replica forest. This section describes how to back up the surviving replica forest data and restore the data after the host containing the master forest has been restored. In the example procedure described in this section, the Documents
database is attached to the Documents-master
forest on one host and is configured for local-disk failover to the Documents-rep
forest on another host.
For details on how to configure local disk failover, see the Configuring Local-Disk Failover for a Forest section in the Scalability, Availability, and Failover Guide.
The procedure in this section is based on this scenario:
Before the failure, the
Documents-master
forest is in theopen
state and theDocuments-rep
forest is in thesync replicating
state:A failure occurs on the host containing the
Documents-master
forest and theDocuments
database automatically fails over to theDocuments-rep
forest. TheDocuments-rep
forest is now in theopen
state and servicing updates on behalf of theDocuments
database.
Note
The configuration of the Documents
database remains unchanged from before the failover:
To back up the Documents-rep
forest, follow these steps:
Note
Both the backup and restore procedures must be done on the host that contains the Documents-rep
forest.
On the host machine that contains the
Documents-rep
forest, back up theDocuments
database. LeaveInclude Replica Forests
set totrue
.Select only the
Documents-rep
forest for backup.Once the host containing the
Documents-master
forest is restored, theDocuments-master
forest becomes the replica forest and receives replicated updates from theDocuments-rep
forest.
Before you can restore data from the Documents-rep
forest that you backed up after the failover, you must reconfigure local disk failover from the Documents-rep
forest to the Documents-master
forest, so that the Documents-master
forest is the new replica forest:
In the configuration page
Documents-master
forest, disable replication toDocuments-rep
forest.Navigate to the Forests configuration page for the
Documents
database. Unattach theDocuments-master
forest and attach theDocuments-rep
forest.Navigate to the configuration page for the
Documents-rep
forest and select theDocuments-master
forest for local-disk failover.On the host containing the
Documents-rep
forest, confirm that the forest is in theopen
state and restore theDocuments
database from the backup taken after the failover.Make sure only the
Documents-rep
forest is selected for restoration.Once the
Documents-rep
forest is restored, the updates are replicated to theDocuments-master
forest.