Saturday, April 17, 2010

Exchange 2007 SCR Step by Step Implementation

SCR (Standby Continuous Replication)

As its name implies, SCR is designed for scenarios that use or enable the use of standby recovery servers. SCR extends the existing continuous replication features and enables new data availability scenarios for Exchange 2007 Mailbox servers. SCR uses the same log shipping and replay technology used by LCR and CCR to provide added deployment options and configurations by providing the administrator with the ability to create additional storage group copies. SCR can be used to replicate data from stand-alone Mailbox servers and from clustered mailbox servers.

Basic Requirement

1. Servers role like HUB/CAS/MAILBOX should be available into DR as it already have into production
SCR (Standby Continuous Replication)

As its name implies, SCR is designed for scenarios that use or enable the use of standby recovery servers. SCR extends the existing continuous replication features and enables new data availability scenarios for Exchange 2007 Mailbox servers. SCR uses the same log shipping and replay technology used by LCR and CCR to provide added deployment options and configurations by providing the administrator with the ability to create additional storage group copies. SCR can be used to replicate data from stand-alone Mailbox servers and from clustered mailbox servers.

Basic Requirement

1. Servers role like HUB/CAS/MAILBOX should be available into DR as it already have into production
2. the paths must be the same for both machines
– If source server is c:\Server1\Data and C:\Server1\Logs then these paths must be available on the target server.
3. There is a hard coded 50 log lag between the Source and Target
– by default there is a 24 hour replay time which is configurable.
4. There can be only 1 database per storage group
5. The target server must have Exchange mailbox role installed, if this is a cluster it will be install as a passive node.
6. The target server must be in the same Active Directory domain
7. Active Directory site should be different based on location
8. AD Site connector should be created between two sites
9. Make sure that outgoing mail relay needs to be configured into DR site
10 . N/W Bandwidth should be considered as per requirement 2 to 4 Mbps enough
11. maximum 4 server can be configured for replication

Step by Step commands

1. Enable-Storagegroupcopy sourceserver\Storage group -StandbyMachine TargetServer -ReplayLagTime 0:0:0

Run this command on the target server (DR server). You will not be able to folders created on DR servers across WAN link where database size is large

Note: It might be because of AD site replication duration you will not be able to expected information asap so run Replmon everytime to syncronize directory. Add domain servers into Replmon and right with syncronize server with different AD site (domain controller)


2. Get-storagegroupcopystatus sourceserver\SSG –StandbyMachine TargetMachine

Always run Get-storagegroupcopystatus command to confirm replication status. It will be failed or supspended so no need to worry

3. There are
You can perform seeding in Microsoft Exchange Server 2007 by using the following methods:

a) Automatic seeding : An automatic seed produces a copy of a storage group's database on the target. Automatic seeding requires that log1 be available on the source. Automatic seeding only occurs during the creation of a new server, creation of a new storage group and database, or on a database that has never been backed up.

b)Seeding using the Update-StorageGroupCopy cmdlet You can use the Update-StorageGroupCopy cmdlet in the Exchange Management Shell to seed a storage group copy.

c)Manually copying the offline database This process dismounts the database and copies the database file to the same location on the passive node. If you use this method, there will be an interruption in service because the procedure requires you to dismount the database.

Automatic seeding not required to run
Update-StorageGroupCopy. It will automatically create all data and log file
If its not happening second method always userfull

4. Suspend-StorageGroupCopy sourceserver\Storagegroup -StandbyMachine Target Sever
Click yes to suspend

5 . Update-StorageGroupCopy hub-cas\SSG -StandbyMachine DRE2K7
You will see progress of data copy after performing this command so wait for some time apprx 24 GB across 2 mbps link will take 3 to 4 days . if you are happy with this go for manually offline data copy which is not recommended because services will be stopped for that particular domain

After this you will be able to see the database folder into DR mailbox server

6. Resume-StorageGroupCopy hub-cas\SSG -StandbyMachine DRE2K7
After this you will be able to see the log folder into DR mailbox server
Run - Get-storagegroupcopystatus sourceserver\SSG –StandbyMachine TargetMachine to check the status

7.
Create new storage group into DR site with database then delete the contains of the folder after dismounting
database. I
8. Dismount production storage group where SCR replication enabled.
9. Restore-Storagegroupcopy SourceServer\Storagegroup\database -StandbyMachine TargetServer
This will make you available Data to mount into DR server
10. Run eseutil /mh to check database status on the DR server
11. If you found Dirty Shutdown then run
Run soft recovery command : eseutil /r e02 (e02 - you will this details on the storage properties)
12. Again run eseutil /mh to check status and you wil find clean shutdown. In case able see error message run again following command


ESEUTIL /R E02 (Zero Zero or whatever the logs file leads with) /l D:\SCR\SG2\Logs /S D:\SCR\SG2\Data (Ex - logs and database location)

ESEUTIL /R E02 (Zero Zero or whatever the logs file leads with) /l D:\SCR\SG2\Logs /S D:\SCR\SG2\Data /a

13. Check again status using ESEUTIL /MH

14. Use move-storagegrouppath
15 . Use Move-DatabasePath
16. Set-Mailboxdatabase SCRTARGET\RECOVER\RECOVERDB -AllowFileRestore:$true
17. Then mount DR server storage group
18. Run -->
Get-Mailbox -Database hub-cas\SSG\MBX-SSG |where {$_.objectClass -NotMatch '(SystemAttendantMailbox |ExOleDBSystemMailbox)'}| Move-Mailbox -ConfigurationOnly -TargetDatabase DRE2K7\DRSSG\DRMBX -Confirm:$false


Now access mailbox and you will find its working with successfull DR using SCR

No comments:

Post a Comment