Exchange Server 2013 - Configuring Database Availability Group (DAG)
EXCHANGE 2013 - CONFIGURING DATABASE AVAILABILITY GROUP (DAG)
A database availability group (DAG) is a collection of servers that provides the infrastructure for replicating and activating database copies. The DAG uses continuous replication to each of the passive database copies within the DAG.
In this article I will show how to configure DAG and fault tolerance testing by DAG.
*** ***
In my LAB, I use five computers:
- DC2012: Domain Controller (domain mcthub.local) running Windows Server 2012
- EXCHANGE1 and EXCHANGE2: Domain Member running Windows Server 2012 and Exchange Server 2013 (Mailbox Role and Client Access Role)
- FILESERVER: Domain Member running Windows Server 2012 (File Share Witness Server). I recommend that you configure the witness server on a Client Access server in the Exchange Server organization. The additional load on the server is minimal, and it is already under the control of the Exchange Server management group. The witness server does not need to run the same version of Windows Server as the members of the DAG. The file share witness also requires the File Server feature installed
- CLIENT1: Domain Member running Windows 8 and Outlook 2013
Configuring Permissions on the File Share Witness
Because the file share witness server is not an Exchange server, some additional permissions are required. The Exchange Trusted Subsystem group in Active Directory must be added to the local Administrators group on the file share server.
http://mcthub.com/images/ContentLab/DAG-En_files/image001.jpg
And you should verify that File and Printer Sharing is allowed through the firewall. Open Windows Firewall (FIREWALL.CPL) - Select "Allow an app or feature through Windows Firewall"
http://mcthub.com/images/ContentLab/DAG-En_files/image002.jpg
- Verify File and Printers Sharing is selected- OK
http://mcthub.com/images/ContentLab/DAG-En_files/image003.jpg
Pre-stage the cluster network object for a DAG
- On DC2012, in Server Manager, click Tools, and then click Active Directory Users and Computers. On the menu bar, click View, and then click Advanced Features.
http://mcthub.com/images/ContentLab/DAG-En_files/image004.jpg
- Create a Computers Account
http://mcthub.com/images/ContentLab/DAG-En_files/image005.jpg
- Type an arbitrary name (DAG1) - OK
http://mcthub.com/images/ContentLab/DAG-En_files/image006.jpg
- Configuring Permissions on the File Share Witness
http://mcthub.com/images/ContentLab/DAG-En_files/image007.jpg
- On Security tab, grant the computer account for the first DAG member (EXCHANGE1) and the Exchange Trusted Subsystem group ***Full Control ***
http://mcthub.com/images/ContentLab/DAG-En_files/image008.jpg
- Click OK
http://mcthub.com/images/ContentLab/DAG-En_files/image009.jpg
- Then disable the computer account. http://mcthub.com/images/ContentLab/DAG-En_files/image010.jpg
Create a DAG and add mailbox servers to the DAG
- Switch to EXCHANGE1. Open Internet Explorer, and type https://exchange1.mcthub.local/ecp, and then press Enter. Navigate to servers - databases, You observe the system, I have two mailbox servers included*** EXCHANGE1*** and EXCHANGE2. EXCHANGE1 hosting Mailbox Database named Mailbox Database 1
http://mcthub.com/images/ContentLab/DAG-En_files/image011.jpg
- Now I will create a DAG. Navigate to servers - database availability groups, Click the New (+) icon
http://mcthub.com/images/ContentLab/DAG-En_files/image012.jpg
-Enter the following details for the new DAG and Click Save when you have entered all of the required details
DAG name – this should match the comnputer account name you pre-staged earlier
Witness server – this is required for all DAGs
Witness directory – this is optional. If you do not specify a directory Exchange will choose one for you.
IP address – the DAG requires an IP address on each IP subnet that is part of the MAPI network. If you do not specify IP addresses the DAG will use DHCP instead.
http://mcthub.com/images/ContentLab/DAG-En_files/image013.jpg
- After the DAG has been created it still does not contain any members. These need to be added next.
click the icon to manage DAG membership
http://mcthub.com/images/ContentLab/DAG-En_files/image014.jpg
- Click ***Add (+) ***icon
http://mcthub.com/images/ContentLab/DAG-En_files/image015.jpg
- Select both servers, then click ***Add ***button
http://mcthub.com/images/ContentLab/DAG-En_files/image016.jpg
- Click ***OK ***button
http://mcthub.com/images/ContentLab/DAG-En_files/image017.jpg
- Verify membership of the DAG and click ***Save ***button
http://mcthub.com/images/ContentLab/DAG-En_files/image018.jpg
- Note that this might take some time, so please wait.
http://mcthub.com/images/ContentLab/DAG-En_files/image019.jpg
- Click Close button when finished.
http://mcthub.com/images/ContentLab/DAG-En_files/image020.jpg
- Done, DAG has been created successfully http://mcthub.com/images/ContentLab/DAG-En_files/image021.jpg
Create a mailbox database copy
- Navigate to servers - databases. Refresh the view- Click Mailbox Database 1, Click More (…) - click Add database copy.
http://mcthub.com/images/ContentLab/DAG-En_files/image022.jpg
- Click ***Browse ***button
http://mcthub.com/images/ContentLab/DAG-En_files/image023.jpg
- Select server EXCHANGE2 - Click OK button
http://mcthub.com/images/ContentLab/DAG-En_files/image024.jpg
- Click ***Save ***button
http://mcthub.com/images/ContentLab/DAG-En_files/image025.jpg
- Wait until the saving completes successfully
http://mcthub.com/images/ContentLab/DAG-En_files/image026.jpg
- Then click close when finished
http://mcthub.com/images/ContentLab/DAG-En_files/image027.jpg
- Verify successful completion of copying a database. In databases tabs, click Refresh, and wait until the details pane shows Mailbox Database 1\EXCHANGE2 as Passive Healthy. This might take several minutes and up to several hours depending on the size of the database. Make sure that the Status displays Healthy and the Content index state also displays Healthy. Then click cancel. Note that this might take some time, so please wait.
http://mcthub.com/images/ContentLab/DAG-En_files/image028.jpg
- Or you can also use Get-MailboxDatabaseCopyStatus to check the database copy health
http://mcthub.com/images/ContentLab/DAG-En_files/image029.jpg
- You can also use the below command to check the synchronization process
http://mcthub.com/images/ContentLab/DAG-En_files/image030.jpg
Verify successful completion of passive database
- To move Mailbox Database 1 to EXCHANGE2 I can simply highlight it and then review the status of the database copies. Note that in this case the passive copy on EXCHANGE2 is healthy, with no copy queue length issues and a healthy content index state as well.
Under those conditions we can proceed with the switchover by clicking the link to Activate the database copy
http://mcthub.com/images/ContentLab/DAG-En_files/image031.jpg
- Click Yes to confirm the action
http://mcthub.com/images/ContentLab/DAG-En_files/image032.jpg
- Then a progress bar let’s you know when the operation is complete, so please wait
http://mcthub.com/images/ContentLab/DAG-En_files/image033.jpg
- Click Close when finished
http://mcthub.com/images/ContentLab/DAG-En_files/image034.jpg
- I can see that Mailbox Database 1 is now active on server EXCHANGE2..
http://mcthub.com/images/ContentLab/DAG-En_files/image035.jpg
- Or you can also use Get-MailboxDatabaseCopyStatus to check the result
http://mcthub.com/images/ContentLab/DAG-En_files/image036.jpg
- Switch to CLIENT1, logon any user, open Outlook and check the user can still access the mailbox
http://mcthub.com/images/ContentLab/DAG-En_files/image037.jpg
Check the fault tolerance of the DAG
- Switch to EXCHANGE2, disable Network Adapter
http://mcthub.com/images/ContentLab/DAG-En_files/image038.jpg
- Switch to EXCHANGE1, I can see that Mailbox Database 1 is now active on server EXCHANGE1
http://mcthub.com/images/ContentLab/DAG-En_files/image039.jpg
- Or you can also use *** Get-MailboxDatabaseCopyStatus***
http://mcthub.com/images/ContentLab/DAG-En_files/image040.jpg
- Switch to CLIENT1, logon any user, open Outlook and check the user can still access the mailbox
http://mcthub.com/images/ContentLab/DAG-En_files/image041.jpg
Thank you for reading my article
To view my article in Vietnamese, click the link below
mcthub.com