<?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>Clustering - Techyaz.com</title>
	<atom:link href="https://techyaz.com/category/sql-server/clustering/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Tips, Tutorials and How-to Topics</description>
	<lastBuildDate>Wed, 29 Aug 2018 12:19:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8</generator>

<image>
	<url>https://techyaz.com/wp-content/uploads/2017/11/cropped-Site-icon-150x150.png</url>
	<title>Clustering - Techyaz.com</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>SQL Server Error 5184: Cannot use file &#8216;I:\Path\Techyaz.mdf’ for clustered server</title>
		<link>https://techyaz.com/sql-server/clustering/error-5184-level-16-state-2-line-1-cannot-use-file-for-clustered-server/</link>
					<comments>https://techyaz.com/sql-server/clustering/error-5184-level-16-state-2-line-1-cannot-use-file-for-clustered-server/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Wed, 29 Aug 2018 12:10:18 +0000</pubDate>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[SQL Server Connectivity Issue]]></category>
		<guid isPermaLink="false">https://techyaz.com/?p=2425</guid>

					<description><![CDATA[<p>Today, one of my team mate was trying to attach a database on one of the clustered SQL Server instance. He got error 5184 while attaching the database. The details about error 5184 is given below. Msg 5184, Level 16,&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/clustering/error-5184-level-16-state-2-line-1-cannot-use-file-for-clustered-server/">SQL Server Error 5184: Cannot use file &#8216;I:\Path\Techyaz.mdf’ for clustered server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Today, one of my team mate was trying to attach a database on one of the clustered SQL Server instance. He got error 5184 while attaching the database. The details about error 5184 is given below.</p>
<p><em><span style="color: #ff0000;">Msg 5184, Level 16, State 2, Line 1</span></em><br />
<em><span style="color: #ff0000;">Cannot use file ‘I:\Path\Techyaz.mdf’ for clustered server. </span></em><br />
<em><span style="color: #ff0000;">Only formatted files on which the cluster resource of the server has a dependency can be used. </span></em><em><span style="color: #ff0000;">Either the disk resource containing the file is not present in the cluster group or the cluster resource of the Sql Server does not have a dependency on it.</span></em></p>
<p><em><span style="color: #ff0000;">Msg 1802, Level 16, State 1, Line 1</span></em><br />
<em><span style="color: #ff0000;">CREATE DATABASE failed. Some file names listed could not be created. Check related errors.</span></em></p>
<p>While troubleshooting this error we came to know that the storage or LUN on which we have placed the database files are not added to cluster group. It means disk is not visible in failover cluster manager.</p>
<h3><span style="color: #333399;">Solution &#8211; Error 5184</span></h3>
<p>We performed below steps to fix this issue.</p>
<ol>
<li>Added the storage on which databases files are placed as shared storage in the failover cluster manager.</li>
<li>Launch SQL Server properties window in Failover Cluster Manager.</li>
<li>Added all newly added disks in Dependencies tab.</li>
<li>Attached the database again.</li>
</ol>
<p>Here i will explain above steps in detail with screenshots.</p>
<ul>
<li>We were attaching a database using T-SQL statement on one of the SQL Server cluster instance. While executing the command we get error 5184. Error details are given in below screenshot.</li>
</ul>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-2426" src="https://techyaz.com/wp-content/uploads/2018/08/1-Error-Msg-min-1024x178.jpg" alt="Fix SQL Server Error 5184" width="659" height="115" srcset="https://techyaz.com/wp-content/uploads/2018/08/1-Error-Msg-min-1024x178.jpg 1024w, https://techyaz.com/wp-content/uploads/2018/08/1-Error-Msg-min-300x52.jpg 300w, https://techyaz.com/wp-content/uploads/2018/08/1-Error-Msg-min-768x133.jpg 768w, https://techyaz.com/wp-content/uploads/2018/08/1-Error-Msg-min.jpg 1066w" sizes="(max-width: 659px) 100vw, 659px" /></p>
<ul>
<li>As error suggests that <em>“Either the disk resource containing the file is not present in the cluster group”</em> so I checked cluster group for the disk and found that database files storage was not showing in failover cluster manager.</li>
<li>Next step was to add these storage disks to the cluster group. Launch <strong>failover cluster manager</strong>. Click at <strong>Roles</strong> tab from left side pane. You can see SQL Server as role in right side pane. Right click at the SQL Server role and click at “<strong>Add Storage</strong>” option. You can see this in below screenshot.</li>
</ul>
<p><img decoding="async" class="alignnone wp-image-2427" src="https://techyaz.com/wp-content/uploads/2018/08/2-Add-Storage-min.jpg" alt="Add Storage to Cluster group" width="514" height="329" srcset="https://techyaz.com/wp-content/uploads/2018/08/2-Add-Storage-min.jpg 589w, https://techyaz.com/wp-content/uploads/2018/08/2-Add-Storage-min-300x192.jpg 300w" sizes="(max-width: 514px) 100vw, 514px" /></p>
<ul>
<li>Once you will click at “<strong>Add Storage</strong>” option you will get below window to add the identified disks to cluster group. You can see I have selected all required disks in below screenshot. You can choose your disks where your database files are placed.</li>
</ul>
<p><img decoding="async" class="alignnone wp-image-2428" src="https://techyaz.com/wp-content/uploads/2018/08/3-Add-Storage-min.jpg" alt="Add Storage to cluster group" width="680" height="511" srcset="https://techyaz.com/wp-content/uploads/2018/08/3-Add-Storage-min.jpg 815w, https://techyaz.com/wp-content/uploads/2018/08/3-Add-Storage-min-300x225.jpg 300w, https://techyaz.com/wp-content/uploads/2018/08/3-Add-Storage-min-768x577.jpg 768w" sizes="(max-width: 680px) 100vw, 680px" /></p>
<ul>
<li>Once you click at OK button post selecting all respective check boxes in above step, you will see all your storage disks in failover cluster manager under storage tab.</li>
<li>Now again click at the SQL Server role and then go to “<strong>Resources</strong>” tab from down side pane where you can see SQL Server and all resources that are aligned for the SQL Server role. Here, right click at SQL Server and click at Properties tab as shown in below screenshot.</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2429" src="https://techyaz.com/wp-content/uploads/2018/08/4-Add-Dependencies-min.jpg" alt="Add Disk Dependencies in FCM" width="589" height="182" srcset="https://techyaz.com/wp-content/uploads/2018/08/4-Add-Dependencies-min.jpg 589w, https://techyaz.com/wp-content/uploads/2018/08/4-Add-Dependencies-min-300x93.jpg 300w" sizes="auto, (max-width: 589px) 100vw, 589px" /></p>
<ul>
<li>Once you get SQL Server properties windows in failover cluster manager, next you should click at dependencies tab. Here, you need to insert one row for each disk system that you have added in above steps. Once you will insert dependencies for all newly added disks then it will look like below screenshot. Now click at OK button to apply this change.</li>
</ul>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2430" src="https://techyaz.com/wp-content/uploads/2018/08/5-Add-Dependencies-min.jpg" alt="Add Disk Dependencies in FCM" width="405" height="493" srcset="https://techyaz.com/wp-content/uploads/2018/08/5-Add-Dependencies-min.jpg 405w, https://techyaz.com/wp-content/uploads/2018/08/5-Add-Dependencies-min-246x300.jpg 246w" sizes="auto, (max-width: 405px) 100vw, 405px" /></p>
<ul>
<li>Now again go to SQL Server query window and run the T-SQL command to  attach the database. This time you will successfully attach the database to the clustered SQL Server instance.</li>
</ul>
<p>Let me know if this article helped you to fix your issue. You can follow our <a href="https://www.facebook.com/Techyaz/" target="_blank" rel="noopener">facebook</a> page and <a href="https://twitter.com/Tech_yaz" target="_blank" rel="noopener">Twitter</a> handle to get latest updates.</p>
<p><em><strong><span style="color: #800000;">Read More:</span></strong></em></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/alwayson/upgrade-or-patch-sql-server-failover-cluster-instance-with-availability-group/" target="_blank" rel="noopener">Upgrade or Patch SQL Server Failover Cluster Instance Running with Availability Group</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/alwayson/change-failover-mode-of-availability-replica-in-always-on-availability-group/" target="_blank" rel="noopener">How to Change Failover Mode of Availability Replica in AOAG?</a></strong></li>
<li><strong><a href="https://techyaz.com/learning/prepare-for-job-interview/" target="_blank" rel="noopener">How to Prepare for a Job Interview?</a></strong></li>
<li><strong><a href="https://techyaz.com/interview-questions/sql-server-dba-interview-questions-answers/" target="_blank" rel="noopener">SQL Server DBA Interview Questions &amp; Answers</a></strong></li>
</ul>
<p>The post <a href="https://techyaz.com/sql-server/clustering/error-5184-level-16-state-2-line-1-cannot-use-file-for-clustered-server/">SQL Server Error 5184: Cannot use file &#8216;I:\Path\Techyaz.mdf’ for clustered server</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/clustering/error-5184-level-16-state-2-line-1-cannot-use-file-for-clustered-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fix AOAG Listener Error 19471: Kerberos Status is Showing The handle is Invalid</title>
		<link>https://techyaz.com/sql-server/alwayson/fix-aoag-listener-error-19471-kerberos-status-showing-handle-invalid/</link>
					<comments>https://techyaz.com/sql-server/alwayson/fix-aoag-listener-error-19471-kerberos-status-showing-handle-invalid/#respond</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Thu, 28 Sep 2017 13:44:47 +0000</pubDate>
				<category><![CDATA[AlwaysOn]]></category>
		<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Database Mirroring]]></category>
		<category><![CDATA[AOAG]]></category>
		<category><![CDATA[AOAG Listener]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[Listener Issue]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=985</guid>

					<description><![CDATA[<p>I was configuring AlwaysOn Availability Group between two replicas. Everything was configured successfully but Listener was failed to create with an error 19471. I have already explained how to fix listener error 19471 in attached article but this has not&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/alwayson/fix-aoag-listener-error-19471-kerberos-status-showing-handle-invalid/">Fix AOAG Listener Error 19471: Kerberos Status is Showing The handle is Invalid</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I was configuring <a href="https://techyaz.com/sql-server/alwayson-availability-group/" target="_blank" rel="noopener">AlwaysOn Availability Group</a> between two replicas. Everything was configured successfully but Listener was failed to create with an error 19471. I have already explained <a href="https://techyaz.com/sql-server/troubleshooting/fix-error-19471-listener-issue-that-came-during-configuring-sql-server-alwayson-availability-group/" target="_blank" rel="noopener">how to fix listener error 19471</a> in attached article but this has not helped me. Here i will explain another aspect of this error along with their fix.</p>
<h3><span style="color: #000080;">AlwaysOn Listener Error 19471</span></h3>
<p>When i checked the <strong>AlwaysOn High Availability</strong> folder in SSMS on any of the replica, everything was working fine. AOAG was configured successfully and working fine but listener was not configured due to below listener error 19471. You can see this in below screenshot.</p>
<div class="codediv"><strong><span class="kwrd" style="color: red;">Create failed for Availability Group Listener &#8216;Listener-Name&#8217;. (Error: 19471)<br />
</span></strong></div>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-987" src="http://techyaz.com/wp-content/uploads/2017/09/1-listenerIssue.jpg" alt="Listener Error 19471" width="673" height="371" srcset="https://techyaz.com/wp-content/uploads/2017/09/1-listenerIssue.jpg 673w, https://techyaz.com/wp-content/uploads/2017/09/1-listenerIssue-300x165.jpg 300w" sizes="auto, (max-width: 673px) 100vw, 673px" /></p>
<p>I tried creating Listener name using &#8220;<strong>Add Listener&#8230;</strong>&#8221; wizard in SSMS but failed with same error. I observed root cause of this issue during following steps given in my last article that i have attached in first paragraph. Make sure to clear all entries from DNS for your listener Name and IP, if there is any.</p>
<h3><span style="color: #000080;">Kerberos Status: The handle is Invalid</span></h3>
<p>First we will create a Client Access Point(CAP) in FCM for this listener name to check the status of NetBIOS, DNS &amp; Kerberos that will help us to go deeper inside the issue.</p>
<ol>
<li>Launch <strong>Failover Cluster Manager</strong> and click on <strong>Roles</strong> tab from left side pane. Here you can see your availability group role in right side pane.</li>
<li>Right click on this role and select &#8220;<strong>Add Resources</strong>&#8221; then &#8220;<strong>Client Access Point</strong>&#8220;.</li>
<li>Enter the <strong>Listener name</strong> and its <strong>IP address</strong> and click on <strong>Next</strong> button to proceed.</li>
<li>Click on <strong>Finish</strong> button of final screen to create the <strong>Listener Client Access Point</strong> in FCM.</li>
<li>Once CAP will be created in FCM, it will be in <strong>Offline</strong> state. <strong>Right click</strong> on listener CAP and click on &#8220;<strong>Bring Online</strong>&#8221; to bring it online. You can see Listener IP comes online but Listener name still shows in offline state.</li>
</ol>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-988" src="http://techyaz.com/wp-content/uploads/2017/09/2-CAL.jpg" alt="client access point in failover cluster manager" width="799" height="481" srcset="https://techyaz.com/wp-content/uploads/2017/09/2-CAL.jpg 799w, https://techyaz.com/wp-content/uploads/2017/09/2-CAL-300x181.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/2-CAL-768x462.jpg 768w" sizes="auto, (max-width: 799px) 100vw, 799px" /></p>
<p>Now double click on listener client access point or right click on it and choose properties. You will get CAP property window as shown in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-989" src="http://techyaz.com/wp-content/uploads/2017/09/3-CAL-Property.jpg" alt="CAP Property" width="417" height="499" srcset="https://techyaz.com/wp-content/uploads/2017/09/3-CAL-Property.jpg 417w, https://techyaz.com/wp-content/uploads/2017/09/3-CAL-Property-251x300.jpg 251w" sizes="auto, (max-width: 417px) 100vw, 417px" /></p>
<p>You can see, this time issue is with <strong>Kerberos status</strong> that is showing as &#8220;<strong>The handle is invalid</strong>&#8220;. Earlier DNS status was not ok in <a href="https://techyaz.com/sql-server/troubleshooting/fix-error-19471-listener-issue-that-came-during-configuring-sql-server-alwayson-availability-group/" target="_blank" rel="noopener">last article</a>.</p>
<h3><span style="color: #000080;">Fix Kerberos Status <em>The handle is invalid</em></span></h3>
<p>When i look into Active Directory server, i found that listener name object was showing as disabled as shown in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-990" src="http://techyaz.com/wp-content/uploads/2017/09/4-AD-1024x124.jpg" alt="listener name is showing as disabled" width="1024" height="124" srcset="https://techyaz.com/wp-content/uploads/2017/09/4-AD-1024x124.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/4-AD-300x36.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/4-AD-768x93.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/4-AD.jpg 1137w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></p>
<p>I decided to enable it and then to create listener. <strong>Right click</strong> on listener name object on AD that are showing in disable mode with down arrow and click on &#8220;<strong>Enable Account</strong>&#8221; button as per below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-991" src="http://techyaz.com/wp-content/uploads/2017/09/5-AD.jpg" alt="Enable listener name object in AD" width="880" height="176" srcset="https://techyaz.com/wp-content/uploads/2017/09/5-AD.jpg 880w, https://techyaz.com/wp-content/uploads/2017/09/5-AD-300x60.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/5-AD-768x154.jpg 768w" sizes="auto, (max-width: 880px) 100vw, 880px" /></p>
<p>You can see, listener name account is enabled and down arrow that are showing during disabled mode is not showing now.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-992" src="http://techyaz.com/wp-content/uploads/2017/09/6-AD.jpg" alt="Enable listener name object in AD" width="666" height="71" srcset="https://techyaz.com/wp-content/uploads/2017/09/6-AD.jpg 666w, https://techyaz.com/wp-content/uploads/2017/09/6-AD-300x32.jpg 300w" sizes="auto, (max-width: 666px) 100vw, 666px" /></p>
<p>Once you enabled the listener name object in AD, bring your listener CAP online in FCM. Right click on listener client access point and click on bring online. You can see listener CAP is showing online now.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-993" src="http://techyaz.com/wp-content/uploads/2017/09/7-CAL-online.jpg" alt="Bring CAP Online" width="779" height="363" srcset="https://techyaz.com/wp-content/uploads/2017/09/7-CAL-online.jpg 779w, https://techyaz.com/wp-content/uploads/2017/09/7-CAL-online-300x140.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/7-CAL-online-768x358.jpg 768w" sizes="auto, (max-width: 779px) 100vw, 779px" /></p>
<p>When you will launch its property window, you will see the status of NetBIOS, DNS and Kerberos are showing OK now. Close this property window to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-994" src="http://techyaz.com/wp-content/uploads/2017/09/8-CAL-Property.jpg" alt="CAP Property" width="419" height="491" srcset="https://techyaz.com/wp-content/uploads/2017/09/8-CAL-Property.jpg 419w, https://techyaz.com/wp-content/uploads/2017/09/8-CAL-Property-256x300.jpg 256w" sizes="auto, (max-width: 419px) 100vw, 419px" /><br />
Now we will follow same process that we have followed in my last article. We will remove this listener CAP from FCM and then add listener in AOAG in SSMS. Right click on <strong>CAP</strong> in FCM and click on <strong>Remove</strong> button to delete it.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-995" src="http://techyaz.com/wp-content/uploads/2017/09/9-Remove-CAL.jpg" alt="Remove CAP" width="563" height="289" srcset="https://techyaz.com/wp-content/uploads/2017/09/9-Remove-CAL.jpg 563w, https://techyaz.com/wp-content/uploads/2017/09/9-Remove-CAL-300x154.jpg 300w" sizes="auto, (max-width: 563px) 100vw, 563px" /></p>
<p>Once CAP will be removed, launch the <strong>SSMS</strong> and connect to your <strong>Primary Replica</strong>. Expand <strong>AlwaysOn High Availability</strong> folder followed by <strong>Availability Group</strong>. Now you can right click on <strong>Availability Group Listeners</strong> and click on <strong>Add Listener</strong> option. You will get below window to configure it.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-996" src="http://techyaz.com/wp-content/uploads/2017/09/10-Create-Listener.jpg" alt="Configure Listener" width="707" height="629" srcset="https://techyaz.com/wp-content/uploads/2017/09/10-Create-Listener.jpg 707w, https://techyaz.com/wp-content/uploads/2017/09/10-Create-Listener-300x267.jpg 300w" sizes="auto, (max-width: 707px) 100vw, 707px" /></p>
<p>Enter the <strong>listener name</strong>, <strong>port</strong> and then add its <strong>IP</strong>. Once you entered all details, click on <strong>OK</strong> button to create the listener. This time, listener will be created on all replicas. You can see i have just created listener for my alwayson availability group that are showing in below image for both replicas.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-997" src="http://techyaz.com/wp-content/uploads/2017/09/11-Listener-created.jpg" alt="listener in ssms" width="363" height="607" srcset="https://techyaz.com/wp-content/uploads/2017/09/11-Listener-created.jpg 363w, https://techyaz.com/wp-content/uploads/2017/09/11-Listener-created-179x300.jpg 179w" sizes="auto, (max-width: 363px) 100vw, 363px" /></p>
<p><em><span style="color: #800000;"><strong>Related Articles:</strong></span></em></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-error-19471-listener-issue-that-came-during-configuring-sql-server-alwayson-availability-group/" target="_blank" rel="noopener">How to fix Listener Error 19471: DNS Status is showing &#8220;The handle is invalid&#8221; for Listener CAP in FCM</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-error-976/" target="_blank" rel="noopener">Fix Error 976: Cannot connect to Secondary Replica</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/alwayson/fix-error-15141-server-principal-owns-one-endpoints-cannot-dropped/" target="_blank" rel="noopener">How to fix error 15141: The server principal owns one or more endpoint(s) and cannot be dropped</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fix-error-15434-not-drop-login-user-currently-logged/" target="_blank" rel="noopener">Fix Error 15434: Could not drop login ‘XXX\yyyy’ as the user is currently logged in</a></strong></li>
</ul>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/alwayson/fix-aoag-listener-error-19471-kerberos-status-showing-handle-invalid/">Fix AOAG Listener Error 19471: Kerberos Status is Showing The handle is Invalid</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/alwayson/fix-aoag-listener-error-19471-kerberos-status-showing-handle-invalid/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fix SQL Server Error 19471: Listener issue that came during Configuring SQL Server AlwaysOn Availability Group</title>
		<link>https://techyaz.com/sql-server/alwayson/fix-error-19471-listener-issue-that-came-during-configuring-sql-server-alwayson-availability-group/</link>
					<comments>https://techyaz.com/sql-server/alwayson/fix-error-19471-listener-issue-that-came-during-configuring-sql-server-alwayson-availability-group/#comments</comments>
		
		<dc:creator><![CDATA[Manvendra Deo Singh]]></dc:creator>
		<pubDate>Mon, 11 Sep 2017 11:02:43 +0000</pubDate>
				<category><![CDATA[AlwaysOn]]></category>
		<category><![CDATA[Clustering]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[AOAG]]></category>
		<category><![CDATA[AOAG Listener]]></category>
		<category><![CDATA[HADR]]></category>
		<category><![CDATA[HowTO]]></category>
		<category><![CDATA[Listener Issue]]></category>
		<category><![CDATA[SQL_Error_Code]]></category>
		<guid isPermaLink="false">http://techyaz.com/?p=840</guid>

					<description><![CDATA[<p>I had an AOAG configuration between two replicas that i have deleted in order to perform some activities. I was configuring Always On Availability Group again on this database server. We followed all processes but Listener was failed to create&#46;&#46;&#46;</p>
<p>The post <a href="https://techyaz.com/sql-server/alwayson/fix-error-19471-listener-issue-that-came-during-configuring-sql-server-alwayson-availability-group/">Fix SQL Server Error 19471: Listener issue that came during Configuring SQL Server AlwaysOn Availability Group</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I had an <a href="http://techyaz.com/sql-server/alwayson-availability-group/" target="_blank" rel="noopener">AOAG configuration</a> between two replicas that i have deleted in order to perform some activities. I was configuring Always On Availability Group again on this database server. We followed all processes but Listener was failed to create during AOAG configuration and displayed Microsoft SQL Server error 19471.</p>
<p>I have also explained another aspect of this error in attached article. If your issue is not fixed using this article, you can have a look at this one where i got the same <a href="http://techyaz.com/sql-server/alwayson/fix-aoag-listener-error-19471-kerberos-status-showing-handle-invalid/" target="_blank" rel="noopener">Listener Error 19471 because Kerberos Status was showing &#8216;The handle is invalid&#8217;</a>.</p>
<h5><span style="color: #000080;">Microsoft SQL Server Error 19471: Create failed for Availability Group Listener &#8216;Listener Name&#8217;.</span></h5>
<p>AOAG Listener was failed to create during its configuration and displayed SQL Server error 19471. This error might have multiple reasons. Here i will fix this issue in step by step manner. The full error details are given below.</p>
<div class="codediv"><strong><span class="kwrd" style="color: red;"><em>Creating availability group listener resulted in an error.</em><br />
<em> ADDITIONAL INFORMATION:</em><br />
<em> Create failed for Availability Group Listener &#8216;U********0&#8217;. (Microsoft.SqlServer.Smo)</em><br />
<em> An exception occurred while executing a Transact-SQL statement or batch.</em><br />
<em> The WSFC cluster could not bring the Network Name resource with DNS name &#8216;<span class="kwrd">U*********0</span>&#8216; online. The DNS name may have been taken or have a conflict with existing name services, or the WSFC cluster service may not be running or may be inaccessible. Use a different DNS name to resolve name conflicts, or check the WSFC cluster log for more information.</em><br />
<em> The attempt to create the network name and IP address for the listener failed. The WSFC service may not be running or may be inaccessible in its current state, or the values provided for the network name and IP address may be incorrect. Check the state of the WSFC cluster and validate the network name and IP address with the network administrator. (Microsoft SQL Server, Error: 19471)</em><br />
</span></strong></div>
<p>The screenshot of this error is given below.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-large wp-image-841" src="http://techyaz.com/wp-content/uploads/2017/09/1-AOAG-listener-issue-1024x426.jpg" alt="error 19471" width="1024" height="426" srcset="https://techyaz.com/wp-content/uploads/2017/09/1-AOAG-listener-issue-1024x426.jpg 1024w, https://techyaz.com/wp-content/uploads/2017/09/1-AOAG-listener-issue-300x125.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/1-AOAG-listener-issue-768x319.jpg 768w, https://techyaz.com/wp-content/uploads/2017/09/1-AOAG-listener-issue.jpg 1335w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><br />
When i checked the AlwaysOn High Availability folder on any of the replica, everything was working fine. AOAG was configured successfully and working fine but listener was not configured due to above error. You can see this in below screenshot.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-842" src="http://techyaz.com/wp-content/uploads/2017/09/2-AOAG-listener-SSMS.jpg" alt="AOAG Listener post error" width="722" height="404" srcset="https://techyaz.com/wp-content/uploads/2017/09/2-AOAG-listener-SSMS.jpg 722w, https://techyaz.com/wp-content/uploads/2017/09/2-AOAG-listener-SSMS-300x168.jpg 300w" sizes="auto, (max-width: 722px) 100vw, 722px" /></p>
<p>You can see there is no listener showing in their respective folder of the AOAG configuration in above screenshot. I tried creating Listener name from &#8220;<strong>Add Listener&#8230;</strong>&#8221; wizard but failed with same error. Let&#8217;s move to next section where we will fix this error.</p>
<h5><span style="color: #000080;">Solution</span></h5>
<p>I did some research on this error code and found a solution suggested by Microsoft in attached <a href="https://blogs.msdn.microsoft.com/alwaysonpro/2013/10/30/create-availability-group-listener-fails-with-message-19471-the-wsfc-cluster-could-not-bring-the-network-name-resource-online/" target="_blank" rel="noopener">MSDN article</a>. I followed step by step process given in this article. High level approach to fix this solution using this method is given below.</p>
<ul>
<li>Create a <strong>Client Access Point (CAP)</strong> for the AOAG <strong>listener</strong> in <strong>Failover Cluster Manager</strong>.</li>
<li>Bring CAP <strong>Online</strong>.</li>
<li><strong>Repair</strong> the CAP, if it is not coming ONLINE.</li>
<li>Once CAP comes online, <strong>remove</strong> it from failover cluster manager.</li>
<li><strong>Add listener</strong> to AOAG in SSMS.</li>
</ul>
<p>You might have a question why we are removing CAP after adding, repairing and bring it online. Creating CAP and bringing it online is to just verify that everything is ok or not. If CAP will not come online then there might be some issue at certain level that needs to be fixed first before creating listener. Let&#8217;s go ahead with above given steps to fix this issue.</p>
<p>I launched <strong>failover cluster manager</strong> and clicked on <strong>Roles</strong> tab from left side pane. Here you can see your <strong>availability group role</strong> in right side pane. Right click on this role and select &#8220;<strong>Add Resources</strong>&#8221; then click on &#8220;<strong>Client Access Point</strong>&#8220;.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-843" src="http://techyaz.com/wp-content/uploads/2017/09/3-client-access-point-FCM.jpg" alt="client access point" width="785" height="501" srcset="https://techyaz.com/wp-content/uploads/2017/09/3-client-access-point-FCM.jpg 785w, https://techyaz.com/wp-content/uploads/2017/09/3-client-access-point-FCM-300x191.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/3-client-access-point-FCM-768x490.jpg 768w" sizes="auto, (max-width: 785px) 100vw, 785px" /></p>
<p>You will get below screen to enter listener details. I entered listener name into name section and listener IP in to Address section. Once i clicked at Next button to proceed. I got below error which says this<strong> listener is already in use in Active Directory</strong>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-844" src="http://techyaz.com/wp-content/uploads/2017/09/4-client-access-point-FCM.jpg" alt="Client Access Point Wizard" width="695" height="493" srcset="https://techyaz.com/wp-content/uploads/2017/09/4-client-access-point-FCM.jpg 695w, https://techyaz.com/wp-content/uploads/2017/09/4-client-access-point-FCM-300x213.jpg 300w" sizes="auto, (max-width: 695px) 100vw, 695px" /></p>
<p>As we know, listener name and IP should be unique and unused so here we need to remove this listener details from Active Directory. Contact your domain administrator and tell him to remove the entries for this listener name and IP.</p>
<p><strong>Once listener details will be cleared from Active Directory, go ahead and try to add listener name to the existing AlwaysOn Availability Group</strong>. This time you would be able to create the listener name. If you are still facing some issue, then we will follow remaining steps of the above suggested MSDN article. Read next section to follow remaining steps to fix this issue.</p>
<h5><span style="color: #000080;">Failed to add Listener after clearing DNS entries and DNS Status showing The handle is invalid</span></h5>
<p>If you are still facing same issue during adding listener or configuring AlwaysOn Availability Group then you can again ask your domain admin to relook into Active Directory because there is a possibility of some entries in AD for the listener name and IP during your failed attempts to create the listen name. If domain admin will not find any entry then we will proceed with the steps that Microsoft has suggested in above attached article.</p>
<p>We will create <strong>Client Access Point</strong> in failover cluster manager for Availability Group role as we were trying to create in above section. Right click on Availability Group role and select &#8220;Add Resources&#8221; then &#8220;Client Access Point&#8221; as shown in image no 3. You will get below screen to enter listener name and corresponding IP address in highlighted sections. Click on Next button to proceed post entering the listener details.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-845" src="http://techyaz.com/wp-content/uploads/2017/09/5-CAP.jpg" alt="client access point wizard" width="687" height="481" srcset="https://techyaz.com/wp-content/uploads/2017/09/5-CAP.jpg 687w, https://techyaz.com/wp-content/uploads/2017/09/5-CAP-300x210.jpg 300w" sizes="auto, (max-width: 687px) 100vw, 687px" /></p>
<p>You will get below screen to proceed once you click on next button of above screen.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-846" src="http://techyaz.com/wp-content/uploads/2017/09/6-CAP.jpg" alt="client access point wizard" width="691" height="481" srcset="https://techyaz.com/wp-content/uploads/2017/09/6-CAP.jpg 691w, https://techyaz.com/wp-content/uploads/2017/09/6-CAP-300x209.jpg 300w" sizes="auto, (max-width: 691px) 100vw, 691px" /></p>
<p>Click on Finish button to create the Client Access Point in failover cluster manager for this listener.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-847" src="http://techyaz.com/wp-content/uploads/2017/09/7-CAP.jpg" alt="client access point wizard" width="683" height="475" srcset="https://techyaz.com/wp-content/uploads/2017/09/7-CAP.jpg 683w, https://techyaz.com/wp-content/uploads/2017/09/7-CAP-300x209.jpg 300w" sizes="auto, (max-width: 683px) 100vw, 683px" /></p>
<p>Once you will click on finish button, your Client Access Point for your listener will be created in the failover cluster manager as shown in below screen. Availability Group role was running fine but after adding Client Access Point it has changed into <strong>Partial Running</strong> mode.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-848" src="http://techyaz.com/wp-content/uploads/2017/09/8-CAP-FCM.jpg" alt="CAP in FCM" width="684" height="433" srcset="https://techyaz.com/wp-content/uploads/2017/09/8-CAP-FCM.jpg 684w, https://techyaz.com/wp-content/uploads/2017/09/8-CAP-FCM-300x190.jpg 300w" sizes="auto, (max-width: 684px) 100vw, 684px" /></p>
<p>We can see CAP is showing as offline in above image. That is the reason Availability Group role has changed into Partial Running mode. Now we will bring it online manually. <strong>Right click</strong> on Listener CAP and click on &#8220;<strong>Bring Online</strong>&#8221; option.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-849" src="http://techyaz.com/wp-content/uploads/2017/09/9-CAP-Online.jpg" alt="Bring CAP online" width="591" height="235" srcset="https://techyaz.com/wp-content/uploads/2017/09/9-CAP-Online.jpg 591w, https://techyaz.com/wp-content/uploads/2017/09/9-CAP-Online-300x119.jpg 300w" sizes="auto, (max-width: 591px) 100vw, 591px" /></p>
<p>We can see Listener IP has come online whereas listener name is failed to come online. Now we will check the properties of the client access point (CAP).</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-850" src="http://techyaz.com/wp-content/uploads/2017/09/10-CAP-online.jpg" alt="CAP online" width="477" height="209" srcset="https://techyaz.com/wp-content/uploads/2017/09/10-CAP-online.jpg 477w, https://techyaz.com/wp-content/uploads/2017/09/10-CAP-online-300x131.jpg 300w" sizes="auto, (max-width: 477px) 100vw, 477px" /></p>
<p><strong>Right click</strong> on Listener Name and choose <strong>Properties</strong> option. You will get below screen where you can see <strong>NetBIOS, DNS and Kerberos status</strong>. <strong>NetBIOS</strong> and <strong>Kerberos</strong> <strong>status</strong> is showing OK but <strong>DNS status</strong> is not ok and showing &#8220;<strong>The handle is invalid.</strong>&#8221; This is the issue that needs to be fixed to create listener.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-851" src="http://techyaz.com/wp-content/uploads/2017/09/11-CAP-property.jpg" alt="Client Access Point Property" width="418" height="499" srcset="https://techyaz.com/wp-content/uploads/2017/09/11-CAP-property.jpg 418w, https://techyaz.com/wp-content/uploads/2017/09/11-CAP-property-251x300.jpg 251w" sizes="auto, (max-width: 418px) 100vw, 418px" /></p>
<p>When i checked the cluster events, i saw below error details that are also very much same.</p>
<p><span style="color: #ff0000;"><strong><em>Cluster network name resource &#8216;Cluster Name&#8217; failed registration of one or more associated DNS name(s) for the following reason:</em></strong></span><br />
<span style="color: #ff0000;"><strong><em> The handle is invalid.</em></strong></span><br />
<span style="color: #ff0000;"><strong><em> Ensure that the network adapters associated with dependent IP address resources are configured with at least one accessible DNS server.</em></strong></span></p>
<p><strong>To fix</strong> this DNS issue ( <strong>The handle is invalid</strong> ) we will <strong>repair</strong> this CAP. <strong>Right click</strong> on Listener Name showing in failover cluster manager, click on &#8220;<strong>More Actions</strong>&#8221; and then click on<strong> Repair</strong> as per below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-852" src="http://techyaz.com/wp-content/uploads/2017/09/12-CAP-Repair.jpg" alt="CAP Repair" width="797" height="601" srcset="https://techyaz.com/wp-content/uploads/2017/09/12-CAP-Repair.jpg 797w, https://techyaz.com/wp-content/uploads/2017/09/12-CAP-Repair-300x226.jpg 300w, https://techyaz.com/wp-content/uploads/2017/09/12-CAP-Repair-768x579.jpg 768w" sizes="auto, (max-width: 797px) 100vw, 797px" /></p>
<p>Once you will click on <strong>Repair</strong>, it will come online and then go in offline. Now right click on Listener name again and click on <strong>Bring Online</strong> button. This time Listener Name will come online if CAP has been repaired successfully. You can repeat the repair exercise if your CAP is not coming online. If you are still facing issue then you can again contact to domain admin to look into Active Directory server.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-853" src="http://techyaz.com/wp-content/uploads/2017/09/13-CAP-Repair-Online.jpg" alt="CAP status after repair" width="587" height="405" srcset="https://techyaz.com/wp-content/uploads/2017/09/13-CAP-Repair-Online.jpg 587w, https://techyaz.com/wp-content/uploads/2017/09/13-CAP-Repair-Online-300x207.jpg 300w" sizes="auto, (max-width: 587px) 100vw, 587px" /></p>
<p>Now you can see Client Access Point for the listener is showing online now. if you go to the property of this Listener CAP, you can see <strong>NetBIOS, DNS</strong> and <strong>Kerberos status</strong> is showing OK.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-854" src="http://techyaz.com/wp-content/uploads/2017/09/14-CAP-Repair-Property.jpg" alt="Client Access Point Property post Repair" width="425" height="507" srcset="https://techyaz.com/wp-content/uploads/2017/09/14-CAP-Repair-Property.jpg 425w, https://techyaz.com/wp-content/uploads/2017/09/14-CAP-Repair-Property-251x300.jpg 251w" sizes="auto, (max-width: 425px) 100vw, 425px" /></p>
<p>Close above property window. Now DNS issue is resolved that was main culprit during listener creation so next step is to <strong>remove this Client Access Point</strong> for this Listener and create the listener in SSMS that will <strong>create Listener client access point (CAP) automatically in the failover cluster manager.</strong></p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-855" src="http://techyaz.com/wp-content/uploads/2017/09/15-CAP-removal.jpg" alt="Remove Client Access Ppoint" width="583" height="337" srcset="https://techyaz.com/wp-content/uploads/2017/09/15-CAP-removal.jpg 583w, https://techyaz.com/wp-content/uploads/2017/09/15-CAP-removal-300x173.jpg 300w" sizes="auto, (max-width: 583px) 100vw, 583px" /></p>
<p>Once you click on remove button below window will come to proceed. Click on ok to proceed.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-856" src="http://techyaz.com/wp-content/uploads/2017/09/16-CAP-Removal.jpg" alt="CAP removal" width="554" height="291" srcset="https://techyaz.com/wp-content/uploads/2017/09/16-CAP-Removal.jpg 554w, https://techyaz.com/wp-content/uploads/2017/09/16-CAP-Removal-300x158.jpg 300w" sizes="auto, (max-width: 554px) 100vw, 554px" /></p>
<p>Once this CAP will be removed then connect to primary replica of the AOAG configuration. Expand the <strong>AlwaysOn High Availability</strong> folder and then <strong>Availability Group Listeners</strong> folder. You will not be able to see anything as there is no listener as of now. <strong>Right click</strong> on <strong>Availability Group Listeners</strong> folder and click on &#8220;<strong>Add Listener&#8230;&#8221; </strong>option.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-857" src="http://techyaz.com/wp-content/uploads/2017/09/17-Add-Listener.jpg" alt="Add Listener in SSMS" width="389" height="455" srcset="https://techyaz.com/wp-content/uploads/2017/09/17-Add-Listener.jpg 389w, https://techyaz.com/wp-content/uploads/2017/09/17-Add-Listener-256x300.jpg 256w" sizes="auto, (max-width: 389px) 100vw, 389px" /></p>
<p>You will get below image (<strong>New Availability Group Listener Wizard</strong>) to enter the <strong>listener details</strong>. Enter the <strong>Listener DNS Name</strong> then <strong>port</strong> followed by choosing <strong>Network Mode</strong>. Click on <strong>Add</strong> button to enter <strong>Listener IP Address</strong>. Once you are done with all details. Click on Ok button to apply this changes. Add Listener wizard will disappear if listener will be created successfully otherwise it will give you the error on the same wizard.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-858" src="http://techyaz.com/wp-content/uploads/2017/09/18-Add-Listener.jpg" alt="Add listener" width="711" height="637" srcset="https://techyaz.com/wp-content/uploads/2017/09/18-Add-Listener.jpg 711w, https://techyaz.com/wp-content/uploads/2017/09/18-Add-Listener-300x269.jpg 300w" sizes="auto, (max-width: 711px) 100vw, 711px" /></p>
<p>As we have created <strong>Availability Group Listener</strong> for this AOAG configuration so you can go ahead and verify this in SSMS by expanding <strong>Availability Group Listeners</strong> folder. You can see same listener name is showing under Availability Group Listeners folder on both primary as well as secondary replica in below image.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-859" src="http://techyaz.com/wp-content/uploads/2017/09/19-Listener-Created.jpg" alt="Listener created successfully" width="728" height="404" srcset="https://techyaz.com/wp-content/uploads/2017/09/19-Listener-Created.jpg 728w, https://techyaz.com/wp-content/uploads/2017/09/19-Listener-Created-300x166.jpg 300w" sizes="auto, (max-width: 728px) 100vw, 728px" /></p>
<p><em><strong><span style="color: #800000;">Related Articles:</span></strong></em></p>
<ul>
<li><strong><a href="https://techyaz.com/sql-server/alwayson-availability-group/" target="_blank" rel="noopener">Learn what is AlwaysOn Availability Group.</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/alwayson/fix-aoag-listener-error-19471-kerberos-status-showing-handle-invalid/" target="_blank" rel="noopener">Fix Listener Error 19471 due to Kerberos Status&#8221;The handle is invalid&#8221;</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/fixing-sap-connectivity-issue-aoag-automatic-failover/" target="_blank" rel="noopener">How to fix AlwaysOn Availability group Automatic Failover Issue</a>.</strong></li>
<li><strong><a href="https://techyaz.com/sql-server/troubleshooting/secondary-replica-not-coming-online-showing-resolving-state-automatic-failover-alwayson-availability-group-configuration/" target="_blank" rel="noopener">Fix: Secondary Replica is showing in Resolving state and not becoming Primary</a></strong></li>
<li><strong><a href="https://techyaz.com/sql-server/fix-error-15141-server-principal-owns-one-endpoints-cannot-dropped/" target="_blank" rel="noopener">How to fix error 15141: The server principal owns one or more endpoint(s) and cannot be dropped</a></strong></li>
</ul>
<p>I hope you like this article. Please follow us on our <a href="https://www.facebook.com/Techyaz/">facebook page</a> and on <a href="https://twitter.com/Tech_yaz">Twitter </a>handle to get latest updates.</p>
<p>The post <a href="https://techyaz.com/sql-server/alwayson/fix-error-19471-listener-issue-that-came-during-configuring-sql-server-alwayson-availability-group/">Fix SQL Server Error 19471: Listener issue that came during Configuring SQL Server AlwaysOn Availability Group</a> appeared first on <a href="https://techyaz.com">Techyaz.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techyaz.com/sql-server/alwayson/fix-error-19471-listener-issue-that-came-during-configuring-sql-server-alwayson-availability-group/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
