SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Does the Availability-Group (AG) Listener name need to be *precreated* in Active Directory before...


Does the Availability-Group (AG) Listener name need to be *precreated* in Active Directory before adding listener to AG?

Author
Message
Marios Philippopoulos
Marios Philippopoulos
SSCarpal Tunnel
SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)

Group: General Forum Members
Points: 4564 Visits: 3755
Before running the statement below to add a listener to an Availability Group, does the listener name need to be pre-created in active directory?

Or does the statement below actually create the listener object in active directory?

(code sample taken from http://msdn.microsoft.com/en-us/library/hh213080.aspx#WinPermissions:

ALTER AVAILABILITY GROUP MyAg2 
ADD LISTENER ‘MyAg2ListenerIvP6’ ( WITH IP ( ('2001:db88:f0:f00f::cf3c'),('2001:4898:e0:f213::4ce2') ) , PORT = 60173 );
GO



I think it's the latter, and according to the above link, the cluster-name-object needs to have Create-Object permissions in active directory for this to work.

Is my understanding correct?

__________________________________________________________________________________
SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables
Persisting SQL Server Index-Usage Statistics with MERGE
Turbocharge Your Database Maintenance With Service Broker: Part 2
Perry Whittle
Perry Whittle
SSC-Insane
SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)

Group: General Forum Members
Points: 20004 Visits: 17243
You can pre create the listener Computer account and DNS record but as this link details under the Windows Permissions section, it's best to let the wizard perform this for you. The cluster service should have the permission to do this

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
Marios Philippopoulos
Marios Philippopoulos
SSCarpal Tunnel
SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)

Group: General Forum Members
Points: 4564 Visits: 3755
Perry Whittle (5/8/2013)
You can pre create the listener Computer account and DNS record but as this link details under the Windows Permissions section, it's best to let the wizard perform this for you. The cluster service should have the permission to do this


Thank you for the reply, but I am still confused about this.
If the listener name is precreated in AD, won't we get a name conflict if we try to *add* a listener with the same name to the avail group using the SQL stmt:

ALTER AVAILABILITY GROUP myAG1
ADD LISTENER myListener1
...



I thought the above SQL actually does all the registering of the listener Computer account and DNS record in AD.

Also in Windows Server 2008 and above, it is not the cluster *service* but the cluster name object (CNO) that needs to have the CreateObjects permission in AD.

Here is another related link I found today:
http://thedbavault.blogspot.ca/2011/03/prestage-active-directory-cluster-name.html#!/2011/03/prestage-active-directory-cluster-name.html

I'm just trying to clear up my understanding on all this stuff that is quite new to me. :-)

Thanks again for the input!

__________________________________________________________________________________
SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables
Persisting SQL Server Index-Usage Statistics with MERGE
Turbocharge Your Database Maintenance With Service Broker: Part 2
Perry Whittle
Perry Whittle
SSC-Insane
SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)

Group: General Forum Members
Points: 20004 Visits: 17243
If the listener resources already exist then you should get a message indicating that fact.


Marios PhilippopoulosAlso in Windows Server 2008 and above, it is not the cluster *service* but the cluster name object (CNO) that needs to have the CreateObjects permission in AD.

Sorry, yes, the differerences between 2003 and 2008 Blush

This link has more detail on pre staging the availability group name objects

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
Marios Philippopoulos
Marios Philippopoulos
SSCarpal Tunnel
SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)SSCarpal Tunnel (4.6K reputation)

Group: General Forum Members
Points: 4564 Visits: 3755
Perry Whittle (5/9/2013)
If the listener resources already exist then you should get a message indicating that fact.


Marios PhilippopoulosAlso in Windows Server 2008 and above, it is not the cluster *service* but the cluster name object (CNO) that needs to have the CreateObjects permission in AD.

Sorry, yes, the differerences between 2003 and 2008 Blush

This link has more detail on pre staging the availability group name objects


Thank you, that link refers to setting up Exchange, but should be similar to our scenario.

__________________________________________________________________________________
SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables
Persisting SQL Server Index-Usage Statistics with MERGE
Turbocharge Your Database Maintenance With Service Broker: Part 2
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search