<?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>Edwin M SarmientoWhy We Need To Understand How Active Directory Affects SQL Server High Availability &#8211; Edwin M Sarmiento</title>
	<atom:link href="https://www.edwinmsarmiento.com/why-we-need-to-understand-how-active-directory-affects-sql-server-high-availability/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.edwinmsarmiento.com</link>
	<description>Intentional Excellence</description>
	<lastBuildDate>Mon, 13 Apr 2026 21:00:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">84283043</site>		<item>
		<title>Why We Need To Understand How Active Directory Affects SQL Server High Availability</title>
		<link>https://www.edwinmsarmiento.com/why-we-need-to-understand-how-active-directory-affects-sql-server-high-availability/</link>
		<comments>https://www.edwinmsarmiento.com/why-we-need-to-understand-how-active-directory-affects-sql-server-high-availability/#comments</comments>
		<pubDate>Mon, 08 Jun 2015 01:08:45 +0000</pubDate>
		<dc:creator>Edwin M Sarmiento</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Active Directory-detached Clusters]]></category>
		<category><![CDATA[SQL Server Availability Groups]]></category>
		<category><![CDATA[SQL Server Failover Clustered Instances]]></category>
		<category><![CDATA[Windows Server Failover Clustering]]></category>
		<category><![CDATA[WSFC]]></category>
		<guid isPermaLink="false">http://www.edwinmsarmiento.com/?p=1381</guid>

				<description><![CDATA[But I’ll tell you what hermits realize. If you go off into a far, far forest and get very quiet, you’ll come to understand that you’re connected with everything. – Alan Watts &#8211; WARNING: There will be a ton of acronyms in this blog post. Make sure to keep your notebook handy for note-taking reference. [&#8230;]]]></description>
					<content:encoded><![CDATA[<img width="659" height="183" src="https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/AD-WSFC1.jpg" class="featured-image wp-post-image" alt="" srcset="https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/AD-WSFC1.jpg 659w, https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/AD-WSFC1-300x83.jpg 300w, https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/AD-WSFC1-518x144.jpg 518w, https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/AD-WSFC1-82x23.jpg 82w, https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/AD-WSFC1-600x167.jpg 600w" sizes="(max-width: 659px) 100vw, 659px" /><p><span style="color: #3366ff;"><em>But I’ll tell you what hermits realize. If you go off into a far, far forest and get very quiet, you’ll come to understand that you’re connected with everything. </em></span></p>
<p style="text-align: center;"><em>– Alan Watts &#8211;</em></p>
<p style="text-align: left;"><em><strong>WARNING:</strong> There will be a ton of acronyms in this blog post. Make sure to keep your notebook handy for note-taking reference.</em></p>
<p style="text-align: left;">Whenever I talk to customers about SQL Server Availability Groups (AG) and Failover Clustered Instances (FCI,) I make sure I highlight the importance of Active Directory (AD) and DNS in their configuration. That&#8217;s because most of the presentations, video tutorials and resources that I see online only focus on the underlying Windows Server Failover Cluster (WSFC) layer. While it is worthwhile to really dig deep into the WSFC aspect, we sometimes miss the other components that make this technology work. Even worse, we fail to realize that those outside of WSFC play a crucial role into keeping our SQL Server databases highly available. Let me explain.</p>
<p style="text-align: left;">When I was still working as a data center engineer, one of the regular tasks assigned to me was to install Microsoft security patches released every month. I was responsible for patch management for all of the Windows servers in the data center, using Windows Software Update Services, PowerShell/VB scripting and AD to properly install security patches. We have a process in place that separates different environments &#8211; development, staging, production, DR and infrastructure services &#8211; for patch management. Then, the time came to patch the production servers. As I was rebooting the active (<em>I can still call it active since it&#8217;s a Windows Server 2003 running SQL Server 2005</em>) node on one of our SQL Server clusters, one of the systems engineers rebooted two out of the three domain controllers in the production environment. Unaware that my SQL Server FCI was impacted by the domain controllers being unavailable and that it should successfully failover to the standby node, I did my usual PING test to make sure that the nodes were available. After about five minutes into the process, I started getting email alerts about the SQL Server FCI being unavailable. This got me thinking. Why would my FCI be unavailable when all I did was to reboot a cluster node? Shouldn&#8217;t that automatically cause it to failover on the standby node? And, so, I thought.</p>
<h3 style="text-align: left;">The Authentication Piece</h3>
<p style="text-align: left;">Versions of Windows Server prior to 2012 R2 depended heavily on AD. That&#8217;s because when you create a WSFC, a computer name object (CNO) gets created in AD. When you create a FCI in a WSFC, that also creates a virtual computer object (VCO) in AD. Refer to the screenshot below of a WSFC named <strong>AG-CLUS</strong> and an AG listener named <strong>AG-PROD-LN</strong>.</p>
<p style="text-align: left;"><a href="https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/AD-WSFC1.jpg"><img fetchpriority="high" decoding="async" class=" size-full wp-image-1659 aligncenter" src="https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/AD-WSFC1.jpg" alt="AD-WSFC" width="659" height="183" srcset="https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/AD-WSFC1.jpg 659w, https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/AD-WSFC1-300x83.jpg 300w, https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/AD-WSFC1-518x144.jpg 518w, https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/AD-WSFC1-82x23.jpg 82w, https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/AD-WSFC1-600x167.jpg 600w" sizes="(max-width: 659px) 100vw, 659px" /></a></p>
<p style="text-align: left;">That means that, while totally outside the scope of a typical SQL Server DBA, SQL Server AG (since it also depends on WSFC) and FCI are now at the mercy of AD.  That also means that your database availability are now dependent on AD. That&#8217;s what happened to my SQL Server FCI when I rebooted one of the nodes.</p>
<p style="text-align: left;">The WSFC is no different from any other computers in AD. It is required that computers that will be used as nodes in a WSFC be members of the same AD domain. Computer accounts &#8211; similar to user accounts &#8211; authenticate the identity of the computer in AD to authorize or deny access to domain resources. Also, similar to user accounts, the computer accounts have passwords &#8211; we just don&#8217;t know them like we do with user accounts. The computer account communicates directly with AD for all of the things that we are familiar with concerning user accounts &#8211; password policies, password changes, ACLs, group policies, etc. Just imagine a computer account, after rebooting, connecting to the network and asking AD to authenticate so it can do what it needs to do.</p>
<p style="text-align: left;">When I rebooted the cluster node that I patched, the WSFC simply took the FCI offline as part of the failover process. Think of this as the computer getting rebooted. The WSFC, then, has to bring the FCI online on the standby node. As it brings the FCI on the standby node, the VCO that corresponds to the FCI has to authenticate in AD by finding the nearest domain controller in the domain. This is influenced by your primary/preferred and secondary/alternate DNS configuration on the network adapter.</p>
<p style="text-align: left;"><a href="https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/NIC-DNS.jpg"><img decoding="async" class=" size-medium wp-image-1662 aligncenter" src="https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/NIC-DNS-269x300.jpg" alt="NIC-DNS" width="269" height="300" srcset="https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/NIC-DNS-269x300.jpg 269w, https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/NIC-DNS-359x400.jpg 359w, https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/NIC-DNS-82x91.jpg 82w, https://www.edwinmsarmiento.com/wp-content/uploads/2015/06/NIC-DNS.jpg 411w" sizes="(max-width: 269px) 100vw, 269px" /></a></p>
<pre style="text-align: center;"><em>screenshot of the TCP/IP configuration of my domain controller</em></pre>
<p style="text-align: left;">If the VCO could not find any domain controller to authenticate, like what happened when one of our systems engineers rebooted two out of three domain controllers, it won&#8217;t come online on the WSFC. And since the SQL Server FCI clustered resource is dependent on the VCO (also known as the virtual network name,) the FCI won&#8217;t come online. The same is true when the VCO gets either disabled or deleted</p>
<h3 style="text-align: left;">But It&#8217;s Someone Else&#8217;s Job</h3>
<p style="text-align: left;">Managing AD is definitely outside the scope of any SQL Server DBA&#8217;s job description (unless you&#8217;re originally an AD guy who now manages the SQL Server databases or you&#8217;re the only IT guy in your organization.) And since we&#8217;re not responsible for that, we wouldn&#8217;t know what is being done in AD that may impact availability of our SQL Server databases. Like what happened to my FCI after rebooting one of the cluster nodes, I expected that the cluster would failover the FCI to the standby node as it always has. It may be true that it&#8217;s someone else&#8217;s job, the reality is that my job as a SQL Server DBA now depends on it. As I highlight in most of my WSFC presentations, &#8220;<strong><span style="color: #3366ff;"><em>we SQL Server DBAs are now responsible for things that we don&#8217;t even know we&#8217;re responsible for.</em></span></strong>&#8221; Besides, we still need to write the root cause analysis (RCA) report after the incident.</p>
<h3 style="text-align: left;">Take Action</h3>
<p style="text-align: left;">Talk to your AD guy. Be nice to him. Heck, buy him coffee every once in a while. Understand what his typical day looks like. And, while you&#8217;re at it, ask how you can help him make his job easier. I&#8217;m not suggesting that you take on the role of managing AD, managing SQL Server databases is still more fun and exciting, as far as I&#8217;m concerned. If you&#8217;re on his side, it would be easier to tell him that your job now depends on his. To meet your database recovery objectives and service level agreements, you need to know who&#8217;s on your <em><strong><a href="https://www.youtube.com/watch?v=42iRtkwBAn4" target="_blank" rel="noopener">pack</a></strong></em>. And they need to know that you&#8217;re on the same page.</p>
<h3 style="text-align: left;">Upgrade to Windows Server 2012 R2</h3>
<p style="text-align: left;">Windows Server 2012 R2 introduced <a href="https://technet.microsoft.com/en-ca/library/dn265970.aspx" target="_blank" rel="noopener">AD-detached clusters</a>. The idea behind this is that you can now deploy a WSFC that does not require creating a CNO in AD. That being said, any cluster-aware application that you run on top of the WSFC &#8211; AG and FCI, for example &#8211; will not have corresponding VCOs as well. The cluster nodes still need to be member servers in an AD domain. This decouples your SQL Server availability from anything happening in AD.</p>
<p style="text-align: left;">Deploying AD-detached clusters is only available using Windows PowerShell (<em>sorry, GUI folks, this is where command-line trumps mouse-clicking.</em>)</p>
<p style="text-align: center;"><div style="background-color:#eeeeee;border:1px solid #D6D6D6;font-family:arial,helvetica,sans-serif;font-size:15px;line-height:20px;margin:8px 0 20px;padding:15px 20px;"><span style="color: #800000;">New-Cluster AG-CLUS -Node AG1, AG2 –StaticAddress 172.16.0.57 -NoStorage –AdministrativeAccessPoint Dns</span></div></p>
<p style="text-align: left;">In the example code, I&#8217;m creating a WSFC named, <strong>AG-CLUS</strong> using the servers <strong>AG1</strong> and <strong>AG2</strong> as nodes, passing a static IP address of <strong>172.16.0.57</strong> but only using <strong>DNS</strong> as the administrative access point. I still need DNS for my WSFC because that&#8217;s how my client applications will access my WSFC and all the cluster-aware applications running on top of it. The only caveat here at the moment is that you can only use SQL Server (mixed mode) authentication for your AG and FCI.</p>
<h3>Or Windows Server 2016</h3>
<p>Windows Server 2016 introduced <a href="https://docs.microsoft.com/en-us/windows-server/failover-clustering/whats-new-in-failover-clustering#a-namebkmkmultidomainclustersaworkgroup-and-multi-domain-clusters" target="_blank" rel="noopener">Active Directory Domain-independent WSFC</a>. This enables administrators to deploy a WSFC without an Active Directory domain. The WSFC member servers/nodes could be a part of a workgroup or different Active Directory domains or forests. I cover how to<a href="https://www.mssqltips.com/sqlservertip/4951/deploy-a-windows-server-2016-failover-cluster-without-active-directory-part-1/" target="_blank" rel="noopener"> Deploy a Windows Server 2016 Failover Cluster without Active Directory in this article</a> if you want to try it out.</p>
<p style="text-align: left;">The more we are aware of the dependencies that our databases have on external systems, the better we can prepare for and include them when designing and maintaining highly available SQL Server databases. AD and DNS are just two of the other dependencies that you need to consider when deploying SQL Server AGs and FCIs.</p>
<h4 style="text-align: left;">Additional Resources</h4>
<ul>
<li style="text-align: left;"><a href="https://technet.microsoft.com/en-us/library/cc731002(v=ws.10).aspx" target="_blank" rel="noopener">Failover Cluster Step-by-Step Guide: Configuring Accounts in Active Directory</a></li>
<li style="text-align: left;"><a href="https://support.microsoft.com/en-us/kb/247811" target="_blank" rel="noopener">How Domain Controllers Are Located in Windows</a> (still applicable even though it says Windows 2000)</li>
<li style="text-align: left;"><a href="http://blogs.technet.com/b/askcore/archive/2014/03/24/failover-clustering-and-active-directory-integration.aspx" target="_blank" rel="noopener">Failover Clustering and Active Directory Integration</a></li>
<li style="text-align: left;"><a href="https://technet.microsoft.com/en-ca/library/dn265970.aspx" target="_blank" rel="noopener">Deploy an Active Directory-Detached Cluster</a></li>
</ul>
<hr />
<h2>Feeling helpless and confused when dealing with Windows Server Failover Clustering  (WSFC) for your SQL Server databases?</h2>
<p>You&#8217;re not alone. I&#8217;ve heard the same thing from thousands of SQL Server administrators throughout my entire career. These are just a few of them.</p>
<p><span style="color: #0000ff;"><em>&#8220;How do I properly size the server, storage, network and all the AD settings which we do not have any control over?&#8221;</em></span></p>
<p><span style="color: #0000ff;"><em>&#8220;I don&#8217;t quite understand how the Windows portion of the cluster operates and interacts with what SQL controls.&#8221;</em></span></p>
<p><span style="color: #0000ff;"><em>&#8220;I&#8217;m unfamiliar with multi-site clustering.&#8221;</em></span></p>
<p><span style="color: #0000ff;">&#8220;<em>Our servers are setup and configured by our parent company, so we don&#8217;t really get much experience with setting up Failover Clusters.</em>&#8220;</span></p>
<p>If you feel the same way, then, this course is for you. It&#8217;s a simple and easy-to-understand way for you to learn and master how Windows Server Failover Clusters can keep your SQL Server databases highly available. Be confident in designing, building and managing SQL Server databases running on Windows Server Failover Clusters.</p>
<p>But don&#8217;t take my word for it. Here&#8217;s what my students have to say about the course.</p>
<p><span style="color: #0000ff;"><em>&#8220;The techniques presented were very valuable, and used them the following week when I was paged on an issue.&#8221;</em></span></p>
<p><span style="color: #0000ff;"><em>&#8220;Thanks again for giving me confidence and teaching all this stuff about failover clusters.&#8221;</em></span></p>
<p><span style="color: #0000ff;"><em>&#8220;I’m so gladdddddd that I took this course!!&#8221;</em></span></p>
<p><span style="color: #0000ff;"><em>&#8220;Now I got better knowledge to setup the Windows FC ENVIRONMENT (DC) for SQL Server FCI and AlwaysON.&#8221;</em></span></p>
<div style="background-color:#eeeeee;border:1px solid #D6D6D6;font-family:arial,helvetica,sans-serif;font-size:15px;line-height:20px;margin:8px 0 20px;padding:15px 20px;"><span style="color: #800000;"><strong>NOTE:</strong></span> Registration for my online course <a href="https://learnsqlserverhadr.com/" target="_blank" rel="noopener"><span style="color: #800000;"><strong>Windows Server Failover Clustering (WSFC) for the Smart SQL Server DBA</strong></span></a> will re-open in <span style="color: #0000ff;"><strong>January 2018</strong></span>. But be sure you do not miss out. This will be the last time that the course will be offered. After this, you will no longer be able to register for the course.</div>
<hr />
<div style="background-color:#eeeeee;border:1px solid #D6D6D6;font-family:arial,helvetica,sans-serif;font-size:15px;line-height:20px;margin:8px 0 20px;padding:15px 20px;"></p>
<p><!-- Begin MailChimp Signup Form --></p>
<style type="text/css">
	#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }<br />	/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.<br />	   We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */<br /></style>
<p>&nbsp;</p>
<div id="mc_embed_signup">
<form id="mc-embedded-subscribe-form" class="validate" action="//EdwinMSarmiento.us4.list-manage.com/subscribe/post?u=08cdb91518ee67ce09d618509&amp;id=46cff8469f" method="post" name="mc-embedded-subscribe-form" novalidate="" target="_blank">
<div id="mc_embed_signup_scroll">
<h2>Get notified about the next batch of enrollment so you don&#8217;t miss out.</h2>
<div class="indicates-required"><span class="asterisk">*</span> indicates required</div>
<div class="mc-field-group"><label for="mce-EMAIL">Email Address <span class="asterisk">*</span><br />
</label><br />
<input id="mce-EMAIL" class="required email" name="EMAIL" type="email" value="" /></div>
<div class="mc-field-group"><label for="mce-FNAME">First Name </label><br />
<input id="mce-FNAME" class="" name="FNAME" type="text" value="" /></div>
<div id="mce-responses" class="clear"></div>
<p><!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups--></p>
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input tabindex="-1" name="b_08cdb91518ee67ce09d618509_46cff8469f" type="text" value="" /></div>
<div class="clear"><input id="mc-embedded-subscribe" class="button" name="subscribe" type="submit" value="Keep me updated!" /></div>
</div>
</form>
</div>
<p><script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script><script type='text/javascript'>(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';}(jQuery));var $mcj = jQuery.noConflict(true);</script><br />
<!--End mc_embed_signup--><br />
</div>
]]></content:encoded>
			

		<wfw:commentRss>https://www.edwinmsarmiento.com/why-we-need-to-understand-how-active-directory-affects-sql-server-high-availability/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
				<post-id xmlns="com-wordpress:feed-additions:1">1381</post-id>	</item>
	</channel>
</rss>