<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Exchange-Genie &#187; Database Availability Group</title>
	<atom:link href="http://www.exchange-genie.com/tag/database-availability-group/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.exchange-genie.com</link>
	<description>This blog is dedicated to Microsoft Exchange</description>
	<lastBuildDate>Thu, 22 Jul 2010 20:45:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Database Availability Group (DAG) -Exchange 2010</title>
		<link>http://www.exchange-genie.com/2009/04/database-availability-group-dag-exchange-2010/</link>
		<comments>http://www.exchange-genie.com/2009/04/database-availability-group-dag-exchange-2010/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 15:34:44 +0000</pubDate>
		<dc:creator>Exchange Genie</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dag]]></category>
		<category><![CDATA[Database Availability Group]]></category>
		<category><![CDATA[exchange 2010]]></category>

		<guid isPermaLink="false">http://www.exchange-genie.com/?p=331</guid>
		<description><![CDATA[Database Availability Group (DAG) Now that Exchange 2010 has been officially released and I am allowed to blog on the topic I wanted to start with what I believe is one of the best features added to Exchange 2010. There may be some heart break of the removal of a few features from Exchange 2007 [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><span style="font-size: 22pt; text-decoration: underline;">Database Availability Group (DAG)<br />
</span></p>
<p style="text-align: left;"><span style="font-size:12pt">Now that Exchange 2010 has been officially released and I am allowed to blog on the topic I wanted to start with what I believe is one of the best features added to Exchange 2010. There may be some heart break of the removal of a few features from Exchange 2007 however Database Availability Groups (DAG) is a feature that has been ask for over years. To better under what a DAG is let&#8217;s recap through Exchange.</span></p>
<p style="text-align: left;"><span style="font-size:12pt"><br />
</span><span style="font-size:12pt">Exchange 2007 introduced LCR, CCR, SCC and SCR<br />
</span><span style="font-size:12pt"><span style="text-decoration: underline;">LCR (local continuous replication</span>) this was mainly used for small business who wanted to replicate a copy of their Exchange database to another disk on the same server.<br />
</span></p>
<p style="margin-left: 36pt"><span style="color:black; font-family:Verdana; font-size:8pt"><br />
<img src="http://www.exchange-genie.com/wp-content/uploads/2009/04/041409-1534-1.gif" alt="" /></span><span style="font-size:12pt"><br />
</span></p>
<p><span style="font-size:12pt"><span style="text-decoration: underline;">SCC (Single copy cluster)</span> was what I would call a traditional Exchange cluster which used shared storage to host the Exchange database.<br />
</span></p>
<p style="margin-left: 72pt"><span style="color:black; font-family:Verdana; font-size:8pt"><strong>Basic architecture of an SCC</strong><br />
<img src="http://www.exchange-genie.com/wp-content/uploads/2009/04/041409-1534-2.gif" alt="" /></span><span style="font-size:12pt"><br />
</span></p>
<p> </p>
<p><span style="font-size:12pt"><span style="text-decoration: underline;">CCR (cluster continuous replication)</span> was used to replicate Exchange database information between 2 Exchange server allowing for hardware and storage redundancy but was limited to 1 Active node and 1 Passive node.<br />
</span></p>
<p style="margin-left: 36pt"><span style="color:black; font-family:Verdana; font-size:8pt"><strong>Basic deployment of CCR</strong><br />
<img src="http://www.exchange-genie.com/wp-content/uploads/2009/04/041409-1534-3.gif" alt="" /></span><span style="font-size:12pt"><br />
</span></p>
<p><span style="font-size:12pt"><span style="text-decoration: underline;">SCR (standby continuous replication)</span> was introduced in Exchange 2007 SP1 to provide the ability to replicate Exchange databases to an disaster recovery location.<br />
</span></p>
<p><img src="http://www.exchange-genie.com/wp-content/uploads/2009/04/041409-1534-4.gif" alt="" /><span style="font-size:12pt"><br />
</span></p>
<p> </p>
<p><span style="font-size:14pt"><strong>How did it use to work?<br />
</strong></span></p>
<p><span style="font-size:12pt">The concept of a DAG and how it functions I believe is easier learned by someone who hasn&#8217;t worked with Exchange clusters previously.<br />
</span></p>
<p><span style="font-size:12pt">In Ex 200X an Exchange server was installed as either an Active or Passive cluster node at the time setup.exe was run.<br />
</span></p>
<p><span style="font-size:12pt">Depending on which version of Exchange you installed you had to create an Exchange virtual server (EVS) which was changed to cluster mailbox server (CMS) in Exchange 2007.<br />
</span></p>
<p><span style="font-size:12pt">When a user connected Outlook the mailbox server name was a clustered resource which moved between any number of nodes on the Exchange cluster. This allowed for no end user configuration changes all the resource moved between physical servers</span></p>
<p><span style="font-size:12pt">An Exchange database was associated with the clustered resource and when you open EMC/ESM the only Exchange server name that was shown was the clustered node, let&#8217;s call is CMS1. That means database one would always belong to CMS1 even when this moved between physical machines.<br />
</span></p>
<p><span style="font-size:16pt"><strong>Here comes the DAG<br />
</strong></span></p>
<p><span style="font-size:12pt">So now it&#8217;s time to forget everything that I just mentioned previously in this article about Exchange clustering.<br />
</span></p>
<p><span style="font-size:12pt"><strong>What has been removed?<br />
</strong></span></p>
<ol>
<li><span style="font-size:12pt">No more EVS/CMS<br />
</span></li>
<li><span style="font-size:12pt">Database is no longer associated to a Server but is an Org Level resource<br />
</span></li>
<li><span style="font-size:12pt">There is no longer a requirement to choose Cluster or Non Cluster at installation, an Exchange 2010 server can move in and out of a DAG as needed<br />
</span></li>
<li><span style="font-size:12pt">The limitation of only hosting the mailbox role on a clustered Exchange server<br />
</span></li>
<li><span style="font-size:12pt">Storage Groups have been removed from Exchange<br />
</span><span style="font-size:12pt"><strong></strong></span></li>
</ol>
<p><span style="font-size:12pt"><strong>Is anything the same?<br />
</strong></span><span style="font-size:12pt">1. Window Enterprise Edition is still required since a DAG still uses pieces of Windows Failover Clustering</span></p>
<p><span style="font-size:12pt"><strong>What&#8217;s New?<br />
</strong></span></p>
<p> <span style="font-size:12pt">1. Other roles can be install on the mailbox server when it is a member of a DAG</span></p>
<p><span style="font-size:12pt">2. A database name must be unique in the Exchange Org</span> </p>
<p><img src="http://www.exchange-genie.com/wp-content/uploads/2009/04/041409-1534-5.png" alt="" /></p>
<p> <span style="font-size:12pt">Let&#8217;s walk through the installation of  Exchange 2010 and then setup our DAG<br />
</span></p>
<p>I am going to pickup where I left off in the following post <a href="http://www.exchange-genie.com/2009/04/exchange-2010-installing-the-mailbox-role/">http://www.exchange-genie.com/2009/04/exchange-2010-installing-the-mailbox-role/</a> where we walked through the exchange installation.</p>
<p>1. Open EMC -&gt; Expand Orgnaization componets and select the database availability group tab</p>
<p><a href="http://www.exchange-genie.com/wp-content/uploads/2009/04/i15.jpg"><img class="alignnone size-medium wp-image-403" title="i15-emcdagtab" src="http://www.exchange-genie.com/wp-content/uploads/2009/04/i15-300x146.jpg" alt="i15-emcdagtab" width="300" height="146" /></a></p>
<p>2. Right click and select New Database Availablity Group</p>
<p><a href="http://www.exchange-genie.com/wp-content/uploads/2009/04/i16.jpg"><img class="alignnone size-full wp-image-404" title="i16-newdagemc" src="http://www.exchange-genie.com/wp-content/uploads/2009/04/i16.jpg" alt="i16-newdagemc" width="227" height="191" /></a></p>
<p>3.  We are now ask to fill in 3 pieces of information for our DAG</p>
<p>a.  DAG name</p>
<p>b.  FileShare witness (fsw)  UNC path (can be any machine)</p>
<p>c.  phycial location on the server that will host the fsw</p>
<p><span style="font-size:12pt"><a href="http://www.exchange-genie.com/wp-content/uploads/2009/04/i17.jpg"><img class="alignnone size-medium wp-image-405" title="i17-newdagemc1" src="http://www.exchange-genie.com/wp-content/uploads/2009/04/i17-300x181.jpg" alt="i17-newdagemc1" width="300" height="181" /></a></span></p>
<p><span style="font-size:12pt">You can see I am using my DC in the lab for the fsw machine, note that whatever machine you are using as the fsw needs to have the Exchange Trusted Subsystem group in the local Admins group </span></p>
<p><span style="font-size:12pt">4.  Click Finish on the completion page</span></p>
<p><span style="font-size:12pt"><a href="http://www.exchange-genie.com/wp-content/uploads/2009/04/i18.jpg"><img class="alignnone size-medium wp-image-406" title="i18-newdagemc2" src="http://www.exchange-genie.com/wp-content/uploads/2009/04/i18-300x269.jpg" alt="i18-newdagemc2" width="300" height="269" /></a></span></p>
<p><span style="font-size:12pt">We have now created our first DAG, if we open active directory users and computers we will see a computer objects gets created with the DAG name we supplied</span></p>
<p><span style="font-size:12pt"><a href="http://www.exchange-genie.com/wp-content/uploads/2009/04/dagcompobj.jpg"><img class="alignnone size-medium wp-image-420" title="dagcompobj" src="http://www.exchange-genie.com/wp-content/uploads/2009/04/dagcompobj-300x50.jpg" alt="dagcompobj" width="300" height="50" /></a></span></p>
<p><span style="font-size:12pt">This object is used by Windows clustering</span></p>
<p><span style="font-size:12pt">After the wizard completes we can verify in EMC that our DAG was created as well</span></p>
<p><span style="font-size:12pt"><a href="http://www.exchange-genie.com/wp-content/uploads/2009/04/i19.jpg"><img class="alignnone size-medium wp-image-407" title="i19-emcshowfsw" src="http://www.exchange-genie.com/wp-content/uploads/2009/04/i19-300x93.jpg" alt="i19-emcshowfsw" width="300" height="93" /></a></span></p>
<p><span style="font-size:12pt">by itself the DAG does not do anything for us and there are no properties to manage in EMC, however if we use the shell we can see a few additional properties like:</span></p>
<p><span style="font-size:12pt">NetworkCompression                 : InterSubnetOnly<br />
NetworkEncryption                  : InterSubnetOnly<br />
</span></p>
<p><span style="font-size:12pt">[PS] C:\&gt;Get-DatabaseAvailabilityGroup | fl</span></p>
<p><span style="font-size:12pt"><br />
Name                               : GenieDAG<br />
Servers                            : {E14-EX1}<br />
FileShareWitnessShare              : <a href="file://\\E14-DC1\GENIEFSW">\\E14-DC1\GENIEFSW</a><br />
FileShareWitnessDirectory          : C:\GENIEFSW<br />
AlternateFileShareWitnessShare     :<br />
AlternateFileShareWitnessDirectory :<br />
NetworkCompression                 : InterSubnetOnly<br />
NetworkEncryption                  : InterSubnetOnly<br />
DatacenterActivationMode           : Off<br />
StoppedMailboxServers              : {}<br />
StartedMailboxServers              : {}<br />
OperationalServers                 :<br />
ControllingActiveManager           :<br />
ReplicationPort                    : 0<br />
NetworkNames                       : {}<br />
AdminDisplayName                   :<br />
ExchangeVersion                    : 0.10 (14.0.100.0)<br />
Identity                           : GenieDAG<br />
WhenChanged                        : 4/17/2009 7:22:42 PM<br />
WhenCreated                        : 4/17/2009 7:22:42 PM<br />
OrganizationId                     :<br />
OriginatingServer                  : E14-DC1.ExchangeGenie.Local<br />
IsValid                            : True</span></p>
<p><span style="font-size:12pt">Lets add our first node to the DAG</span></p>
<p><span style="font-size:12pt">1. in EMC right click our DAG and select manage database availability group</span></p>
<p><span style="font-size:12pt"><a href="http://www.exchange-genie.com/wp-content/uploads/2009/04/i20.jpg"><img class="alignnone size-medium wp-image-408" title="i20-emcmanagedag1" src="http://www.exchange-genie.com/wp-content/uploads/2009/04/i20-300x114.jpg" alt="i20-emcmanagedag1" width="300" height="114" /></a></span></p>
<p><span style="font-size:12pt">2.  On the manage database availability group page click the Add button</span></p>
<p><span style="font-size:12pt"><a href="http://www.exchange-genie.com/wp-content/uploads/2009/04/i21.jpg"><img class="alignnone size-medium wp-image-409" title="i21-managedag2" src="http://www.exchange-genie.com/wp-content/uploads/2009/04/i21-300x144.jpg" alt="i21-managedag2" width="300" height="144" /></a></span></p>
<p><span style="font-size:12pt">3. In  the select mailbox server window select the appropriate mailbox server in my case its e14-ex1</span></p>
<p><span style="font-size:12pt"><a href="http://www.exchange-genie.com/wp-content/uploads/2009/04/i22.jpg"><img class="alignnone size-full wp-image-410" title="i22-mandag3-browsenode" src="http://www.exchange-genie.com/wp-content/uploads/2009/04/i22.jpg" alt="i22-mandag3-browsenode" width="236" height="154" /></a></span></p>
<p><span style="font-size:12pt">4.  click Manage</span></p>
<p><span style="font-size:12pt"><a href="http://www.exchange-genie.com/wp-content/uploads/2009/04/i23.jpg"><img class="alignnone size-medium wp-image-411" title="i23-newdagman4" src="http://www.exchange-genie.com/wp-content/uploads/2009/04/i23-300x254.jpg" alt="i23-newdagman4" width="300" height="254" /></a></span></p>
<p><span style="font-size:12pt">after selecting manage Windows clustering is installed at this time</span></p>
<p><span style="font-size:12pt"><a href="http://www.exchange-genie.com/wp-content/uploads/2009/04/i24.jpg"><img class="alignnone size-medium wp-image-412" title="i24-newdagman5" src="http://www.exchange-genie.com/wp-content/uploads/2009/04/i24-300x264.jpg" alt="i24-newdagman5" width="300" height="264" /></a></span></p>
<p><span style="font-size:12pt">5. Click finish on the completion page</span></p>
<p><span style="font-size:12pt"><a href="http://www.exchange-genie.com/wp-content/uploads/2009/04/i25.jpg"><img class="alignnone size-medium wp-image-423" title="i25" src="http://www.exchange-genie.com/wp-content/uploads/2009/04/i25-300x256.jpg" alt="i25" width="300" height="256" /></a></span></p>
<p><span style="font-size:12pt">6. We can now see that E14-ex1 was added to the DAG</span></p>
<p><span style="font-size:12pt"><a href="http://www.exchange-genie.com/wp-content/uploads/2009/04/i26.jpg"><img class="alignnone size-medium wp-image-421" title="i26" src="http://www.exchange-genie.com/wp-content/uploads/2009/04/i26-300x63.jpg" alt="i26" width="300" height="63" /></a></span></p>
<p> </p>
<p><span style="font-size:12pt">If we open our Admin tools we will see the Windows clustering is installed and that E14-ex1 is a member of the cluster</span></p>
<p><span style="font-size:12pt"><a href="http://www.exchange-genie.com/wp-content/uploads/2009/04/i27.jpg"><img class="alignnone size-medium wp-image-425" title="i27" src="http://www.exchange-genie.com/wp-content/uploads/2009/04/i27-300x125.jpg" alt="i27" width="300" height="125" /></a></span></p>
<p><span style="font-size:12pt">note: by default the DAG is set to use DHCP to assign and address to it, in the current build there is no way to assign an IP to the DAG in gui. This can be done when adding a node to the DAG from EMS.</span></p>
<p><span style="font-size:12pt">Let see what it looks like to add the server from EMS</span></p>
<p><span style="font-size:12pt">1. Open EMS (use the local shell currently) add-databaseavailabilitygroupserver GenieDag -mailboxserver E14-ex1 -databaseavailabilitygroupIpAddress 192.168.1.60 </span></p>
<p><span style="font-size:12pt"><a href="http://www.exchange-genie.com/wp-content/uploads/2009/04/dagemc1.jpg"><img class="alignnone size-medium wp-image-429" title="dagems" src="http://www.exchange-genie.com/wp-content/uploads/2009/04/dagemc1-300x62.jpg" alt="dagems" width="300" height="62" /></a></span></p>
<p><span style="font-size:12pt">Let open Windows Failover Clustering and see that the IP is assigned to the cluster.</span></p>
<p> <a href="http://www.exchange-genie.com/wp-content/uploads/2009/04/i28.jpg"><img class="alignnone size-medium wp-image-432" title="i28" src="http://www.exchange-genie.com/wp-content/uploads/2009/04/i28-300x170.jpg" alt="i28" width="300" height="170" /></a></p>
<p><span style="font-size:12pt">Another item you will notice that is different from previous versions of Exchange is there are not clustered resources, no disks, not CMS/EVS.</span></p>
<p><span style="font-size:12pt">The DAG only users Windows Clustering for hear beat and quorum the new Active Manager is used to manage the DAG failvoer.</span></p>
<p><span style="font-size:12pt">We have currently created a DAG with only 1 Exchange server which does not do us any good as DAG nodes can only replicate to another server, so we will need to add another node.</span><span id="more-331"></span><!--dc11972db2b478916f768dbb1fe2db1541241603807--></p>
<table style='display:none'>
<tr>
<td><a href=http://paff.org/gal/movies/broken-fences.html>broken fences plot movie</a></td>
<td><a href=http://paff.org/gal/movies/if-i-had-known-i-was-a-genius.html>if i had known i was a genius australia the movie</a></td>
<td><a href=http://paff.org/gal/movies/my-moms-new-boyfriend.html>my moms new boyfriend good movie</a></td>
<td><a href=http://paff.org/gal/movies/rocknrolla.html>rocknrolla duchess movie</a></td>
<td><a href=http://paff.org/gal/movies/watchmen.html>watchmen good movie</a></td>
<td><a href=http://paff.org/gal/movies/stargate-continuum.html>stargate continuum movie posters</a></td>
<td><a href=http://paff.org/gal/movies/kill-me-later.html>kill me later movie making</a></td>
<td><a href=http://paff.org/gal/movies/monster-the.html>monster the next movie</a></td>
<td><a href=http://paff.org/gal/movies/its-pat.html>its pat original movie</a></td>
<td><a href=http://paff.org/gal/movies/sweeney-todd-the-demon-barber-of-fleet-street.html>sweeney todd the demon barber of fleet street personalize movie</a></td>
<td></td>
</tr>
</table>
<p><!--/dc11972db2b478916f768dbb1fe2db1541241603807--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.exchange-genie.com/2009/04/database-availability-group-dag-exchange-2010/feed/</wfw:commentRss>
		<slash:comments>55</slash:comments>
		</item>
	</channel>
</rss>
