How to Verify a Standby Continuous Replication Copy

Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.

 

Applies to: Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3

This topic explains how to use the command-line version of the Microsoft Volume Shadow Copy Service tool (VSSAdmin.exe) and the Exchange Server Database Utilities (Eseutil.exe) to perform a physical consistency check against the transaction logs and databases that are part of a standby continuous replication (SCR) target.

Before You Begin

To perform this procedure, the account you use must be delegated the Exchange Server Administrator permissions for the SCR source and target servers. For more information about permissions, delegating roles, and the rights that are required to administer Microsoft Exchange Server 2007, see Permission Considerations.

Before you run a physical consistency check against a database, you must temporarily suspend all transaction log replay for the storage group that contains the files to be verified.

Procedure

To verify the database and transaction log files for an SCR-enabled storage group

  1. Suspend all transaction log replay activity for the storage group volume containing the databases to be verified. To do this:

    1. Open the Exchange Management Shell.

    2. Run the following command to suspend replication:

      Suspend-StorageGroupCopy -Identity <Server\StorageGroup> 
      -StandbyMachine <NameofSCRTargetComputer> -SuspendComment <Comment>
      
  2. Open a Command Prompt window, and navigate to the %Windows%\System32 folder. Run the following command to create a shadow copy of the volume containing the databases to be verified:

    Vssadmin create shadow /for=<Volume>
    

    Note

    The <Volume> parameter must be a local drive letter or a drive letter representing a volume mount point.

  3. Resume transaction log and replay activity for all databases on the volume. To do this:

    1. Open the Exchange Management Shell.

    2. Run the following command to resume replication:

      Resume-StorageGroupCopy -Identity <Server\StorageGroup> 
      -StandbyMachine <NameofSCRTargetComputer>
      
  4. In the Command Prompt window, change to the directory that contains Eseutil.exe. By default, Eseutil.exe is located in %ProgramFiles%\Microsoft\Exchange Server\bin.

  5. To verify the physical integrity of the database, use the following command:

    Eseutil /k /p20 <Path for VSS Shadow Copy of database>
    
  6. Depending upon the results that Eseutil.exe returns, do either of the following:

    • If Eseutil.exe determines that physical corruption is present, you must disable SCR, remove the corrupt files, and re-enable SCR for the storage group.

    • If Eseutil.exe does not report any problems with the verified files, proceed to Step 7.

  7. Delete the shadow copy using the following command:

    Vssadmin delete shadows /For=<Volume>
    

For More Information

For detailed steps that explain how to suspend and resume transaction log replay for an SCR-enabled storage group, see How to Suspend Changes to a Standby Continuous Replication Target and How to Resume Replication to a Standby Continuous Replication Target.

For more information about VSSAdmin.exe, see Vssadmin.