Wednesday , May 25 2016

How to create a Database Availability Group in Exchange 2013

Refer newer version –

http://www.careexchange.in/create-dag-database-availability-group-in-exchange-2016/

 

Well, Creating Database Availability Group (DAG) Became much more simpler,

But configuring it properly is the best part to have it efficiently working.
So lets see how to create a 2 node DAG ,

NOTE **Am not going to Describe about load balancing for Client Connectivity in this blog

I will describe my environment now

I have 2 AD sites

Every AD site has Exchange Servers

image

image

========================================================
First we will prepare the Environment for the DAG

NOTE : If you have 10g Interfaces also it is highly Available. Dedicated Replication Network is optional.Preferred Architecture states to have only one network.
———————————————————————————-
I will have my Primary LAN . Will add a Replication LAN ,for my DAG replication for all the nodes which am planning to add in DAG

image

Verify my NIC binding are Correct

Advanced – Advanced Settings

image

1.Primary Network

2.Replication Network

image

Make Sure they are in a Different Class of IP

Primary Network –

image

Replication Network –

*No Default Gateway

*No DNS Servers Set

*Add a persistent Route for all the nodes with the Replication NIC’s

Replication NICs should ping with other replication NIC’s – So that DAG replication will happen through these NIC’s

Port Used : 64327

image
Now there is no Single point of failure on my LAN
If my replication network fails it can failover to the production network. vice versa.

When creating a DAG with Mailbox servers running Windows Server 2012 in an Active Directory environment with Windows Server 2008 R2 directory servers, you must pre-stage the cluster network object before adding members to the DAG. For detailed steps, see Pre-Stage the Cluster Network Object for a Database Availability Group.

See

http://technet.microsoft.com/en-us/library/dd351172.aspx

Lets See How to pre stage a Cluster CNO object.

Open ADUC – New Computer Account

image

Enter the DAG Name

image

Disable the Account

image

Give Full Control for Exchange Trusted Subsystems

image

Add the First Node Computer account and Give Full Control

Note –  Choose Object types to Select Computer Accounts

image

image

Apply the Permissions

Reference link –

Pre-Stage the Cluster Network Object for a Database Availability Group

==========================================================================
Now we will  Create a DAG ,

 

Login to EAC –Servers – Database Availability Groups – Choose New

image

 

Specify

* DAG name

* Witness Server Name

* Witness Location

Add Two DAG ips’ (Static IP for the DAG )

1 for Primary Site

1 for DR site

if you have different subnet or different class of ip on either Sites.
Have Two IP address for the DAG so that DAG resource can be online while failover on either sites
If you have only one Subnet , then you can have only one Ip address for the DAG

image
Now my DAG Configuration is Ready
Add members to it.

Choose Manage DAG Membership

image

image

Adding the members

image

Now you can add the other DAG memberwhere it should get added without any issues.

image

 

Great !! Now your DAG is ready !!

 

See

How to Add Database Copies in Exchange 2013

About Satheshwaran Manoharan

Satheshwaran Manoharan is an Microsoft Exchange Server MVP , Publisher of CareExchange.in Supporting/Deploying/Designing Microsoft Exchange for some years. Extensive experience on Microsoft Technologies.

Check Also

express

SQL 2014/2016 Express Daily Full Backup using PowerShell

As SQL Server Agent doesn’t function on SQL 2014 Express. We have to use scripts ...

33 comments

  1. Hi Sathesh,

    Thanks for your article. I have a question here…By default it’s recommended to enable IPV6 for Exchange 2013, if we disable this there is an issue with the starting transport service.

    I noticed while installing the DAG IPV6 is disabled for MAPI (Primary) network, will this will create an issue.

    • Database availability group member
      Ipv6 Supported = Yes, You need not to disable it, It should work without any problems

      Static IPv6 addresses are supported by Windows Server 2008 and the Cluster service. However, using static IPv6 addresses goes against best practices. Exchange 2013 on Windows Server 2008 doesn’t support the configuration of static IPv6 addresses during setup.
      Failover clusters support Intra-site Automatic Tunnel Addressing Protocol (ISATAP). They support only IPv6 addresses that allow for dynamic registration in DNS. Link local addresses can’t be used in a cluster

      http://technet.microsoft.com/en-in/library/gg144561(v=exchg.150).aspx#DisEna

  2. Great guide and tutorial. I just have one quick question. Is it possible to create DAG without third server that will act as witness server? Currently, we have installed two Exchange Server 2013 on Windows 2008 R2 Enterprise SP1 on two HP Proliant Servers. The AD on the Live Server is being replicated to the AD on the Backup Exchange. We want to configure DAG to replicate the mailbox database of the Live Server to the Backup Server. I have read some tutorials that it is mandatory to have 3rd server that will act as Witness Server because the DAG members should not be a witness server.

  3. Hi Sathesh,

    How about Dynamic Quorum feature of Exchange 2013 DAG? We should be able to use it without having witness server.

    Regards,
    Vaibhav

  4. Hi Sathesh,

    I have question regarding exchange 2010 SP3, 2 node DAG in Site A and Site B with users are hosted on both sites. Please suggest the configuration steps.

    Servers
    Site A
    1. CAHT1
    2. MBX1
    Site B
    1. CAHT2
    2. MBX2

  5. please help me when i add new member of dag

    i have 2 server
    1. CAS,MB
    1. MB only
    3. witness server is 2012 , i add exchange trsut in local administrator group, create cno but
    cant create directory and i get this erorro

    A server-side database availability group administrative operation failed. Error The operation failed. CreateCluster errors may result from incorrectly configured static addresses. Error: An error occurred while attempting a cluster operation. Error: Cluster API ‘”CreateCluster() failed with 0x13c1. Error: The cluster IP address is already in use”‘ failed.. [Server: dag-srv.pop.local]
    ERROR

    A server-side database availability group administrative operation failed. Error The operation failed. CreateCluster errors may result from incorrectly configured static addresses. Error: An error occurred while attempting a cluster operation. Error: Cluster API ‘”CreateCluster() failed with 0x13c1. Error: The cluster IP address is already in use”‘ failed.. [Server: Mail-srv.pop.local]

  6. Excellent job sathesh…….

  7. Hi Sathesh,

    So If I have 1 Mailbox and Client access server and another server has the mailbox role only
    do I have to build new server as a witness for them?

    Can’t I use the File server I already have or there will be high traffic for both witness and file server?

    Last question please, How to distribute my users on the two servers I need two divide the users between the two servers?

    • Install Both Servers with All the roles. Create a DAG . and place a Load balancer in front of it . This is the recommended way .

      Witness server and file server can be the same . Witness server just need to be reachable when DAG members goes down.

  8. Hi,

    Satheesh. What about the configuration of DAG network group.

    I have received error after configuring the above. It mentioned that DAG Network is not configured

  9. Hi,

    what is the network configured between your sites? i sit P2P or MPLS with data?

  10. Hi,

    How to test that replication NIC’s are communicating to each other over WAN?

    -Natesh

  11. Hello Sathesh,
    I am setting 2 node DAG in E2013,should we use witness server as client access machine or any other server os?
    How should be a witness server ? we have to create a “shared” folder ? Kindly guide me on this.
    By Banooj_Bangalore +917829422645

  12. Dear Team,
    I am going to create Exchange server 2013 with DAG .. MY setup
    details

    1 AD
    2 Exchange server MBX with client Access is it enough ? or need witness server ?

  13. Hello,
    Satheshwaran Manoharan, I have two servers AD and exchange at the same time, ican’t make the DAG , when I try it works on a server , on the second one there is a error.

    Cabn you help me, please ??

  14. thanks so much for the information. i have an issue after setting up 2 member DAG in same site. i have installed exchange 2013 on windows server R2 on MBX1 and MBX2.

    what i notice is that when i shutdown MBX1, databases failover to MBX2. but when i start up MBX1 and shutdown MBX2, Databases do not failover to MBX. it shows disconnected.

    how do i ensure that databases continue to failover amongst the servers in the event that any of the two mailbox servers goes down.

    please assist.

    thanks

  15. dear team,

    thanks for the document Manoharan.

    i was able to setup two member DAG in same AD site namely MBX11 and MBX2.

    what i noticed is that when i shutdown MBX1, databases failover to MBX2 and all is fine. but when i start up MBX1 and is running and i shutdown MBX2, Databases do not mount on MBX1. the status from EMS reads disconnected and failed. hence all clients are disconnected

    how do i ensure that databases continue to failover amongst the servers in the event that any of the two mailbox servers goes down.

    please assist.

    thanks

  16. Hi Team,

    I want to setup exchange 2013 DAG as follows”

    Primary
    1. AD
    2. Exchanger_Server_1

    DR
    1. AD
    2.Exchange_Server_2

    If link between Primary and DR is down and I go to DR will I be able to mount the exchange databases from DR and connect (user with latop and outlook connecting to Exchange_Server_2)?

    Are witness servers and/or file shares required in this case?

    Regards

  17. É comum perceber a estrutura de websites institucionais através da
    seguinte composição: – House: Resumo do site com principais destaques – Empresa:
    Quem é a empresa, quanto tempo está no mercado, diferenciais e valores – Produtos/Serviços: Descrição dos
    produtos e serviços oferecidos – Contato: Meios de contato,
    são eles: Telefone, endereço, e-mail.

Leave a Reply

Your email address will not be published.