
Activating the Passive Copy
LCR enables you to recover from corruption of the active copy of a storage group by activating the passive copy of the storage group. If the transaction logs in the active copy of the storage group are not corrupted, no data loss should occur. If the transaction logs from the active copy of the storage group are not available, the recovery can only bring the storage group back to a point in time that is consistent with the last non-corrupted set of changes that the passive copy received. An additional constraint is that there cannot be any missing or corrupted production transaction log files earlier than that point.
Recovery from production storage group corruption is easiest when NTFS file system volume mount points are used for storing the LCR copy. By using volume mount points, you can graft, or mount, a target partition into a folder on another physical disk. Volume mount points are transparent to programs, including Exchange 2007.
Corruption of a transaction log or database file that is part of an LCR copy can be detected either by errors produced through a replay operation or a consistency check. The corrective action to be taken, if any, depends on the nature of the corruption:
-
If the corruption occurs in a log file that has already been replayed, the corrupt log file can be safely ignored. However, if you are taking file system-based backups of the LCR copy, you should first delete all log files that have been replayed.
-
If the corruption is in an active copy's log file that has not been replayed, you must reseed the LCR storage group. Exchange attempts to again copy a log file if it detects corruption. If the automatic copy does not resolve the corruption, you must reseed the storage group. Additionally, we recommend that you verify the integrity of the source transaction logs and database file. Verifying Exchange data files requires that the files be offline and unavailable for access by users.
-
If the database is corrupted, you must reseed the storage group.
For detailed steps that explain how to activate the passive copy of a database, see How to Activate the Passive Copy of a Database.
Assessing Replication Status at the Time of Corruption
After a failure or corruption of a database copy, you need to assess if you want to immediately continue operation using the passive copy. LCR provides key pieces of information to aid in this decision:
-
Health of the copy at the time of failure
-
Replay and copy queues at the time of the failure
-
Last inspected log time at the time of the failure
You can obtain the information by using the Get-StorageGroupCopyStatus cmdlet. For detailed steps about how to obtain this information, see How to View the Status of a Local Continuous Replication Copy.
Note: |
|---|
|
The last inspected log time provides information about the most recently seen changes from the active copy. This information can help you detect failures that occur when the Microsoft Exchange Replication service is not started because the queue lengths are inaccurate when the Microsoft Exchange Replication service is stopped.
|
The copy queue length includes the best available information of the active copy at the time of failure. Based on this information and your assessment of the recovery time of the failed database, you must decide if the available copy is to be mounted:
-
If the replay queue length is significant, that means that recovery might take time but is not an indicator that significant data loss will be experienced.
-
If the copy queue length is significant, that means a significant number of logs have been lost. If the database is mounted, it will be restored to a time frame of approximately the last copied log (also provided by the Get-StorageGroupCopyStatus cmdlet).
-
If the last inspected log time is significantly prior to the time of the failure, it is likely that the Microsoft Exchange Replication service is stopped and other queue information is inaccurate.
Note: |
|---|
|
Due to latencies and communication failures, it is possible for copy queue length to be inaccurate, because the current state of the active copy is asynchronously updated. In general, the inaccuracy is limited to activities around a minute before and after the failure.
|
Note: |
|---|
|
A failed database cannot be used to seed a passive copy.
|