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:
- When a SCR target is created.
- After a failure occurs in which data is lost and an SCR target
has become diverged or unrecoverable.
- When the system has detected a corrupted log file that cannot
be replayed into the SCR target database.
- After an offline defragmentation of the SCR source or target
database occurs.
- After a page scrubbing of the SCR source database occurs, and
you want to propagate the changes to the SCR target database.
- After the log generation sequence for the storage group has
been reset to 1.
You can perform seeding in Microsoft Exchange Server 2007 by using the following methods:
- Automatic seeding An automatic seed
produces a copy of a storage group's database on the SCR target.
Automatic seeding requires that the first log file generated by the
storage group be available on the SCR source.
- Seeding using the Update-StorageGroupCopy
cmdlet You can use the Update-StorageGroupCopy
cmdlet with the StandbyMachine parameter in the Exchange
Management Shell to seed an SCR target copy.
- Manually copying the offline
database This process dismounts the database
and copies the database file to the same location on the SCR target
computer. If you use this method, there will be an interruption in
service because the procedure requires you to dismount the
database.
Note: Some backup applications may support a mechanism to use a backup as the source of the seed database. Restores to an SCR target are not supported. If this option is supported, it must be explicitly and completely supported by the backup application.
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
-
Open the Exchange Management Shell.
-
Suspend replication for the storage group by running the following command:
Copy Code Suspend-StorageGroupCopy -Identity <Server\StorageGroupName> -StandbyMachine <SCRTargetMachine>
-
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).
-
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. -
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
-
Open the Exchange Management Console.
-
Expand Server Configuration, and then select Mailbox.
-
In the result pane, select the Mailbox server that contains the database that you want to dismount.
-
In the work pane, right-click the database to be dismounted, and then select Dismount Database.
-
Suspend replication on the dismounted database.
-
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. -
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. -
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.