Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Does the Availability-Group (AG) Listener name need to be *precreated* in Active Directory before adding listener to AG? Expand / Collapse
Author
Message
Posted Wednesday, May 8, 2013 8:12 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Saturday, August 16, 2014 5:48 AM
Points: 1,862, Visits: 3,602
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?




__________________________________________________________________________________

Turbocharge Your Database Maintenance With Service Broker: Part 2
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation
Post #1450591
Posted Wednesday, May 8, 2013 9:41 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 8:49 AM
Points: 6,302, Visits: 13,588
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"
Post #1450657
Posted Wednesday, May 8, 2013 9:50 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Saturday, August 16, 2014 5:48 AM
Points: 1,862, Visits: 3,602
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!


__________________________________________________________________________________

Turbocharge Your Database Maintenance With Service Broker: Part 2
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation
Post #1450660
Posted Thursday, May 9, 2013 3:37 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 8:49 AM
Points: 6,302, Visits: 13,588
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

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"
Post #1450963
Posted Thursday, May 9, 2013 5:35 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Saturday, August 16, 2014 5:48 AM
Points: 1,862, Visits: 3,602
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

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.


__________________________________________________________________________________

Turbocharge Your Database Maintenance With Service Broker: Part 2
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation
Post #1451041
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse