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

<channel>
	<title>Elan Shudnow&#039;s Blog &#187; Exchange 2010</title>
	<atom:link href="http://www.shudnow.net/tag/exchange-2010/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shudnow.net</link>
	<description>Just another IT guy!</description>
	<lastBuildDate>Wed, 21 Dec 2011 15:47:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Exchange 2010 Site Resilient DAGs and Majority Node Set Clustering – Part 3</title>
		<link>http://www.shudnow.net/2011/09/07/exchange-2010-site-resilient-dags-and-majority-node-set-clustering-%e2%80%93-part-3/</link>
		<comments>http://www.shudnow.net/2011/09/07/exchange-2010-site-resilient-dags-and-majority-node-set-clustering-%e2%80%93-part-3/#comments</comments>
		<pubDate>Wed, 07 Sep 2011 13:26:29 +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=2343</guid>
		<description><![CDATA[Welcome to Part 3 of Exchange 2010 Site Resilient DAGs and Majority Node Set Clustering.  In Part 1, I discussed what Majority Node Set Clustering is and how it works with Exchange Site Resilience when you have one DAG member in a Primary Site and one DAG member in a Failover Site.  In Part 2, [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to Part 3 of Exchange 2010 Site Resilient DAGs and Majority Node Set Clustering.  In Part 1, I discussed what Majority Node Set Clustering is and how it works with Exchange Site Resilience when you have one DAG member in a Primary Site and one DAG member in a Failover Site.  In Part 2, I discussed how Majority Node Set Clustering works with Exchange Site Resileince when you have two DAG members in a Primary Site and one DAG member in a Failover Site. In this Part, I will show an example of how Majority Node Set Clustering works with Exchange Site Resilience when you have two DAG members in a Primary Site and two DAG members in a Failover Site.</p>
<p><a href="http://www.shudnow.net/2011/08/05/exchange-2010-site-resilient-dags-and-majority-node-set-clustering-part-1/">Part 1</a></p>
<p><a href="http://www.shudnow.net/2011/08/12/exchange-2010-site-resilient-dags-and-majority-node-set-clustering-part-2/">Part 2</a></p>
<p>Part 3</p>
<h3>Real World Examples</h3>
<p>Each of these examples will show DAG Models with a Primary Site and a Failover Site.</p>
<h4>4 Node DAG  (Two in Primary and Two in Failover)</h4>
<p>In the following screenshot, we have 4 Servers.  Four are Exchange 2010 Multi-Role Servers; two in the Primary Site and two in the Failover Site.  The Cluster Service is running only on the four Exchange Multi-Role Servers.  More specifically, it would run on the Exchange 2010 Servers that have the Mailbox Server Role. When Exchange 2010 utilizes an even number of Nodes, it utilizes Node Majority with File Share Witness.  If you have dedicated HUB and/or HUB/CAS Servers, you can place the File Share Witness on those Servers.  However, the File Share Witness cannot be placed on the Mailbox Server Role.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj14.jpg" alt="" width="604" height="146" /></p>
<p>So now we have our five Servers; four of them being Exchange.  This means we have five voters.  Four of the Mailbox Servers that are running the cluster service are voters and the File Share Witness is a voter as well.  So the question is, how many voters/servers can I lose?  Well if you read the section on Majority Node Set (which you have to understand), you know the formula is (number of nodes /2) + 1.  This means we have (4 Exchange Servers / 2) = 2 + 1 = 3.  This means that 3 voters must always be online for your Exchange Cluster to remain operational.</p>
<p>But now let&#8217;s say one or two of your Exchange Servers go offline.  Well, you still have at least three voters online.  This means your cluster will be still be operational.  If all users/services were utilizing the Primary Site, then everything continues to remain completely operational.  If you were sending SMTP to the one of the servers in the Failover Site or users were for some reason connecting to the Failover Site, they will need to be pointed to another Exchange Server that is operational in the Primary Site or the Failover Site. This of course depends on whether the user databases are being replicated from a mailbox database failover standpoint.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj15.jpg" alt="" width="602" height="146" /></p>
<p>But what happens if you lose a third node in which all DAG members in the Failover Site go offline including the FSW? Well, based on the formula above we need to ensure we have 3 voters operational at all times.  At this time, the entire cluster goes offline.  You need to go through steps provided in the site switchover process but in this case, you would be activating the Primary Site and specify a new Alternative File Share Witness Server that exists in the Primary Site so you can active the Exchange 2010 Server in the Primary Site.  The DAG will actively use the File Share Witness since there will be 2 Exchange DAG Members remaining which is an even number of nodes.  And again, when you have an even number of nodes, you will use a File Share Witness.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj16.jpg" alt="" width="604" height="145" /></p>
<p>But what happens if you lose two nodes in the Primary Site as well as the FSW due to something such as Power Failure or a Natural Disaster? Well, based on the formula above we need to ensure we have 3 voters operational at all times.  At this time, the entire cluster goes offline.  You need to go through steps provided in the site switchover process but in this case, you would be activating the Failover Site and specify a new Alternative File Share Witness Server that exists (or will exist) in the Failover Site so you can activate the Exchange 2010 Servers in the Failover Site.   The DAG will actively use the Alternate File Share Witness since there will be 2 Exchange DAG Members remaining which is an even number of nodes.  And again, when you have an even number of nodes, you will use a File Share Witness.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj17.jpg" alt="" width="604" height="146" /></p>
<p>Once the Datacenter Switchover has occurred, you will be in a state that looks as such.  An Alternate File Share Witness is not for redundancy for your 2010 FSW that was in your Primary Site.  It&#8217;s used only during a Datacenter Switchover which is a manual process.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj18.jpg" alt="" width="603" height="147" /></p>
<p>Once your Primary Site becomes operational, you will re-add the two Primary DAG Servers to the existing DAG which will still be using the 2010 Alternate FSW Server in the Failover Site and you will now be switched into a Node Majority with File Share Witness Cluster instead of just Node Majority.  Remember I said with an odd number of DAG Servers, you will be in Majority Node Witness and with an even number, the Cluster will automatically switch itself to Node Majority with File Share Witness?  You will now be in a state that looks as such.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj19.jpg" alt="" width="603" height="146" /></p>
<p>Part of the Failback Process would be to switch back to the old FSW Server in the Primary Site.  Once done, you will be back into your original operational state.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj14.jpg" alt="" width="604" height="146" /></p>
<p>As you can see with how this works, the question that may arise is where to put your FSW?  Well, it should be in the Primary Site with the most users or the site that has the most important users.  With that in mind, I bet another question arises?  Well, why with the most users or the most important users?  Because some environments may want to use the above with an Active/Active Model instead of an Active/Passive.  Some databases may be activated in both sites.  But, with that, if the WAN link goes down, the Exchange 2010 Server in the Failover Site loses quorum since it can&#8217;t contact at least 2 other voters.  Again, you must have three voters online.  This also means that each voter must be able to see two other voters.  Because of that, the Exchange 2010 Server will go completely offline.</p>
<p>To survive this, you really must use 2 different DAGs.  One DAG where the FSW is in the First Site and a second DAG where its FSW is in the Second Site.  In my example, users that live in the First Active Site would primarily be using the Exchange 2010 DAG Members in the First Active Site which would be on DAG 2.  Users that live in the Second Active Site would primarily be using the Exchange 2010 DAG Members in the Second Active Site which would be on DAG 1. This way, if anything happens with the WAN link, users in the First Active Site would still be operational as the FSW for their DAG is in the First Active Site and DAG 2 would maintain Quorum.  Users in the Second Active Site would still be operational as the FSW for their DAG is in the Second Active Site and DAG 1 would maintain Quorum.</p>
<p><strong>Note</strong>: This would require twice the amount of servers since a DAG Member cannot be a part of more than one DAG.  As shown below, each visual representation below of a 2010 HUB/CAS/MBX is a separate server.</p>
<p>The Multi-DAG Model would look like this.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj20.jpg" alt="" width="603" height="314" /></p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=2343&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shudnow.net%2F2011%2F09%2F07%2Fexchange-2010-site-resilient-dags-and-majority-node-set-clustering-%25e2%2580%2593-part-3%2F&amp;title=Exchange%202010%20Site%20Resilient%20DAGs%20and%20Majority%20Node%20Set%20Clustering%20%E2%80%93%20Part%203" id="wpa2a_2"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2011/09/07/exchange-2010-site-resilient-dags-and-majority-node-set-clustering-%e2%80%93-part-3/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Exchange 2010 Site Resilient DAGs and Majority Node Set Clustering &#8211; Part 2</title>
		<link>http://www.shudnow.net/2011/08/12/exchange-2010-site-resilient-dags-and-majority-node-set-clustering-part-2/</link>
		<comments>http://www.shudnow.net/2011/08/12/exchange-2010-site-resilient-dags-and-majority-node-set-clustering-part-2/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 15:13:59 +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=2328</guid>
		<description><![CDATA[Welcome to Part 2 of Exchange 2010 Site Resilient DAGs and Majority Node Set Clustering.  In Part 1, I discussed what Majority Node Set Clustering is and how it works with Exchange Site Resilience when you have one DAG member in a Primary Site and one DAG member in a Failover Site.  In this Part, [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to Part 2 of Exchange 2010 Site Resilient DAGs and Majority Node Set Clustering.  In Part 1, I discussed what Majority Node Set Clustering is and how it works with Exchange Site Resilience when you have one DAG member in a Primary Site and one DAG member in a Failover Site.  In this Part, I will show an example of how Majority Node Set Clustering works with Exchange Site Resilience when you have two DAG members in a Primary Site and one DAG member in a Failover Site.</p>
<p><a href="http://www.shudnow.net/2011/08/05/exchange-2010-site-resilient-dags-and-majority-node-set-clustering-part-1/">Part 1</a></p>
<p>Part 2</p>
<p><a href="http://www.shudnow.net/2011/09/07/exchange-2010-site-resilient-dags-and-majority-node-set-clustering-%E2%80%93-part-3/">Part 3</a></p>
<h3>Real World Examples</h3>
<p>In Part 1, I showed a Real World example when you have one Exchange DAG member in the Primary Site and one Exchange DAG member in the Failover Site.  In this Part, I am showing a Real World example when you have two Exchange DAG members in the Primary Site and one Exchange DAG member in the Failover Site.</p>
<h4>3 Node DAG  (Two in Primary and One in Failover)</h4>
<p>In the following screenshot, we have 3 Servers.  Two are Exchange 2010 Multi-Role Servers; one in the Primary Site and one on the Failover Site.  The Cluster Service is running on all three Exchange Multi-Role Servers.  More specifically, it would run on the Exchange 2010 Servers that have the Mailbox Server Role. When Exchange 2010 utilizes an even number of Nodes, it utilizes Node Majority with File Share Witness.  Because we have an odd number of Nodes, we are utilizing Node Majority and will not utilize a File Share Witness.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj09.jpg" alt="" width="528" height="166" /></p>
<p>So now we have our three Servers; all three of them being Exchange.  This means we have three voters which would be the same if we were using an even number of nodes with a File Share Witness since a File Share Witness is also a voter.  So the question is, how many voters/servers can I lose?  Well if you read the section on Majority Node Set (which you have to understand), you know the formula is (number of nodes /2) + 1.  This means we have (3 Exchange Servers / 2) rounded down = 1 + 1 = 2.  This means that 2 voters must always be online for your Exchange Cluster to remain operational just like if we were utilizing 2 DAG members with a File Share Witness.</p>
<p>But now let&#8217;s say one of your Exchange Servers go offline.  Well, you still have at least two voters online.  This means your cluster will be still be operational.  If all users/services were utilizing the Primary Site, then everything continues to remain completely operational.  If you were sending SMTP to the Failover Site or users were for some reason connecting to the Failover Site, they will need to be pointed to the Exchange Server in the Primary Site.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj10.jpg" alt="" width="528" height="165" /></p>
<p>But what happens if you lose a second node? Well, based on the formula above we need to ensure we have 2 voters operational at all times.  At this time, the entire cluster goes offline.  You need to go through steps provided in the site switchover process but in this case, you would be activating the Primary Site and specify a new Alternative File Share Witness Server that exists in the Primary Site so you can active the Exchange 2010 Server in the Primary Site.  The DAG won&#8217;t actively use the File Share Witness but you should specify it anyways because part of the Failback process is re-adding the Primary Site Servers back to the DAG once they become operational. And once you re-add the second DAG node, you now have two DAG members in the DAG which will want to switch the DAG Cluster into a Node Majority with File Share Witness which is why you need to still specify a File Share Witness.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj11.jpg" alt="" width="528" height="169" /></p>
<p>But what happens if you lose two nodes in the Primary Site? Well, based on the formula above we need to ensure we have 2 voters operational at all times.  At this time, the entire cluster goes offline.  You need to go through steps provided in the site switchover process but in this case, you would be activating the Failover Site and specify a new Alternative File Share Witness Server that exists (or will exist) in the Failover Site so you can activate the Exchange 2010 Server in the Primary Site.   The DAG won&#8217;t actively use the File Share Witness but you should specify it anyways because part of the Failback process is re-adding the Primary Site Servers back to the DAG once they become operational.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj12.jpg" alt="" width="529" height="167" /></p>
<p>Once the Datacenter Switchover has occurred, you will be in a state that looks as such.  An Alternate File Share Witness is not for redundancy for your 2010 FSW that was in your Primary Site.  It&#8217;s used only during a Datacenter Switchover which is a manual process.</p>
<p><img src="http://www.shudnow.net/images/Exc2k10Maj05.jpg" alt="" width="497" height="171" /></p>
<p>Once your Primary Site becomes operational, you will re-add the Primary DAG Server to the existing DAG which will still be using the 2010 Alternate FSW Server in the Failover Site and you will now be switched into a Node Majority with File Share Witness Cluster instead of just Node Majority.  Remember I said with an odd number of DAG Servers, you will be in Majority Node Witness and with an even number, the Cluster will automatically switch itself to Node Majority with File Share Witness?  You will now be in a state that looks as such.</p>
<p><img src="http://www.shudnow.net/images/Exc2k10Maj06.jpg" alt="" width="496" height="168" /></p>
<p>Part of the Failback Process would be to switch to a FSW Server in the Primary Site.  Once done, you will be back into your original operational state.</p>
<p><img src="http://www.shudnow.net/images/Exc2k10Maj01.jpg" alt="" width="495" height="168" /></p>
<p>Now the final step of the Failback Process would be to re-add your final remaining DAG Member in the Primary Site.  Once done, your cluster will switch back into a Node Majority Cluster and will no longer be utilizing the FSW.</p>
<p><img src="http://www.shudnow.net/images/Exc2k10Maj09.jpg" alt="" width="528" height="166" /></p>
<p>As you can see with how this works, the question that may arise is where to put your the majority of your Exchange DAG Members?  Well, it should be in the Primary Site with the most users or the site that has the most important users.  With that in mind, I bet another question arises?  Well, why with the most users or the most important users?  Because some environments may want to use the above with an Active/Active Model instead of an Active/Passive.  Some databases may be activated in both sites.  But, with that, if the WAN link goes down, the Exchange 2010 Server in the Failover Site loses quorum since it can&#8217;t contact at least 1 other voter.  Again, you must have two voters online.  This also means that each voter must be able to see one other voter.  Because of that, the Exchange 2010 Server will go completely offline.</p>
<p>To survive this, you really must use 2 different DAGs.  One DAG where the majority of your Exchange 2010 DAG Members is in the First Site and a second DAG where the majority of the Exchange 2010 DAG Members is in the Second Site.  Users that live in the First Active Site would primarily be using the Exchange 2010 DAG Members in the First Active Site.  Users that live in the Second Active Site would primarily be using the Exchange 2010 DAG Members in the Second Active Site. This way, if anything happens with the WAN link, users in the First Active Site would still be operational as the majority of its Exchange 2010 DAG Members for their DAG is in the First Active Site and DAG 1 would maintain Qourum.  Users in the Second Active Site would still be operational as the majority of its Exchange 2010 DAG Members for their DAG is in the Second Active Site and DAG 2 would maintain Quorum.</p>
<p><strong>Note</strong>: This would require twice the amount of servers since a DAG Member cannot be a part of more than one DAG.  As shown below, each visual representation below of a 2010 HUB/CAS/MBX is a separate server.</p>
<p>The Multi-DAG Model would look like this.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj13.jpg" alt="" width="516" height="355" /></p>
<p>&nbsp;</p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=2328&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shudnow.net%2F2011%2F08%2F12%2Fexchange-2010-site-resilient-dags-and-majority-node-set-clustering-part-2%2F&amp;title=Exchange%202010%20Site%20Resilient%20DAGs%20and%20Majority%20Node%20Set%20Clustering%20%26%238211%3B%20Part%202" id="wpa2a_4"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2011/08/12/exchange-2010-site-resilient-dags-and-majority-node-set-clustering-part-2/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Exchange 2010 Site Resilient DAGs and Majority Node Set Clustering &#8211; Part 1</title>
		<link>http://www.shudnow.net/2011/08/05/exchange-2010-site-resilient-dags-and-majority-node-set-clustering-part-1/</link>
		<comments>http://www.shudnow.net/2011/08/05/exchange-2010-site-resilient-dags-and-majority-node-set-clustering-part-1/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 16:47:09 +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=2276</guid>
		<description><![CDATA[I&#8217;ve talked about this topic in some of my other articles but wanted to create an article that talks specifically about this model and show several different examples in a Database Availability Group (DAG)&#8217;s tolerance for node and File Share Witness (FSW) failure.  Many people don&#8217;t properly understand how the Majority Node Set Clustering Model [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve talked about this topic in some of my other articles but wanted to create an article that talks specifically about this model and show several different examples in a Database Availability Group (DAG)&#8217;s tolerance for node and File Share Witness (FSW) failure.  Many people don&#8217;t properly understand how the Majority Node Set Clustering Model works.  In my article <a href="http://www.shudnow.net/2010/06/30/exchange-2010-database-activation-coordination-dac/">here</a>, I talk about Database Activation Coordination Mode and have a section on Majority Node Set.  In this article, I want to visibly show show some real world examples on how the Majority Node Set Clustering Model works.  This will be a multi-part article and each Part will have its own example.</p>
<p>Part 1</p>
<p><a href="http://www.shudnow.net/2011/08/12/exchange-2010-site-resilient-dags-and-majority-node-set-clustering-part-2/">Part 2</a></p>
<p><a href="http://www.shudnow.net/2011/09/07/exchange-2010-site-resilient-dags-and-majority-node-set-clustering-%E2%80%93-part-3/">Part 3</a></p>
<h3>Majority Node Set</h3>
<p>Majority Node Set is a Windows Clustering Model such as the Shared Quorum Model, but different.  Both Exchange 2007 and Exchange 2010 Clusters use Majority Node Set Clustering (MNS).  This means that 50% of your votes (server votes and/or 1 file share witness) need to be up and running.  The proper formula for this is (n / 2) + 1 where n is the number of DAG nodes within the DAG. 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’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 let’s go through an example.  Let’s say we have 3 servers. This means that we need (number of nodes which is 3 / 2) + 1  which equals 2 as you round down since you can’t have half a server/witness.  This means that at any given time, we need 2 of our nodes to be online which means we can sustain only 1 (either a server or a file share witness) failure in our DAG.  Now let’s say we have 4 servers.  This means that we need (number of nodes which is 4 / 2) + 1 which equals 3.  This means at any given time, we need 3 of our servers/witness to be online which means we can sustain 2 server failures or 1 server failure and 1 witness failure.</p>
<h3>Real World Examples</h3>
<p>Each of these examples will show DAG Models with a Primary Site and a Failover Site.</p>
<h4>2 Node DAG  (One in Primary and One in Failover)</h4>
<p>In the following screenshot, we have 3 Servers.  Two are Exchange 2010 Multi-Role Servers; one in the Primary Site and one on the Failover Site.  The Cluster Service is running only on the two Exchange Multi-Role Servers.  More specifically, it would run on the Exchange 2010 Servers that have the Mailbox Server Role. When Exchange 2010 utilizes an even number of Nodes, it utilizes Node Majority with File Share Witness.  If you have dedicated HUB and/or HUB/CAS Servers, you can place the File Share Witness on those Servers.  However, the File Share Witness cannot be placed on the Mailbox Server Role.</p>
<p><img src="http://www.shudnow.net/images/Exc2k10Maj01.jpg" alt="" width="495" height="168" /></p>
<p>So now we have our three Servers; two of them being Exchange.  This means we have three voters.  Two of the Mailbox Servers that are running the cluster service are voters and the File Share Witness is a voter as well.  So the question is, how many voters/servers can I lose?  Well if you read the section on Majority Node Set (which you have to understand), you know the formula is (number of nodes /2) + 1.  This means we have (2 Exchange Servers / 2) = 1 + 1 = 2.  This means that 2 voters must always be online for your Exchange Cluster to remain operational.</p>
<p>But now let&#8217;s say one of your Exchange Servers go offline.  Well, you still have at least two voters online.  This means your cluster will be still be operational.  If all users/services were utilizing the Primary Site, then everything continues to remain completely operational.  If you were sending SMTP to the Failover Site or users were for some reason connecting to the Failover Site, they will need to be pointed to the Exchange Server in the Primary Site.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj02.jpg" alt="" width="497" height="169" /></p>
<p>But what happens if you lose a second node? Well, based on the formula above we need to ensure we have 2 voters operational at all times.  At this time, the entire cluster goes offline.  You need to go through steps provided in the site switchover process but in this case, you would be activating the Primary Site and specify a new Alternative File Share Witness Server that exists in the Primary Site so you can active the Exchange 2010 Server in the Primary Site.  The DAG won&#8217;t actively use the File Share Witness but you should specify it anyways because part of the Failback process is re-adding the Primary Site Servers back to the DAG once they become operational.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj03.jpg" alt="" width="498" height="170" /></p>
<p>But what happens if you lose two nodes in the Primary Site? Well, based on the formula above we need to ensure we have 2 voters operational at all times.  At this time, the entire cluster goes offline.  You need to go through steps provided in the site switchover process but in this case, you would be activating the Failover Site and specify a new Alternative File Share Witness Server that exists (or will exist) in the Failover Site so you can activate the Exchange 2010 Server in the Primary Site.   The DAG won&#8217;t actively use the File Share Witness but you should specify it anyways because part of the Failback process is re-adding the Primary Site Servers back to the DAG once they become operational.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj04.jpg" alt="" width="498" height="171" /></p>
<p>Once the Datacenter Switchover has occurred, you will be in a state that looks as such.  An Alternate File Share Witness is not for redundancy for your 2010 FSW that was in your Primary Site.  It&#8217;s used only during a Datacenter Switchover which is a manual process.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj05.jpg" alt="" width="497" height="171" /></p>
<p>Once your Primary Site becomes operational, you will re-add the Primary DAG Server to the existing DAG which will still be using the 2010 Alternate FSW Server in the Failover Site and you will now be switched into a Node Majority with File Share Witness Cluster instead of just Node Majority.  Remember I said with an odd number of DAG Servers, you will be in Majority Node Witness and with an even number, the Cluster will automatically switch itself to Node Majority with File Share Witness?  You will now be in a state that looks as such.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj06.jpg" alt="" width="496" height="168" /></p>
<p>Part of the Failback Process would be to switch back to the old FSW Server in the Primary Site.  Once done, you will be back into your original operational state.</p>
<p><img src="http://www.shudnow.net/images/Exc2k10Maj01.jpg" alt="" width="495" height="168" /></p>
<p>As you can see with how this works, the question that may arise is where to put your FSW?  Well, it should be in the Primary Site with the most users or the site that has the most important users.  With that in mind, I bet another question arises?  Well, why with the most users or the most important users?  Because some environments may want to use the above with an Active/Active Model instead of an Active/Passive.  Some databases may be activated in both sites.  But, with that, if the WAN link goes down, the Exchange 2010 Server in the Failover Site loses quorum since it can&#8217;t contact at least 1 other voter.  Again, you must have two voters online.  This also means that each voter must be able to see one other voter.  Because of that, the Exchange 2010 Server will go completely offline.</p>
<p>To survive this, you really must use 2 different DAGs.  One DAG where the FSW is in the First Site and a second DAG where its FSW is in the Second Site.  Users that live in the First Active Site would primarily be using the Exchange 2010 DAG Members in the First Active Site.  Users that live in the Second Active Site would primarily be using the Exchange 2010 DAG Members in the Second Active Site. This way, if anything happens with the WAN link, users in the First Active Site would still be operational as the FSW for their DAG is in the First Active Site and DAG 1 would maintain Qourum.  Users in the Second Active Site would still be operational as the FSW for their DAG is in the Second Active Site and DAG 2 would maintain Quorum.</p>
<p><strong>Note</strong>: This would require twice the amount of servers since a DAG Member cannot be a part of more than one DAG.  As shown below, each visual representation below of a 2010 HUB/CAS/MBX is a separate server.</p>
<p>The Multi-DAG Model would look like this.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exc2k10Maj08.jpg" alt="" width="495" height="361" /></p>
<p>&nbsp;</p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=2276&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shudnow.net%2F2011%2F08%2F05%2Fexchange-2010-site-resilient-dags-and-majority-node-set-clustering-part-1%2F&amp;title=Exchange%202010%20Site%20Resilient%20DAGs%20and%20Majority%20Node%20Set%20Clustering%20%26%238211%3B%20Part%201" id="wpa2a_6"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2011/08/05/exchange-2010-site-resilient-dags-and-majority-node-set-clustering-part-1/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Exchange 2007 UM to Exchange 2010 UM Partial Upgrades and Redirects</title>
		<link>http://www.shudnow.net/2011/06/12/exchange-2007-um-to-exchange-2010-um-partial-upgrades-and-redirects/</link>
		<comments>http://www.shudnow.net/2011/06/12/exchange-2007-um-to-exchange-2010-um-partial-upgrades-and-redirects/#comments</comments>
		<pubDate>Sun, 12 Jun 2011 14:43:03 +0000</pubDate>
		<dc:creator>Elan Shudnow</dc:creator>
				<category><![CDATA[Exchange 2010]]></category>

		<guid isPermaLink="false">http://www.shudnow.net/?p=2272</guid>
		<description><![CDATA[General Information There&#8217;s two ways to migrate to Exchange 2010 UM: Full Upgrade Partial Upgrade In a Full Upgrade scenario, you are doing a big bang migration for your Exchange 2007 UM users and moving them all to Exchange 2010 UM at the same time.  At the same time, you are replacing your Exchange 2007 [...]]]></description>
			<content:encoded><![CDATA[<h3>General Information</h3>
<p>There&#8217;s two ways to migrate to Exchange 2010 UM:</p>
<ul>
<li>Full Upgrade</li>
<li>Partial Upgrade</li>
</ul>
<p>In a Full Upgrade scenario, you are doing a big bang migration for your Exchange 2007 UM users and moving them all to Exchange 2010 UM at the same time.  At the same time, you are replacing your Exchange 2007 UM Servers within your UM Dial Plan with Exchange 2010 UM Servers.</p>
<p>In a Partial Upgrade, you are going to  have Exchange 2007 UM Servers and Exchange 2010 UM Servers coexist within the same Dial Plan.</p>
<p>It is important to note how the call flows work in a Partial Upgrade Path.  You can see this documented very well <a href="http://technet.microsoft.com/en-us/library/dd335126.aspx">here</a>. In order for the Partial Upgrade process to work, the documentation clearly states, &#8220;When  you install the first Exchange 2010 UM server and add it to an existing  Exchange 2007 organization, you must add the Exchange 2010 UM server to  an existing UM dial plan that contains Exchange 2007 UM servers. <strong>Then  you must configure each IP gateway or IP PBX to send all incoming calls  to the Exchange 2010 UM servers within the same UM dial plan.</strong>&#8221;</p>
<p>The key part to note is that you must configure each IP Gateway object that is in the Dial Plan to now send ONLY to Exchange 2010.  The problem with the article, is that it does state this clearly and does show example of call flows, but what isn&#8217;t really explained is what exactly is happening on the Back-End.  And that, is what I am here to explain.</p>
<p>The basic jist of it, is that Exchange 2010 will redirect the IP Gateway to Exchange 2007 where necessary.  But let&#8217;s say you have a PBX connected to a gateway which is connected to UM.  Exchange 2010 UM will always redirect the gateway for an Exchange 2007 user and the gateway will connect directly to Exchange 2007 UM.  The gateway never has to relay any information back to the PBX in this case so there are no considerations you have to make for the PBX here.  The only consideration you should make is to make sure that the gateway has been certified against Exchange 2010 UM before you decide to do your partial upgrade.  The certified gateway/IP-PBX for Exchange 2007 is <a href="http://technet.microsoft.com/en-us/library/cc411323%28EXCHG.80%29.aspx">here </a>and the certified list for Exchange 2010 is located <a href="http://technet.microsoft.com/en-us/library/ee681657.aspx">here</a>.</p>
<p>With that said, the redirects from Exchange 2010 to Exchange 2007 work a couple different ways depending on the circumstances.  Thanks to Chun from Microsoft for providing me with these details that were documented in great detail.</p>
<p>There are two broad categories on how the redirection happens:</p>
<ul>
<li>Before UM 2010 accepts the invite, it knows the call is for an UM 2007 user (e.g., diversion exists and UM can tell that the call is for a 2007 user). In this case, we simply use 302 redirect.</li>
<li>UM 2010 needs to accept the invite before it knows the call is for an UM 2007 user. E.g., someone calls into the subscriber access from a phone that we cannot resolve to a user. UM needs to answer the call first, and wait for the user to punch in the mailbox extension. In this case, UM will send a REFER to the gateway to cause the gateway to send a new INVITE to the same UM 2010 server. But in the REFER header, we stick in a couple of information which shows up in the new INVITE. The UM 2010 server sees this information, realizes it is for a 2007 user, and redirects the call to UM 2007.</li>
</ul>
<h3>Example</h3>
<p>Now let&#8217;s take a look at a real life migration example from a procedural standpoint.  Let&#8217;s start off with not having Exchange 2010 yet.  We have our IP-PBX which is sending data to an IP Gateway which is then sending data to Exchange 2007.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/UMMigration01.jpg" alt="" width="470" height="153" /></p>
<p>We then build our Exchange 2010 Server, install Exchange 2010 UM Role on it, and we then add it to our Dial Plan which will then consist of both Exchange 2007 and Exchange 2010 UM.  Keep in mind, when using OCS as the IP-PBX, you must be on at least OCS 2007 R2 CU5 and Exchange 2010 SP1 to be able to allow Exchange 2010 UM SP1 and Exchange 2007 to be in the same Dial Plan.  The reason for this is Exchange 2010 SP1 introduces capabilities that allow OCS 2007 R2 CU5+ and/or Lync to be able to do a user lookup, determine if they&#8217;re on Exchange 2010 or Exchange 2007 and route to the appropriate Exchange Version (2007 or 2010) regardless if they&#8217;re in the same Dial Plan.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/UMMigration02.jpg" alt="" width="459" height="259" /></p>
<p>As can be seen above, we now have Exchange 2010 and Exchange 2007 in the same Dial Plan.  We have also started routing all traffic to Exchange 2010.  If the call is for an Exchange 2007  User, Exchange 2010 will redirect the IP Gateway to start talking to Exchange 2007 to service those Exchange 2007 users.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=2272&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shudnow.net%2F2011%2F06%2F12%2Fexchange-2007-um-to-exchange-2010-um-partial-upgrades-and-redirects%2F&amp;title=Exchange%202007%20UM%20to%20Exchange%202010%20UM%20Partial%20Upgrades%20and%20Redirects" id="wpa2a_8"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2011/06/12/exchange-2007-um-to-exchange-2010-um-partial-upgrades-and-redirects/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Export Spoken Name in Exchange 2010 UM</title>
		<link>http://www.shudnow.net/2010/11/19/export-spoken-name-in-exchange-2010-um/</link>
		<comments>http://www.shudnow.net/2010/11/19/export-spoken-name-in-exchange-2010-um/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 15:52:44 +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=2083</guid>
		<description><![CDATA[I was asked by a client recently if there was anyway to export the Spoken Name in Exchange UM to a WAV file.  You can&#8217;t export this to a WAV file but you can export it to a WMV-9 file which you can then use other means to convert it to a WAV file. Now [...]]]></description>
			<content:encoded><![CDATA[<p>I was asked by a client recently if there was anyway to export the Spoken Name in Exchange UM to a WAV file.  You can&#8217;t export this to a WAV file but you can export it to a WMV-9 file which you can then use other means to convert it to a WAV file.</p>
<p>Now when I say SpokenName, I am referring to the audio you hear when you press this audio icon in the Outlook Contact Card.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/ExportSpokenName01.jpg" alt="" width="610" height="487" /></p>
<p>To export this, the steps are relatively simple (though I didn&#8217;t figure this one out on my own and a very helpful Microsoft fellow CYC gave me most of the code).</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p2083code2'); return false;">View Code</a> POWERSHELL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p20832"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p2083code2"><pre class="powershell" style="font-family:monospace;">Export<span style="color: pink;">-</span>RecipientDataProperty <span style="color: pink;">-</span>Identity  <span style="color: pink;">-</span>SpokenName <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">foreach-object</span> <span style="color: #000000;">&#123;</span> <span style="color: #008080; font-weight: bold;">Add-Content</span> <span style="color: #008080; font-style: italic;">-Value</span> <a href="about:blank"><span style="color: #000080;">$_</span></a>.FileData <span style="color: #008080; font-style: italic;">-Path</span> <span style="color: #800000;">&quot;C:\Exports\identity.wma&quot;</span> <span style="color: #008080; font-style: italic;">-Encoding</span> Byte <span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>Let&#8217;s look at an example.  I will export my own Spoken Name to WMA file.</p>
<p>We can see that no file currently exists.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/ExportSpokenName02.jpg" alt="" width="647" height="291" /></p>
<p>We will now export the data to a WMV-9 file as well as re-verify that the file was created.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/ExportSpokenName03.jpg" alt="" width="973" height="227" /></p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=2083&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shudnow.net%2F2010%2F11%2F19%2Fexport-spoken-name-in-exchange-2010-um%2F&amp;title=Export%20Spoken%20Name%20in%20Exchange%202010%20UM" id="wpa2a_10"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2010/11/19/export-spoken-name-in-exchange-2010-um/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Exchange 2010 Site Resilience, Multiple DAG IPs, and Cluster Resources</title>
		<link>http://www.shudnow.net/2010/09/27/exchange-2010-site-resilience-multiple-dag-ips-and-cluster-resources/</link>
		<comments>http://www.shudnow.net/2010/09/27/exchange-2010-site-resilience-multiple-dag-ips-and-cluster-resources/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 13:27:01 +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=1910</guid>
		<description><![CDATA[Exchange 2010 allows us to have Database Availability Group (DAG) members in several AD Sites.  For every subnet a DAG member&#8217;s MAPI NIC is in, we must obtain a DAG IP.  This DAG IP is a separate IP than is located on the MAPI NICs themselves. We take this DAG IP to the DAG using [...]]]></description>
			<content:encoded><![CDATA[<p>Exchange 2010 allows us to have Database Availability Group (DAG) members in several AD Sites.  For every subnet a DAG member&#8217;s MAPI NIC is in, we must obtain a DAG IP.  This DAG IP is a separate IP than is located on the MAPI NICs themselves. We take this DAG IP to the DAG using the Set-DatabaseAvailabilityGroup command.</p>
<h3>Multiple DAG IPs</h3>
<p>Let&#8217;s take a look at an example of how the architecture may look.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/DAGClusterResources02.jpg" alt="" width="744" height="237" /></p>
<p>Taking a look at the above Visio diagram, we have two sites, Primary Site and DR Site, with one node in each.  The MAPI NIC in the Primary Site has an IP Address of 172.17.24.200.  That means that we&#8217;ll need to have a DAG IP that lives in this same subnet.  We choose a DAG IP of 172.17.24.120.  The MAPI NIC in the DR Site has an IP Address of 172.16.24.200. That means that we&#8217;ll need to have a DAG IP that lives in this same subnet.  We choose a DAG  IP of 172.16.24.120.</p>
<p>In order to add these MAPI IP Addresses, we&#8217;ll need to run the following the command.</p>
<p><strong>Note</strong>: IPs on Replication NIC&#8217;s subnet do not get added to the Database AvailabilityGroupIPAddresses. Only MAPI NIC Subnets get added.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/DAGClusterResources03.jpg" alt="" width="898" height="38" /></p>
<p>Keep in mind, when adding additional IPs in the future, it is important that you include all existing DAG IPs.  The Set-DatabaseAvailabilityGroup -DatabaseAvailabilityGroupIPAddresses property is not additive.</p>
<p>To verify the DAG IPs were added successfully, let&#8217;s check out our DAG Properties.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/DAGClusterResources01.jpg" alt="" width="573" height="81" /></p>
<p>In Exchange 2010 SP1, we have the ability to add our DAG IPs via the GUI. If we go to the DAG Properties, we now see we can manage our Witness Server and Alternate Witness Server.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/DAGClusterResources09.jpg" alt="" width="744" height="359" /></p>
<p>This allows us to do our IP Address configuration right from the GUI instead of needing to use Set-DatabaseAvailabilityGroup  with the DatabaseAvailabilityGroupIPAddresses property and needing to worry about all previous IP Addresses being included since the property isn&#8217;t additive.</p>
<p><strong>Cluster Resources</strong></p>
<p>So, let&#8217;s take a look at what really happens to the cluster resources and what determines which DAG IP is active.  Let&#8217;s open the Failover Cluster Manager.  <strong>Start </strong>&gt; <strong>Administrative Tools</strong> &gt; <strong>Failover Cluster Manager</strong>.</p>
<p>After selecting our DAG, let&#8217;s take a look at the cluster resources.  We can see from here that we have two Network IP Resources.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/DAGClusterResources04.jpg" alt="" width="498" height="137" /></p>
<p>But let&#8217;s take even a deeper look.</p>
<p><strong>Select </strong>the <strong>DAG </strong>from within the <strong>Cluster Core Resources</strong> &gt; <strong>Right-Click</strong> &gt; <strong>Choose Properties</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/DAGClusterResources05.jpg" alt="" width="616" height="481" /></p>
<p>Now let&#8217;s take a look at the Dependencies Tab.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/DAGClusterResources06.jpg" alt="" width="404" height="481" /></p>
<p>As we can see, the two DAG IPs are set up with an OR dependency which means that the cluster can activate either DAG IP at any given time.  As we saw earlier, the 172.16.24.120 IP is the existing DAG IP that is online which means the DRSiteNode&#8217;s DAG IP is currently the online Network IP resource.</p>
<p>Let&#8217;s run a cluster command so we can failover the default &#8220;Cluster Group&#8221; from one cluster node to another.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/DAGClusterResources07.jpg" alt="" width="382" height="132" /></p>
<p>We now see the PrimarySiteNode is the node that has the &#8220;Cluster Group.&#8221;  Let&#8217;s go ahead and take a look at the Cluster Resources again and see which Network IP Resource is online.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/DAGClusterResources08.jpg" alt="" width="502" height="128" /></p>
<p>Looks like the PrimarySiteNode&#8217;s DAG IP is now Online instead of the DRSiteNode&#8217;s DAG IP.  This means that the Network IP Resource that is online depends on which DAG Node has the &#8220;Cluster Group.&#8221;  If you recall from my previous articles, the DAG Node that has the &#8220;Cluster Group&#8221; is the DAG Node that acts as the Primary Active Manager.  The Primary Active Manager is the DAG Node responsible for choosing what databases get activated in a failover.  For more information on Active Manager, click <a href="http://technet.microsoft.com/en-us/library/dd776123.aspx">here</a>.</p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=1910&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shudnow.net%2F2010%2F09%2F27%2Fexchange-2010-site-resilience-multiple-dag-ips-and-cluster-resources%2F&amp;title=Exchange%202010%20Site%20Resilience%2C%20Multiple%20DAG%20IPs%2C%20and%20Cluster%20Resources" id="wpa2a_12"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2010/09/27/exchange-2010-site-resilience-multiple-dag-ips-and-cluster-resources/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Exchange 2007/2010 Connection Filtering and Transport Configuration</title>
		<link>http://www.shudnow.net/2010/09/01/exchange-20072010-connection-filtering-and-transport-configuration/</link>
		<comments>http://www.shudnow.net/2010/09/01/exchange-20072010-connection-filtering-and-transport-configuration/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 21:02:26 +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=1900</guid>
		<description><![CDATA[Connection Filtering Basics (Blocking Connection to the Server) Many of you know what Connection Filtering is in Exchange. It allows you to control what IPs are allowed and what IPs are blocked.   Taking a look at the following image, we can see exactly what parts of Anti-Spam utilize the connection filtering agent. In the following [...]]]></description>
			<content:encoded><![CDATA[<h3>Connection Filtering Basics (Blocking Connection to the Server)</h3>
<p>Many of you know what Connection Filtering is in Exchange.  It allows you to control what IPs are allowed and what IPs are blocked.   Taking a look at the following image, we can see exactly what parts of Anti-Spam utilize the connection filtering agent.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/ExchangeConnFilt02.jpg" alt="" width="674" height="502" /></p>
<p>In the following image, we can see in what order the anti-spam agents run.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/ExchangeConnFilt03.jpg" alt="" width="606" height="154" /></p>
<p>If you utilize the IP Block List, if something is blocked, the connection dies there.  Let&#8217;s take a look at the IP Block in action and how the connecting server&#8217;s connection is terminated.  For starts, let&#8217;s take a look at the connecting machine&#8217;s IP.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/ExchangeConnFilt04.jpg" alt="" width="539" height="131" /></p>
<p>Let&#8217;s make a telnet to the server on port 25.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/ExchangeConnFilt05.jpg" alt="" width="674" height="90" /></p>
<p>We see the connection works just fine.  Now, let&#8217;s go add the client IP to the IP Block List. To do this, <strong>Select IP BlockList</strong> &gt;  <strong>Right-Click</strong> &gt; <strong>Select Properties</strong> &gt; <strong>Click Add</strong> &gt; <strong>Enter Client IP Address</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/ExchangeConnFilt06.jpg" alt="" width="627" height="487" /></p>
<p>Now let&#8217;s try Telneting to the Server over port 25 again.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/ExchangeConnFilt07.jpg" alt="" width="264" height="97" /></p>
<p>As we can see, we cannot communicate via port 25 to the SMTP Server anymore due to the connecting IP being on the IP Block List.</p>
<h3>Connection Filtering and Non-Exchange SMTP Filtering Appliances/Servers</h3>
<p>One of the big things here, is that Connection Filtering happens based on the last untrusted IP Address.  One of the biggest things that are overlooked when using the Exchange or Forefront Connection Filtering Agent is that it is very important for you to enter the trusted SMTP IP Addresses in your organization.</p>
<p>This will need to be done via your Hub Transport Server.  To modify the trusted SMTP IP Addresses in your organization, go to <strong>Organization Configuration</strong> &gt; <strong>Hub Transport</strong> &gt; <strong>Global Settings</strong> &gt; <strong>Message Delivery</strong>.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/ExchangeConnFilt08.jpg" alt="" width="975" height="301" /></p>
<p>It is very important when using Connection Filtering to enter ALL trusted IP Addresses that handle SMTP in the organization.  This includes any type of SMTP Appliance/Server that is sending traffic to Exchange.  This includes Ironport, Sendmail, Barracuda, etc&#8230;  The reason why is, the way Connection Filtering works, is that it looks at the sending server&#8217;s IP Address and does the lookup on that.  But, let&#8217;s say it&#8217;s the Edge Transport Server and it&#8217;s receiving mail from an Ironport.</p>
<p>Do you really want the Connection Filtering lookup to lookup the Ironport IP?  Of course not, Ironport is an internal server.  Connection filtering ignores any IPs listed in the above Message Delivery list.  This means, if an Exchange Edge server receives mail from an Ironport, if the Ironport IP is on that list, the Exchange Edge will then do a Connection Filteirng lookup on the last untrusted IP which would be the server that sent the mail to the Ironport (that is if the server that sent mail to Ironport is not also another internal device that is on the above list.</p>
<p>So, make sure you add all trusted IPs (Exchange and non-Exchange that are handling SMTP) internal to your organization to make sure Connection Filtering is working as it should be.</p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=1900&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shudnow.net%2F2010%2F09%2F01%2Fexchange-20072010-connection-filtering-and-transport-configuration%2F&amp;title=Exchange%202007%2F2010%20Connection%20Filtering%20and%20Transport%20Configuration" id="wpa2a_14"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2010/09/01/exchange-20072010-connection-filtering-and-transport-configuration/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Exchange 2010 SP1 and Blackberry Enterprise Server (BES)</title>
		<link>http://www.shudnow.net/2010/08/24/exchange-2010-sp1-and-blackberry-enterprise-server/</link>
		<comments>http://www.shudnow.net/2010/08/24/exchange-2010-sp1-and-blackberry-enterprise-server/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 15:51:01 +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=1883</guid>
		<description><![CDATA[Many will be upgrading to Exchange 2010 SP1 soon.  Many of you also have Blackberry Enterprise Server.  RIM has provided a pre-installation guide for Exchange 2010 here.  I wanted to touch on one of these pre-installation steps.  This is where we increase the maximum number of connections to the Address Book service.  The specific guide [...]]]></description>
			<content:encoded><![CDATA[<p>Many will be upgrading to Exchange 2010 SP1 soon.  Many of you also have Blackberry Enterprise Server.  RIM has provided a pre-installation guide for Exchange 2010 <a href="http://docs.blackberry.com/en/admin/deliverables/12070/Configuring_Exchange_2010_environ_962756_11.jsp">here</a>.  I wanted to touch on one of these pre-installation steps.  This is where we increase the maximum number of connections to the Address Book service.  The specific guide for this step is located <a href="http://docs.blackberry.com/en/admin/deliverables/12070/Increase_max_connections_Exchange_10_963027_11.jsp">here</a>.  As you can see, you have to go into the following file &#8220;microsoft.exchange.addressbook.service.exe.config&#8221; and set MaxSessionsPerUser to 100000.</p>
<p><span style="color: #ff0000;"><strong>Note</strong></span>: Blackberry now has full support for Exchange 2010 SP1 as of 10/12/2010.  RIM retroactively modified their September 29th document to have full support when the same September 29th document previously only had Exchange 2010 SP1 listed with limited support. Please see the following document for support guidance which includes versioning information as well as a support KB article on supporting BES with Exchange 2010 SP1: http://na.blackberry.com/eng/support/software/server_exchange_ver_sept_29_10.pdf</p>
<p>In Exchange 2010 SP1, MaxSessionsPerUser does not exist anymore.  You can take a look at an Exchange 2010 SP1 &#8220;microsoft.exchange.addressbook.service.exe.config&#8221; file below:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1883code4'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p18834"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
</pre></td><td class="code" id="p1883code4"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;runtime<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;gcServer</span> <span style="color: #000066;">enabled</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;generatePublisherEvidence</span> <span style="color: #000066;">enabled</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/runtime<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;appSettings<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;NspiEndpointEnabled&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;RfrEndpointEnabled&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
       <span style="color: #808080; font-style: italic;">&lt;!-- Set port to an empty string to disable ncacn_ip_tcp. --&gt;</span>
        <span style="color: #808080; font-style: italic;">&lt;!-- Set the port to 0 to allow the server to assign a port number dynamically. --&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;RpcTcpPort&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
        <span style="color: #808080; font-style: italic;">&lt;!-- Set port to an empty string to disable ncacn_http for the specific interface --&gt;</span>
        <span style="color: #808080; font-style: italic;">&lt;!-- Standard port assignments: Nspi=6004, Rfr=6002 --&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;NspiHttpPort&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;6004&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;RfrHttpPort&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;6002&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
        <span style="color: #808080; font-style: italic;">&lt;!-- Enables and disables the logging for the address book service. --&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;ProtocolLoggingEnabled&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
        <span style="color: #808080; font-style: italic;">&lt;!-- Specifies the folder in which log files will be generated. --&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;LogFilePath&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;D:\Program Files\Microsoft\Exchange Server\V14\Logging\AddressBook Service\&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
        <span style="color: #808080; font-style: italic;">&lt;!-- Specifies the max size that a single log file can grow to before a new one is generated. --&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;PerFileMaxSize&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;10MB&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
        <span style="color: #808080; font-style: italic;">&lt;!-- Specifies the max size that the entire directory of logs can grow to before the oldest log is deleted. --&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;MaxDirectorySize&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;1GB&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
        <span style="color: #808080; font-style: italic;">&lt;!-- Specifies length of time in hours log files will be retained before being deleted. --&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;MaxRetentionPeriod&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;720&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
        <span style="color: #808080; font-style: italic;">&lt;!-- Specifies if we need to switch log file each hour. --&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;ApplyHourPrecision&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/appSettings<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>So the big question here is, what do we do?  What do we need to make sure of prior to upgrading to Exchange 2010 SP1 to ensure the BESAdmin account does not have issues connecting to the Address Book Service?  Well, the reason why there is no more MaxSessionsPerUser is that the throttling mechanism was moved to the Throttling Policies and is shared with the RPC Client Access Service which uses the RCA* parameters in the Throttling Policies.</p>
<p>One of the prerequisites steps in the BES Documentation (even for RTM)  is to create a Throttling Policy for the BES Admin Account.  You can see that step <a href="http://docs.blackberry.com/en/admin/deliverables/12070/Disable_client_throttling_Exchange_10_963026_11.jsp">here</a>.  Because the Address Book throttling has been moved to the Throttling Policy using the RCA* parameters instead of the &#8220;microsoft.exchange.addressbook.service.exe.config&#8221; we will want to take a look at the throttling policy we created for the BESAdmin account and make sure the RCA* parameters are set to $null.</p>
<p>Run the following command on Exchange 2010 to check the throttling policy:</p>
<div style="background-color: #dddddd;" dir="ltr">Get-ThrottlingPolicy BESPolicy</div>
<p>We will see results as such:</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exch2010SP1BESThrottling01.jpg" alt="" width="561" height="446" /></p>
<p>As we can see, the RCA* parameters are set to $null which means we will be safe upgrading to Exchange 2010 SP1.  If these parameters are not set to $null, set them to $null.  This can be done by running the following command:</p>
<div style="background-color: #dddddd;" dir="ltr">Set-ThrottlingPolicy BESPolicy -RCAMaxConcurrency $null -RCAPercentTimeInAD $null -RCAPercentTimeInCAS $null -RCAPercentTimeInMailboxRPC $null</div>
<p>If you are doing a greenfield deployment of BES and need to create a new Throttling Policy with all of the options and then assign the BES Mailbox (assuming the mailbox is BESAdmin), run the following commands:</p>
<div style="background-color: #dddddd;" dir="ltr">
<ol>
<li>New-ThrottlingPolicy BESPolicy</li>
<li>Set-ThrottlingPolicy BESPolicy -RCAMaxConcurrency $null -RCAPercentTimeInAD $null -RCAPercentTimeInCAS $null -RCAPercentTimeInMailboxRPC $null -EWSMaxConcurrency $null -EWSPercentTimeInAD $null -EWSPercentTimeInCAS $null -EWSPercentTimeInMailboxRPC $null -EWSMaxSubscriptions $null -EWSFastSearchTimeoutInSeconds $null -EWSFindCountLimit $null</li>
<li>Set-Mailbox &#8220;BESAdmin&#8221; -ThrottlingPolicy BESPolicy.</li>
</ol>
</div>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=1883&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shudnow.net%2F2010%2F08%2F24%2Fexchange-2010-sp1-and-blackberry-enterprise-server%2F&amp;title=Exchange%202010%20SP1%20and%20Blackberry%20Enterprise%20Server%20%28BES%29" id="wpa2a_16"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2010/08/24/exchange-2010-sp1-and-blackberry-enterprise-server/feed/</wfw:commentRss>
		<slash:comments>48</slash:comments>
		</item>
		<item>
		<title>Changes in Exchange 2010 SP1 Administrator Audit Logging</title>
		<link>http://www.shudnow.net/2010/08/03/changes-in-exchange-2010-sp1-administrator-audit-logging/</link>
		<comments>http://www.shudnow.net/2010/08/03/changes-in-exchange-2010-sp1-administrator-audit-logging/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 02:44:33 +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=1856</guid>
		<description><![CDATA[Exchange 2010 SP1 changes the way Administrator Audit Logging (AAL) works to some degree.  To see how Exchange 2010 RTM Administrator Audit Logging works, check out a great article by my fellow MVP Neil Hobson here.  This article is not going to explain what AAL is, just what the changes are. In Exchange 2010 RTM, [...]]]></description>
			<content:encoded><![CDATA[<p>Exchange 2010 SP1 changes the way Administrator Audit Logging (AAL) works to some degree.  To see how Exchange 2010 RTM Administrator Audit Logging works, check out a great article by my fellow MVP Neil Hobson <a href="http://www.msexchange.org/articles_tutorials/exchange-server-2010/compliance-policies-archiving/administrator-audit-logging-part1.html">here</a>.  This article is not going to explain what AAL is, just what the changes are.</p>
<p>In Exchange 2010 RTM, when you configured AAL, you had to specify what mailbox you were going to store data in.  This first required you to enable AAL and then to set the AAL Mailbox.  An example of this (which is also shown in Neil&#8217;s article) is done by running the following command:</p>
<div style="background-color: #dddddd;" dir="ltr">Set-AdminAuditLogConfig –AdminAuditLogMailbox auditmailbox@shudnow.net</div>
<p>As an Administrator, you then had to give yourself full mailbox access to auditmailbox@shudnow.net.  For example, if your user account was elanadmin@shudnow.net, you would give yourself full mailbox access using the following cmdlet:</p>
<div style="background-color: #dddddd;" dir="ltr">
<p>Add-MailboxPermission auditmailbox@shudnow.net -User elanadmin@shudnow.net -AccessRights FullAccess</p>
</div>
<p>You can now open the mailbox via OWA or Outlook to view the Administrator Audit Logs.</p>
<h2>The Changes (Good Changes)</h2>
<p>All the steps above I have just explained completely change in SP1.  In short, the changes include:</p>
<ul>
<li>No more specified Mailbox exists.  In fact, the parameter AdminAuditLogMailbox has been removed.  It now uses a hidden mailbox (an arbitration mailbox to be precise) and you cannot change this.</li>
<li>All reporting is done in the Exchange Control Panel (ECP) which then creates a report based on the option you specify and sends it to the mailbox of choice.</li>
</ul>
<h3>Administrator Audit Logging Mailbox</h3>
<p>As you can see, there is no AdminAuditLogMailbox parameter anymore.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/AALSP101.jpg" alt="" width="592" height="349" /></p>
<p>As stated earlier, the data is now being stored in an Arbitration Mailbox. I welcome this change as it is less administrative work to have an additional mailbox when there&#8217;s already an arbitration mailbox with unlimited quota that can be storing this data instead.</p>
<h3>Exchange Control Panel (ECP)</h3>
<p>Logging into the ECP as an Administrator, we have the options to Manage Your Organization.  In fact, if you are a normal user with no elevated RBAC roles, you will not even see the option to Manage Your Organization.</p>
<p>In fact, let&#8217;s take a look at my regular user account and we&#8217;ll see what I&#8217;m talking about.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/AALSP102.jpg" alt="" width="477" height="256" /></p>
<p>Now, let&#8217;s take a look at my administrator account (yes, I have a regular user account and a separate administrator account, and you should too &#8211; it&#8217;s called principle of least privilege and protected groups &#8211; aka adminsdholder issues).</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/AALSP103.jpg" alt="" width="472" height="214" /></p>
<p>As you can see, I have an option to Manage My Organization.  The other options in that drop down include:</p>
<ul>
<li>Manage Myself</li>
<li>Manage Another User</li>
</ul>
<p>But as we know, depending on the Exchange 2010 Administrative Model known as RBAC, some options may or may not appear in the ECP due to ECPs modular nature.  So if a user who has been added to the &#8220;Recipient Management&#8221; Group logs into ECP, they will see Manage My Organization but they may not see the Auditing.  So the question, what Role Groups out of the box have any kind of access to Auditing? Well, I did some PowerShell kung-fu and easily ran a one-liner (Powershell rocks!) and searched for which groups have access to this Auditing feature.  The PowerShell command I ran was:</p>
<div style="background-color: #dddddd;" dir="ltr">Get-ManagementRole | Get-ManagementRoleAssignment | Where-Object {$_.Role -like &#8220;*audit*&#8221;} | FT Role,RoleAssigneeName -wrap -autosize</div>
<p>The result was the following:</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/AALSP106.jpg" alt="" width="791" height="151" /></p>
<p>We can see that some of our Role Groups (Organization Management and Exchange Organization Administrators) have several iterations of the Role.  This is due to the deleation type.  Regular means that the the Group has access to the commands that are specified in the role Audit Logs.  DelegatingOrgWide means the Role Group (Organization Management and Exchange Organization Administrators) have the power to assign the role to other Role Groups.</p>
<p>Moving on&#8230; now that we are in Manage My Organization Mode, we can see there is a Roles &amp; Auditing Section now with an Auditing subsection.  From there, we can see that we can view some Auditing Reports.  These include the following reports:</p>
<ul>
<li><span style="text-decoration: underline;"><strong>Run a non-owner mailbox access report</strong></span> &#8211; allows you to search mailbox audit logs for mailboxes that have been accessed or changed by someone other than the owner.</li>
<li><span style="text-decoration: underline;"><strong>Run a litigation hold report</strong></span> &#8211; allows you to search the administrator audit log for users who&#8217;ve had litigation hold enabled or disabled for their mailbox.</li>
<li><span style="text-decoration: underline;"><strong>Run an administrator role group report</strong></span> &#8211; allows you to search the administrator audit log for changes made to role groups, which are used to assign administrative permissions to users.</li>
<li><span style="text-decoration: underline;"><strong>Export mailbox audit logs</strong></span> &#8211; allows you to search for and export information about non-owner access to a mailbox during a specific time period.</li>
<li><span style="text-decoration: underline;"><strong>Export the administrator audit log </strong></span>- allows you to search for and export information about configuration changes made in your organization.</li>
</ul>
<p>The jist of it is that the first 3 that start with Run show the results within ECP itself.  The two Export options will allow you to specify a mailbox in the organization for which a report will be sent.  The report will look just as it did in RTM; an XML style result.</p>
<p>Let&#8217;s run through an Export  example. Let&#8217;s say a change was made in the organization and it&#8217;s not showing up in the logs.  We suspect that a rogue administrator had disabled Administrator Audit Logging.  We know this issue happened sometime between July 21st and July 23rd.  So we go into the Export the administrator audit log section.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/AALSP104.jpg" alt="" width="541" height="350" /></p>
<p>We set the Start date to July 21st and the End date to July 23rd.  We then click Select users so we can choose the mailbox the report gets sent to.</p>
<p>I search for my mailbox and choose my mailbox as the mailbox to send the export to.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/AALSP105.jpg" alt="" width="376" height="92" /></p>
<p>We then get the export report in e-mail.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/AALSP107.jpg" alt="" width="827" height="97" /></p>
<p>The report can take several minutes and even longer depending on how much of a time period we are searching through. Once the report has been received, we can save the attached XML file and open it up in an XML Editor.  I chose to use XML Notepad.  We can see who the rogue admin was (it was me!&#8230; only doing my test of course).</p>
<p>We can also see what was done and what the old and new value were.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/AALSP108.jpg" alt="" width="738" height="362" /></p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 1969px; width: 1px; height: 1px; overflow: hidden;">
<p class="MsoNormal"><strong><span style="color: red;"> &lt;Parameter Name=&#8221;AdminAuditLogEnabled&#8221; Value=&#8221;False&#8221; /&gt;</span></strong></p>
<p class="MsoNormal">&lt;/CmdletParameters&gt;</p>
<p class="MsoNormal">&lt;ModifiedProperties&gt;</p>
<p class="MsoNormal">&lt;Property Name=&#8221;AdminAuditLogFlags&#8221; OldValue=&#8221;AdminAuditLogEnabled&#8221; NewValue=&#8221;None&#8221; /&gt;</p>
<p class="MsoNormal">&lt;Property Name=&#8221;AdminAuditLogEnabled&#8221; OldValue=&#8221;True&#8221; NewValue=&#8221;False&#8221; /&gt;</p>
<p class="MsoNormal">&lt;/ModifiedProperties&gt;</p>
<p class="MsoNormal">&lt;/Event&gt;</p>
</div>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=1856&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shudnow.net%2F2010%2F08%2F03%2Fchanges-in-exchange-2010-sp1-administrator-audit-logging%2F&amp;title=Changes%20in%20Exchange%202010%20SP1%20Administrator%20Audit%20Logging" id="wpa2a_18"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2010/08/03/changes-in-exchange-2010-sp1-administrator-audit-logging/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Exchange 2010 Database Activation Coordination (DAC)</title>
		<link>http://www.shudnow.net/2010/06/30/exchange-2010-database-activation-coordination-dac/</link>
		<comments>http://www.shudnow.net/2010/06/30/exchange-2010-database-activation-coordination-dac/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 01:58:51 +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=1819</guid>
		<description><![CDATA[Introduction and Database Activation Coordination (DAC) Support Exchange 2010 introduced a vast amount of changes to the High Availability model with the addition of the Database Availability Group (DAG).  Some features of the DAG are having up to 16 members, automatic database *over to another site as long as you still have quorum, and much [...]]]></description>
			<content:encoded><![CDATA[<h3>Introduction and Database Activation Coordination (DAC) Support</h3>
<p>Exchange 2010 introduced a vast amount of changes to the High Availability model with the addition of the Database Availability Group (DAG).  Some features of the DAG are having up to 16 members, automatic database *over to another site as long as you still have quorum, and much more.  Exchange also introduced Database Activation Coordination (DAC) mode as an optional addition to the new High Availability model to prevent split brain syndrome from occurring during a site failover when utilizing a multi-site DAG configuration with at least 3 DAG members and more than one Active Directory Site.  DAC is off by default and in Exchange 2010 RTM it should not be enabled for:</p>
<ul>
<li>2 member DAGs</li>
<li>Non-Multisite DAGs</li>
<li>Multi-site DAGs that are in the same stretched Active Directory Site</li>
</ul>
<p>In Exchange 2010 SP1,  the following changes are introduced and supported for DAC:</p>
<ul>
<li>DAGs that contain 2 or more members</li>
<li>DAGs that are stretched across a single AD Site</li>
</ul>
<h3>Majority Node Set</h3>
<p>Before we understand how DAC works, we really have to understand the Cluster Model that DAGs utilize.  Both Exchange 2007 and Exchange 2010 Clusters use Majority Node Set  Clustering (MNS).  This means that 50% of your votes (server votes and/or 1  file share witness) need to be up and running.  The proper formula for this is (n / 2) + 1 where n is the number of DAG nodes within the DAG. 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’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 let&#8217;s go through an example.  Let&#8217;s say we have 3 servers. This means that we need (number of nodes which is 3 / 2) + 1  which equals 2 as you round down since you can&#8217;t have half a server/witness.  This means that at any given time, we need 2 of our nodes to be online which means we can sustain only 1 (either a server or a file share witness) failure in our DAG.  Now let&#8217;s say we have 4 servers.  This means that we need (number of nodes which is 4 / 2) + 1 which equals 3.  This means at any given time, we need 3 of our servers/witness to be online which means we can sustain 2 server failures or 1 server failure and 1 witness failure.</p>
<h3>Database Activation Coordination (DAC)</h3>
<p>In short, DAC mode is enabled when you have at least 3 members to prevent split brain syndrome.  It&#8217;s as simple as that. Let&#8217;s take a look at an example and see how DAC can help. The longer explanation below talks about this specific model.</p>
<p><img class="alignnone" src="http://www.shudnow.net/images/Exchange2010SP1DAC.jpg" alt="" width="539" height="461" /></p>
<h4>Prevention of Split Brain Syndrome</h4>
<p><strong>Short Explanation</strong></p>
<p>When the Primary Site goes offline (or we lose too many servers &#8211; refer to Majority Node Set above), the Secondary Site will need to be manually activated should you make the choice that a secondary site activation will be required depending on the magnitude of the failure and how long you anticipate the primary site or servers there will be down.  But, when the Primary Site comes back online, the WAN link may be offline.  Because the Primary Site&#8217;s Exchange Servers don&#8217;t necessarily know about the Manual Site Switchover, they will come up thinking they have Quorum since the Primary Site has the majority of the servers and they are still connected to the old FSW.  Because of this, they will begin to mount databases since to them, they still have Quorum.</p>
<p>DAC mode will enable the usage of a new protocol, Database Activation Coordination Protocol (DACP). This means that DAG members start up with a special memory bit of 0.  They need to contact another DAG node with this special memory bit set to 1.  This memory bit will be set to 1 on one of the DAG members in the Secondary Site since that site is hosting active databases.  Because the WAN link is down, the Primary Site&#8217;s DAG members that just came online won&#8217;t be able to contact this DAG member with the special memory bit set to 1.  Because of this, they won&#8217;t be able to mount databases.  The WAN link will have to come back online which means the Primary Site&#8217;s DAG members will now be able to contact the DAG member that has the special memory bit set to 1 which will now allow the Primary Site&#8217;s DAG Members to be in a state where they are allowed to mount databases.</p>
<p><strong>Longer Explanation</strong></p>
<p>We can see in this example, there are 5 DAG nodes and no FSW as we have an odd number of DAG nodes.  Our entire Primary Datacenter Fails (or we lose too many servers &#8211; in our case, this would be (5 / 2) + 1 which means 3 of our nodes need to remain operational for the DAG to remain operational), the  Secondary Site will need to be manually activated should you make the  choice that a secondary site activation will be required depending on  the magnitude of the failure and how long you anticipate the primary  site or servers there will be down.</p>
<p>Part of the failover process will have us shrink the DAG by removing the DAG nodes in the Primary Site from the cluster so all that remain of the existing 2 DAG nodes in the Secondary Site.  Instructions for shrinking the DAG and doing a manual site actiavtion is located <a href="http://technet.microsoft.com/en-us/library/dd351049.aspx">here</a>.  Should we decide to proceed with a a manual site switchover , we will provision the FSW in the secondary site during manual site activation to the secondary datacenter.  But what happens if the Primary Site&#8217;s Exchange Servers come back online?  They will think they have majority because the primary site has the majority of the servers and the FSW is located there.  Because of this, when they start up, they will begin mounting databases.</p>
<p>Now this is where DAC comes in.  Without DAC enabled, the Primary Site&#8217;s Exchange Servers would indeed come online, think they have majority, and begin mounting databases and you run into a split-brain syndrome scenario.  This is because when power is restored to the datacenter, the servers will usually come up before WAN connectivity is fully restored.  The servers cannot communicate with each other between the sites to see that the active databases are already mounted, and because of that, the Primary Exchange Servers will see they have majority since the majority of your servers and your FSW should be in the Primary Site, and mount the databases.</p>
<p>If the servers were allowed to mount databases, and you ran into a split-brain scenario, something called Database Divergence would occur. Database Divergence is where the databases in the primary site would  become different from the secondary site causing  the need for a reseed  from the authority database which would cause some database loss from  the new database that went into the diverged database due to split-brain  from occurring.</p>
<p>The way DAC works, is that all servers have a new protocol known as Database Activation Coordination Protocol (DACP).  One of the DAG Nodes will always have a special memory bit set to 1. What this means is, with DAC on, any time a server wants to mount a database, it will have to find a server with the DAC memory bit set to 1.  Because of this, when the Primary DAG Servers come back online, they will need to contact a server with that memory bit set to 1 in order to be in a state where it can begin mounting databases.  Because the WAN is down, these Primary Datacenter DAG Servers that are now just coming back online won&#8217;t be able to mount databases because none of these servers will have that special memory bit set to 1.  That memory bit will be set on one of the DAG Servers in the Secondary Site. Once WAN connectivity is restored, these Primary Datacenter DAG Servers will now be able to communicate with the DAG Server that happens to have that special memory bit set to 1 and now these DAG Servers will be allowed to mount databases.</p>
<p>Thankfully, in SP1, DAC will work with  2 node DAGs and multi-site DAGs that are using a stretched AD Site.</p>
<h4>DAC and ForceQuorum</h4>
<p>If you do not know what Forcequorum is,  have a quick look at my blog post <a href="http://www.shudnow.net/2008/11/06/recovering-from-server-2008-ccr-cluster-failure-with-forcequorum/">here</a>. Essentially, forcequorum allows you to forcefully start a cluster when this cluster has lost quorum.  You&#8217;re forcing it to bypass the Majority Node Set requirement to become operational.  In CCR, forcequorum was used in a geographically dispersed CCR cluster.  When the Primary Site went offline, you had to run forcequorum on the node in the Secondary Site and then set a new File Share Witness.  This is similar in Exchange 2010 DAGs when the Primary Site goes offline.</p>
<p>The article <a href="http://technet.microsoft.com/en-us/library/dd351049.aspx">here </a>is entitled Datacenter Switchovers and is the article to use when planning Site Resiliency with Exchange 2010.  You can see, in the procedure for terminating a failed site, there are two methods:</p>
<ul>
<li>When the DAG is in DAC  mode:</li>
<li>When the DAG isn&#8217;t in DAC mode</li>
</ul>
<p>When looking at the procedures for when DAC is NOT enabled, there are more steps that have to be done which involve running clussvc commands.  When looking at the procedures for when DAC is enabled, there are no steps which involve running clussv commands.  This is because when you have DAC mode on, DAC takes care of all the clussvc procedures for you in the background. As you can see, it is well worth it to ensure you have at least 3 DAG nodes in a DAG just to utilize DAC.  But again, in Exchange 2010 SP1, DAC can be utilized with DAGs that contain two nodes.</p>
<img src="http://www.shudnow.net/?ak_action=api_record_view&id=1819&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.shudnow.net%2F2010%2F06%2F30%2Fexchange-2010-database-activation-coordination-dac%2F&amp;title=Exchange%202010%20Database%20Activation%20Coordination%20%28DAC%29" id="wpa2a_20"><img src="http://www.shudnow.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.shudnow.net/2010/06/30/exchange-2010-database-activation-coordination-dac/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
	</channel>
</rss>

