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).

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.

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.

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 “+”.

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:

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...
How to Recreate Virtual Directories OWA and ECP on... This article describes how to recreate virtual directories OWA and ECP on Exchange 2016. The rebuilding of these virtual directories helps to reset al...
How to Add or Remove SMTP Alias to Exchange 2016 M... Sometimes you need to add another email address to the existing user. In Exchange, in addition to the primary address, each mailbox can be assigned to...
Exchange 550 5.7.1 RESOLVER.RST.AuthRequired; auth... We have faced the following error when were trying to send an email outside organization to the (from the Gmail) to a distribution group (list) or a p...
Moving Exchange Mailboxes to Another Database Exchange administrator can move user mailboxes in the Active Directory forest from one database to another between Exchange servers, or between mailbo...

Add Your Comment