Thursday, 29 September 2011

Part 8 - Setting up DAG on Exchange 2010 setup Multi-Tenancy

DAG is Exchange 2010 high availablility mode. This means that if a database corrupts or the server dies the flow of mail will not stop.

Before you do this you must know that the Windows server 2008 needs to be at least Enterprise Edition.

Also if you are planning on using more than 5 databases you will need Exchange Enterprise Edition also which hosts 100 databases.

So lets get started.

Use the cmdlet below and change the text in red to match your organisation.

New-DatabaseAvailabilityGroup -Name DAGname -WitnessServer Servername -WitnessDirectory  -WitnessDirectory C:
\Directoryonwitnessserver -DatabaseAvailabilityGroupIPAddresses free IP on the samevlan)

Add-DatabaseAvailabilityGroupServer DAGname -MailboxServer Firstmailboxserver

Add-DatabaseAvailabilityGroupServer DAGname -MailboxServer Secondboxserver

The above setups DAG and adds the 2 servers to it.

The below cmdlet copy's the database to server 2 and resumes it's ready for DAG

Add-MailboxDatabaseCopy -Identity 'Mailbox Database name' -MailboxServer 'Secondmailboxserver' -ActivationPreference '2'
Resume-MailboxDatabaseCopy -Identity 'Mailbox Database name\Secondboxserver'

Check the replication state of the server with:

Test-ReplicationHealth 'Firstmailboxserver'
Get-MailboxDatabaseCopyStatus -Identity 'Mailbox Database name'

Do the same as above but Visa versa for the other server.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.