How to create and configure DAG in Exchange 2013 step by step

A database availability group (DAG) is the base component of the Mailbox server high availability and site resilience framework built into Microsoft Exchange Server 2013. A DAG is a group of up to 16 Mailbox servers that hosts a set of databases and provides automatic database-level recovery from failures that affect individual servers or databases.

A DAG is a boundary for mailbox database replication, database and server switchovers and failovers, and an internal component called Active Manager. Active Manager, which runs on every Mailbox server, manages switchovers and failovers within DAGs.

Any server in a DAG can host a copy of a mailbox database from any other server in the DAG. When a server is added to a DAG, it works with the other servers in the DAG to provide automatic recovery from failures that affect mailbox databases, such as a disk, server, or network failure.

Today we will create and configure DAG in Exchange 2013. Before to create DAG we need to configure  Environment for the DAG.

DAG should have two NICs: replication and client connectivity. So I have created 2 NICs.

1dagwejj33fff

Then we need to make sure client connectivity NIC  is listed first.

2dagwejj33fff

3dagwejj33fff

After that, we must create DAG Cluster Name Object (CNO). To create that log into Domain Controller and open Active Directory Users and Computers, Then Right-Click Computers OU and choose New-> Computer, Type DAG name and click OK:

4dagwejj33fff

In the security tab of the DAG2013 computer object add DAG members(TMBX01 and TMBX02) and Exchange Trusted Subsystem group with FULL permission.

5dagwejj33fff

To see Security TAB you need to enable advanced features on Active Directory Users and Computers snap-in.

7dagwejj33fff

After that Disable computer account:

8dagwejj33fff

 

9dagwejj33fff

In addition, each DAG is configured with a witness server and witness directory. The witness server and its directory are used only when there’s an even number of members in the DAG and then only for quorum purposes. You don’t need to create the witness directory in advance. Exchange automatically creates and secures the directory for you on the witness server. The witness directory shouldn’t be used for any purpose other than for the DAG witness server.

If you use CAS server for witness server you don’t need any other configuration.

If you use non-exchange server then you must do following requirements:

  • Make sure file server role is installed on the witness server
  • Add Exchange Trusted Sub System group to the witness server local Administrator group
  • Create a shared folder in C drive on witness server.

In this case, i will use CAS server for witness server.

Now we can start to create DAG.  Use the EAC to create a database availability group. Go to Servers > Database Availability Groups. Click + :

10dagwejj33fff

Enter the Database availability group name, Witness server, Witness directory and Database availability group IP addresses, Click Save:

11dagwejj33fff

After that, we need to manage database availability group membership. So select the DAG you want to configure, and then click Manage DAG members:

12dagwejj33fff

To add one or more Mailbox servers to the DAG, click Add + icon, select the servers from the list, click Add, and then click OK

13dagwejj33fff

When the task has completed successfully, click Close:

14dagwejj33fff

As you see DAG members added and you can configure DAG as following:

15dagwejj33fff

And witness directory created on CAS server:

16dagwejj33fff

Same time Failover Cluster created and current host server is TMBX01:

17dagwejj33fff

After DAG creation we need to add all database copies to another DAG member servers. To do that go to Go to Servers > Database and select database then click and then Add database copy:

18dagwejj33fff

Select Mailbox server which you want to add database copy and click Save:

19dagwejj33fff

The end click Close to finish process:

20dagwejj33fff

As you see now new2013 database copy available on both mailbox server. Same way you can add other copies.

21dagwejj33fff

 

 

3 thoughts on “How to create and configure DAG in Exchange 2013 step by step

  1. I aƅsolutely love your bloɡ and find most of your post’s to be what
    ⲣrecisely I’m ⅼooking for. can you offer
    guest writers to writе content for you personally?
    I woulɗn’t mіnd publishing a post oг elaboгating on many of the subjects you write regarding here.
    Again, aweѕome website!

  2. Wonderful paintings! This is the kind of info that are meant to be shared around the web. Shame on the search engines for no longer positioning this submit upper! Come on over and discuss with my website . Thank you =)

Add Comment