9. Configure mailbox Dag
To achieve high availability of the Exchange Server mailbox role, we use the new 2013 Dag function to Achieve Synchronous replication of the mailbox database.
9.1. Configure the witness Server
If you use an even Dag group, you must configure the witness server. In this environment, we select the pdc2012 server to host the witness server function.
9.1.1. log on to the pdc2012 server, create the folder sharedag, and set exmailbox1 and exmailbox2 to have full control over this folder.
650) This. width = 650; "Title =" clip_image001 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image001 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541198iq7T.png "Height =" 244 "/>
9.1.2. Add the exchange trusted subsystem group to the local administrator group in pdc2012.
650) This. width = 650; "Title =" clip_image002 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image002 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541198xsWg.png "Height =" 244 "/>
After configuring the witness server, you can log on to the Exchange server console to configure the Dag.
9.2. Create a database availability Group
9.2.1. Open Exchange Server 2013 ECP. Expand server and navigate to the Database Availability group tab.
650) This. width = 650; "Title =" clip_image004 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image004 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541199l5Qs.jpg "Height =" 184 "/>
9.2.2. Click "+" to create a "Database Availability group"
650) This. width = 650; "Title =" clip_image006 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image006 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541199AmC4.jpg "Height =" 151 "/>
9.2.3. On the "Create Database Availability group" Wizard Page, enter the Database Availability group name, which can be customized. Complete the name and directory of the witness server. Click "save ".
650) This. width = 650; "Title =" clip_image007 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image007 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541200g5W7.png "Height =" 244 "/>
9.2.4. After clicking "save", we can view the newly created Dag group on the "Database Availability group" tab of the ECP console. At this time, the Dag group does not have any member servers.
650) This. width = 650; "Title =" clip_image009 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image009 "src =" http://img1.51cto.com/attachment/201409/1/7269200_14095412004T3Z.jpg "Height =" 132 "/>
9.2.5. Click Edit dag1 properties. The IP address configured for dag1 is 192.168.20.200.
650) This. width = 650; "Title =" clip_image011 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image011 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541201wjCy.jpg "Height =" 192 "/>
9.3. Manage Database Availability group members
After creating a dag, you must add the mailbox database server to the Dag to make the mailbox highly available.
9.3.1. In the created Dag group, select "manage Dag member identity"
650) This. width = 650; "Title =" clip_image013 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image013 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541201v9Tw.jpg "Height =" 134 "/>
9.3.2. On the "manage Database Availability group members" Page, add two exmailbox1 and exmailbox2 servers and click "save ".
650) This. width = 650; "Title =" clip_image014 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image014 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541201mayh.png "Height =" 244 "/>
9.3.3. After the command is complete, we can see that the two mailboxes have been successfully added to the Dag and become two members of the Dag.
650) This. width = 650; "Title =" clip_image016 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image016 "src =" http://img1.51cto.com/attachment/201409/1/7269200_14095412022wPg.jpg "Height =" 157 "/>
9.3.4. Now we can see the Dag member server and network on the right side of "Database Availability group.
650) This. width = 650; "Title =" clip_image018 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image018 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541202fHo2.jpg "Height =" 130 "/>
9.3.5. On the Dag network on the right, click "View Details" to view the added IP address and status of the member servers.
650) This. width = 650; "Title =" clip_image020 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image020 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541203t99d.jpg "Height =" 215 "/>
9.3.6. Click the Failover Cluster Manager. On the "cluster core resources" page, we can see that the cluster dag1 is online and the cluster dag1 is working properly.
650) This. width = 650; "Title =" clip_image022 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image022 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541203zKoS.jpg "Height =" 179 "/>
9.3.7. Open the CMD console and run the ping command to verify the 192.168.20.200 address.
650) This. width = 650; "Title =" clip_image023 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image023 "src =" http://img1.51cto.com/attachment/201409/1/7269200_14095412041Zsh.png "Height =" 95 "/>
So far, the Dag cluster has been set up. We also need to enable replication for the mailbox database.
9.4. Verify the witness Server
9.4.1. log on to the witness server pdc2012 and open the created sharedag directory. You can see the automatically created witness folder named 41017c21-7295-4e46-940c-8a9dfe55141d.
650) This. width = 650; "Title =" clip_image025 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image025 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541204ejO8.jpg "Height =" 69 "/>
9.4.2. Open this folder and you can see the two text documents created in it.
650) This. width = 650; "Title =" clip_image027 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image027 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541204d2Wa.jpg "Height =" 64 "/>
9.4.3. Run the net share command to view the sharing. We found that a dag1.contoso. com share is automatically created.
650) This. width = 650; "Title =" clip_image029 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image029 "src =" http://img1.51cto.com/attachment/201409/1/7269200_14095412055EBb.jpg "Height =" 136 "/>
9.5. Configure Database Management
After creating a DAG Group, we also need to enable replication for the mailbox database and add copies.
9.5.1. Navigate to "server" and "Database ". On this tab, you can see the mailbox storage database automatically created on exmailbox1 and exmailbox2.
Select any email database. You can find that no synchronized database copy exists in the Database copy pane.
We operate these two databases separately. On any email database, click "... "," Add database copy"
650) This. width = 650; "Title =" clip_image031 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image031 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541205eYCB.jpg "Height =" 142 "/>
9.5.2. On the "add mailbox database copy" page, you can view the mailbox database name and the server that already has the database copy. Click Browse in "server name ".
650) This. width = 650; "Title =" clip_image033 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image033 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541206NiVt.jpg "Height =" 186 "/>
9.5.3 select the email server page, select the exmailbox1 server, and click "OK ".
650) This. width = 650; "Title =" clip_image034 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image034 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541206oLGE.png "Height =" 244 "/>
9.5.4. You can see that the exmailbox1 server is added to "server name" and click "save ".
650) This. width = 650; "Title =" clip_image036 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image036 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541207vvuS.jpg "Height =" 182 "/>
9.5.5. After adding a database copy, wait until the synchronization is completed.
650) This. width = 650; "Title =" clip_image037 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image037 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541207rZ06.png "Height =" 162 "/>
9.5.6. in the right column of the ECP page, you can see that the current database is being re-synchronized.
650) This. width = 650; "Title =" clip_image038 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image038 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541207600F.png "Height =" 129 "/>
9.5.7. After the synchronization is completed, the status of the database copy is "loaded" in the local environment, and the status of another node in the group is "normal ".
650) This. width = 650; "Title =" clip_image040 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image040 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541208uhBd.jpg "Height =" 149 "/>
9.5.8. Similarly, we use this method to add database copies to another database in the group.
650) This. width = 650; "Title =" clip_image042 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image042 "src =" http://img1.51cto.com/attachment/201409/1/7269200_1409541208Xe90.jpg "Height =" 123 "/>
9.5.9. Check the status of the database that has been synchronized.
650) This. width = 650; "Title =" clip_image044 "style =" border-top: 0px; border-Right: 0px; border-bottom: 0px; border-left: 0px; "Border =" 0 "alt =" clip_image044 "src =" http://img1.51cto.com/attachment/201409/1/7269200_14095412098sA9.jpg "Height =" 131 "/>
So far, all the work of Dag has been completed, and we can verify the high availability of the server.
Exchange 2013sp1 email system deployment-(6)