Applies to: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007
Topic Last Modified: 2006-12-21

This topic explains how to seed a local continuous replication (LCR) copy. Seeding is the process in which a database, either a blank database or a copy of the production database, is added to the storage group copy. This becomes the baseline database for the copy. Depending on the situation, seeding can be an automatic process or a manual process that you initiate. You can use the procedure in situations where you determine that seeding is required. Seeding is required under the following conditions:

The size of the database that is being copied directly correlates to the amount of time it takes for the seeding task to complete. Seeding in Microsoft Exchange Server 2007 can be performed by any of the following methods:

This topic contains two procedures: One procedure that explains how to use the Update-StorageGroupCopy cmdlet to seed the LCR database folder, and another procedure that explains how to use the Exchange Management Console to dismount the databases for offline copying to the LCR database folder.

Before You Begin

Before you perform the following procedures, the account you use must be delegated the following:

  • Exchange Organization Administrator role

For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see Permission Considerations.

In addition, note that the Update-StorageGroupCopy cmdlet always copies the data to a locally available location. We recommend that you perform these procedures on the server containing the storage group copy that is being seeded.

Procedure

To seed an LCR database using the Exchange Management Shell

  1. Open the Exchange Management Shell.

  2. Suspend replication and replay activity using the following command:

    Copy Code
    Suspend-StorageGroupCopy -Identity:<Server>\<StorageGroupName> -SuspendComment:"Seeding"
    
  3. Remove database files, all log files, and checkpoint files from the passive node. Remove *.log, *.jrs, *.chk, and the .edb file from the LCR database folder. If you are confident that storage configuration is correct, this step can be accomplished by using the –DeleteExistingFiles option of the Update-StorageGroupCopy cmdlet.

  4. Seed the passive copy of the database using the following command:

    Copy Code
    Update-StorageGroupCopy -Identity:<Server>\<StorageGroupName>
    
    Note:
    The Update-StorageGroupCopy cmdlet automatically resumes replication to the storage group copy. If you do not want this behavior, run the cmdlet with the ManualResume parameter. For more information, see Update-StorageGroupCopy. To resume replication manually after running the Update-StorageGroupCopy cmdlet, run the following command:
    Copy Code
    Resume-StorageGroupCopy -Identity:<Server>\<StorageGroupName>
    
    Note:
    If you receive errors when you run the Update-StorageGroupCopy task, for more information see the errors table in this topic Update-StorageGroupCopy.
  5. After the Update-StorageGroupCopy command is complete and the storage group copy is resumed, verify that replication is working correctly by using the Get-StorageGroupCopyStatus cmdlet. For more information, see Get-StorageGroupCopyStatus.

    Important:
    It is critical that you make sure that log files are actually replicating and being replayed into the passive copy of the database.

To seed the database folder by dismounting the database and copying the database file using the Exchange Management Console

  1. Start the Exchange Management Console.

  2. Expand Microsoft Exchange, expand Server Configuration, and then select Mailbox.

  3. In the result pane, select the mailbox server that contains the database that you want to dismount.

  4. In the work pane, right-click the database that you want to dismount and select Dismount Database.

  5. Suspend replication on the dismounted database. Follow the steps for suspending replication that are shown in How to Halt Replication for a Storage Group Enabled for Local Continuous Replication.

  6. Remove database files, all log files, and checkpoint files from the passive node (LCR copy). Remove *.log, *.jrs, *.chk, and the .edb file from the LCR database folder.

  7. After dismounting the database and deleting existing files in the LCR database folder, copy the database file from the production database folder to the LCR database folder.

  8. After the database file has been copied from the production database folder to the LCR database folder, right-click the database and select Mount Database.

    Note:
    Seeding is complete when the file is copied. Client access is restored after the production database has been mounted.
  9. Resume replication for the dismounted LCR database. Follow the steps for resuming replication in this topic, How to Restart Replication for a Storage Group That is Enabled for LCR.

    Note:
    Seeding is now complete, and transaction log replication and replay will now occur automatically.

For More Information

For more information about managing your LCR environment, see Managing Local Continuous Replication.