Creating DAG Step-by-Step in Exchange Server 2010
First before creating DAG we need to make sure Network setup is set in proper in place.
Configure Network Settings
As already mentioned, two NICs have been installed in each server. Let us look at the way each NIC has been configured. To do so, open Network Connections. Here we have the NICs listed, and as you can see we have a PROD (connecting to the production network and providing MAPI connectivity) and a REPLICATION (connected to an isolated network) interface.
Now Click Start -> Run -> in search box type “NCPA.CPL” -> Enter
Optionally, you can uncheck QoS Packet Scheduler and Internet Protocol Version 6 (TCP/IP v6).
Properties of PROD Interface
Open the property page of Internet Protocol Version 4 (TCP/IPv4). Here we have a static IP address configured as well as the other necessary settings (default gateway, subnet mask, and DNS server).
When you have configured the NIC correspondingly, close the property page by clicking OK twice.
It’s time to configure the network settings for the “REPLICATION” interface, so let us open the property page of the “REPLICATION” NIC. Uncheck “Client for Microsoft Networks” and “File and Printer Sharing for Microsoft Networks”.
Optionally, you can uncheck QoS Packet Scheduler and Internet Protocol Version 6 (TCP/IP v6).
Properties for the Replication Interface
Now open property page of “Internet Protocol Version 4 (TCP/IPv4)” and enter an IP address and subnet mask on the isolated replication subnet. Since this NIC solely is used for replication, seeding and heartbeats, you should not specify any default gateway or DNS servers.
Note:
If routing on the “REPLICATION” interface for some reason is necessary between the two servers, you should use static routes instead of specifying a default gateway.
TCP/IP Version 4 properties for the REPLICATION interface
Now click “Advanced” and uncheck “Register this connection’s addresses in DNS” and then click “OK” twice.
Advanced TCP/IP Properties for REPLICATION interface
Now that we have configured each NIC, we must make sure the “PROD” NIC is listed first on the binding order list. To bring up the binding order list, you must press the ALT key, and then select Advanced > Advanced Settings.
Selecting Advanced Settings in the Network Connection menu
If not already the case, move the PROD NIC to the top as shown below
Click OK and close the Network Connections window.
Note: You should of course make sure the above steps are performed on both servers.
Creating the Database Availability Group in Exchange 2010
With that we are actually ready to create the DAG itself. This can both be done via the Exchange Management Console or the Exchange Management Shell. In this article we will use the console. So under the Mailbox node, select the Database Availability Group tab, then right-click somewhere in the white area. In the context menu, select New Database Availability Group as shown below.
Now open EMC (Exchange Management Console) and click New Database Availability Group as shown below.
Selecting New Database Availability Group in the context menu
In the Database Availability Group wizard, enter a name for the new DAG. Also, specify the witness server and the witness directory on that server. When you have done so, click New.
Specifying the DAG name as well as witness server and directory as mentioned above
On the Completion page, we get a warning that the specified witness server is not an Exchange Server. You can ignore this.
Click Finish to exit
Now that we have created the DAG we can move on and add the two Mailbox servers as member servers. To do so, right-click on the newly created DAG and select Manage Database Availability Group Membership in the context menu as shown below.
This opens the Manage Database Availability Group Membership wizard, where we click Add.
Now select the two servers and click OK.
Adding member servers to the Database Availability Group
Click Manage.
Member servers added to the Database Availability Group
The failover clustering component will now be installed on each server. Then the DAG will be created and configured accordingly. This can take several minutes based on your Network.
Waiting for the Manage Database Availability Group Membership wizard to complete
If you do not have DHCP available on the network while the member servers are being added to the DAG, you will get the warning shown as below.
Note:
DHCP assigned addresses are fully supported for DAG purposes. Actually the Exchange Product groups it a good idea to use a DHCP assigned address for the DAGs.
Member servers added to the DAG
We’ll add a static IP address to the DAG right away. The consequences of not having an IP address configured for the DAG is that the cluster core resources cannot be brought online as shown as below.
Cluster core resources offline in Failover Clustering console
One of the things that are missing from the GUI is the option of assigning a static IP address to the DAG, so we need to perform this task via the Exchange Management Shell. So let’s launch the shell and enter the following command:
Get-DatabaseAvailabilityGroup | FL
This shows us, as expected, no IP address is configured for the DAG.
No IP address assigned to the DAG
To assign a static IP address, we need to use the Set-DatabaseAvailabilityGroup cmdlet with the DatabaseAvailabilityGroupIpAddresses parameter:
Set-DatabaseAvailabilityGroup DAG1 –DatabaseAvailabilityGroupIpAddresses 192.X.X.X
Note: Assign IP using the command base on your Network.
Cluster core resources online in the Failover Clustering console
For More Info:
http://technet.microsoft.com/en-in/library/dd351172(v=exchg.150).aspx
Praveen Kumar
MCTS | Exchange Server