<?xml version="1.0" encoding="UTF-8"?>
<rss 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/" version="2.0">

<channel>
	<title>Elan Shudnow's Blog</title>
	
	<link>http://www.shudnow.net</link>
	<description>Just another IT guy!</description>
	<lastBuildDate>Tue, 09 Mar 2010 01:39:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.shudnow.net/eshudnow" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="eshudnow" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Exchange 2010 RPC Client Access Service and Multiple Sites</title>
		<link>http://www.shudnow.net/2010/03/04/exchange-2010-rpc-client-access-service-and-multiple-sites/</link>
		<comments>http://www.shudnow.net/2010/03/04/exchange-2010-rpc-client-access-service-and-multiple-sites/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 04:52:12 +0000</pubDate>
		<dc:creator>Elan Shudnow</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2010]]></category>

		<guid isPermaLink="false">http://www.shudnow.net/?p=1663</guid>
		<description><![CDATA[
			
				
			
		
A common question I see out there is if the RPC Client Access Service (including Client Access Service Arrays) can access databases in other sites. The answer is, yes. Let&#8217;s take a look at a couple scenarios.
Scenario #1 &#8211; Full Site Failure
Let’s say you have a Client Access Server Array called array.domain.com.  Primary Site goes [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.shudnow.net%2F2010%2F03%2F04%2Fexchange-2010-rpc-client-access-service-and-multiple-sites%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.shudnow.net%2F2010%2F03%2F04%2Fexchange-2010-rpc-client-access-service-and-multiple-sites%2F&amp;source=elanshudnow&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>A common question I see out there is if the RPC Client Access Service (including Client Access Service Arrays) can access databases in other sites. The answer is, yes. Let&#8217;s take a look at a couple scenarios.</p>
<h3>Scenario #1 &#8211; Full Site Failure</h3>
<p>Let’s say you have a Client Access Server Array called array.domain.com.  Primary Site goes down.  As a part of the manual site switchover process, you must update the DNS records in your Primary Site to point to the CAS infrastructure at your DR Site.  One out of several DNS records you change will include the CAS Array. You change array.domain.com to point to DRSiteCAS instead of PrimarySiteCAS.  The client (after the DNS record flushes – recommended for TTL value to be 5 minutes for DNS records in site resilient solutions) will then start to connect to the DRSiteCAS which will then access the database in the DR Site.</p>
<h3>Scenario #2 &#8211; Server Failure(s) in Primary Site and Disabling Automatic Activation for Databases and Servers</h3>
<p>In the case where all database copies go down in the Primary Site, your databases can automatically failover to the DR Site as long as you allow automatic activation on the DR Servers (yes, you can turn off automatic activation on databases and servers) and as long as you still have Majority for your Quorum. In this scenario, the RPC Client Access (and array) can access the mailbox databases that are mounted in the DR Site.</p>
<h4>Automatic Activation</h4>
<p>As I just eluded to above, it is possible to turn off automatic activation on databases and servers. There is something called Database Activation Policy.  Let&#8217;s say you wanted to disable a specific database from being considered in the Automatic Activation Process.</p>
<p>You can use the following command to prevent the database from being considered in the Automatic Activation Process:</p>
<div style="background-color: #dddddd;" dir="ltr">Suspend-MailboxDatabaseCopy -Identity DB1\MBX2 -ActivationOnly</div>
<p>This example resumes the copy of the database DB1 on the server MBX2 for automatic activation:</p>
<div style="background-color: #dddddd;" dir="ltr">Resume-MailboxDatabaseCopy -Identity DB1\MBX2</div>
<p>This is also possible to do at the mailbox server level using the Set-MailboxServer cmdlet.  You can use the following command to prevent any databases on a specific mailbox server from being considered in the Automatic Activation Process:</p>
<div style="background-color: #dddddd;" dir="ltr">Set-MailboxServer -Identity MailboxServer -DatabaseCopyAutoActivationPolicy Blocked<em> </em></div>
<p>This example resumes all database copies on the mailbox server &#8220;MailboxServer&#8221; for automatic activation:</p>
<div style="background-color: #dddddd;" dir="ltr">Set-MailboxServer -Identity MailboxServer -DatabaseCopyAutoActivationPolicy Unrestricted</div>
<h4>Example</h4>
<p>Let’s say we have 6 DAG Servers with 4 in the Primary Site and 2 in the DR Site with no modifications to the Automatic Activation Policy (DAG Servers in the DR Site can automatically mount databases).  Let&#8217;s say, we currently have a lack of funds for storage which prohibit the ability to have mailbox database copies on all servers.  So PrimarySiteMBX01 and PrimarySiteMBX02 in the Primary Site are mirrored in terms of mailbox database copies.  PrimarySiteMBX03 and PrimarySiteMBX04 in the Primary Site are mirrored in terms of database copies.  PrimarySiteMBX01 and PrimarySiteMBX02 are mirrored with SecondarySitMBX0102 in the DR Site and PrimarySiteMBX03 and PrimarySiteMBX04 are mirrored with SecondarySiteMBX0304 in the DR Site.</p>
<p>To make it a bit more clear, the following image shows database distribution.  You can see there are 6 nodes and 3 copies of each database.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/RPCClientAccessSites01.jpg" alt="" width="510" height="434" /></p>
<p>Should PrimarySiteMBX01 and PrimarySiteMBX02 go down (as illustrated below), SecondarySiteMBX0102 can automatically mount the database because majority is still there for quorum.  In this case, the RPC Client Access Array in the Primary Site will still successfully be able to provide mailbox access to the databases mounted on SecondarySiteMBX0102 in the DR Site.  This is one of the nice things I like about Exchange 2010 High Availability, is that if your DAGs go down, you can allow the copy in the DR Site to automatically activate (provided the Database Activation Policy as described above allows it to automatically mount) whereas in Exchange 2007, you had to manually activate any SCR copy.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/RPCClientAccessSites02.jpg" alt="" width="509" height="431" /></p>
<p>Exchange 2007 and Exchange 2010 Clusters both use Majority Node Set Clustering.  This means that 50% of your votes (server votes and/or 1 file share witness) need to be up and running.  With DAGs, if you have an odd number of DAG nodes in the same DAG (Cluster), you have an odd number of votes so you don&#8217;t have a witness.  If you have an even number of DAGs nodes, you will have a file share witness in case half of your nodes go down, you have a witness who will act as that extra +1 number.</p>
<p>So in this scenario, we have 6 votes from the servers plus 1 witness from the file share witness totaling 7 votes.  This means we can have up to 3 servers fail and our cluster will still be online.  This is because if you are in the scenario where we 7 votes, if 3 go down that leaves us with 4 votes which satisfies the 50% + 1 majority rule. Because of this, we still have majority and our quorum and cluster are still fully operational.</p>
<p>Now when exactly would we have to do a manual switchover?  Well, there&#8217;s a couple cases.  The first would be if your Primary Datacenter has a complete outage.  This may be due to power failure, environmental disaster, etc&#8230;  The other is because all Primary Datacenter DAG members go down or just enough servers go down (again, 50% + 1 voters must be up which means if we lose more than 3 machines (includes FSW), our entire cluster goes offline.  In this case, you&#8217;ll have to do a manual datacenter switchover.  You&#8217;ll move over all services to the secondary datacenter including changing the RPC Client Access Server FQDN to point to the single CAS Server or the standby VIP that publishes RPC across multiple Secondary Datacenter CAS Servers.</p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=1663&type=feed" alt="" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shudnow.net%2F2010%2F03%2F04%2Fexchange-2010-rpc-client-access-service-and-multiple-sites%2F&amp;linkname=Exchange%202010%20RPC%20Client%20Access%20Service%20and%20Multiple%20Sites"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.shudnow.net/~ff/eshudnow?a=Wlq2T8LYI9A:xTssLITZW60:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/eshudnow?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.shudnow.net/~ff/eshudnow?a=Wlq2T8LYI9A:xTssLITZW60:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/eshudnow?i=Wlq2T8LYI9A:xTssLITZW60:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eshudnow/~4/Wlq2T8LYI9A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2010/03/04/exchange-2010-rpc-client-access-service-and-multiple-sites/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Forcing Address Book Updates in Communicator 2007 R2</title>
		<link>http://www.shudnow.net/2010/01/20/forcing-address-book-updates-in-communicator-2007-r2/</link>
		<comments>http://www.shudnow.net/2010/01/20/forcing-address-book-updates-in-communicator-2007-r2/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 02:22:18 +0000</pubDate>
		<dc:creator>Elan Shudnow</dc:creator>
				<category><![CDATA[OCS]]></category>

		<guid isPermaLink="false">http://www.shudnow.net/?p=1616</guid>
		<description><![CDATA[
			
				
			
		
Yes, this is old news and there&#8217;s about 462 blog entries (ok, that&#8217;s a made up number, but there are a lot) about how to force Communicator 2007 R2 to do an Address Book (Galcontacts.db) update.  These blog entries will talk about the July 2009 update for Communicator 2007 R2 and how it introduced a [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.shudnow.net%2F2010%2F01%2F20%2Fforcing-address-book-updates-in-communicator-2007-r2%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.shudnow.net%2F2010%2F01%2F20%2Fforcing-address-book-updates-in-communicator-2007-r2%2F&amp;source=elanshudnow&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Yes, this is old news and there&#8217;s about 462 blog entries (ok, that&#8217;s a made up number, but there are a lot) about how to force Communicator 2007 R2 to do an Address Book (Galcontacts.db) update.  These blog entries will talk about the <a href="http://support.microsoft.com/kb/972403/">July 2009 update for Communicator 2007 R2</a> and how it introduced a random delay of 0-60 minutes for Communicator 2007 R2 to download an updated GalContacts.db to prevent the network from getting hammered by so many clients downloading an updated GalContacts.db all at the same time.  And yes, these blog entries also talk about a registry entry you can create called GalDownloadInitialDelay and creating a Dword set to 0 in order to force Communicator to do an instant update.</p>
<p>Some blog articles that talk about this include:</p>
<p><a href="http://www.tincupsandstring.com/2009/12/01/forcing-address-book-download/">http://www.tincupsandstring.com/2009/12/01/forcing-address-book-download/</a></p>
<p><a href="http://www.markc.me.uk/MarkC/Blog/Entries/2009/12/17_Force_Downloading_the_Address_Book_in_OCS.html">http://www.markc.me.uk/MarkC/Blog/Entries/2009/12/17_Force_Downloading_the_Address_Book_in_OCS.html</a></p>
<p>Now I&#8217;m sure you are asking yourself why I am creating this entry?  Is it just to repeat information that&#8217;s already out there?  Of course not!</p>
<p>So, Communicator 2007 R2 is a 32-bit (x86) application.  That registry entry works perfectly fine on x86 systems.  But, if you are running on a x64 system, it won&#8217;t.  Why?  Well, because when you run x86 applications on a x64 based system, it utilizes a system in Windows called Windows on Windows (WOW64).  WOW64 has its own section within the registry called Wow6432Node.</p>
<p>So let&#8217;s say we take the registry key for our Communicator x86 (Communicator x64 not available) and run it on an x86 system.  The following registry key works fine:</p>
<div style="background-color: #dddddd;" dir="ltr">
<p>Windows Registry Editor Version 5.00</p>
<p>[HKEY_CURRENT_USER\Software\Policies\Microsoft\Communicator]<br />
&#8220;GalDownloadInitialDelay&#8221;=dword:00000000</p>
</div>
<p>But let&#8217;s say we have an x64 system.  The above registry key will not work.  We need to utilize the WOW6432Node part of the registry.  The following registry key works for x64 systems:</p>
<div style="background-color: #dddddd;" dir="ltr">
<p>Windows Registry Editor Version 5.00</p>
<p>[HKEY_CURRENT_USER\Software\Wow6432Node\Policies\Microsoft\Communicator]<br />
&#8220;GalDownloadInitialDelay&#8221;=dword:00000000</p>
</div>
<p>Please make sure you back up your registry before making changes as making changes to the registry can be harmful to your system if not done properly.</p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=1616&type=feed" alt="" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shudnow.net%2F2010%2F01%2F20%2Fforcing-address-book-updates-in-communicator-2007-r2%2F&amp;linkname=Forcing%20Address%20Book%20Updates%20in%20Communicator%202007%20R2"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.shudnow.net/~ff/eshudnow?a=lMZ1MKvKApo:xrId9c1dk_I:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/eshudnow?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.shudnow.net/~ff/eshudnow?a=lMZ1MKvKApo:xrId9c1dk_I:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/eshudnow?i=lMZ1MKvKApo:xrId9c1dk_I:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eshudnow/~4/lMZ1MKvKApo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2010/01/20/forcing-address-book-updates-in-communicator-2007-r2/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Exchange 2010 Moderation Features Grayed Out?</title>
		<link>http://www.shudnow.net/2010/01/19/exchange-2010-moderation-features-grayed-out/</link>
		<comments>http://www.shudnow.net/2010/01/19/exchange-2010-moderation-features-grayed-out/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 19:11:10 +0000</pubDate>
		<dc:creator>Elan Shudnow</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2010]]></category>

		<guid isPermaLink="false">http://www.shudnow.net/?p=1606</guid>
		<description><![CDATA[
			
				
			
		
Exchange 2010 introduces a new moderation feature.  This moderation feature can be used to perform moderation on both messages submitted to a Distribution Group and/or requests to join a group through the self-service options provided by the Exchange Control Panel (ECP).
The Issue
For both the Distribution Group Mail Flow Message Moderation as well as the Membership [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.shudnow.net%2F2010%2F01%2F19%2Fexchange-2010-moderation-features-grayed-out%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.shudnow.net%2F2010%2F01%2F19%2Fexchange-2010-moderation-features-grayed-out%2F&amp;source=elanshudnow&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Exchange 2010 introduces a new moderation feature.  This moderation feature can be used to perform moderation on both messages submitted to a Distribution Group and/or requests to join a group through the self-service options provided by the Exchange Control Panel (ECP).</p>
<h4>The Issue</h4>
<p>For both the Distribution Group Mail Flow Message Moderation as well as the Membership Approval Moderation were both grayed out for us.  I did a dump of these two groups by running the following two commands:</p>
<div style="background-color: #dddddd;" dir="ltr">
<div style="background-color: #dddddd;" dir="ltr">
<p>Get-DistributionGroup &#8220;Group 1&#8243; | FL |  Out-File C:\Groups\Group1.txt</p>
</div>
</div>
<div style="background-color: #dddddd;" dir="ltr">
<div style="background-color: #dddddd;" dir="ltr">
<p>Get-DistributionGroup &#8220;Group 2&#8243; | FL | Out-File C:\Groups\Group2.txt</p>
</div>
</div>
<h4>Distribution Group Mail Flow Message Moderation</h4>
<p><img class="alignnone" src="http://www.shudnow.net/images/MessageModerationGrayed01.jpg" alt="" width="426" height="579" /></p>
<h4>Membership Approval Moderation</h4>
<p><img class="alignnone" src="http://www.shudnow.net/images/MessageModerationGrayed02.jpg" alt="" width="438" height="492" /></p>
<h4>The Fix</h4>
<p>After taking a look at both .txt files, I noticed that the user that was specified under ManagedBy no longer exists.  I changed the ManagedBy to an existing user and all the Moderation feature options lit up and were no longer grayed out.</p>
<p>Keep in mind, you absolutely will need to have a Manager specified in order for the moderation features to light up.  This makes sense with the Membership Approval tab as it only allows you to use Group Managers.  For the Message Moderation, it would seem that Microsoft should not gray everything out by default when you don&#8217;t have a Group Manager specified since it does allow you to specify specific people for moderation instead of using the Group Manager.</p>
<p>You can use the following command to modify all your groups in bulk:</p>
<div style="background-color: #dddddd;" dir="ltr">Get-DistributionGroup | Set-DistributionGroup -ManagedBy &#8220;Manager Here&#8221;</div>
<p><span style="color: #ff0000;">Update (1/20/2010) </span>- I ran into another issue today where the moderation options were grayed out even with a valid group manager.  I changed the manager and changed it back and the moderation features were lit up.</p>
<p><span style="color: #ff0000;">Update  (2/17/2010)</span> &#8211; I forgot to update this with another issue after my 1/20/2010 update.  After updating the Group Manager for a group, the Address Book service in OCS seems to consider this group as an entirely new group.  This means that if people had this group added in OCS and you modified the Group Manager, that group becomes void in Communicator and stops expanding.  I had to end up deleting the GalContacts.db and let a client download a new GalContacts.db.  The client had to delete the group from Communicator and then delete it in order for the group to start working again.</p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=1606&type=feed" alt="" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shudnow.net%2F2010%2F01%2F19%2Fexchange-2010-moderation-features-grayed-out%2F&amp;linkname=Exchange%202010%20Moderation%20Features%20Grayed%20Out%3F"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.shudnow.net/~ff/eshudnow?a=hOFeHu1LfvM:FmKHwf6I8IM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/eshudnow?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.shudnow.net/~ff/eshudnow?a=hOFeHu1LfvM:FmKHwf6I8IM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/eshudnow?i=hOFeHu1LfvM:FmKHwf6I8IM:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eshudnow/~4/hOFeHu1LfvM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2010/01/19/exchange-2010-moderation-features-grayed-out/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OCS 2007 R2 Standard Edition Front End Automated Backups</title>
		<link>http://www.shudnow.net/2010/01/18/ocs-2007-r2-standard-edition-front-end-automated-backups/</link>
		<comments>http://www.shudnow.net/2010/01/18/ocs-2007-r2-standard-edition-front-end-automated-backups/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 16:22:04 +0000</pubDate>
		<dc:creator>Elan Shudnow</dc:creator>
				<category><![CDATA[OCS]]></category>

		<guid isPermaLink="false">http://www.shudnow.net/?p=1586</guid>
		<description><![CDATA[
			
				
			
		
OCS 2007 R2 Standard Edition Front Ends utilize SQL 2005 Express with SP2 for storing its databases.  Unfortunately, with SQL Express, you will have to backup using SQL Server Management Studio or find an automated way.  This article will detail the steps I utilize to make backing up easier and automated. For information on how [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.shudnow.net%2F2010%2F01%2F18%2Focs-2007-r2-standard-edition-front-end-automated-backups%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.shudnow.net%2F2010%2F01%2F18%2Focs-2007-r2-standard-edition-front-end-automated-backups%2F&amp;source=elanshudnow&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>OCS 2007 R2 Standard Edition Front Ends utilize SQL 2005 Express with SP2 for storing its databases.  Unfortunately, with SQL Express, you will have to backup using SQL Server Management Studio or find an automated way.  This article will detail the steps I utilize to make backing up easier and automated. For information on how to back up OCS, please see the Backup and Restoration Guide <a href="http://go.microsoft.com/fwlink/?LinkID=154160">here</a>.</p>
<p>The following data will ultimately need to be backed up:</p>
<ol>
<li>Global Config</li>
<li>Pool Config</li>
<li>Machine Config</li>
<li>SQL Databases</li>
<li>Standard Edition File Shares</li>
</ol>
<p>The first command specifies the /level to be global and pool.  The second command specifies the /level to be machine.  What we will do is create a batch file (.bat) and place both commands in this .bat and have them run against the server every 6pm using scheduled tasks.</p>
<div style="background-color: #dddddd;" dir="ltr">
<div style="background-color: #dddddd;" dir="ltr">
<p>lcscmd /config /action:export /level:global,pool /configfile:&lt;drive&gt;:\&lt;path&gt;\&lt;filename&gt;.xml /poolname:[name of Standard Edition server, which is used for the pool name]</p>
</div>
</div>
<div style="background-color: #dddddd;" dir="ltr">
<div style="background-color: #dddddd;" dir="ltr">
<p>lcscmd /config /action:export /level:machine /configfile: &lt;drive&gt;:\&lt;path&gt;\&lt;filename&gt;.xml /fqdn:[FQDN of server from which settings are to be exported]</p>
</div>
</div>
<p>Our Servername is SHUD-OCSFE01.  The folder to store the backups is C:\OCSBackup.  We&#8217;ll also be running the batch file from the C:\OCSBackup.  Because the folder which contains lcscmde.exe is not a part of the system variables, we&#8217;ll have to specify the entire path for lcscmd.exe. Taking this information into consideration, our two commands for our batch file will be:</p>
<div style="background-color: #dddddd;" dir="ltr">
<div style="background-color: #dddddd;" dir="ltr">
<p>&#8220;C:\Program Files\Common Files\Microsoft Office Communications Server 2007 R2\LCSCmd.exe&#8221; /config /action:export /level:global,pool /configfile:C:\OCSBackup\SHUD-OCSFE01_GlobalPool_Backup.xml /poolname:SHUD-OCSFE01</p>
</div>
</div>
<div style="background-color: #dddddd;" dir="ltr">
<div style="background-color: #dddddd;" dir="ltr">
<p>&#8220;C:\Program Files\Common Files\Microsoft Office Communications Server 2007 R2\LCSCmd.exe&#8221; /config /action:export /level:machine /configfile:C:\OCSBackup\SHUD-OCSFE01_Machine_Backup.xml /fqdn:SHUD-OCSFE01.shudnow.net</p>
</div>
</div>
<p>After executing this .bat file, we can see the two files have been created.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/OCSFEBackup_01.jpg" alt="" width="712" height="177" /></p>
<h3>SQL Databases</h3>
<p>The following is the list of SQL Databases that an OCS Standard Edition Front End uses:</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/OCSFEBackup_02.jpg" alt="" width="519" height="425" /></p>
<p>Because we are utilizing SQL Express, we will have to find some other method other than a backup agent to automate the backups. Much of the SQL Backup information is provided by the SQLDBATips Blog.  The following article I utilized is located <a href="http://www.sqldbatips.com/showarticle.asp?ID=27">here</a>.</p>
<p>Create a file with the extension of sql in our OCSBackup folder.  Also, create a new folder called C:\Reports for script reporting. I created a file C:\OCSBackup\ocssqlbackup.sql with the following text:</p>
<p><em>exec expressmaint<br />
@database      = &#8216;ALL_USER&#8217;,<br />
@optype        = &#8216;DB&#8217;,<br />
@backupfldr    = &#8216;c:\ocsbackup&#8217;,<br />
@reportfldr    = &#8216;c:\reports&#8217;,<br />
@verify        = 1,<br />
@dbretainunit  = &#8216;days&#8217;,<br />
@dbretainval   = 1,<br />
@rptretainunit = &#8216;weeks&#8217;,<br />
@rptretainval  = 1,<br />
@report        = 1</em></p>
<p><em><br />
exec expressmaint<br />
@database      = &#8216;ALL_USER&#8217;,<br />
@optype        = &#8216;LOG&#8217;,<br />
@backupfldr    = &#8216;c:\ocsbackup&#8217;,<br />
@reportfldr    = &#8216;c:\reports&#8217;,<br />
@verify        = 0,<br />
@dbretainunit  = &#8216;days&#8217;,<br />
@dbretainval   = 1,<br />
@rptretainunit = &#8216;days&#8217;,<br />
@rptretainval  = 1,<br />
@report        = 1</em></p>
<p>All of our OCS Databases are User Databases, not System Databases.  We can see this using SQL Server Management Studio which is not installed by default but can be downloaded from <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&amp;displaylang=en">here</a>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/OCSFEBackup_03.jpg" alt="" width="283" height="131" /></p>
<p><strong>Note</strong>: Keep in mind that we&#8217;re not using the default SQL Express instance of SQLExpress.  The OCS Front End Standard install will create and utilize an instance of RTC.</p>
<p>We now have our .SQL file created.  We&#8217;ll go ahead and create a new .bat file called ocssqlbackup.bat.  This batch file will run the following command:</p>
<div style="background-color: #dddddd;" dir="ltr">
<div style="background-color: #dddddd;" dir="ltr">
<p>&#8220;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\sqlcmd.exe&#8221; -S.\RTC -i &#8220;c:\OCSBackup\ocssqlbackup.sql&#8221;</p>
</div>
</div>
<p>This won&#8217;t work just yet.  You can see in the .SQL file, it&#8217;s calling the stored procedure &#8220;expressmaint.&#8221;  We need to create this stored procedure within SQL.  SQLDBATips has the vbscript code in order to do that <a href="http://www.sqldbatips.com/displaycode.asp?ID=26">here</a>.  You take this code and save it as storemaint.sql.  Then run the following code:</p>
<div style="background-color: #dddddd;" dir="ltr">
<div style="background-color: #dddddd;" dir="ltr">
<p>&#8220;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\sqlcmd.exe&#8221; -S .\RTC -i c:\ocsbackup\expressmaint.sql</p>
</div>
</div>
<p><strong>Note</strong>: The website that shows these instructions specify the -S.\ as -S.\SQLExpress.  Again, we&#8217;re not using the SQLExpress instance, but rather the RTC instance.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/OCSFEBackup_04.jpg" alt="" width="829" height="329" /></p>
<p>You can delete the expressmain.sql file now.  This is a permanent change in our instance and we won&#8217;t need to run the expressmain.sql script again.</p>
<p>We should now be able to run our SQL backup batch file as our .sql command that specifies our databases and logs has been created and our batch file to call sqlcmd.exe to execute our .sql file has been created.</p>
<p>We can see our ocssqlbackup.bat file successfully runs and creates backups of our databases.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/OCSFEBackup_05.jpg" alt="" width="675" height="539" /></p>
<h3>Scheduled Tasks</h3>
<p>We obviously want to keep backing up our databases every night in case something goes wrong.  We&#8217;ll create two scheduled tasks.  One that runs ocsbackup.bat for our global, pool, and machine specific information.  And the other that runs our SQL Backups.</p>
<p>I am launching the Task Scheduler from Server Manager (I am using Server 2008 but you can access Task Scheduler on Windows 2003 by going to Control Panel).</p>
<p>Create a Basic Task and give it a name.  We&#8217;ll name this OCS Backup.  Click <strong>Next </strong>to <strong>Continue</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/OCSFEBackup_06.jpg" alt="" width="700" height="481" /></p>
<p>Specify how often you want the task to run.  I typically run it Daily. Utilize whatever method works best for your organization. Click <strong>Next </strong>to <strong>Continue</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/OCSFEBackup_07.jpg" alt="" width="700" height="482" /></p>
<p>Choose what time the Daily Task will run.  Again, choose whatever time works best for your organization. Click <strong>Next </strong>to <strong>Continue</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/OCSFEBackup_08.jpg" alt="" width="700" height="221" /></p>
<p>We&#8217;ll want to run the script.  Because of this, choose &#8220;Start a program.&#8221; Click <strong>Next </strong>to <strong>Continue</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/OCSFEBackup_09.jpg" alt="" width="700" height="240" /></p>
<p>Specify the path to our batch file. Click <strong>Next </strong>to <strong>Continue</strong>. Review the Settings and then <strong>Click Finish</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/OCSFEBackup_10.jpg" alt="" width="700" height="240" /></p>
<p>You can then forcefully run the Scheduled Task to ensure it runs.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/OCSFEBackup_11.jpg" alt="" width="457" height="231" /></p>
<p>Now don&#8217;t forget to create the second scheduled task to run the batch file for SQL Backups!</p>
<p>Your OCSBackup folder should look something like this after your scheduled tasks run and your data is backed up.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/OCSFEBackup_13.jpg" alt="" width="676" height="298" /></p>
<h3>Backing up your data to a remote Backup Server</h3>
<p>Now what good is having all this data backed up onto the OCS File System if OCS crashes?  No good!  We&#8217;ll still want to take your backup system and back up all these files including the OCS Standard Edition File Shares.  Now keep in mind that you will want to back up all of these files at some time after your batch files are set to run in Scheduled Tasks.  For example, my Scheduled Tasks are set to run at 8pm.  The batch files do not take long to run.  You can have your backup set to run at 8:30pm or 9:00pm.  Be sure to test and validate this is working as intended and you are getting successful backups.</p>
<p>The Standard Edition File Shares you will want to backup include:</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/OCSFEBackup_12.jpg" alt="" width="661" height="1001" /></p>
<p>So to sum it up, you will want back up all the above file locations and your OCSBackup folder.  Backing up your Reports folder is optional. But again, keep in mind you will want to run this file level backup after all your Scheduled Tasks are successfully run.</p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=1586&type=feed" alt="" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shudnow.net%2F2010%2F01%2F18%2Focs-2007-r2-standard-edition-front-end-automated-backups%2F&amp;linkname=OCS%202007%20R2%20Standard%20Edition%20Front%20End%20Automated%20Backups"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.shudnow.net/~ff/eshudnow?a=lHYRX5GdL3I:cAzOgLsPdVI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/eshudnow?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.shudnow.net/~ff/eshudnow?a=lHYRX5GdL3I:cAzOgLsPdVI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/eshudnow?i=lHYRX5GdL3I:cAzOgLsPdVI:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eshudnow/~4/lHYRX5GdL3I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2010/01/18/ocs-2007-r2-standard-edition-front-end-automated-backups/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Upgrading to Exchange 2007 SP2 and Impersonation</title>
		<link>http://www.shudnow.net/2009/12/18/upgrading-to-exchange-2007-sp2-and-impersonation/</link>
		<comments>http://www.shudnow.net/2009/12/18/upgrading-to-exchange-2007-sp2-and-impersonation/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 21:01:13 +0000</pubDate>
		<dc:creator>Elan Shudnow</dc:creator>
				<category><![CDATA[Exchange]]></category>

		<guid isPermaLink="false">http://www.shudnow.net/?p=1566</guid>
		<description><![CDATA[
			
				
			
		
After recently doing an Exchange 2007 SP2 Upgrade and Rollup 1 for SP2, I encountered an issue with Impersonation.  I&#8217;m assuming this happened due to the SP2 Upgrade, not the Rollup, but be cognizant about the issue either way.  For this upgrade, Geomant Message Waiting Indicator (MWI) for Exchange 2007 Unified Messaging was being utilized.  [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.shudnow.net%2F2009%2F12%2F18%2Fupgrading-to-exchange-2007-sp2-and-impersonation%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.shudnow.net%2F2009%2F12%2F18%2Fupgrading-to-exchange-2007-sp2-and-impersonation%2F&amp;source=elanshudnow&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>After recently doing an Exchange 2007 SP2 Upgrade and Rollup 1 for SP2, I encountered an issue with Impersonation.  I&#8217;m assuming this happened due to the SP2 Upgrade, not the Rollup, but be cognizant about the issue either way.  For this upgrade, Geomant Message Waiting Indicator (MWI) for Exchange 2007 Unified Messaging was being utilized.  Geomant MWI utilized Impersonation in order to light up the telephone when the user receives a voicemail.  This stopped working after the SP2/RU1 was applied to the system.</p>
<h4>The issue</h4>
<p>The error message we saw was as follows</p>
<p>2009-12-17 22:56:37,744 ERROR Com.Geomant.Exchange12.MWIService.ExchConnector &#8211; Failed to create search folder by using WebService for user: CN=Lastname\, Firstname,OU=OUHERE,DC=domain,DC=tld. Reason: The server to which the application is connected cannot impersonate the requested user due to insufficient permission. [1488]</p>
<p>2009-12-17 22:56:37,760 ERROR Com.Geomant.Exchange12.MWIService.ExchConnector &#8211; Failed to subscribe the user: CN=Lastname\, Firstname,OU=OUHERE,DC=domain,DC=tld for Exchange events.  [1488]</p>
<h4>The fix</h4>
<p>Run the commands to grant the service account impersonation rights as it previously had.  Please refer to the documentation previously used for granting impersonation. In the case of MWI, the following two commands were run:</p>
<div style="background-color: #dddddd;" dir="ltr">
<div style="background-color: #dddddd;" dir="ltr">
<p>Get-ExchangeServer | Add-ADPermission -User DOMAIN\MWISERVICE -extendedRights ms-Exch-EPI-Impersonation -InheritanceType none</p></div>
</div>
<div style="background-color: #dddddd;" dir="ltr">
<div style="background-color: #dddddd;" dir="ltr">
<p>Get-MailboxDatabase | Add-ADPermission -User DOMAIN\MWISERVICE -extendedRights ms-Exch-EPI-May-Impersonate -InheritanceType none</p></div>
</div>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=1566&type=feed" alt="" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shudnow.net%2F2009%2F12%2F18%2Fupgrading-to-exchange-2007-sp2-and-impersonation%2F&amp;linkname=Upgrading%20to%20Exchange%202007%20SP2%20and%20Impersonation"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.shudnow.net/~ff/eshudnow?a=ImTuI8rbasQ:S4CXq79VNzc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/eshudnow?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.shudnow.net/~ff/eshudnow?a=ImTuI8rbasQ:S4CXq79VNzc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/eshudnow?i=ImTuI8rbasQ:S4CXq79VNzc:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eshudnow/~4/ImTuI8rbasQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2009/12/18/upgrading-to-exchange-2007-sp2-and-impersonation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange 2010 RTM DAG using Server 2008 R2 – Part 4</title>
		<link>http://www.shudnow.net/2009/11/18/exchange-2010-rtm-dag-using-server-2008-r2-%e2%80%93-part-4/</link>
		<comments>http://www.shudnow.net/2009/11/18/exchange-2010-rtm-dag-using-server-2008-r2-%e2%80%93-part-4/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 00:25:57 +0000</pubDate>
		<dc:creator>Elan Shudnow</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Server 2008 R2]]></category>

		<guid isPermaLink="false">http://www.shudnow.net/?p=1456</guid>
		<description><![CDATA[
			
				
			
		
Welcome to Part 4 of this article series. In Part 1, we started off by discussing the goal of this lab. That goal is how to deploy a two-node Exchange 2010 RTM Database Availability Group (DAG) on Windows Server 2008 R2. We then prepared our Operating System with the Exchange 2010 Prerequisites which includes software [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.shudnow.net%2F2009%2F11%2F18%2Fexchange-2010-rtm-dag-using-server-2008-r2-%25e2%2580%2593-part-4%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.shudnow.net%2F2009%2F11%2F18%2Fexchange-2010-rtm-dag-using-server-2008-r2-%25e2%2580%2593-part-4%2F&amp;source=elanshudnow&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Welcome to Part 4 of this article series. In Part 1, we started off by discussing the goal of this lab. That goal is how to deploy a two-node Exchange 2010 RTM Database Availability Group (DAG) on Windows Server 2008 R2. We then prepared our Operating System with the Exchange 2010 Prerequisites which includes software prerequisites as well as modification to hardware configuration such as our Network Interface Cards (NIC)s.  In Part 2, we went over the installation of one of our Exchange 2010 Servers which will include the Mailbox, Client Access, as well as Hub Transport Server Roles. In Part 3, we went over the creation and configuration of our Database Availability Group (DAG).  We then added our first Node to our DAG.</p>
<p>In this Part, I will be adding the second node to the DAG and then create a  database which will then be synchronized to the second DAG node.</p>
<p><a href="http://www.shudnow.net/2009/10/29/exchange-2010-rtm-dag-using-server-2008-r2-%E2%80%93-part-1/">Part 1</a></p>
<p><a href="http://www.shudnow.net/2009/11/03/exchange-2010-rtm-dag-using-server-2008-r2-%e2%80%93-part-2/">Part 2</a></p>
<p><a href="http://www.shudnow.net/2009/11/10/exchange-2010-rtm-dag-using-server-2008-r2-%E2%80%93-part-3/">Part 3</a></p>
<p>Part 4</p>
<h3><span style="text-decoration: underline;">Adding the second Node to our DAG</span></h3>
<p>Well, let&#8217;s go ahead and add our first node to the DAG.  Go into the <strong>EMC </strong>&gt; <strong>Organization Configuration</strong> &gt; <strong>Mailbox </strong>&gt; <strong>Database Availability Group</strong> &gt;<strong> Right-Click</strong> our <strong>DAG </strong>&gt; <strong>Manage Database availability Group Membership</strong>.</p>
<p><img src="http://www.shudnow.net/images/Exchange2010DAG38.jpg" alt="" width="512" height="251" /></p>
<p>Add the second Node.  Click <strong>Manage </strong>to <strong>Continue</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG45.jpg" alt="" width="637" height="557" /></p>
<p>Our second node has successfully been added.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG46.jpg" alt="" width="636" height="284" /></p>
<p>But&#8230; what exactly was done during this behind the scenes when this second node was added to the DAG?  The following occurs (from Technet documentation):</p>
<ul>
<li>The server is joined to Windows Failover Cluster for the DAG.</li>
<li>The quorum model is automatically adjusted:</li>
<li>A Node Majority quorum model is used for DAGs with an odd number of members.</li>
<li>A Node and File Share Majority quorum is used for DAGs with an even number of members.</li>
<li>The witness directory and share are automatically created by Exchange when needed.</li>
<li>The server is added to DAG object in Active Directory.</li>
<li>The cluster database is updated with info on mounted databases.</li>
</ul>
<p>First of all,we can see the DAG has been joined to the Windows Failover Cluster.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG47.jpg" alt="" width="193" height="171" /></p>
<p>Second of all,we can see the Quorum Model has been adjusted to Node Majority and File Share Witness because we have an even number of nodes.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG48.jpg" alt="" width="793" height="229" /></p>
<p>We can also see the FSW is set to the location we specified when creating our DAG (SHUD-OCSFE01 with a path of C:\ShudnowDAG) and that there is Quorum data in this location.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG49.jpg" alt="" width="474" height="151" /></p>
<h3><span style="text-decoration: underline;">Adding Database Replicas</span></h3>
<p>Well, let&#8217;s go ahead and create a new database and replicate it.  Go into the <strong>EMC </strong>&gt; <strong>Organization Configuration</strong> &gt; <strong>Mailbox </strong>&gt; <strong>Database Management</strong>.</p>
<p>We can see there&#8217;s currently two databases that were created during the installation on our Exchange Mailbox Servers; one for the first node and one for the second node.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG50.jpg" alt="" width="312" height="150" /></p>
<p>We can&#8217;t delete these databases because they contain some arbitration mailboxes.  Arbitration mailboxes are special mailboxes that are used to manage approval workflows.  For example, moderated e-mails.  We can see these arbitration mailboxes and what mailbox databases they belong to by running the following command:</p>
<div style="background-color: #dddddd;" dir="ltr">
<p id="ctl00_MTCS_main_ctl49_ctl00_ctl02" style="white-space: pre-wrap;">Get-Mailbox -Arbitration | FL Name,Database</p>
</div>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG51.jpg" alt="" width="505" height="162" /></p>
<p>Create a new Database.  I will create a new mailbox database with the name, LABDatabase01.  I will then also mount the database The two commands I will use to do this are:</p>
<div style="background-color: #dddddd;" dir="ltr">
<p id="ctl00_MTCS_main_ctl49_ctl00_ctl02" style="white-space: pre-wrap;">New-MailboxDatabase -Name LABDatabase01 -Server SHUD-EXC01</p>
<p style="white-space: pre-wrap;">Mount-Database -Identity LABDatabase01</p>
</div>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG52.jpg" alt="" width="637" height="122" /></p>
<p>Let&#8217;s add a Mailbox Database Copy to our second DAG node so we have redundant databases.  <strong>Database Management</strong> &gt; <strong>Select</strong> the new <strong>Database </strong>&gt;<strong> Right-Click</strong> and <strong>Choose </strong>&#8220;<strong>Add Mailbox Database Copy</strong>.&#8221;</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG53.jpg" alt="" width="302" height="201" /></p>
<p>Choose the second server for the server that will obtain our Database Copy.  Click <strong>Add </strong>to <strong>Continue</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG54.jpg" alt="" width="635" height="553" /></p>
<p>We should then see a successful copy being added to our second DAG Node.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG55.jpg" alt="" width="636" height="276" /></p>
<p>To verify, in the EMC, click on the LABDatabase01 and we should see a Mounted copy and a Healthy copy below.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG56.jpg" alt="" width="571" height="377" /></p>
<p>To do a switchover, you can right-click on the copied database and choose Activate Database Copy.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG57.jpg" alt="" width="578" height="215" /></p>
<h3><span style="text-decoration: underline;">DAGs Networks<br />
</span></h3>
<p>Go into the <strong>EMC </strong>&gt; <strong>Organization Configuration</strong> &gt; <strong>Mailbox </strong>&gt; <strong>Database Availability Group</strong>.  At the bottom, you will see the Networks.  You can see both are enabled for Replication.  Exchange 2010 always uses the last recently used replication network.  You can leave both enabled to Replication or you can disable the MAPI Network from having Replication enabled.  This will force all replication to go over your dedicated replication network. Keep in mind, when you do this, your MAPI Network can still do replication.  It will only do replication when there are no dedicated replication networks available.  For example, if the dedicated replicated network were to go down due to some switch but your MAPI network was available, replication would begin to utilize the MAPI network.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG58.jpg" alt="" width="209" height="287" /></p>
<p>If you were in a situation where you were adding a 3rd node to the DAG and it was in a different subnet, you will need to add an IP Address for that subnet so the Network Name resource can come online for that subnet.  So let&#8217;s say we now added a 3rd DAG node that was on the 172.16.0.0/12 subnet.  Remember our Set-DatabaseAvailabilityGroup cmdlet with the -DatabaseAvailabilityGroupIpAddresseses switch?  In this case, let&#8217;s say 172.16.2.154 was going to be our DAG IP for that subnet.  We would have to add that IP to the switch above.  But that switch is not additive, so we would have to run the following command:</p>
<div style="background-color: #dddddd;" dir="ltr">
<div style="background-color: #dddddd;" dir="ltr">
<p id="ctl00_MTCS_main_ctl49_ctl00_ctl02" style="white-space: pre-wrap;">Set-DatabaseAvailabilityGroup -Identity ShudnowDAG -DatabaseAvailabilityGroupIPAddresses 192.168.1.154,172.16.2.154</p>
</div>
</div>
<p>As you can see, I specified both 192.168.1.154 in addition to 172.16.2.154.</p>
<p>What happens is if the DAG fails over to the second DAG node, the DAG will keep the 192.168.1.154 address.  But if it fails over to the 3rd node, it will use the 172.16.2.154.  Again, this command has nothing to do with the replication networks, only the MAPI Networks.  And again, it&#8217;s only so the Network Name resource can come online which is a cluster dependency.  No clients will connect to this Network Name resource and Exchange has multiple mechanisms to connect to Exchange.</p>
<h3><span style="text-decoration: underline;">Summary</span></h3>
<p>Well folks, that is all for Part 4 of this article as well as the article series. Thanks for reading!</p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=1456&type=feed" alt="" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shudnow.net%2F2009%2F11%2F18%2Fexchange-2010-rtm-dag-using-server-2008-r2-%25e2%2580%2593-part-4%2F&amp;linkname=Exchange%202010%20RTM%20DAG%20using%20Server%202008%20R2%20%E2%80%93%20Part%204"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.shudnow.net/~ff/eshudnow?a=4CfU7ocfoYo:NU5pt2MTcuA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/eshudnow?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.shudnow.net/~ff/eshudnow?a=4CfU7ocfoYo:NU5pt2MTcuA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/eshudnow?i=4CfU7ocfoYo:NU5pt2MTcuA:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eshudnow/~4/4CfU7ocfoYo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2009/11/18/exchange-2010-rtm-dag-using-server-2008-r2-%e2%80%93-part-4/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>Exchange 2010 RTM DAG using Server 2008 R2 – Part 3</title>
		<link>http://www.shudnow.net/2009/11/10/exchange-2010-rtm-dag-using-server-2008-r2-%e2%80%93-part-3/</link>
		<comments>http://www.shudnow.net/2009/11/10/exchange-2010-rtm-dag-using-server-2008-r2-%e2%80%93-part-3/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 14:30:33 +0000</pubDate>
		<dc:creator>Elan Shudnow</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Server 2008 R2]]></category>

		<guid isPermaLink="false">http://www.shudnow.net/?p=1427</guid>
		<description><![CDATA[
			
				
			
		
Welcome to Part 3 of this article series. In Part 1, we started off by discussing the goal of this lab. That goal is how to deploy a two-node Exchange 2010 RTM Database Availability Group (DAG) on Windows Server 2008 R2. We then prepared our Operating System with the Exchange 2010 Prerequisites which includes software [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.shudnow.net%2F2009%2F11%2F10%2Fexchange-2010-rtm-dag-using-server-2008-r2-%25e2%2580%2593-part-3%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.shudnow.net%2F2009%2F11%2F10%2Fexchange-2010-rtm-dag-using-server-2008-r2-%25e2%2580%2593-part-3%2F&amp;source=elanshudnow&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Welcome to Part 3 of this article series. In Part 1, we started off by discussing the goal of this lab. That goal is how to deploy a two-node Exchange 2010 RTM Database Availability Group (DAG) on Windows Server 2008 R2. We then prepared our Operating System with the Exchange 2010 Prerequisites which includes software prerequisites as well as modification to hardware configuration such as our Network Interface Cards (NIC)s.  In Part 2, we went over the installation of one of our Exchange 2010 Servers which included the Mailbox, Client Access, as well as Hub Transport Server Roles.</p>
<p>In this Part, I will go over the creation and configuration of our Database Availability Group (DAG).  We will then add our first Node to our DAG.</p>
<p><a href="http://www.shudnow.net/2009/10/29/exchange-2010-rtm-dag-using-server-2008-r2-%E2%80%93-part-1/">Part 1</a></p>
<p><a href="http://www.shudnow.net/2009/11/03/exchange-2010-rtm-dag-using-server-2008-r2-%e2%80%93-part-2/">Part 2</a></p>
<p>Part 3</p>
<p><a href="http://www.shudnow.net/2009/11/18/exchange-2010-rtm-dag-using-server-2008-r2-%E2%80%93-part-4/">Part 4</a></p>
<h3><span style="text-decoration: underline;">File Share Witness<br />
</span></h3>
<p>We will be using a File Share Witness (FSW) on a non-Exchange Server.  This will go on our member server, SHUD-OCSFE01.</p>
<p>We will need to go onto our Member Server and add the &#8220;Exchange Trusted Subsystem&#8221; group to our Local Administrators Group.  If you do not do this, you will get an Access Denied error message. Unlike Exchange 2007, we do not have to pre-create the FSW.  We tell Exchange 2010 where the FSW will be located, and because the Exchange Trusted Subsystem is added to the non-Exchange box, it will have the permissions necessary to create, modify, and maintain the FSW.</p>
<p>It is still recommended to place the FSW on a Hub Transport Server.  In fact, if you don&#8217;t specify the FSW location (Witness Server and Witness Directory), Exchange 2010 will automatically go out and look for a Hub Transport Server and choose a location on its own.  Alternatively, you can specify the Witness Directory and not the Server; in which case Exchange 2010 will automatically choose an Exchange 2010 Server (non-DAG Hub Transport Server preferred) on its own but use the Directory you specified.</p>
<h3><span style="text-decoration: underline;"><span style="text-decoration: underline;">Creating the DAG using the EMC and assigning a Static IP<br />
</span></span></h3>
<p>Open the Exchange Management Console (EMC) and go into Organization Management &gt; Mailbox.  Click on Database Availability Group. As you can see, it&#8217;s currently empty.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG29.jpg" alt="" width="819" height="409" /></p>
<p>Right-Click on the empty space and choose &#8221; New Database Availability Group.&#8221;</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG30.jpg" alt="" width="339" height="258" /></p>
<p>Let&#8217;s give our DAG a name.  For purposes of this lab, I used the name ShudnowDAG.  As stated, we want SHUD-OCSFE01 to be our witness server and our directory will be C:\ShudnowDAG.  Click <strong>New </strong>to <strong>Create our DAG</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG31.jpg" alt="" width="636" height="556" /></p>
<p>The DAG is successfully created.  At this time, an empty objecting representing the DAG with the name you specified and an object class of msExchMDBAvailabilityGroup is created in Active Directory. You can see the object in either ADSIEdit or LDP.  The DN for this object is:</p>
<div style="background-color: #dddddd;" dir="ltr">
<p>CN=ShudnowDAG,CN=Database Availability Groups,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=Shudnow,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=shudnow,DC=net</p></div>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG37.jpg" alt="" width="719" height="351" /></p>
<p>The completion page will show a warning  informing you that the server that contains the FSW is not an Exchange Server.  We know this already as it was our intention to do this all along.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG32.jpg" alt="" width="634" height="555" /></p>
<p>When the GUI is used to create a DAG, it uses DHCP for the Network Name cluster resource.  If we want to specify a static IP for our DAG, we need to use the Set-DatabaseAvailabilityGroup cmdlet.  The Set-DatabaseAvailabilityGroup cmdlet has a switch called -DatabaseAvailabilityGroupIpAddresseses.  This switch will and should never contain IP Addresses for your replication network.  This -DatabaseAvailabilityGroupIPAddresses switch is ONLY for your MAPI Network subnets so the Network Name resource can come online due to a dependency in the Failover Clustering Services among some other Exchange related functions.</p>
<p>Among some other Exchange related functions eh?  I knew you would ask! Read on&#8230;</p>
<p>The Network Name resource is what is used to update the password for the Cluster Name Object (CNO) which is the DAG$ computer account.  The Network Name resource does not have to necessarily be online for Exchange to operate properly, but if it&#8217;s not, the DAG$ computer account will expire.  Obviously this would not be a good thing and will cause bad things to happen.</p>
<p>There are also parts of the code that will attempt to connect to the Network Name resource (such as DAG member modifications), but if that fails, those pieces of code will fall back to the servername once the network timeout occurs.</p>
<p>Exchange also utilizes the Possible Owners of the Network Name resource for moving the Primary Active Manager (PAM) which is the server that has control of the default Cluster Group which essentially monitors database status and makes the decisions on what server mounts which database.  For more information about the Active Manager, click <a href="http://technet.microsoft.com/en-us/library/dd776123%28EXCHG.140%29.aspx">here</a>.</p>
<p>So moving on&#8230; as you can see, our DAG is using DHCP which is denoted by the &lt;&gt; characters.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG34.jpg" alt="" width="731" height="100" /></p>
<p>So taking a look at our first node, we see our MAPI Network is on the 192.168.1.0 subnet due to the IP Address being 192.168.1.152/24.  Our second node is on the same subnet.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG33.jpg" alt="" width="668" height="211" /></p>
<p>We currently have 192.168.1.154 free so we will use that static IP for our DAG.  It&#8217;s not absolutely necessary to use a static IP, but if you feel the need to use a static, feel free.</p>
<p>Now that we have our static IP chosen, let&#8217;s run the following command:</p>
<div style="background-color: #dddddd;" dir="ltr">
<p id="ctl00_MTCS_main_ctl49_ctl00_ctl02" style="white-space: pre-wrap;">Set-DatabaseAvailabilityGroup -Identity ShudnowDAG -DatabaseAvailabilityGroupIPAddresses 192.168.1.154</p>
</div>
<p>We now see that our DAG has the following static IP configured.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG35.jpg" alt="" width="901" height="131" /></p>
<h3><span style="text-decoration: underline;"><span style="text-decoration: underline;">Creating the DAG using the EMS and assigning a Static IP</span></span></h3>
<p>Using the EMS is much faster.  Instead of doing all the above, all you need to do is run the following command:</p>
<div style="background-color: #dddddd;" dir="ltr">
<p id="ctl00_MTCS_main_ctl49_ctl00_ctl02" style="white-space: pre-wrap;">New-DatabaseAvailabilityGroup -Name ShudnowDAG  -WitnessServer SHUD-OCSFE01 -WitnessDirectory C:\ShudnowDAG -DatabaseAvailabilityGroupIPAddresses 192.168.1.154</p>
</div>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG36.jpg" alt="" width="987" height="222" /></p>
<p>See? Much faster than using the EMC.  This will definitely be the method I am going to be using in the future to create a DAG when using a static IP instead of DHCP.</p>
<h3><span style="text-decoration: underline;">Adding the first Node to our DAG</span></h3>
<p>Well, let&#8217;s go ahead and add our first node to the DAG.  Go into the <strong>EMC </strong>&gt; <strong>Organization Configuration</strong> &gt; <strong>Mailbox </strong>&gt; <strong>Database Availability Group</strong> &gt;<strong> Right-Click</strong> our <strong>DAG </strong>&gt; <strong>Manage Database availability Group Membership</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG38.jpg" alt="" width="512" height="251" /></p>
<p>Add the first Node.  Click <strong>Manage </strong>to <strong>Continue</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG39.jpg" alt="" width="636" height="556" /></p>
<p>Our first node has successfully been added.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG40.jpg" alt="" width="636" height="275" /></p>
<p>But&#8230; what exactly was done during this behind the scenes when this first node was added to the DAG?  The following occurs (from Technet documentation):</p>
<ul>
<li>The Windows Failover Clustering component is installed, if it is not already  installed.</li>
<li>A failover cluster is created using the name of the DAG.</li>
<li>A cluster network object (CNO) is created in default computers  container.</li>
<li>The name and IP address of the DAG is registered as a Host (A) record in  DNS.</li>
<li>The server is added to DAG object in Active Directory.</li>
<li>The cluster database is updated with information on the databases that are  mounted on the added server.</li>
</ul>
<p>First of all,we can see the DAG has been registered in DNS.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG41.jpg" alt="" width="615" height="330" /></p>
<p>Second of all, we can see the DAG&#8217;s Cluster Network Object (CNO) has been created in AD.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG42.jpg" alt="" width="543" height="69" /></p>
<p>Third of all, we can see the cluster has been formed.  As you can see, there&#8217;s no CMS/Virtual Server in the Services and applications.  This is because Exchange 2010 is not a cluster aware application.  Exchange 2010 only utilizes Windows Failover Clustering Services for heartbeat information and cluster networks.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG43.jpg" alt="" width="667" height="236" /></p>
<p>Finally, we can see that the cluster is currently set to Node Majority.  When we add our second node, the cluster will be switched to Node Majority with File Share Witness since we&#8217;ll have an even number of Exchange Nodes and will need a 3rd node/share to act as our witness.  Because of this, we won&#8217;t see any FSW data inside of FSW share until our second node is added to the DAG.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG44.jpg" alt="" width="797" height="233" /></p>
<h3><span style="text-decoration: underline;">Summary</span></h3>
<p>Well folks, that is all for Part 3 of this article. For Part 4,  I will be adding the second node to the DAG and then create a  database which will then be synchronized to the second DAG node.</p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=1427&type=feed" alt="" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shudnow.net%2F2009%2F11%2F10%2Fexchange-2010-rtm-dag-using-server-2008-r2-%25e2%2580%2593-part-3%2F&amp;linkname=Exchange%202010%20RTM%20DAG%20using%20Server%202008%20R2%20%E2%80%93%20Part%203"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.shudnow.net/~ff/eshudnow?a=UbFaGWUpZVM:7FCXhxHbhF0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/eshudnow?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.shudnow.net/~ff/eshudnow?a=UbFaGWUpZVM:7FCXhxHbhF0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/eshudnow?i=UbFaGWUpZVM:7FCXhxHbhF0:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eshudnow/~4/UbFaGWUpZVM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2009/11/10/exchange-2010-rtm-dag-using-server-2008-r2-%e2%80%93-part-3/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Exchange 2010 RTM DAG using Server 2008 R2 – Part 2</title>
		<link>http://www.shudnow.net/2009/11/03/exchange-2010-rtm-dag-using-server-2008-r2-%e2%80%93-part-2/</link>
		<comments>http://www.shudnow.net/2009/11/03/exchange-2010-rtm-dag-using-server-2008-r2-%e2%80%93-part-2/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 13:26:09 +0000</pubDate>
		<dc:creator>Elan Shudnow</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Server 2008 R2]]></category>

		<guid isPermaLink="false">http://www.shudnow.net/?p=1372</guid>
		<description><![CDATA[
			
				
			
		
Welcome to Part 2 of this article series. In Part 1, we started off by discussing the goal of this lab. That goal is how to deploy a two-node Exchange 2010 RTM Database Availability Group (DAG) on Windows Server 2008 R2. We then prepared our Operating System with the Exchange 2010 Prerequisites which includes software [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.shudnow.net%2F2009%2F11%2F03%2Fexchange-2010-rtm-dag-using-server-2008-r2-%25e2%2580%2593-part-2%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.shudnow.net%2F2009%2F11%2F03%2Fexchange-2010-rtm-dag-using-server-2008-r2-%25e2%2580%2593-part-2%2F&amp;source=elanshudnow&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Welcome to Part 2 of this article series. In Part 1, we started off by discussing the goal of this lab. That goal is how to deploy a two-node Exchange 2010 RTM Database Availability Group (DAG) on Windows Server 2008 R2. We then prepared our Operating System with the Exchange 2010 Prerequisites which includes software prerequisites as well as modification to hardware configuration such as our Network Interface Cards (NIC)s.</p>
<p>In this Part, I will go over the installation of one of our Exchange 2010 Servers which will include the Mailbox, Client Access, as well as Hub Transport Server Roles.</p>
<p><a href="http://www.shudnow.net/2009/10/29/exchange-2010-rtm-dag-using-server-2008-r2-%E2%80%93-part-1/">Part 1</a></p>
<p>Part 2</p>
<p><a href="http://www.shudnow.net/2009/11/10/exchange-2010-rtm-dag-using-server-2008-r2-%E2%80%93-part-3/">Part 3</a></p>
<p><a href="http://www.shudnow.net/2009/11/18/exchange-2010-rtm-dag-using-server-2008-r2-%E2%80%93-part-4/">Part 4</a></p>
<h3><span style="text-decoration: underline;">Installation</span></h3>
<p>With Exchange 2010, we still have the setup.com for unattended mode installations using the Command Line Interface (CLI) as well as setup.exe for attended mode installations using the Graphical User Interface (GUI). We&#8217;ll be using the GUI for purposes of this lab.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG15.jpg" alt="" width="442" height="240" /></p>
<p>After running setup.exe, we&#8217;ll be presented with the following screen:</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG16.jpg" alt="" width="667" height="500" /></p>
<p>We can see that the first two steps are already taken care of.  If you recall from Part 1, we used PowerShell to take care of the prerequisite installations.  So, let&#8217;s proceed to Step 2 and choose our language.  For me, it will be English.</p>
<p>When clicking on the language option, we get a couple choices.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG17.jpg" alt="" width="243" height="54" /></p>
<p>If you choose the first option, Install all languages from the language bundle, you will be provided with an option to download the language pack or use an already downloaded language pack.  For purposes of this lab, we&#8217;ll choose the second option as we&#8217;ll only be using English.</p>
<p>It&#8217;s finally time to choose Step 4 and Install Exchange!</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG18.jpg" alt="" width="256" height="129" /></p>
<p>So let&#8217;s go ahead and choose Step 4 and let&#8217;s begin installing Exchange.</p>
<p>After some initializing, we&#8217;re provided with the Installer GUI.  The first page, as you guessed it, an Introduction Page.  Read the Introduce Page and Click <strong>Next</strong> to <strong>Continue</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG19.jpg" alt="" width="636" height="555" /></p>
<p>You are now provided with the License Agreement.  After reading the agreement, select &#8220;I accept the terms in the license agreement.&#8221; Click <strong>Next</strong> to <strong>Continue</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG20.jpg" alt="" width="636" height="555" /></p>
<p>You are now provided with the Error Reporting page.  I like to choose Yes for this option.  The reason why is when you call into Premiere Support Services (PSS), they will have some error reporting information from your servers that may assist with the troubleshooting/fixing of your server.  Choose whichever option best fits your needs.  Click <strong>Next </strong>to <strong>Continue</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG21.jpg" alt="" width="637" height="556" /></p>
<p>You are now provided with the Installation Type.  Previously, in Exchange 2007 CCR/SCC, you could only install the Mailbox Server role.  Now, with DAGs, you can have HUB/CAS/MBX/UM all on the same server.  We&#8217;ll be choosing the Typical Exchange Server Installation for this lab which includes HUB/CAS/MBX as well as the Exchange Management Tools.  A nice tip to note is that you can have both the Exchange 2007 Management Tools as well as the Exchange 2010 Management Tools installed on the same box.  Click <strong>Next </strong>to <strong>Continue</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG22.jpg" alt="" width="637" height="555" /></p>
<p>You are now provided with Client Settings.  If you have Outlook 2003 or Microsoft Entourage, click Yes.  This creates a Public Folder Database and modifies some Exchange options such as OAB Distribution for Public Folders to provide support for these clients.  As a side note, there was an msexchangeteam.com blog post that stated that Entourage is getting updated to support Exchange Web Services (EWS) so in the future, you may only have to do this for Outlook 2003 clients and not Entourage.  For purposes of this lab, we will not be using Entourage or Outlook 2003.  Click <strong>Next </strong>to <strong>Continue</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG23.jpg" alt="" width="636" height="556" /></p>
<p>Your first server is most likely going to be an internet facing CAS server.  Because of this, I specified our Internet-facing FQDN.  This will modify your -ExternalURL parameters for this Exchange 2010 CAS.  Pretty nifty and an installation option I very much welcome.  Click <strong>Next </strong>to <strong>Continue</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG24.jpg" alt="" width="637" height="556" /></p>
<p>You are now provided with the Customer Experience Improvement Program.  I always like to join these things to provide information to Microsoft to help make the product better. Click <strong>Next </strong>to <strong>Continue</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG25.jpg" alt="" width="635" height="555" /></p>
<p>Finally, it&#8217;s time for some Readiness Checks.  We can see that the organization will need to be prepared with a /PrepareAD which will prepare the schema, forest, and domain.  Make sure the person running this installation is a part of the Enterprise Admins and Schema Admins in order to update the schema.</p>
<p>We also see that we need the Filter Pack.  I didn&#8217;t include this in Part 1 as Microsoft updates their Setup Prerequisite files and this (links/files/requirement)  may change in the future.  So go to the link <a href="http://go.microsoft.com/fwlink/?LinkId=123380">here</a> to download the filter pack.  Make sure you download and install the x64 version.  You can install the Filterpack while the Exchange setup is still running.  Once the Filterpack is finished installing, Click <strong>Install </strong>in the Exchange Setup.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG26.jpg" alt="" width="637" height="556" /></p>
<p>So now you&#8217;re presented with the installation.  It only took 10-15 minutes for the install to complete.  Pretty fast!  Click <strong>Finish </strong>to Finish.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG27.jpg" alt="" width="636" height="556" /></p>
<h3><span style="text-decoration: underline;">Summary</span></h3>
<p>Well folks, that is all for Part 2 of this article. For Part 3, I will go through the DAG creation process (including File Share Witness on a non-Exchange Server) as well as add our first node to the DAG.</p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=1372&type=feed" alt="" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shudnow.net%2F2009%2F11%2F03%2Fexchange-2010-rtm-dag-using-server-2008-r2-%25e2%2580%2593-part-2%2F&amp;linkname=Exchange%202010%20RTM%20DAG%20using%20Server%202008%20R2%20%E2%80%93%20Part%202"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.shudnow.net/~ff/eshudnow?a=fGuAasYyI9Y:x3pcGDvdta0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/eshudnow?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.shudnow.net/~ff/eshudnow?a=fGuAasYyI9Y:x3pcGDvdta0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/eshudnow?i=fGuAasYyI9Y:x3pcGDvdta0:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eshudnow/~4/fGuAasYyI9Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2009/11/03/exchange-2010-rtm-dag-using-server-2008-r2-%e2%80%93-part-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Exchange 2010 RTM DAG using Server 2008 R2 – Part 1</title>
		<link>http://www.shudnow.net/2009/10/29/exchange-2010-rtm-dag-using-server-2008-r2-%e2%80%93-part-1/</link>
		<comments>http://www.shudnow.net/2009/10/29/exchange-2010-rtm-dag-using-server-2008-r2-%e2%80%93-part-1/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 15:07:20 +0000</pubDate>
		<dc:creator>Elan Shudnow</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[Server 2008 R2]]></category>

		<guid isPermaLink="false">http://www.shudnow.net/?p=1302</guid>
		<description><![CDATA[
			
				
			
		
Now that Exchange Server 2010 is RTM and Server 2008 R2 is RTM, I thought it would be nice to create a multi-part article on how to use create a Database Availability Group (DAG) on two Exchange Server 2010 RTM nodes utilizing Server 2008 R2 as their Operating System. This article is to guide you [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.shudnow.net%2F2009%2F10%2F29%2Fexchange-2010-rtm-dag-using-server-2008-r2-%25e2%2580%2593-part-1%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.shudnow.net%2F2009%2F10%2F29%2Fexchange-2010-rtm-dag-using-server-2008-r2-%25e2%2580%2593-part-1%2F&amp;source=elanshudnow&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Now that Exchange Server 2010 is RTM and Server 2008 R2 is RTM, I thought it would be nice to create a multi-part article on how to use create a Database Availability Group (DAG) on two Exchange Server 2010 RTM nodes utilizing Server 2008 R2 as their Operating System. This article is to guide you through the entire process from preparing Server 2008 R2 for Exchange 2010 RTM, installing Exchange 2010 RTM, creating databases, creating a DAG, adding our nodes to the DAG, and then replicating our databases between both servers.</p>
<p>Part 1</p>
<p><a href="http://www.shudnow.net/2009/11/03/exchange-2010-rtm-dag-using-server-2008-r2-%e2%80%93-part-2/">Part 2</a></p>
<p><a href="http://www.shudnow.net/2009/11/10/exchange-2010-rtm-dag-using-server-2008-r2-%E2%80%93-part-3/">Part 3</a></p>
<p><a href="http://www.shudnow.net/2009/11/18/exchange-2010-rtm-dag-using-server-2008-r2-%E2%80%93-part-4/">Part 4</a></p>
<h3><span style="text-decoration: underline;">Lab Setup</span></h3>
<h4>Guest Virtual Machines</h4>
<p>One Server 2008 R2 Enterprise (Standard can be used) RTM x64 Domain Controller.</p>
<p>Two Server 2008 R2 Enterprise (Enterprise Required) RTM x64 (x64 required) Member Servers where Exchange 2010 RTM will be installed with the Mailbox, Client Access Server, and Hub Transport Server roles.</p>
<p>One Server 2008 Enterprise (Standard can be used) RTM x64  server that will be our File Share Witness (FSW) Server.  This box will not serve any other purpose in this lab other than FSW.</p>
<h4>Assumptions</h4>
<ul>
<li>You have a domain that contains at least one Server 2003 SP2 Domain Controller (DC).</li>
<li>You have configured the IP settings accordingly for all servers to be on the same subnet which includes the public NICs for both Failover Cluster nodes. I have provided the IP scheme of my lab below, but this will vary depending on your needs and VMware configuration.</li>
</ul>
<h4>Computer Names</h4>
<p>DAG Node 1 – SHUD-EXC01</p>
<p>DAG Node 2 – SHUD-EXC02</p>
<p>Domain Controller &#8211; SHUD-DC01</p>
<p>FSW Server &#8211; SHUD-OCSFE01</p>
<h4>Configuration of  Exchange 2010 DAG Nodes</h4>
<p><span style="text-decoration: underline;"><strong> </strong></span></p>
<p><strong>Processor:</strong> 4</p>
<p><strong>Memory: </strong>1024MB</p>
<p><strong>Network Type</strong> <strong>- </strong>MAPI NIC (MAPI Network)</p>
<p><strong>Network Type</strong> <strong>- </strong>Replication NIC (Replication Network)</p>
<p><strong>Virtual Disk Type – </strong>System Volume<strong> </strong>(C:\)<strong>:</strong> 50GB Dynamic</p>
<p><strong>Storage Note:</strong> In a real-world environment, depending on the needs of the business and environment, it is best practice to install your database and logs on separate disks/spindles; both of which are separate from the spindles that the C:\ partition utilize. We will be installing Exchange 2010 RTM databases/logs on the same disks/spindles for simplicity sakes for this lab.  While Exchange 2010 databases move a lot of the IO for databases to sequential IO, there&#8217;s still quite a bit of Random IO occurring and is still recommended to place the database and logs on separate spindles.</p>
<p><strong>Network Note</strong>: A single NIC DAG is supported.  It is still recommended to have at least one dedicated replication network.  If using only a single NIC, it is recommended for this network to be redundant as well as gigabit.</p>
<h4>Configuration of  Domain Controller</h4>
<p><span style="text-decoration: underline;"><strong> </strong></span></p>
<p><strong>Processor:</strong> 4</p>
<p><strong>Memory: </strong>512MB</p>
<p><strong>Network Type</strong> <strong>- </strong>External NIC</p>
<p><strong>Virtual Disk Type – </strong>System Volume<strong> </strong>(C:\)<strong>:</strong> 50GB Dynamic</p>
<h4>IP Addressing Scheme (Corporate Subnet otherwise known as a MAPI Network to Exchange 2010 DAGs)</h4>
<h4><span style="text-decoration: underline;"><strong><span style="text-decoration: underline;"><strong> </strong></span></strong></span></h4>
<p><strong>IP Address – </strong>192.168.1.x</p>
<p><strong>Subnet Mask – </strong>255.255.255.0</p>
<p><strong>Default Gateway – </strong>192.168.1.1</p>
<p><strong>DNS Server – </strong>192.168.1.150 (IP Address of the Domain Controller/DNS Server)</p>
<h4>IP Addressing Scheme (Heartbeat Subnet otherwise known as a Replication Network to Exchange 2010 DAGs)</h4>
<h4><span style="text-decoration: underline;"><strong><span style="text-decoration: underline;"><strong> </strong></span></strong></span></h4>
<p><strong>IP Address – </strong>10.10.10.x</p>
<p><strong>Default Gateway – </strong>10.10.10.x</p>
<p><strong>Subnet Mask – </strong>255.255.255.0</p>
<h3><span style="text-decoration: underline;">LAB Architecture</span></h3>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG14.jpg" alt="" width="409" height="364" /></p>
<p>Some notes about this architecture:</p>
<ul>
<li>Exchange 2010 DAGs remove the limitation of requiring Mailbox Only Role Servers as existed with Exchange 2007 Clustered Servers</li>
<li>Exchange 2010 is no longer Cluster Aware and only utilizes very few pieces of the Failover Cluster Services such as Cluster Heartbeat and Cluster Networks.  More on this in an upcoming part.</li>
<li>UM is supported on these two DAG nodes but is recommended to be installed on separate servers</li>
<li>For HTTP publishing, ISA can be utilized.  For RPC Client Access Server publishing (which ISA cannot due as it publishes HTTP traffic only) with CAS Servers on the DAG nodes, you must use a hardware load balancer due to a Windows limitation preventing you from using Windows NLB and Clustering Services on the same Windows box.  Alternatively, you can deploy two dedicated CAS Servers and utilize Windows NLB to load balance your RPC Client Access Server traffic.</li>
<li>Two node DAG requires a witness that is not on a server within the DAG.  Unlike Exchange 2007, Exchange 2010 automatically takes care of FSW creation; though you do have to specify the location of the FSW. It is recommended to specify the FSW to be created on a Hub Transport Server.  Alternatively, you can put the witness on a non-Exchange Server after some prerequisites have been completed.  I will be deploying the FSW on a member server (which happens to be my OCS Server in my lab) and will display the prerequisite process for achieving this.</li>
</ul>
<h3><span style="text-decoration: underline;">Preparation of Exchange 2010 RTM DAG Nodes<br />
</span></h3>
<h4>Network Interface Card (NIC) Configuration</h4>
<p>First thing we will want to do is configure the IP Configuration of both the MAPI NIC and the Replication NIC.</p>
<p>We will want to rename our MAPI NIC connection to MAPI and our Replication NIC connection to Replication. To do so, go to <strong>Start </strong>&gt; <strong>Right-Click Network &gt; Properties.</strong></p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG03.jpg" alt="" width="494" height="329" /></p>
<p>Once in the Control Panel, <strong>Choose</strong><strong> Change Adapter Settings</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG04.jpg" alt="" width="211" height="157" /></p>
<p>Now you will be presented with the Network Connections window. This is where you can modify the network properties for each NIC in your server. For your Internal Corporate Connection which is also your MAPI Network, rename your Local Area Connection to Internal. Likewise, for your Private Heartbeat Connection which is also your Replication Network, rename your Local Area Connection to Replication. After you have done this, it will look something similar to the following:</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG02.jpg" alt="" width="525" height="150" /></p>
<h4>Network Interface Card (NIC) Configuration</h4>
<p>First thing we will want to do is configure the IP Configuration of both the MAPI and Replication NIC.</p>
<p>Part of the assumptions earlier in this article as that you have a properly configured TCP/IP Network where all nodes are properly connected to the TCP/IP Network. Because of this, I will skip the Public TCP/IP Configuration and proceed to configuring the Private Heartbeat NIC.</p>
<p><span style="color: #ff0000;">Important</span>: When configuring the MAPI NIC, you can leave IPv6 enabled if you are using Server 2008 R2.  There is an issue with Server 2008 (still exists in SP2) that prevents IPv6 from listening on port 6004 that prevents Outlook Anywhere from working. You can read more about that <a href="http://technet.microsoft.com/en-us/library/cc671176.aspx">here</a>. Again, Server 2008 R2 does not have this issue.  So if you happen to be installing Exchange 2010 on Server 2008, disable IPv6 as discussed below.  If using Server 2008 R2, feel free to leave IPv6 enabled.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG05.jpg" alt="" width="366" height="462" /></p>
<p><strong>Note</strong>: You can, if you&#8217;d like, disable File and Printer Sharing for Microsoft Networks.  In Exchange 2007 SP1, Microsoft provided the ability to allow for continuous replication to occur over the private network.  Because Exchange 2007 utilizes SMB for log shipping, it is required to have the File and Printer Sharing enabled.  Exchange 2010 no longer utilizes SMB and now utilizes TCP.  More on this later in an upcoming Part.</p>
<p>In addition to disabling IPv6 from the NIC Properties, I would follow these instructions <a href="http://support.microsoft.com/kb/952842">here</a> to fully disable IPv6 on your Exchange 2010 system as disabling it on the NIC itself doesn&#8217;t fully disable IPv6.  While the article is based on Exchange 2007, it&#8217;s a Windows based modification and will apply to a system running Exchange 2010 as well.</p>
<p><strong>Double-Click</strong> or <strong>Right-Click</strong> &gt; <strong>Properties </strong>on the Replication NIC to begin configuration.</p>
<p>Uncheck the following:</p>
<ul>
<li>Internet Protocol Version 6 (TCP /IPv6) &#8211; Disable IPv6 in the registry as well as noted above.</li>
</ul>
<p><strong>S</strong><strong>elect</strong> Internet-Protocol Version 4 (TCP /IPv4) and press the <strong>Properties</strong> button. For NodeA, the only TCP/IP configuration we will need, is the IP Address and Subnet Mask. NodeA’s IP configuration will be 10.10.10.152/24 while NodeB’s IP configuration will be 10.10.10.153/24.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG06.jpg" alt="" width="404" height="449" /></p>
<p>Go into the Advanced NIC configuration settings by clicking the <strong>Advanced</strong> button. From there, you will navigate to DNS tab and de-select “Register this connection’s addresses in DNS.”</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG07.jpg" alt="" width="403" height="480" /></p>
<p>Select the WINS tab and de-select “Enable LMHOSTS lookup” and configure the NetBIOS setting to “Disable NetBIOS over TCP/IP.”<br />
<img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG08.jpg" alt="" width="404" height="481" /></p>
<p>Once you are done configuring the Advanced settings, press <strong>OK</strong> three times and you will be back at the Network Connections screen.  From here, choose <strong>Advanced</strong> and select <strong>Advanced Settings</strong>…</p>
<p><img src="http://www.shudnow.net/images/Exchange2010DAG09.jpg" alt="" width="522" height="168" /></p>
<p>You will be presented with the Binding Order for your current NICs. Ensure that the MAPI NIC is on top by selecting MAPI and pressing the green up arrow key on the right-hand side of the dialog.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG10.jpg" alt="" width="403" height="447" /></p>
<h4>Exchange 2010 Operating System Prerequisites</h4>
<p>Server 2008 SP2 and Server 2008 R2 prerequisites are quite different.  Because our servers are going to be deployed on Server 2008 R2, we will follow the guidance for deploying on Server 2008 R2.  You can see the prerequisite requirements <a href="http://technet.microsoft.com/en-us/library/bb691354%28EXCHG.140%29.aspx">here</a>.</p>
<p>We will be doing our prerequsite installations via PowerShell.  You can open PowerShell by going to <strong>Start </strong>&gt; <strong>Run </strong>&gt; <strong>PowerShell</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG11.jpg" alt="" width="417" height="222" /></p>
<p>You will first have to import the module for ServerManager.  Afterwards, depending on the roles that are installed, different prerequisites are required.  Because we are going to be installing HUB/CAS/MBX, the command we would run is the following:</p>
<p><span id="ctl00_MTCS_main_ctl49_ctl00_ctl02"> </span></p>
<div style="background-color: #dddddd;" dir="ltr">
<p id="ctl00_MTCS_main_ctl49_ctl00_ctl02" style="white-space: pre-wrap;">Add-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy,Failover-Clustering -Restart</p>
</div>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG12.jpg" alt="" width="667" height="121" /></p>
<p><strong>Note</strong>: The installation documentation does not have you include Failover-Clustering in the above command.  I add it anyways since we&#8217;ll be using it for the DAG.  I you don&#8217;t add it in the above command, you can just add it below when you enable the NetTcpPortSharing.  If you don&#8217;t add it below, when you add the first node to the DAG, Failover Clustering will be installed anyways.  I like to install it beforehand though.</p>
<p>Finally, we&#8217;ll want to modify the NetTcpPortSharing service to start automatically.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010DAG13.jpg" alt="" width="664" height="145" /></p>
<h3><span style="text-decoration: underline;">Summary</span></h3>
<p>Well folks, that is all for Part 1 of this article. For Part 2, I will go through the installation process of one our DAG nodes that will contain the Client Access Server, Hub Transport Server, as well as Mailbox Server roles.</p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=1302&type=feed" alt="" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shudnow.net%2F2009%2F10%2F29%2Fexchange-2010-rtm-dag-using-server-2008-r2-%25e2%2580%2593-part-1%2F&amp;linkname=Exchange%202010%20RTM%20DAG%20using%20Server%202008%20R2%20%E2%80%93%20Part%201"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.shudnow.net/~ff/eshudnow?a=A3B_PeNxruQ:ojubrq0tS_8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/eshudnow?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.shudnow.net/~ff/eshudnow?a=A3B_PeNxruQ:ojubrq0tS_8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/eshudnow?i=A3B_PeNxruQ:ojubrq0tS_8:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eshudnow/~4/A3B_PeNxruQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2009/10/29/exchange-2010-rtm-dag-using-server-2008-r2-%e2%80%93-part-1/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>Exchange 2010 24×7 Online Defragmentation and Online Database Scanning</title>
		<link>http://www.shudnow.net/2009/10/25/exchange-2010-24x7-online-defragmentation-and-online-database-scanning/</link>
		<comments>http://www.shudnow.net/2009/10/25/exchange-2010-24x7-online-defragmentation-and-online-database-scanning/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 02:12:30 +0000</pubDate>
		<dc:creator>Elan Shudnow</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Exchange 2010]]></category>

		<guid isPermaLink="false">http://www.shudnow.net/?p=1384</guid>
		<description><![CDATA[
			
				
			
		
Exchange has an Online Maintenance task that runs every night.  In the Exchange Management Console (EMC),  go to Organization Configuration &#62; Mailbox &#62; Database Management Tab &#62; Right-Click our Database &#62; Properties &#62;  Maintenace Tab. We can then see our Maintenance Schedule.
In Exchange 2010, this will appear as:

As you can see, in Exchange 2010, there [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.shudnow.net%2F2009%2F10%2F25%2Fexchange-2010-24x7-online-defragmentation-and-online-database-scanning%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.shudnow.net%2F2009%2F10%2F25%2Fexchange-2010-24x7-online-defragmentation-and-online-database-scanning%2F&amp;source=elanshudnow&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Exchange has an Online Maintenance task that runs every night.  In the Exchange Management Console (EMC),  go to <strong>Organization Configuration</strong> &gt; <strong>Mailbox </strong>&gt; <strong>Database Management Tab</strong> &gt; <strong>Right-Click</strong> our <strong>Database</strong> &gt; <strong>Properties</strong> &gt;  Maintenace Tab. We can then see our Maintenance Schedule.</p>
<p>In Exchange 2010, this will appear as:</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010OLD01.jpg" alt="" width="443" height="497" /></p>
<p>As you can see, in Exchange 2010, there is a new option that is enabled by default.  This option is the &#8220;Enable background database maintenance (24 x 7 ESE scanning).  This option is not Online Defragmentation, but is rather Database Checksumming.  More on this later&#8230;</p>
<p>In Online Maintenance, there&#8217;s several tasks that run such as dumpster cleanup, purging mailboxes based on retention, etc&#8230;  You can see a full list of these tasks <a href="http://technet.microsoft.com/en-us/library/bb123760.aspx">here</a>.  When these eleven tasks successfully finish, an Online Defragmentation (OLD) process runs.  Microsoft explains OLD as, &#8220;<span>The intention for online defragmentation is to free up pages in the database by compacting records onto the fewest number of pages possible, thus reducing the amount of I/O necessary. The ESE database engine does this by taking the database metadata, which is the information in the database that describes tables in the database, and for each table, visiting each page in the table, and attempting to move records onto logically ordered pages.&#8221;</span></p>
<p><span>There is also a process called </span>Online Maintenance Database Checksumming.  Checksumming checks the integrity of the database by looking through every database page since there was no guarantee OLD would successfully look through every page to ensure there is no corruption.  This process is entirely sequential and doesn&#8217;t cause a performance problem on the database.  The issues with this method in Exchange 2007 RTM is that this process ran at the end of Online Maintenace and because of that, resiliency is effected as these processes temporary suspend continous replication.  In Exchange 2007 SP1, Microsoft provided registry keys to allow you to run background checksumming.  You can read more about these processes and the registry keys at the bottom of this article <a href="http://technet.microsoft.com/en-us/library/bb123996.aspx">here</a>.</p>
<p><span>In Exchange editions prior to Exchange 2010, we can monitor OLD by checking out the available 70x Event IDs in the Event Viewer&#8217;s Application Log.  Similarly, you can verify the amount of whitespace that has been created in the database by viewing the 1221 Event ID.   The list of Event IDs for Exchange versions prior to Exchange 2010 is as follows:</span></p>
<ul>
<li>700 &#8211; Starting</li>
<li>701 &#8211; Completed</li>
<li>702 &#8211; Resuming</li>
<li>703 &#8211; Completed Resumed Pass</li>
<li>704 &#8211; Interrupted and Terminated</li>
<li>1221 &#8211; Whitespace Amount</li>
</ul>
<p><span>This has all changed quite a bit in Exchange 2010.  OLD2 is the new version of Online Defragmentation and no longer occurs at the end of the Online Maintenance Schedule.  Instead, it runs 24 x 7 on a database. It is throttled so it does not negatively affect performance.  You cannot modify OLD2 to run as OLD did in earlier versions of Exchange.  OLD2 is not configurable. Because of this, the need to troll the above Event IDs is no more.  Instead of trolling 70x Event IDs, Exchange 2010 will only notify you if something goes wrong with Online Maintenance.  That way all the 70x error codes do not appear as spam.  If you see a 70x in Exchange 2010, you know there is a problem. Keep in mind though, that this is all in regards to Mailbox Databases.  Queue Databases still have 70x Event IDs. </span></p>
<p><span>If you need to check available whitespace, you can now do this via the Exchange Management Shell (EMS).  If your database is called Database1, the command would be:</span></p>
<div style="background-color: #dddddd;" dir="ltr">
<p id="ctl00_MTCS_main_ctl49_ctl00_ctl02" style="white-space: pre-wrap;">Get-MailboxDatabase Database1 -Status | FL AvailableNewMailboxSpace</p>
</div>
<p><strong>Note</strong>: The -Status switch is required when you need to contact the database directly for the following pieces of information:</p>
<ul>
<li>BackupInProgress</li>
<li>Mounted</li>
<li>OnlineMaintenanceInProgress</li>
<li>Available free space in the database root</li>
</ul>
<p><span>As stated, OLD2 is throttled and doesn&#8217;t negatively affect performance.  If you have an interest in monitoring performance of OLD2, you can do so by using the following perfmon counter set: </span><em>MSExchange Database -&gt; Defragmentation Tasks.</em></p>
<p><em><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010OLD02.jpg" alt="" width="712" height="525" /></em></p>
<p><span>In Exchange 2010, there are two ways you can configure Online Database Scanning (checksumming).  The first is the default option shown in the first image in this article.  By default, it runs as a 24 x 7 process on the Active Database.   You can uncheck this option which will then revert Online Database Scanning so that it runs after all online maintenance tasks are completed.  Because most online maintenance tasks complete within an hour, this process works reasonably fine for smaller databases (under 500GB).  Microsoft now supports up to 2TB databases.  Anything larger than 500GB should definitely have the default set which is to run this process 24 x 7 to ensure it completes.  Exchange 2010 was designed with the mindset that Online Database Scanning should complete at least once every three days.  If it does not, Exchange 2010 will provide a warning event in the Event Logs.</span></p>
<p><span>Thanks to <a href="http://edge.technet.com/Media/Interview-with-Matt-Gossage-on-Exchange-Server-2010-and-Storage/">Matt Gossage</a>, Program Manager for Storage at Microsoft for providing much of this information. You can see Matt Gossage&#8217;s level 300 webcast on Exchange 2010 Storage <a href="http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?culture=en-US&amp;EventID=1032418921&amp;CountryCode=US">here</a>.<br />
</span></p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=1384&type=feed" alt="" /><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shudnow.net%2F2009%2F10%2F25%2Fexchange-2010-24x7-online-defragmentation-and-online-database-scanning%2F&amp;linkname=Exchange%202010%2024%26%23215%3B7%20Online%20Defragmentation%20and%20Online%20Database%20Scanning"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a><div class="feedflare">
<a href="http://feeds.shudnow.net/~ff/eshudnow?a=d8nwR2zXsjk:BRxzWi4SLAc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/eshudnow?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.shudnow.net/~ff/eshudnow?a=d8nwR2zXsjk:BRxzWi4SLAc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/eshudnow?i=d8nwR2zXsjk:BRxzWi4SLAc:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/eshudnow/~4/d8nwR2zXsjk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2009/10/25/exchange-2010-24x7-online-defragmentation-and-online-database-scanning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
