Pre-Staging Windows Server Failover Cluster Active Directory Objects
Overview
This
document will outline, on a high level, the process to pre-staged new Windows
Server Failover Cluster [WSFC] Active Directory objects. For detailed steps on creating these objects
please refer to this document by Microsoft.
Organizational Unit
All
Active Directory objects associated to the WSFC should be added to the
appropriate Organizational Unit [OU]. This is primarily handled by your
Windows/Infrastructure team.
Cluster Name Object
The
Cluster Name Object [CNO] is the computer
object which owns all other computer objects associated to the WSFC.
- Run dsa.msc from the Windows
command prompt. This will bring up
the Active Directory Users and Computers UI.
- Go to the appropriate OU and create the new computer object [CNO] under it.
NOTE: Put in an appropriate description to help identify the purpose of this new object
e.g.
MYTESTCNO1$
- Disable the new CNO object.
NOTE: This is required to as the WSFC wizard will need to confirm the computer object in question is not being used with the cluster you will be creating.
Virtual Computer Object
All
services installed on a WSFC [e.g MSDTC, SQL Server FCI, Availability Group
Listener, etc] need to have a Virtual Computer Object [VCO] created and the appropriate permissions added so the WSFC will
function properly.
- Run dsa.msc from the Windows
command prompt. This will bring up
the Active Directory Users and Computers UI.
- Under the View menu choose Advanced Features.
- Go to the appropriate OU and create the new computer object [VCO] under it.
NOTE: Put in an appropriate description to help identify the purpose of this new object
e.g.
MYTESTMSDTC01
- Right click on the new object created and click
Properties.
- On the Security
tab click Add. Click Object Types and make sure that Computers is selected then click Ok.
- Type the name of the CNO and click Ok. Select the CNO and under Permissions
click Allow for Full
Control permissions.
- Repeat as necessary for all other VCO objects.
Active Directory Integrated DNS
In
environment where DNS is controlled by Active Directory permissions must be
granted for the CNO to be able to
update those records. NOTE:
This is typically a 1 time operation.
- Once all VCO objects have been created, create
a DNS entry for the VCO that require an IP address. NOTE: With objects that span multiple subnets
they will require 2 IP address to be pre-staged.
e.g.
WSFC Cluster Name
WSFC Node Name
SQL Server FCI Hostname
Availability
Group Listener
- Once the DNS entries have been created give the CNO Full Control on the new entries.
SQL Service Account
All
SQL services configured on a WSFC [e.g SQL Server FCI, Availability Group
Listener, etc] need to run under the credentials of a SQL Service Account. This account will have the permissions,
through the CNO, to create SQL
Server FCI and/or Availability Group Listeners on the WSFC.
- Run dsa.msc from the Windows
command prompt. This will bring up
the Active Directory Users and Computers UI.
- Under the View menu choose Advanced Features.
- Go to the appropriate OU and create the new user account under it.
NOTE: Put in an appropriate description to help identify the purpose of this new object
e.g.
S-MYTESTSQLSVC01
- Right click on the new user account created and
click Properties.
- On the Security
tab click Add. Click Object Types and make sure that Computers is selected then click Ok.
- Type the name of the CNO and click Ok. Select the CNO and under Permissions
click Allow for Full
Control permissions.
- Add the service account to the appropriate NT
security group for SQL Server.
e.g.
G-SQLServiceAccounts
Service Principal Name [SPN]
For
Kerberos authentication to work correctly within SQL Server, the SQL Service
Account and CNO require rights to
read and write servicePrincipalName
in Active Directory.
CNO:
CNO:
- Run adsiedit.msc from the Windows
command prompt. This will bring up
the Active Directory Service Interfaces Editor UI.
- Go to the appropriate OU and search for the CNO.
- Under the Security tab choose Advanced.
- Locate the SELF
name and click Edit.
- Under the Object
tab verify that the Validate write to service principal
name is checked for Allow.
- Under the Properties
tab verify that the Read servicePrincipalName and Write
servicePrincipalName are checked for Allow.
- Click OK
to accept the changes, if necessary.
SQL Service Account:
- Run adsiedit.msc from the Windows
command prompt. This will bring up
the Active Directory Service Interfaces Editor UI.
- Go to the appropriate OU and search for the SQL
Service Account.
- Under the Security tab choose Advanced.
- Select Add,
type in SELF and click OK. In the Apply to: field
selected the SQL Service Account.
- Under the Properties
tab check the Read servicePrincipalName and Write servicePrincipalName
for Allow.
- Click OK
to accept the changes.
Comments
Post a Comment