Applies to: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007
Topic Last Modified: 2007-10-24

Seeding is the process of making available a baseline copy of a database on the current passive node. 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:

In Microsoft Exchange Server 2007 Service Pack 1 (SP1), the Update-StorageGroupCopy cmdlet has been extended to include a new parameter called DataHostNames. The DataHostNames parameter is used to specify which network should be used for seeding or reseeding. The value is a multivalued list of two names: either fully qualified domain names (FQDNs) or host names. One of these names must identify the active node.

Exchange 2007 SP1 also adds the ability to seed (without the DataHostNames parameter) using the Update Storage Group Copy Wizard in the Exchange Management Console. This wizard is available only from the Exchange Management Console on the passive node.

This topic contains three 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 CCR database folder. The third procedure explains how to use the Update Storage Group Copy Wizard.

Before You Begin

To perform the following procedures on a computer that has a clustered mailbox server 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.

The seed operation using the Update-StorageGroupCopy cmdlet can potentially result in an input/output (I/O) burden on the active storage group volumes. As a result, depending on the storage design of the cluster, this approach could affect client operations and possibly disrupt client access. Because of the potential impact on client access, we recommend that seeding operations using the Update-StorageGroupCopy cmdlet be scheduled for periods of lower client activity, where practicable, to minimize potential client impact. The delay needs to be considered, along with the exposure created by the unseeded passive copy.

When configuring a new CCR target from the active node, the seeding operation automatically creates the directories as well as the database file on the passive node, if they do not already exist. The location of the database and log files must be the same between servers in a cluster. Storage must be available and sufficient to store the database and logs.

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

Procedure

To use the Exchange Management Shell to seed the passive node

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

    Copy Code
    Suspend-StorageGroupCopy -Identity:<Server\StorageGroupName>
    
  2. Remove database files, all log files, and checkpoint files from the passive node. 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).

  3. Run the following command to seed the storage group copy on the passive node:

    Copy Code
    Update-StorageGroupCopy -Identity:<Server\StorageGroupName>
    
    Note:
    The TargetPath parameter is used to seed a database to a path that is different from the configured location for the passive copy of the database. For example, when you have each CCR node in a different physical location, you can use the TargetPath parameter to perform the update locally on the active node, and then use a copy utility that provides data compression to move the copy over the network to the passive node. If the Target Path parameter is not used, the Update-StorageGroupCopy cmdlet must be issued on the computer containing the passive copy.
    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>
    
    Note:
    If you receive errors when you run the Update-StorageGroupCopy task, for more information see the errors table in Update-StorageGroupCopy.
    Note:
    Run the following command to specify that a redundant network be used for the seeding operation:
    Copy Code
    Update-StorageGroupCopy -Identity:<Server\StorageGroupName> -DataHostNames:{Host1,Host2}
    
  4. 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.

    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 use the Exchange Management Console to manually seed the passive node 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. Follow the steps for suspending replication that are shown in How to Halt Replication for a Passive Copy in a CCR Environment.

  6. After the replication is suspended on the database, copy the database file (.edb file) from the production database folder to the CCR 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 production database folder to the CCR 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 CCR database. Follow the steps for resuming replication in the topic How to Restart Replication for a Passive Copy in a CCR Environment.

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

To use the Update Storage Group Copy wizard to seed the passive node

  1. Open the Exchange Management Console on the passive node.

  2. Expand Server Configuration, and then select Mailbox.

  3. In the result pane, select the Mailbox server that contains the storage group that you want to update.

  4. In the work pane, right-click the storage group to be updated, and then select Update Storage Group Copy. The Update Storage Group Copy Wizard appears.

  5. Verify that the correct storage group is listed in the Storage group name field. If the wrong storage group was selected, click Cancel, exit the wizard, and select the correct storage group. If there are any existing log files in the passive copy of the storage group that are not viable or needed for log replay after seeding has completed, select the Delete any existing log files in the target path check box. Click Next to continue.

  6. Click Update to seed the passive node with the database copy.

    Note:
    During the update process, you will be prompted to delete any obsolete checkpoint files that are found in the passive copy of the storage group, and any existing database file that is found in the passive copy of the storage group.
  7. After seeding has completed, click Finish to exit the wizard.

For More Information

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

For more information about managing your CCR environment, see Managing Cluster Continuous Replication.