exchange 2013

How to create and configure DAG in Exchange 2013

Hello guys! In this article we are going to show you how to create and configure database availability group (DAG). DAG allows you to provide fault tolerance of mailbox databases. The essence of its work is creating database copies, so if one of the servers fails, the database is automatically activating on the other.

DAG was released in Exchange 2010, but in Exchange 2013 it received some improvements.

Let’s have a look at the scheme. It is very simple.

scheme exchange

We have a Domain Controller and two Exchange 2013 servers. Both servers already have installed Exchange roles – Mailbox and Client Access.

server roles exchange

Also, you should note that we have a separate network for replication –

So, let’s start.

DAG is working on Microsoft Failover Cluster technology, but it needs a witness. In our case it is a Domain Controller, but you can use any server. On the witness server we need to add the Exchange Trusted Subsystem group to Local Administrators group (If you are using another Exchange server as a witness, you don’t need it).

Read also: Don’t Archive Notes in Office 365

administrator properties

Now we need to add local group Administrator in Active Directory on the Domain Controller.

After that go to Active Directory Users and Computers and create an object in Computers with the name of our future DAG. Once it is done, disable it.

READ ALSO  How to Upgrade to a New Phone and Take Everything with You

active directory users

Then open the properties of this object. Go to the Security tab and give full access permissions to the first DAG member.

dag properties

Now we need to configure a network.

Each Exchange server has 2 network interface controllers. The first one is used to connect to the network. Here is the usual configuration, so we don’t need to change anything.

Read also: Recover Deleted Items in Office 365

network connecion details

The second one is connecting to an isolated network. We will use it for replication, but before that let’s change some options.

network connecion details_hb

We don’t need to specify gateway and DNS. The thing we need to do is just remove the tick from Register this connection’s address in DNS.

advanced tcp ip settings

Also, remove the ticks from Client for Microsoft Networks and File and Printer Sharing for Microsoft Networks.

HB properties

Install LAN on the first place in Connections.

LAN advanced settings

Now let’s check it through Command Prompt and make sure everything is OK.

cmd computer

cmd computer name

Now we need to create a directory on the witness server. This directory will be specified when we will create a DAG. In our case it’s DAG-Witness folder in the root of C: drive on the Domain Controller.

Once it is done, we can create a DAG. Open up Exchange Management Console (RCP) and go to Servers -> Database Availability Groups and click on “+”.

READ ALSO  How to Fix Exchange Server Error 00002098

exchange admin server

Fill in all the fields and click on Save.

database availability group

After that you need to add a server to the group.

DAG groups

manage database

dag completed

Once the wizard successfully finished its work, we can see that our two servers are actually team members. There are also 2 networks, one of which is for replication.

DAG network

It also can be seen if you open Failover Cluster Manager and go to the Network and Nodes section.


Now you can add the database copy. Go to Servers ->Database, click on ellipsis button and select Add database copy.

add database copy

Select which server you want to use for replication.

exchange select server

add mailbox database

Click Save and wait for the database copy creating.

Do the same things with the other databases.

As a result we will see a list of databases.

active on server

Also, it is a possibility to make a copy of the database with a delay (1 to 14 days).

If necessary, you can activate the database on another server in manual mode.

activate database

That’s all. If you have any questions, feel free to ask them in the comments section below.

You may also like:

Migrate email to Office 365 using WHM If you are like me, then you are simply wanting to migrate your email over to Microsoft Office 365 to take advantage of Exchange. Me and my colleague ...
Add An Out Of Office Message In Outlook for A Diff... Did an employee just leave for vacation and forget to do something? Below the instructions will show you how to add an out of office message in Outloo...
Grant Full Access to All Mailboxes in Exchange 200... This is a short tutorial on how to add full access to all mailboxes in Exchange 2007 and 2010 for a an additional user. This can come in handy when sa...
Windows Server 2012 Mailbox Role Process Execution... If you are trying to install Exchange 2010 on Windows Server 2012 and are receiving the error "Mailbox Role Process Failed.... Process execution faile...
Exchange 550 5.7.1 RESOLVER.RST.AuthRequired; auth... If you are trying to send email from your web server to a distribution group email and it isn't going through, and the Exchange log shows the followin...