Tuesday, 22 December 2015

Exchange 2016 Database Availability Group (Part 2)

Introduction


In part 1, we configured the MAPI and REPLICATION networks and we then set up the Database Availability Group.

In this next part, we’ll configure our mailbox databases to be highly available by adding mailbox database copies.

To read other parts in this series go to:


Lab environment


Let’s quickly confirm the mailbox databases that are already set up. To do this, I’m running the command below:

Get-MailboxDatabase | sort Name

image

We have four mailbox databses: MDB01, MDB02, MDB03 and MDB04 and only a single copy of each mailbox database.

MDB01 and MDB02 are mounted on LITEX01. MDB03 and MDB04 are mounted on LITEX02. We need to create copies so that each mailbox database has a copy on each server.


Add a mailbox database copy


To add a mailbox database copy, we can use the Exchange Admin Center (EAC) or PowerShell.


To add a mailbox database copy using the EAC


Log into the EAC and click on servers in the left pane then click on databases at the top:

image

Click on a mailbox database, click “…” then click “add database copy”:

image

Here we’re presented with the add mailbox database copy wizard which prompts us for the mailbox server:

image

Click on browse and select the mailbox server you want to add a database copy to then click on OK:

image

Select the activation preference number. In the case of a failover, Exchange will failover the mailbox database to the copy that has the lowest activation preference number, assuming that it is in sync and other checks pass. Here we’ll accept the default and select an activation preference of 2:

image

Click Save and you should now see that the database is seeded to LITEX02:

image

Our mailbox database copy is now added:

image

image

Repeat these steps for each mailbox database that you want to make highly available.

To add a mailbox database copy using PowerShell


Use this command to add a mailbox database copy for database MDB02 onto mailbox server LITEX02:

Add-MailboxDatabaseCopy -Identity MDB02 -MailboxServer LITEX02

image

Repeat these steps for each mailbox database that you want to make highly available.

Get mailbox database copies


Once you’ve added all your mailbox database copies, you can confirm the below:

  • The active copies are mounted on the correct servers
  • The passive copies are healthy
  • The copy queue length is 0
  • The replay queue length is 0
  • The Content Index is healthy


To do this, run the Get-MailboxDatabaseCopyStatus command on each server:

Get-MailboxDatabaseCopyStatus –Server litex01 | sort name

image

Get-MailboxDatabaseCopyStatus –Server litex02 | sort name

image

Here we see that all our checks come back good.


Conclusion


In this post, we’ve gone through how to set up our mailbox databases as highly available by adding mailbox database copies so we have at least two copies of each mailbox database should a server fail. This concludes our DAG setup. 

For further reading, see this post for useful information on how to troubleshoot and test your DAG. 

3 comments:

  1. Sorry... Its

    Since exchange 2016 creates IP less DAG

    ReplyDelete
  2. Thanks a lot for this , my lab works perfect!!.

    ReplyDelete
  3. Thanks a lot for this , my lab works perfect!!.

    ReplyDelete