RSS Subscription 167 Posts and 2,769 Comments

Exchange 2010 RTM DAG using Server 2008 R2 – Part 4

Welcome to Part 4 of this article series. In Part 1, we started off by discussing the goal of this lab. That goal is how to deploy a two-node Exchange 2010 RTM Database Availability Group (DAG) on Windows Server 2008 R2. We then prepared our Operating System with the Exchange 2010 Prerequisites which includes software prerequisites as well as modification to hardware configuration such as our Network Interface Cards (NIC)s.  In Part 2, we went over the installation of one of our Exchange 2010 Servers which will include the Mailbox, Client Access, as well as Hub Transport Server Roles. In Part 3, we went over the creation and configuration of our Database Availability Group (DAG).  We then added our first Node to our DAG.

In this Part, I will be adding the second node to the DAG and then create a  database which will then be synchronized to the second DAG node.

Part 1

Part 2

Part 3

Part 4

Adding the second Node to our DAG

Well, let’s go ahead and add our first node to the DAG.  Go into the EMC > Organization Configuration > Mailbox > Database Availability Group > Right-Click our DAG > Manage Database availability Group Membership.

Add the second Node.  Click Manage to Continue.

Our second node has successfully been added.

But… what exactly was done during this behind the scenes when this second node was added to the DAG?  The following occurs (from Technet documentation):

  • The server is joined to Windows Failover Cluster for the DAG.
  • The quorum model is automatically adjusted:
  • A Node Majority quorum model is used for DAGs with an odd number of members.
  • A Node and File Share Majority quorum is used for DAGs with an even number of members.
  • The witness directory and share are automatically created by Exchange when needed.
  • The server is added to DAG object in Active Directory.
  • The cluster database is updated with info on mounted databases.

First of all,we can see the DAG has been joined to the Windows Failover Cluster.

Second of all,we can see the Quorum Model has been adjusted to Node Majority and File Share Witness because we have an even number of nodes.

We can also see the FSW is set to the location we specified when creating our DAG (SHUD-OCSFE01 with a path of C:\ShudnowDAG) and that there is Quorum data in this location.

Adding Database Replicas

Well, let’s go ahead and create a new database and replicate it.  Go into the EMC > Organization Configuration > Mailbox > Database Management.

We can see there’s currently two databases that were created during the installation on our Exchange Mailbox Servers; one for the first node and one for the second node.

We can’t delete these databases because they contain some arbitration mailboxes.  Arbitration mailboxes are special mailboxes that are used to manage approval workflows.  For example, moderated e-mails.  We can see these arbitration mailboxes and what mailbox databases they belong to by running the following command:

Get-Mailbox -Arbitration | FL Name,Database

Create a new Database.  I will create a new mailbox database with the name, LABDatabase01.  I will then also mount the database The two commands I will use to do this are:

New-MailboxDatabase -Name LABDatabase01 -Server SHUD-EXC01

Mount-Database -Identity LABDatabase01

Let’s add a Mailbox Database Copy to our second DAG node so we have redundant databases.  Database Management > Select the new Database > Right-Click and Choose Add Mailbox Database Copy.”

Choose the second server for the server that will obtain our Database Copy.  Click Add to Continue.

We should then see a successful copy being added to our second DAG Node.

To verify, in the EMC, click on the LABDatabase01 and we should see a Mounted copy and a Healthy copy below.

To do a switchover, you can right-click on the copied database and choose Activate Database Copy.

DAGs Networks

Go into the EMC > Organization Configuration > Mailbox > Database Availability Group.  At the bottom, you will see the Networks.  You can see both are enabled for Replication.  Exchange 2010 always uses the last recently used replication network.  You can leave both enabled to Replication or you can disable the MAPI Network from having Replication enabled.  This will force all replication to go over your dedicated replication network. Keep in mind, when you do this, your MAPI Network can still do replication.  It will only do replication when there are no dedicated replication networks available.  For example, if the dedicated replicated network were to go down due to some switch but your MAPI network was available, replication would begin to utilize the MAPI network.

If you were in a situation where you were adding a 3rd node to the DAG and it was in a different subnet, you will need to add an IP Address for that subnet so the Network Name resource can come online for that subnet.  So let’s say we now added a 3rd DAG node that was on the subnet.  Remember our Set-DatabaseAvailabilityGroup cmdlet with the -DatabaseAvailabilityGroupIpAddresseses switch?  In this case, let’s say was going to be our DAG IP for that subnet.  We would have to add that IP to the switch above.  But that switch is not additive, so we would have to run the following command:

Set-DatabaseAvailabilityGroup -Identity ShudnowDAG -DatabaseAvailabilityGroupIPAddresses,

As you can see, I specified both in addition to

What happens is if the DAG fails over to the second DAG node, the DAG will keep the address.  But if it fails over to the 3rd node, it will use the  Again, this command has nothing to do with the replication networks, only the MAPI Networks.  And again, it’s only so the Network Name resource can come online which is a cluster dependency.  No clients will connect to this Network Name resource and Exchange has multiple mechanisms to connect to Exchange.


Well folks, that is all for Part 4 of this article as well as the article series. Thanks for reading!


54 Responses to “Exchange 2010 RTM DAG using Server 2008 R2 – Part 4”

  1. on 18 Nov 2009 at 7:31 pmSue Massey

    Nice writing style. I look forward to reading more in the future.

  2. on 25 Nov 2009 at 10:26 pmBender

    Great post, thanks so much for helping me understand DAG configuration better!

  3. on 05 Dec 2009 at 3:08 pmDave

    Great article. I now have it set up and understand the DAG. Thanks.

  4. […] This post was mentioned on Twitter by Alan Sebastian, Exchange Server Pro. Exchange Server Pro said: Exchange 2010 RTM DAG using Server 2008 R2 – Part 4 – […]

  5. on 09 Dec 2009 at 3:46 pmShailesh

    I had a question, I have the servers using Static IP, but when I created the DAG, it used the DHCP. It got some IP address and my DAG is all up and running. Is there a easy way that I can change this DAG from dynamic to static IP? Or do I have to actually destroy this DAG and create a new one from Scratch?

  6. on 09 Dec 2009 at 5:25 pmElan Shudnow

    Most of Part 3 goes over how to use a Static IP right off the bat and if you use DHCP, how to change your DAG to use a Static IP.

  7. […] Exchange Server 2010 RTM DAG with Windows Server 2008 R2 – Part 1, Part 2, Part 3, and Part 4 […]

  8. […] a server and directory or you, the FSW share isn’t created during the configuration of the DAG (as documented by fellow Exchange MVP Elan Shudnow and the “Witness Server Requirements” section of the Planning for High Availability and Site […]

  9. on 22 Dec 2009 at 12:37 pmEmma

    Thanks great series of posts

  10. on 29 Dec 2009 at 5:13 pmMrLiang

    good stuff

  11. on 01 Jan 2010 at 3:13 pmNiroshan

    Thank you very much Mr Elan Shudnow
    Now i clearly understood DAG and Configured It

  12. on 07 Jan 2010 at 5:56 pmJason

    Hi Elan

    I have been going through the web trying to get a clear answer on site replication using only 2 exchange 2010 servers and 1 database.

    I have 2 locations A and B seperated by a WAN. Each site will contain 1 Exchange 2010 server that will replicate a single database. I understand a DAG will need to be created with a Witness server. The problem is where do you place the witness server as if the WAN goes down between the sites then according to what i have read the site without the witness server database will go offline until a witness server is found. Is that right? if so that means you would have to replicate the witness server as well! there something i have missed?

    Very well put together blog with excellent screen shots.

  13. on 27 Jan 2010 at 11:45 pmDarren

    Fantastic series, many, many thanks, has helped me get my test lab up and running properly!

  14. on 09 Feb 2010 at 12:56 pm02dag

    What if you now want to make the CAS-role higly available too. Can you configure a client access array combining these two same nodes, and then install NLB on top? Will that work with the failover cluster service already there?

  15. on 15 Feb 2010 at 5:39 pmTridon

    Can you install DAG after already having Exchange 2010 up and running? Will this cause any problems with user mailboxes?

  16. on 15 Feb 2010 at 9:36 pmROBERTO


  17. on 18 Feb 2010 at 4:28 pmDinesh Silva

    really appreciate you postings. easy to understand and effective. looking forward to reaDd more articles here. :)

  18. on 26 Feb 2010 at 2:26 pmAndy

    When assigning two addresses to the DAG, our failover cluster manager only shows one of the two addresses online, which means the "Whole" network name is not online. We can still ping the DAG though since it does have one ip online. Is that normal? Will the other address come online when a failover to that site occurs?

  19. on 27 Feb 2010 at 7:12 pmEric

    We have a single 2010 server that was a "Typical" installation with the Hub Transport, Client Access, and Mailbox roles. We have all of our mailboxes on this server. We are ready to configure a 2nd server running 2008 Enterprise for failover purposes, and plan on configuring a DAG. When we install Exchange on the 2nd server, can it contain only the Mailbox role, or can it also be a "Typical" installation so that should the primary server fail, that mail flow still would route through this 2nd server? If not, when the primary server goes offline and only a Mailbox role exists on the 2nd server, what happens when a user tries to send internal and Internet mail? Is it routed and delivered, or que'd? I would presume it is que'd if only the Mailbox role exists?? Thanks for the excellent article above!

  20. on 01 Mar 2010 at 9:30 pmTridon

    Another quick question:

    We ran the Exchange Best practice analayzer, and it recommended to move a datastore from one drive to another drive where our log files are located. Our question comes in here, if we do this, do we also have to move it in the DAG or will the Best Practice Analayzer do it for us?

    Thanks for the help in advance.

  21. on 05 Mar 2010 at 4:25 pmEBE

    Thx a lot for the sharing.

  22. on 29 Apr 2010 at 12:30 pmJorge

    This is the first article that I have come across that not only details how to create a DAG, but gives a good explanation of DAG networks which is exactly what I was after.

    A very good series of articles and I thank you.

  23. on 04 May 2010 at 1:17 pmZahir Hussain Shah

    Dear Friends,

    I need your urgent help on one urgent issue, today while I was troubleshooting my Backup software (Symantec BackupExec 2010), so my backup admin told me that the DAG FQDN or IP is not ping able, so I checked and I found that the NETWORK NAME of DAG was not online in FAILOVER CLUSTER MANAGER, so I tried bring the NETWROK NAME ONLINE, so suddenly the IP RESOURCE got hide somewhere, after wards I tired finding the resources, but couldnt got successd in that.

    Now my DAG network name is not coming ONLINE, tell me what should I do, which option should I select from the below list:

    1) Break the FAILOVER CLUSTER and re-create in teh presence of DAG on Exchange
    2) Remove the DAG and re-create it, as this is very difficult solution
    3) or what else…

    please reply me on


  24. on 11 May 2010 at 8:33 amCharlie O.

    I have a few question on DAG … I am an Exchange novice :-)

    Can you explain exactly the function of the Witness share? I think I understand it's purpose, but want to make sure I am not off-base.

    Does it really make a difference if the Witness share is on a non Exchange box as long as the appropriate membership is given? If it does, why?

    I have a home/lab network with one Hyper-V Exchange 2010 and one stand alone Exchange 2010 (all on 2008R2). Single NIC MAPI network . . . . All mailboxes will be placed on the stand alone E2010. I want my 8 users to have use of Exchange when I bring the stand alone Exchange down (where the mailboxes reside). What else can I do along with the DAG to make this a possibility.

    Thanks for the very thorough and "real world" articles.


  25. on 06 Sep 2010 at 1:30 amcooldavinci

    cristal clear. thank you

  26. on 04 Oct 2010 at 8:10 amGino

    Mr Elan , I do have a question regarding server 2008 R2.

    When i tried to set up the mail foward to a mailbox i actually works, if I want to set up multiple users, as the option ADD security allows us , it does not work, Is there likely something that this series of server does not allow you or is there another way of working around that?


  27. on 05 Oct 2010 at 4:21 amGino

    Mr Elan , I do have a question regarding server 2008 R2.

    When i tried to set up the mail foward to a mailbox i actually works, if I want to set up multiple users, as the option ADD security allows us , it does not work, Is there likely something that this series of server does not allow you or is there another way of working around that?


  28. […] Witness Server in two node DAG… Elan Shudnow – How to deploy a two-node Exchange 2010 RTM Database Availability Group (DAG) on… […]

  29. on 13 Oct 2010 at 3:43 pmSaaN

    How do we add second FSW as we do in Exchange 2007 (create FSW on 2 hub server which located in 2 different data center)

  30. on 14 Oct 2010 at 8:34 ambsang

    I have two Exchange 2010 set as a DAG group, company required to perform DR restoration test at remote DR center, Do i have to restore both Exchange Server or can I restore it to a single standalone Exchange Server..Please help…thanks in advance,

  31. on 23 Nov 2010 at 6:05 amFarhan Raza

    I am very thanks full.

  32. on 24 Dec 2010 at 6:38 amLewinski

    Hi Elan,

    Great article.

    I created your setup on a virtual lab and went through everything as described. The exception is that I created two extra servers and put HT/CAS roles on both, and WNLB.

    Accessing the CAS is fine, and the DAG does the fallover fine (Mounted, Healthy etc always seems in the right order).

    However! unless EXC2 is switched on, I get mailbox unavailable errors. The setup works even if EXC2 is not the mounted copy, as long as the machine is on.

    Any ideas would be greatly appreciated.

  33. on 31 Dec 2010 at 3:21 pmDozer

    First, thanks for this write up !

    For info in case anyone else comes across this:

    Everything has worked fine so far, up until I tried to create the 'Add Mailbox Database Copy', I got a long error:
    A source-side operation failed. Error An error occurred while performing the seed operation……..
    Failed to open a log truncation context to source server 'server1.domain.local'. Hresult: 0xfffffae7. Error: The database was either not found or was not replicated.

    The fix I found here:

    …basically, manually copy across the 'CatalogData…' folders, then hit 'resume database copy', and all is well.


  34. on 26 Feb 2011 at 9:48 pmAndrew

    Great write up… Very easy to follow and implement!

  35. on 06 Apr 2011 at 4:31 amAdrian

    Hi Elan, thanks for the great info.

    I am looking at deploying a 2 node, 2 site DAG separated over a WAN. The config would be:

    Site A: Server A with Active DB-A and Passive DB-B + FSW on a second server
    Site B: Server B with Active DB-B and Passive DB-A

    I have set this up and in initial testing the issue I have come across is that if the WAN link goes down, Server B looses access to the FSW and all databases in Site B are dismounted, meaning users who have mailboxes on Active DB-B are disconnected from Exchange and cannot use mail.

    Is there a way to overcome this issue in a 2 node 2 site DAG, keeping in mind this is for a SMB with about 50 users who does want HA for email. I am doing this using Exchange SP1.

    Thanks Adrian

  36. on 02 Aug 2011 at 7:51 amJohn Philipson

    Fantastic Blog – One of the few on the Internet that was really clear, detailed and very helpful. I set up my environment with

    all W2K8 R2 Standard (except for Mailbox servers running Enterprise Ed)

    – DC
    – CAS/HUB Server (as FSW) and
    – 2x MAILBOX servers

    The two node DAG works well, apart from a need to extend the timeouts to max, on the Cluster Failover (using the Exchange Shell script) to prevent the nodes dropping out of the cluster, for some mysterious reason, on my home LAB LAN.

  37. on 25 Aug 2011 at 5:30 ambaseliner35

    I'm trying to investigate the cmdlet to remove my alternate FSW from my DAG. Cannot find anything about that and using the GUI doesn't seem to allow that

  38. on 13 Oct 2014 at 2:41 amMAS

    how can remove dag configuration if i have problem but without install windows in server only remove configration and do it again

Trackback this post | Feed on Comments to this post

Leave a Reply