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

  • 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[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • 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" 😉

  • 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[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • 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" 😉

  • 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[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply