{"id":503,"date":"2017-04-19T22:31:19","date_gmt":"2017-04-19T20:31:19","guid":{"rendered":"http:\/\/itsimple.info\/?p=503"},"modified":"2017-04-19T23:42:42","modified_gmt":"2017-04-19T21:42:42","slug":"add-exchange-2013-dag-database-availability-group","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=503","title":{"rendered":"Add exchange 2013 DAG &#8211; Database Availability Group"},"content":{"rendered":"<p>DAG can run on exchange with the roles Mailbox or Mailbox+CAS, The basic requirement is 2 exchange server and a witness server, with windows 2016 this server can be assign automatically by the wizard. in any case you need to prepare witness server with share folder for that matter, The Exchange Trusted Subsystem group in Active Directory must be added to the local Administrators group on the witness server and the storage disk should be identical on all the mailbox server, the exact disk\\partitions path&amp;size !<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5875\" title=\"exchange-2013-dag-install-03\" src=\"https:\/\/cdn.practical365.com\/wp-content\/uploads\/2013\/01\/exchange-2013-dag-install-03.png\" alt=\"\" width=\"590\" height=\"370\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>The file share server need to have file and printer sharing option enabled through the firewall<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5880\" title=\"exchange-2013-dag-fsw-firewall\" src=\"https:\/\/cdn.practical365.com\/wp-content\/uploads\/2013\/01\/exchange-2013-dag-fsw-firewall.png\" alt=\"\" width=\"590\" height=\"263\" \/><\/p>\n<p>*. If the witness server is selected by the wizard or it is the cas server it is already will have the right permissions configured.<\/p>\n<p>&nbsp;<\/p>\n<p>you can ether use the same network as the exchange server or create different network or subnet, if you create different network make sure to disable the DNS on that network interface.<\/p>\n<p>To create the DAG through the ecp :<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5873\" title=\"exchange-2013-dag-install-01\" src=\"https:\/\/cdn.practical365.com\/wp-content\/uploads\/2013\/01\/exchange-2013-dag-install-01.png\" alt=\"\" width=\"590\" height=\"284\" \/><\/p>\n<p>Fill in the data :<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5874\" title=\"exchange-2013-dag-install-02\" src=\"https:\/\/cdn.practical365.com\/wp-content\/uploads\/2013\/01\/exchange-2013-dag-install-02.png\" alt=\"\" width=\"381\" height=\"351\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>To create the DAG with powershell : this will create DAG with the name DAG1 and the witness server: CAS1 with multi IP configuration, but you can just have one IP:<\/p>\n<pre>New-DatabaseAvailabilityGroup -Name DAG1 -WitnessServer CAS1 -WitnessDirectory C:\\DAG1 -DatabaseAvailabilityGroupIPAddresses 10.0.0.8,192.168.0.8<\/pre>\n<p>To add the mailbox servers as a members in the DAG use the ECP :<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5876\" title=\"exchange-2013-dag-members-01\" src=\"https:\/\/cdn.practical365.com\/wp-content\/uploads\/2013\/01\/exchange-2013-dag-members-01.png\" alt=\"\" width=\"473\" height=\"191\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Or add Mailbox serve to the DAG (MBX1 is the name of the mailbox server) With powershell:<\/p>\n<pre>Add-DatabaseAvailabilityGroupServer -Identity DAG1 -MailboxServer MBX1<\/pre>\n<p>To chack<\/p>\n<pre>Get-DatabaseAvailabilityGroup |FL<\/pre>\n<p>When adding copies to mailbox database, First learn about the locations of the database files to make sure both mailbox server ready :<\/p>\n<pre><span class=\"crayon-v\">Get<\/span><span class=\"crayon-o\">-<\/span><span class=\"crayon-i\">MailboxDatabase<\/span> <span class=\"crayon-s\">\"Mailbox Database Name\"<\/span> <span class=\"crayon-o\">|<\/span> <span class=\"crayon-e\">select <\/span><span class=\"crayon-v\">edbfilepath<\/span><span class=\"crayon-sy\">,<\/span><span class=\"crayon-e\">logfolderpath<\/span><\/pre>\n<p>Then to add copy to database in the DAG through the ECP :<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5905\" src=\"https:\/\/cdn.practical365.com\/wp-content\/uploads\/2013\/02\/exchange-2013-dag-database-02.png\" alt=\"exchange-2013-dag-database-02\" width=\"505\" height=\"279\" \/><\/p>\n<p>Or with powershell assuming the active database on server MBX1:<\/p>\n<pre>Add-MailboxDatabaseCopy -Identity \"Mailbox Database Name\"\" -MailboxServer MBX2 -ActivationPreference 2<\/pre>\n<p>&nbsp;<\/p>\n<p>To check the status of the replication and database copies you can use:<\/p>\n<pre>Get-MailboxDatabaseCopyStatus | <span class=\"crayon-v\">ft<\/span> <span class=\"crayon-o\">-<\/span><span class=\"crayon-e\">auto<\/span><\/pre>\n<hr \/>\n<p>By now you should have successfully configured DAG on your exchange 2013 environment !<\/p>\n<h4>Good Luck<\/h4>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DAG can run on exchange with the roles Mailbox or Mailbox+CAS, The basic requirement is 2 exchange server and a witness server, with windows 2016 this server can be assign automatically by the wizard. in any case you need to prepare witness server with share folder for that matter, The Exchange Trusted Subsystem group in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-503","post","type-post","status-publish","format-standard","hentry","category-microsoft-exchange-2013"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=503"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/503\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}