Configure DAG in Exchange 2010

Spread the love




Database Availability Groups(DAGs) in Exchange 2010 is a Data Redundant, High Availability, site resilience and disaster recovery feature. Adding multiple mailbox servers to the DAG and replicating all mailbox databases with other member servers will provide high availability at the database level. You will need at least two Mailbox Servers to configure DAG in Exchange 2010. Upon failure the database switch-over time is less than 30 seconds which will significantly improve the overall uptime.

Configure DAG in Exchange 2010

Configuring DAG (Database Availability Group) in Exchange 2010 is a straightforward process.  Note following points before you start configuring DAG in Exchange 2010.

  • A unique name for DAG is required which can be not more than 15 characters long.
  • A dedicated additional IP address is recommended on the MAPI network subnet for the mailbox server.
  • Installing Mailbox server role on at least two Exchange Servers.
  • Exchange Server will automatically configure Hub Transport server as a witness server.
  • Based on your scenario you might want to configure an alternate witness server.

Our environment involves the following setup

  • MBG-CAS01: Running CAS and Hub Transport roles
  • MBG-CAS02: Running CAS and Hub Transport roles
  • MBG-MBX01: Running Mailbox Server role
  • MBG-MBX02: Running Mailbox Server role
  • DAG NAME: MBGDAG01

Below is the representation of our intended setup for configuring DAG:

Our Scenario

Step 1: Configure Secondary Network Adapters (Replication Network adapter) on Mailbox Servers

Let us start with configuring the NIC on both Mailbox servers. DAG will require network connectivity for both client access and replication. Although a single network adapter simply works, it is recommended to have a dedicated network adapter for replication and MAPI traffic. To do this open Network Connections by typing ncpa.cpl in Run (Win Key + R). Right click on the Replication Network Adapter (the one you have it as secondary) and click on Properties.
Network Properties
In the replication network adapter properties on both mailbox servers, selec Internet Protocol Version 4 (TCP/IP4) and click Properties.
Replication Network Properties
Now click on advanced button on the Internet Protocol Version 4 Properties page as shown below.
Internet Protocol
In the advanced TCP/IP settings navigate to DNS tab and uncheck the option “Register this connection’s address in DNS” as shown below and click OK.
Uncheck

Step 2: Configuring DAG from Exchange Management Console

From the Console Root Select Organization Configuration  →  Mailbox.  In the right panel click on Database Availability Tab.  From the action pane click on New Database Availability Group.



Creating DAG

Type in the DAG name MBGDAG01 and click New.

Create New Dag

Once the DAG is created successfully, the wizard will show the completion screen as shown below.

Now the DAG is ready we need to assign an IP Address, type the following command in the Exchange management shell.  This IP should be fromt he

set-DatabaseAvailabilityGroup -Identity MBGDAG01 -DatabaseAvailabilityGroupIpAddresses 10.10.10.103

You may note that we have not specified any witness server in the New Database Availability Group wizard.  However, Exchange will identify a Server with Hub Transport Role, select it as a witness server and creates the Witness Server folder automatically.  As you can see in the below screenshot, DAG witness file share is created on MBG-CAS01 ( running both CAS and Hub Transport Roles).

We have created the DAG successfully, now we will have to add member servers to the DAG.  From the Database Availability Group Tab right-click on the newly created DAG MBGDAG01 and click Manage Database Availability Group Membership.

new dag membership

Click on the +Add button to add member serves to the DAG.  As per my scenario I will be selecting both MBG-MBX01 and MBG-MBX02 and adding them to the DAG, and then Click Manage

add dag members1

Configuring DAG through Exchange Management Shell:

Create a new DAG by using following command

New-DatabaseAvailabilityGroup -Name MBGDAG01 -DatabaseAvailabilityGroupIpAddresses 10.10.10.103

dag through ems

Add Member servers to the DAG by Issuing the following Command:

Add-DatabaseAvailabilityGroupServer -Identity MBGDAG01 -MailboxServer MBG-MBX02
Add-DatabaseAvailabilityGroupServer -Identity MBGDAG01 -MailboxServer MBG-MBX01

add member server to dag

Step 03:  Configure the DAG to Replicate Mailbox Databases only on the Replication Network

After adding both servers to the Database Availability Group, you will see the following in the Exchange Management Console:

DAG NEtworks

The above screen shows that replication is enabled on both MAPI and Replication Network.  But as per our scenario, we must enable replication only on a dedicated NIC configured for replication.  To this right click on the MAPI network name and click properties as shown below.

Click on MAPI Properties

In the MAPI network properties of the DAG, uncheck the option “Enable Replication” and then click OK as shown below.

Uncheck Mapi Network Properties

Once you disable the replication on the MAPI network, now the database will only replicate on the Replication network (10.10.10.101/30). In this way you can configure DAG in exchange 2010.




The following two tabs change content below.
Bipin is a freelance Network and System Engineer with expertise on Cisco, Juniper, Microsoft, VMware, and other technologies. You can hire him on UpWork. Bipin enjoys writing articles and tutorials related to Network technologies. Some of his certifications are, MCSE:Messaging, JNCIP-SEC, JNCIS-ENT, and others.

Latest posts by Bipin (see all)

scroll to top