How to create DAG in Exchange Server 2013
Lets get started, as we all know that Exchange Server 2013 RTM has been released for public few months ago.
Today we are going to Create and Configure Database Availability Group (DAG) in Exchange Server 2013 RTM running on Windows Server 2012.
LAB Environment:
http://3.bp.blogspot.com/-ootFQQSmSDw/UQ-Z8o1nF0I/AAAAAAAAARI/dY3fosAtjaE/s1600/LAB+Environment.png
Login to EAC (Exchange Admin Center) with Administrator rights. Click on Servers in the left pane, click on Database Availability Groups and Click on + sign to create the DAG.
http://1.bp.blogspot.com/-WyoxesZpE7s/UQ-b3lfahQI/AAAAAAAAARk/fjjU97W9B0Y/s1600/Creating+DAG.png
Now specify the name of the DAG, File Share Witness Server and Witness Directory. In my case I am using Exchange Server 2007 as FSW Server and Witness Directory. We will define the DAG IP Address as well.
http://1.bp.blogspot.com/-yjQ2nJiZqlk/UQ-cwHebswI/AAAAAAAAARw/8wWPsjBIMZQ/s1600/FSW.png
Click on Save you will get the below warning message, which you can ignore. This warning message has been there with DAG since exchange server 2010 days and Microsoft has failed to fix the issue till date.
http://3.bp.blogspot.com/-NT-EiglgRpo/UQ-piW0qNnI/AAAAAAAAAVQ/10h5JTrZK1U/s1600/ExchangeSubSystem.png
In EAC now we will see the DAG01 object. DAG is nothing but an empty object in the active directory, if you check the Adsiedit.msc for DAG you will see nothing in it, as we haven't added any member server in it.
http://1.bp.blogspot.com/-x7F308PNgjE/UQ-ff5dggWI/AAAAAAAAASY/0Dob1UsZ9QY/s1600/Adding+Member.png
As we have DAG created and we will now add the member servers into the DAG. Click on Manage Member Servers and follow the instructions.
http://3.bp.blogspot.com/-zKkpSgkikAg/UQ-gesjWU6I/AAAAAAAAASs/do_frvBRcpE/s1600/Manage+DAG+Members.png
Click on** +** sign to add the servers.
http://1.bp.blogspot.com/-nhOCZHasKY8/UQ-g1TURa3I/AAAAAAAAAS8/eepJLZF6bx8/s1600/Select+Server.png
Select the servers you want to add it as a member of the DAG and click on add button.
http://2.bp.blogspot.com/-DVIVX5J0voA/UQ-hsUuvkoI/AAAAAAAAATE/wKwxJk79ve0/s1600/Member4.png
Click on Save and after you click on Save, it will install Windows Failover Clustering Components on the member servers and configure the cluster.
http://2.bp.blogspot.com/-_buPzFw-7wE/UQ-jMPmRp5I/AAAAAAAAATY/OJzVWn3N91g/s1600/Member5.png
http://2.bp.blogspot.com/-7OgiCg3LkcY/UQ-jRJjPllI/AAAAAAAAATg/AiHucooMGSY/s1600/Member10.png
http://4.bp.blogspot.com/-895RcJw8MS8/UQ-jRGSknZI/AAAAAAAAATk/q6Pjcvwaxjc/s1600/Member6.png
http://3.bp.blogspot.com/-YzI4DlT2P5Q/UQ-jSIo1R3I/AAAAAAAAAT4/tKS7jVBfv24/s1600/Member7.png
http://3.bp.blogspot.com/-1CmfGq9rFJk/UQ-jSDHWnuI/AAAAAAAAAT8/2ieLhpz7PkM/s1600/Member9.png
http://2.bp.blogspot.com/-yz4CcTF_TPQ/UQ-jSPfvHCI/AAAAAAAAAUI/Nkk-PdkE4p0/s1600/Member8.png
http://3.bp.blogspot.com/-NlQyJRhso8U/UQ-jRPbpnsI/AAAAAAAAATo/ZYDAKMvYdlw/s1600/Member11.png
We have now added the member server in the DAG successfully, now it's time Add-MailboxDatabaseCopy from One (Active) Server to another (Passive). In my case E2K13 is the Active Server and MBXCAS is Passive Server.
We can only use EMS (Exchange Management Shell) to Add MailboxDatabaseCopy. We cannot use EAC to Add the MailboxDatabaseCopy. In Exchange 2010 RTM we had the same situation. We had only EMS option to add the MailboxDatabaseCopy.
http://2.bp.blogspot.com/-tvrf-DcWRFo/UQ-maH8D6fI/AAAAAAAAAUg/BdpMHfIiL6A/s1600/Add-MailboxDatabaseCopy.png
http://3.bp.blogspot.com/-jbJ5lt7Y5sE/UQ-muvkPzdI/AAAAAAAAAUo/xMuZsSooqzY/s1600/Add-MailboxDatabaseCopy2.png
After Add-MailboxDatabaseCopy completed successfully, lets check the status of the Database by running the command Get-MailboxDatabaseCopyStatus and the output of the command and EAC should be as shown in the below image.
http://3.bp.blogspot.com/-hAyczPnpJKY/UQ-nz1WyIfI/AAAAAAAAAUw/DnSgYWLKT5U/s1600/Get-MailboxDatabaseCopy.png
http://2.bp.blogspot.com/-EeahwxXPWEE/UQ-o2kiF66I/AAAAAAAAAU8/DrIYtcae0y0/s1600/Get-MailboxDatabaseCopyStatus.png
Last but not the least check the replication health by running the Test-ReplicationHealth and Get-DatabaseAvailabilityGroupNetwork | fl.
http://3.bp.blogspot.com/-bj95nfqWVPs/UQ-q6592DdI/AAAAAAAAAVY/JjtgjFoDQDo/s1600/Test-ReplcationHealth.png
http://3.bp.blogspot.com/-fEK8GNxgerk/UQ-sDl3rdwI/AAAAAAAAAVg/G00ekwVcMYs/s1600/DAG+Network.png
I hope it helps.
Cheers,