Download Kerberos Authentication for SQL Server in Windows 2003 Cluster at University of Miami and more Study notes Computer Science in PDF only on Docsity!
CSC410 PROJECT – DEPARTMENT OF COMPUTER SCIENCE – UNIVERSITY OF MIAMI
Building a Microsoft
Windows 2003 Cluster for
SQL Server 2005
Version 01.00.
Robert J. Fortunato Jr. – C 12/13/
Document Revision History
Author Date Version Change Robert J. Fortunato Jr. 10/30/2008 00.90.00 Document created from individual chapter notes and steps assembled over the past months. Robert J. Fortunato Jr. 11/13/2008 00.90.25 Document chapters organized into a cohesive entity so that logical progression of implementation stack elements flows throughout the body. Robert J. Fortunato Jr. 11/25/2008 00.90.50 Added summary and prerequisite sections to first 16 chapters. Robert J. Fortunato Jr. 12/1/2008 00.90.60 Added the introductory abstract, table of contents, and Appendix C naming conventions sections. Robert J. Fortunato Jr. 12/10/2008 00.90.70 Modified to include internal soft copy document bookmarks to Appendix B reference items, completed the Assumptions and Infrastructure Requirements section, and added general notes in Appendix A. Robert J. Fortunato Jr. 12/11/2008 00.90.90 Prerelease proof for content and style.
Beta release for peer review and faculty evaluation. Robert J. Fortunato Jr. 12/12/2008 00.90.95 Prerelease execution validation of the document.
Incorporation of peer review modifications.
Table of Contents
- Document Revision History...........................................................................................................................
- Table of Contents
- Introductory Abstract
- Assumptions and Infrastructure Requirements............................................................................................
- Assumptions
- Infrastructure Requirements
- Preparation and Configuration of Active Directory User and Group Cluster Principles
- Section Summary
- Section Prerequisites
- Steps for Provisioning Active Directory User and Group Principles
- Installation, Configuration, and Preparation of Compute Node Hardware................................................
- Section Summary
- Section Prerequisites
- Provisioning Node Hardware for a VMWare 3.5 Environment
- Provisioning Node Hardware for a Dell PowerEdge 6850 Environment.................................................
- Installation, Configuration, and Preparation of the Operating System
- Section Summary
- Section Prerequisites
- Provisioning the Windows Server 2003 R2 Enterprise Edition OS
- Installation, Configuration, and Preparation of Storage Subsystem Shared Disk
- Section Summary
- Section Prerequisites
- Provisioning Shared Storage in a VMWare Environment
- Provisioning Shared Storage in an EMC CX300 and CX3‐ 80 SAN Environment
- Installation, Configuration, and Preparation of Shared Drive Letters for a Cluster
- Section Summary
- Section Prerequisites
- Steps for Provisioning Shared Drive Letter Assignments
- Installation, Configuration, and Preparation of the Microsoft Cluster Service
- Section Summary
- Section Prerequisites
- Steps for Provisioning the Microsoft Cluster Service..............................................................................
- Installation, Configuration, and Preparation of the DTC Service
- Section Summary
- Section Prerequisites
- Steps for Provisioning the Microsoft Cluster Service..............................................................................
- Installation of a SQL Server Database Service
- Section Summary
- Section Prerequisites
- Steps for Installing a Clustered Microsoft SQL Server Service
- Configuring, Provisioning, and Preparing a SQL Server Database Service
- Section Summary
- Section Prerequisites
- Steps for Configuring, Provisioning, and Preparing a SQL Server Database Service
- Provisioning Kerberos Authentication for SQL Server Database Services
- Section Summary
- Section Prerequisites
- Steps for Provisioning Kerberos Authentication for SQL Server Database Services
- Appendix A: Author’s Notes
- Appendix B: References
- Appendix C: Naming Conventions..............................................................................................................
- Region Naming Conventions
- Computer Naming Conventions..............................................................................................................
- Disk Naming Conventions
Assumptions and Infrastructure Requirements
Assumptions
- This is a technical document intended for system engineers, system administrators, and system analysts.
a. While complete knowledge of the entire stack does the most benefit to the executor(s)
of this document, a collaborative effort of those individuals possessing knowledge of the system and software stack components mentioned above can successfully execute and troubleshoot this document.
- The executor of the steps in this document has appropriate access to the storage, server, operating system, and Active Directory administrative interfaces.
a. If the environment constraints do not permit this type of access then those individuals
with the necessary permission and access must work collaboratively on the sections of the document that require elevated access for the respective components.
- The executor(s) has/have knowledge of the specific network settings for the target environment. This includes IP address ranges and reservations, DNS server addresses, WINS server addresses, and appropriate link speed and duplex settings for network adapters.
- The executor(s) of this document have familiarized themselves with Appendix C: Naming Conventions prior to executing the document as placeholder markers defined in Appendix C for object naming have been placed throughout the body of this paper.
- This document is being read in a soft copy format so that document cross referencing and hyperlink functionality is available.
Infrastructure Requirements
- An appropriate datacenter, power redundant, and server rack infrastructure must exist.
- For physical environments the necessary Microsoft HCL certified hardware must be purchased. a. For more information see Appendix B, Item 5. The Microsoft support policy for server clusters, the Hardware Compatibility List, and the Windows Server Catalog.
- For virtual environments the necessary VMWare Virtual Infrastructure ESX 3.5, or greater, environment must be in place. a. For more information see Appendix B, Item 6. The Microsoft support policy for server clusters, the Hardware Compatibility List (HCL), and the Windows Server Catalog (WSC). b. Note that Microsoft does not support a VMWare environment for clustering of SQL Server 2005 on Windows 2003. This type of environment should only be used for proofs of concept, testing, and other non‐production class regions where the prohibitive cost of fully supported HCL solutions makes VMWare implementations ideal.
- An existing redundant IPv4 network infrastructure must be in place and functioning properly for
the forward facing client access network and disaster recovery/backup network.
- For physical environments, two existing IP network switches must be in place and functioning
properly for the cluster communications network. a. The cluster communication switches must be hard set for 10MBps, Half Duplex communication. b. The cluster communication network switches should be powered from independent power sources.
- TCP and UDP protocols must be fully supported over IP and functioning properly before
attempting execution of this document.
- An existing DNS infrastructure must be in place and functioning properly.
- An existing WINS infrastructure must be in place and functioning properly.
- An existing Active Directory infrastructure must be in place and functioning properly.
- An existing high availability storage infrastructure must be in place for the type of storage that
will be used as the shared storage subsystem. a. For Fibre Channel external storage, an existing Fibre Channel storage fabric must be in place, zoned, and function properly for shared storage provisioning. b. For iSCSI external storage, an existing storage network must be in place and function properly for shared storage provisioning. c. Redundant paths to the storage processing backend must exist. d. The storage processing backend must support the SCSI protocol for disk access. i. For more information see Appendix B, Item 10. How the Cluster service reserves a disk and brings a disk online.
a. Database Cluster Service
- The logon name and SAM account should be as follows: a. SQLCluster ii. Set the account’s password properties
- A random password of at least 16 characters in length, composed of all upper case letters, lower case letters, numbers, and symbols must be used.
- User must change password at next logon – Unchecked
- User cannot change password – Checked
- Password never expires – Checked iii. Store the password in a secure location for disaster recovery purposes.
b. Create the SQL Server Service account
i. Set the account’s name properties
- The first name should be as follows: a. SQL
- The last name should be as follows: a. Server Service
- The logon name and SAM account should be as follows: a. SQL ii. Set the account’s password properties
- A random password of at least 16 characters in length, composed of all upper case letters, lower case letters, numbers, and symbols must be used.
- User must change password at next logon – Unchecked
- User cannot change password – Checked
- Password never expires – Checked iii. Store the password in a secure location for disaster recovery purposes.
c. Create the SQL Agent Service account
i. Set the account’s name properties
- The first name should be as follows: a. SQL
- The last name should be as follows: a. Agent Service
- The logon name and SAM account should be as follows: a. SQLAgent ii. Set the account’s password properties
- A random password of at least 16 characters in length, composed of all upper case letters, lower case letters, numbers, and symbols must be used.
- User must change password at next logon – Unchecked
- User cannot change password – Checked
- Password never expires – Checked
iii. Store the password in a secure location for disaster recovery purposes. d. Create the SQL Server Full Text Service account i. Set the account’s name properties
- The first name should be as follows: a. SQL
- The last name should be as follows: a. Server Full Text Service
- The logon name and SAM account should be as follows: a. SQLFulltext ii. Set the account’s password properties
- A random password of at least 16 characters in length, composed of all upper case letters, lower case letters, numbers, and symbols must be used.
- User must change password at next logon – Unchecked
- User cannot change password – Checked
- Password never expires – Checked iii. Store the password in a secure location for disaster recovery purposes.
- Create the Active Directory service account domain groups for use with the clustered services.
a. Create the Cluster Service group. i. The group name should be as follows:
- SQL Database Clusters b. Create the SQL Server Service group. i. The group name should be as follows:
- SQL Servers c. Create the SQL Agent Service group i. The group name should be as follows:
- SQL Agents d. Create the SQL Server Full Text Service group i. The group name should be as follows:
- SQL Fulltext Engines
- Assign service account aggregator group memberships to the service accounts.
a. Assign the cluster service account to the cluster service group. b. Assign the SQL service account to the SQL service group. c. Assign the SQL Agent service account to the SQL Agent service group. d. Assign the SQL Full Text service account to the SQL Server Full Text group.
- Configure the Active Directory group permissions for the service account aggregator groups.
a. Configure security for the Cluster Service account aggregator group. i. On the Computers container in the target domain of the Active Directory set the following object level ACLs.
Installation, Configuration, and Preparation of Compute
Node Hardware
Section Summary
This section of the document contains information on how to provision the computational
hardware for cluster nodes. Cluster nodes represent the computation resources that service clustered
resources with CPU cycles, memory, and storage and network I/O operations. The cluster model
abstracts clustered resources from the hardware platform that services a clustered resource. Clustered
resources, in the context of nodes, are generic consumers of hardware services offered by the node that
owns the resource. It is important to note that cluster nodes do not distribute partitioned work
amongst themselves like a grid; only one node may service a distinct clustered resource at any given
point in time. A cluster configuration serves only to abstract application services, such as a database,
from the failure of a hardware resource. When this section is completed, one node’s worth of
provisioning will be complete.
Since different vendors implement hardware provisioning in a variety of ways, a subsection for
each major computational node provider that has been used in the environment has been provided.
The appropriate subsection should be executed in order to provision one cluster node. This implies that
the subsection needs to be executed once for each cluster node that will be a member of the cluster.
Section Prerequisites
- The executor must have appropriate physical access to the hardware for physical environments.
- The executor must have Virtual Machine Administrator access in the VMWare Virtual Infrastructure client for VMWare virtual environments.
- This section assumes the executor is familiar with computational hardware and device administration.
Provisioning Node Hardware for a VMWare 3.5 Environment
- Create Virtual Machines a. Create the desired number of virtual machines specifying the necessary number of processors and appropriate memory for the intended purposes.
- Configure and Provision Local Node Storage a. Ensure the local node disks all reside together on a Virtual SCSI device controller. This is the SCSI boot controller.
i. This should be controller 0. ii. Set the SCSI controller to be an LSI type controller. b. Configure Node Local Boot LUN by adding a new hard disk to the system. i. This will be the C:\ Drive for the operating system. c. Configure Node Local Storage by adding a second new hard disk to the system. i. This will be the D:\ Drive for the operating system.
- Add Shared Disks to each node that will be a member of the cluster a. Use the “Use an existing virtual disk” option when adding shared disks. b. Browse to the location in the Datastore where the shared RDM disks have been provisioned from the subsection Provisioning Shared Storage in a VMWare Environment in the chapter entitled Installation, Configuration, and Preparation of Storage Subsystem Shared Disk. c. Ensure the shared disks all reside together on a Virtual SCSI device controller separate from the boot SCSI device controller.
- Configure the SCSI controller for the shared disks. a. Set SCSI controller to be an LSI type controller. b. Set SCSI bus sharing to Physical
- Add Network Adapters a. Due to a limitation on the number of PCI devices supported by VMWare ESX 3.5, a non‐ redundant Cluster Heartbeat network configuration should be used. b. Specify one adapter each for the forward facing, backup, and internal cluster communication network adapters.
Provisioning Node Hardware for a Dell PowerEdge 6850 Environment
- Install the local node storage controller device.
- Install redundant shared storage device controllers. a. These must be separate devices on separate PCI bus channels to mitigate the failure of a device and/or PCI bus.
- Install network interface cards (NIC’s) on the local node. a. Install redundant cluster communication NIC’s i. The NIC’s for the internal cluster communication network must be separate NIC’s and they must reside on separate PCI bus channels to mitigate the failure of a device and/or PCI bus. b. Install external communication NIC’s i. The NIC’s for the external communication networks should be separate NIC’s on separate PCI bus channels as to minimize the saturation of PCI bus traffic across the backplane of the node. c. If necessary, install iSCSI communication NIC’s. i. The NIC’s for iSCSI communication networks must be separate NIC’s and they must reside on separate PCI bus channels to mitigate the failure of a device
c. If using locally attached storage, configure a 5 th^ drive to act as a global hot spare to both of the node local LUN’s.
- Prepare Local Node Storage Driver Disk for Operating System Installation on physical hardware.
a. This is the driver that should be used by the operating system installation bootstrap.
Installation, Configuration, and Preparation of the Operating
System
Section Summary
This section of the document contains information on how to provision the operating system for
cluster nodes. The operating system provides, in addition to the base services furnished by modern
OS’s, the necessary cluster layer software services for each node to participate in a cluster; it should be
noted that this software ships with the operating system but is not configured in this section. In
addition to cluster services, the operating system also provides software support for distributed
transaction processing via the Microsoft Distributed Transaction Coordinator (DTC). When executed,
this section will complete provisioning of one node’s operating system functionality.
Care should be taken when working with the operating system. System installation utilities such
as Dell’s Open Manage should be avoided as they may have any one of, or combination thereof, the
following concerns: they may contain out of date drivers, they may install low level filter drivers for
systems management that could interfere with proper operation of the clustered resources, and they
may inappropriately configure operating system features. Microsoft Cluster Services (MSCS) operates at
a very low level in the operating system stack and lower or equivalent level device drivers or driver
filters could interfere with the proper operation and failover of the cluster. System Update Utilities can
be used with a fair amount of caution. Agentless tools and reporting tools such as Dell’s System Update
Utility that use built‐in operating system functionality are generally reasonable in their needs. A general
rule of thumb, if a tool requires a reboot then it is probably installing a low level driver and should be
avoided. All tools should be tested in a clustered environment under artificial load as to ensure their
proper interoperation with the cluster. Additionally, cluster compatibility statements, or lack thereof,
should be obtained from each stack element’s vendor.
This section needs to be executed once for each cluster node that will be a member of the
cluster.
Section Prerequisites
- The executor must have appropriate physical access to the hardware for physical environments.
- The executor must have Virtual Machine Administrator access in the VMWare Virtual Infrastructure client for VMWare virtual environments.
- This section assumes the executor is familiar with the installation process and configuration of Microsoft Windows Server 2003.
- No Authentication Required – Selected a. For more information regarding this setting see Appendix B, Item 21. iii. Enable XA Transactions – Checked
- Install Microsoft software and utilities.
a. Install the .NET 2.0 Runtime using a platform appropriate version. b. Install the .NET 3.0 Runtime using a platform appropriate version.
- Apply latest Operating System and Bundled Software updates.
a. For a list of supported operating system patches, fixes, and bundled software see the separate document from this whitepaper entitled Building and Maintaining an MSCS Cluster Node and Cluster: Supported Cluster Patches, Fixes, and Applications b. Use Microsoft Update instead of Windows Update for downloading operating system patches, fixes, and bundled software updates.
- Install required system utilities and software.
a. Install the Windows Server 2003 Support Tools for the current service pack level that has been deployed on the compute node. b. Install the Windows Server 2003 Resource Kit c. Install the Windows Server 2003 Administration Tools Pack for the current service pack level that has been deployed on the compute node. d. Install storage software, management utilities, and other applications. i. For virtual environments, install virtualization hardware management tools.
- Install VMWare Tools for the guest operating system. ii. For physical Dell PowerEdge 6850 environments, install storage management tools.
- For fibre attached hosts connected to an EMC array perform the following steps. a. Install the EMC Navisphere storage management software. i. Install both the Navisphere CLI and Navisphere Agent packages. b. Install the EMC PowerPath storage multipath software. c. Install the QLogic SAN Surfer HBA management utility.
- Configure operating system disks.
a. Partitions must be configured as Master Boot Record Primary Partitions. i. The full capacity of the physical disk should be used. ii. The file system must be NTFS. iii. The allocation unit should be the default. iv. Do not quick format. v. Do not enable compression. vi. Refer to Appendix B, Items 11 and 13 for more information. b. Disks must be Static instead of Dynamic Disks. i. Do not convert the disks to dynamic disks. Dynamic Disks are not supported on a cluster under Microsoft Windows Server 2003.
- Refer to Appendix B, Item 12 for more information. c. Mount Points are beyond the scope of this document but are supported. d. Node Local Drive Letter Assignments i. C: ‐ This is reserved for the Operating System partition. It must be the system partition.
- Assign an appropriate name for the disk partition. a. Refer to the Disk Naming Conventions section of Appendix C for an appropriate name. ii. D: ‐ This is reserved for the local node’s storage.
- Assign an appropriate name for the disk partition. a. Refer to the Disk Naming Conventions section of Appendix C for an appropriate name. iii. E: ‐ This is reserved for the local node’s optical drive.
- Configure operating system networks.
a. Note: All IP Address used by any cluster stack component must be static. b. Rename the network connections to Production (the forward facing client access network), Backup (the rear facing disaster recovery/backup subnet address), Cluster (Primary) (the primary cluster communications network), and Cluster (Secondary) (the secondary cluster communications network) appropriately. c. Production network configuration. i. Appropriate adapter Link Speed and Duplex must be set. ii. File and Printer Sharing for Microsoft Networks set for “Maximize data throughput for network applications” iii. Appropriate network specific configuration for DNS and WINS should be applied. d. Backup network configuration. i. Appropriate adapter Link Speed and Duplex must be set. ii. Appropriate Backup Subnet Configuration applied.
- “DNS suffix for this connection” set to backup.local
- “Register this connection’s addresses in DNS” unchecked. e. Cluster network configuration. i. All Adapters
- Link Speed and Duplex set to 10 MBps/ Half Duplex
- Disable Client for Microsoft Networks
- Disable File and Printer Sharing for Microsoft Networks
- Disable NetBIOS over TCP/IP
- Refer to Appendix B, Items 16 and 17 for more information. f. Set the network binding order. i. Production ii. Backup iii. Cluster (Primary) iv. Cluster (Secondary)