Applies to: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1
Topic Last Modified: 2008-07-16

This topic contains two procedures. The first procedure explains how to use the Update-StorageGroupCopy cmdlet to seed the storage group copy. The second procedure explains how to use the Exchange Management Console to dismount a database for offline copying to the standby continuous replication (SCR) target database folder.

Seeding is the process of making available a baseline copy of a database on the SCR target. Depending on the situation, seeding can be an automatic process or a manual process in which you initiate the seeding. You can use the procedure in situations where you determine seeding is required. The size of the database being copied directly correlates to the amount of time it takes for the seeding task to complete.

Seeding is required under the following conditions:

You can perform seeding in Microsoft Exchange Server 2007 by using the following methods:

Before You Begin

To perform the following procedures on a computer that has the Mailbox server role installed, the account you use must be delegated the Exchange Server Administrator role and local Administrators group for the target server. For more information about permissions, delegating roles, and the rights that are required to administer Exchange 2007, see Permission Considerations.

Important:
If a database or the log files exist in the location where the SCR target copy will be stored, the database or log files must be removed prior to initiating the seeding operation.
Important:
The Update-StorageGroupCopy procedure must be run from the SCR target computer.

Procedure

To seed an SCR target by using the Exchange Management Shell

  1. Open the Exchange Management Shell.

  2. Suspend replication for the storage group by running the following command:

    Copy Code
    Suspend-StorageGroupCopy -Identity <Server\StorageGroupName> -StandbyMachine <SCRTargetMachine>
    
  3. Remove database files, all log files, and checkpoint files from the SCR target computer. Remove *.log, *.jrs, *.chk, and the .edb files from the configured directories (logs directory, the system files directory, and the directory hosting the database file).

  4. Run the following command to seed the SCR target storage group copy:

    Copy Code
    Update-StorageGroupCopy -Identity <Server\StorageGroupName> -StandbyMachine <SCRTargetMachine>
    
    Note:
    The Update-StorageGroupCopy command automatically resumes replication to the storage group copy. If you do not want the Update-StorageGroupCopy command to automatically resume replication, run the command with the ManualResume parameter. For more information, see Update-StorageGroupCopy. To resume replication manually after running the Update-StorageGroupCopy command, run the following command:
    Copy Code
    Resume-StorageGroupCopy -Identity:<Server>\<StorageGroupName> -StandbyMachine <SCRTargetMachine>
    
    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 to the SCR target is working correctly by using the Get-StorageGroupCopyStatus cmdlet with the StandbyMachine parameter.

    Important:
    Make sure that the data is actually flowing because a lack of data flow can make it look like operations are normal when they are not.

To manually seed the SCR Target by copying an offline database file

  1. Open the Exchange Management Console.

  2. 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 to be dismounted, and then select Dismount Database.

  5. Suspend replication on the dismounted database.

  6. After the replication is suspended on the database, copy the database file (.edb file) from the production database folder to the SCR target database folder.

    Note:
    The location of the production database folder can be found on either the Summary page or the Properties page.
  7. After the database file has been copied from the SCR source database folder to the SCR target database folder, right-click the dismounted database, and then select Mount Database.

    Note:
    Seeding is complete when the file is copied. Client access is restored after the production database has been mounted.
  8. Resume replication for the dismounted database.

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

For More Information

For more information about the Exchange Management Shell cmdlets described in this topic, see:

For more information about managing your SCR environment, see Managing Standby Continuous Replication.