How to Verify a Local 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, Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3

This topic explains how to use the Exchange Management Shell, 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 local continuous replication (LCR) target.

Before You Begin

To perform this procedure, the account you use must be delegated the Exchange Server Administrator permissions for the server containing the storage group. 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 an LCR copy

  1. Suspend all transaction log replay activity for the storage group volume containing the database 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> 
      -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>
      
  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 LCR, remove the corrupt files, and re-enable LCR 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>
    

In the procedure, the log file prefix used by a storage group is displayed on the General tab of the Properties dialog box of the storage group object in the Exchange Management Console. The path and file name for each LCR database file is displayed on the Database tab of the Properties dialog box of the database object in the Exchange Management Console.

For More Information

For more information about viewing LCR configuration information, see How to View Local Continuous Replication Configuration Settings.