Thursday, November 1

Standby Continuous Replication Steps

Thanks for drop by on my track session during OCS Launch 31 Oct. Some of you actually asking for the step on the SCR demo.

Here you go. To enable SCR, you will need to have:
1) Both source and target to be Exchange 2007 SP1
2) One store per storage group

Source Server Name: DC1
Target Server Name: W2K8-E2
Source SCR Storage Group Name: SG1, Store Name: SG1.edb
Target SCR Storage Group created SG1Port, Store Name:Mbx1Port

For the source SCR,
# **** This is to enable SCR to SG1 ****
Enable-StorageGroupCopy SG1 -StandbyMachine W2k8-E2 -ReplayLagTime 0.0:0:0#
**** This is to check the SCR Status in W2008 ****
Get-StorageGroupCopyStatus SG1 -StandbyMachine W2k8-E2

For the target SCR,
# **** We will now go back to the production Server and Simulate Failure ****
# **** Now, time to Restore the enabled SCR ****
Restore-StorageGroupCopy DC1\SG1 -StandbyMachine W2k8-E2 -force:$true
# **** Now, we will move DB portability DB ****
Move-StorageGroupPath W2k8-E2\SG1PORT -SystemFolderPath C:\SG1 -LogFolderPath c:\SG1 -ConfigurationOnly -Confirm:$falseMove-databasepath W2k8-E2\SG1PORT\Mbx1Port -EdbfilePath C:\SG1\SG1.edb -ConfigurationOnly -Confirm:$false
# **** Allow the Database to be overwritten ****
Set-Mailboxdatabase W2k8-E2\SG1PORT\MBX1PORT -AllowFileRestore:$true
# **** Mount the Database ****
Mount-Database W2k8-E2\SG1PORT\Mbx1Port -Confirm:$false
# **** Update Mailbox configuration in AD to map to the DB portability copy ****
get-mailbox -database DC1\SG1\SG1 where {$_.objectClass -NotMatch '(SystemAttendantMailboxExOleDbSystemMailbox)'} Move-Mailbox -ConfigurationOnly -TargetDatabase W2k8-E2\SG1Port\Mbx1Port -Confirm:$false

There you go. You might want to put into a powershell script and rename it to .ps1

Happy SCRing