SlideShare a Scribd company logo
1
Installing & Configuring
SQL Server 2012/2014
Failover Cluster
2
CONTENTS
Introduction
......................................................................................................................... 3
Assumptions
......................................................................................................................... 3
Cluster Configuration Details
......................................................................................................................... 3
Connecting to the iSCSI Storage
......................................................................................................................... 4
Initializing and Formatting the Disks
.......................................................................................................................... 6
Installing the .NET Framework 3.5
......................................................................................................................... 10
Windows Failover Cluster Feature Installation
......................................................................................................................... 11
Windows Server Failover Clustering Configuration
.......................................................................................................................... 13
SQL Server 2012/2014 Failover Cluster Instance Installation - Install Primary (Initial) Cluster
Node ......................................................................................................................... 19
SQL Server 2012/2014 Failover Cluster Instance Installation - Install Secondary (Failover)
Cluster Node ............................................................................................................... 31
3
INTRODUCTION
The goal of this documentation is to provide a step-by-step procedure in configuring a 2-node Windows Server
2012 Failover Cluster that will host a SQL Server 2012/2014 Failover Clustered Instance.
ASSUMPTIONS
When using this guide, a few assumptions have been made:
 Windows Server 2012/2014 is installed on each server that you will cluster and join to the domain.
 The disks (LUNs) that you want to use in the cluster are exposed to the servers that you will cluster and
are configured appropriately as per High Availability Best Practices solutions.
 You have decided which quorum model will be used by the failover cluster. So will use the disk witness as
the quorum model.
CLUSTER CONFIGURATION DETAILS
Prior to building your cluster, it is important to have all the details in place to make sure that installation and
configuration will go smoothly. The following details will be used to build and configure a SQL Server 2012/2014
Failover Clustered Instance.
Active Directory Domain Name: <Domain Name>
StarWind Server iSCSI SAN IP address: <SAN Ip Address>
Cluster Nodes: <Node1>&<Node2>
Cluster Disks: <Disk1,Disk2.etc>
Windows Server Failover Cluster Name and IP Address: WINCLUSTER & 172.16.0.211
SQL Server Failover Cluster Name and IP Address: SQLCLUSTER & 172.16.0.212
SQL Server Service Account: <Domain Name>sqlservice
4
CONNECTING TO THE ISCSI STORAGE
Windows Server 2012 comes with iSCSI Initiator software that enables connection of a Windows host to an
external iSCSI storage array like iSCSI SAN using network adapters. You can launch the tool from the Server
Manager dashboard, under Tools and select iSCSI Initiator.
NOTE: These steps have to be performed on both of the servers that will act as nodes in your failover cluster.
You will get a message saying that the Microsoft iSCSI service is not running. Simply click Yes to continue.
To connect to the iSCSI target:
1. In the iSCSI Initiator Properties page, under the Targets tab, enter the IP address of the MDVision’s server
iSCSI SAN on the Target field. Click Quick Connect. You should see a list of the iSCSI Targets that have
been defined on your iSCSI SAN.
5
1. In the Quick Connect dialog box, select the target that you will use and click Connect. Click Done to go
back to the iSCSI Initiator Properties page.
2. In the Quick Connect dialog box, select the target that you will use and click Connect. Click Done to go
back to the iSCSI Initiator Properties page.
3. Click OK to close the iSCSI Initiator Properties page.
Once the targets have been defined using the iSCSI Initiator tool, you can now bring the disks online, initialize
them, and create new volumes using the Disk Management console.
6
INITIALIZING AND FORMATTING THE DISKS
After configuring the servers to connect to the iSCSI target, we can proceed to initialize and format the disks. We
will use the Disk Management console to perform this task. You can launch the tool from the Server Manager
dashboard, under Tools and select Computer Management.
NOTE: These steps have to be performed on both of the servers that will act as nodes in your failover cluster.
To initialize and format the drives:
1. From within Computer Management, expand the Storage section and select Disk Management.
7
2. Right-click any of the disks that you want to configure and select Online. Once the disk is brought online,
it is now.
3. To initialize, right-click on the disk and select Initialize Disk. The Initialize Disk dialog box will appear.
8
4. In the Initialize Disk dialog box, make sure that the correct disk is selected for initialization and then
choose whether to initialize the disk using the MBR or GPT partition styles. The most common partition
style for disks used in SQL Server instances is MBR, which is selected by default. Click OK to select the
MBR partition style.
5. To create a disk partition, right-click on the unallocated space and select New Simple Volume.
6. In the Welcome to the New Simple Volume Wizard dialog box, click Next.
9
7. In the Specify Volume Size dialog box, enter the volume size and click Next.
8. In the Assign Drive Letter or Path dialog box, specify the drive letter you would like to use and click
Next.
9. In the Format Partition dialog box:
 Make sure that the file system selected is NTFS.
 To follow Microsoft best practices on allocation unit size, select 64K.
 In the Volume label: text box, enter the appropriate name.
Click Next
10
10. In the Completing the New Simple Volume Wizard dialog box, review the settings you have made and
click Finish.
11. Repeat these steps on all of the disks that you want to configure as part of your Windows Server Failover
Cluster.
INSTALLING THE .NET FRAMEWORK 3.5
SQL Server 2012/2014 requires both the Microsoft .NET Framework 3.5.1 and 4.0 as part of its prerequisite
software. The .NET Framework 3.5.1 package is already a part of the Windows Server 2012 installation media while
the .NET Framework 4.0 is included in the SQL Server 2012/2014 installation media. However, there are issues
when installing the .NET Framework 3.5.1 on Windows Server 2012 machines when using the Server Manager
dashboard. Microsoft KB article 2734872 describes the issues you will encounter when installing the .NET
Framework 3.5.1 on a Windows 8 or Windows Server 2012 machine.
To install the Microsoft .NET Framework 3.5.1 on a Windows Server 2012, we will be using the Deployment Image
Servicing and Management (DISM) Command-Line tool.
NOTE: These steps have to be performed on both of the servers that will act as nodes in your failover cluster.
To install the Microsoft .NET Framework 3.5.1, open a command-line and type the command below.
dism /online /enable-feature /featurename:NetFX3 /all /Source:d:sourcessxs /LimitAccess
11
WINDOWS FAILOVER CLUSTER FEATURE INSTALLATION
Windows Server Failover Clustering feature provides high availability and scalability in many server workloads.
SQL Server 2012/2014 takes advantage of this feature and its capabilities to support a failover clustered instance
and the new SQL Server 2012/2014 Always On Availability Group feature. Discussion of the new SQL Server
2012/2014 Always On Availability Group feature is beyond the scope of this document. We will only be focusing
on SQL Server failover clustered instances.
NOTE: These steps have to be performed on both of the servers that will act as nodes in your failover cluster.
To add the Failover Clustering feature:
1. Open the Server Manager dashboard and select Add roles and features. This will launch the Add
Roles Features Wizard.
12
2. Click Next until you reach the Select Features dialog box. Select the Failover Clustering checkbox.
When prompted with the Add features that are required for Failover Clustering dialog box, click Add
Features. Click Next.
13
3. Click Install to install the Failover Clustering feature.
WINDOWS SERVER FAILOVER CLUSTERING CONFIGURATION
Once the Windows Server Failover Clustering Feature has been installed, we can proceed with configuring a
Windows Server Failover Cluster. We will start with running the Failover Cluster Validation Wizard to make sure
that our cluster configuration will be officially supported by Microsoft.
To configure Windows Failover Clustering:
14
1. Launch Failover Cluster Manager from within the Server Manager console.
2. Within Failover Cluster Manager, click the Validate Configuration… link.
15
3. In the Validate a Configuration Wizard dialog box, click Next.
4. In the Select Servers or a Cluster dialog box, add the following server names – WS-CLUSTER3 and
WS-CLUSTER4. Click Next.
16
5. In the Testing Options dialog box, make sure that the option Run all tests (recommended) is selected.
Click Next.
6. In the Confirmation dialog box, click Next.
17
7. In the Summary dialog box, click Finish to create the Windows Server Failover Cluster.
8. In the Access Point for Administering the Cluster dialog box,enter the following details
 Cluster Name: WINCLUSTER2
 Address: 172.16.0.211
18
9. In the Confirmation dialog box, click Next. This will create the Windows Server Failover Cluster using the
servers as nodes of the cluster, add DNS and Active Directory entries for the cluster hostname.
10. In the Summary dialog box, verify that the configuration is successful.
11. Verify that the cluster quorum configuration is using Node and Disk Majority, using the appropriate drive
that you configured as the quorum disk.
19
SQL SERVER 2012/2014 FAILOVER CLUSTER INSTANCE
INSTALLATION - INSTALL PRIMARY (INITIAL) CLUSTER NODE
Installing a SQL Server 2012/2014 Failover Clustered Instance requires that you have the appropriate permissions
in your Active Directory domain and that you have local Administrator rights to the machines that will act as nodes
in your failover cluster. Configuring the appropriate permissions in Active Directory is beyond the scope of this
document.
There are two options to install SQL Server 2012/2014 Failover Clustered Instance. The first one is by using the
integrated failover cluster install with the Add Node option and the second one is the Advanced/Enterprise
installation option. The process outlined below will take into account the first option and will be installing a
DEFAULT instance.
To install a SQL Server 2012/2014 failover clustered instance:
1. Run setup.exe from the installation media to launch SQL Server Installation Center. Click on the
Installation link on the left-hand side.
2. Click on the New SQL Server Failover Cluster Installation link. This will run the SQL Server 2012/2014
Setup wizard.
20
3. In the Setup Support Rules dialog box, validate that the checks return successful results and click Next.
4. In the Product Key dialog box, enter the product key that came with your installation media and click Next.
21
5. In the License Terms dialog box, click the I accept the license terms check box and click Next.
22
6. In the Product Updates dialog box, you have the option to include SQL Server product updates like service
packs and cumulative updates in the installation process. If your servers are connected to the Internet, the
installation media will connect to Windows Update and check for available SQL Server 2012/2014 updates. You
can opt to install the detected updates as part of the installation process. Click Next.
7. In the Setup Support Rules dialog box, validate that the checks return successful results. If the checks
returned a few warnings, make sure you fix them before proceeding with the installation. Click Next.
23
8. In the Setup Role dialog box, select the SQL Server Feature Installation option and click Next.
9. In the Feature Selection dialog box, select the following components – Database Engine Services, SQL
Server Replication, Client Tools Connectivity and Management Tools. Click Next.
NOTE: Data Quality Services is now a requirement when installing the Database Engine Services on a Failover
Cluster when the installation media includes SQL Server Service Pack 1 as per Microsoft KB article 2674817.
24
10. In the Feature Rules dialog box, verify that all the rules have passed. If the rules returned a few warnings,
make sure you fix them before proceeding with the installation. Click Next.
11. In the Instance Configuration dialog box, enter the following details:
 SQL Server Network Name: SQLCLUSTER2
 Instance ID: MSSQLSERVER
Click Next.
25
12. In the Disk Space Requirements dialog box, check that you have enough space on your local disks to install
the SQL Server 2012/2014 binaries. Click Next.
13. In the Cluster Resource Group dialog box, check the resources available on your Windows Server Failover
Cluster. This tells you that a new Resource Group will be created on your cluster for the SQL Server instance. To
specify the SQL Server cluster resource group name, you can either use the drop-down box to specify an existing
group to use or type the name of a new group to create it. Accept all the defaults and click Next.
26
14. In the Cluster Disk Selection dialog box, select the available disk groups that are on the cluster for SQL
Server 2012/2014 to use. Click Next.
27
15. In the Cluster Network Configuration dialog box, enter the virtual IP address that your SQL Server
2012/2014 failover cluster will use.
IP Type: IPv4
Address: 172.16.0.212
16. In the Server Configuration dialog box, use the following credentials for the SQL Server service accounts in
the Service Accounts tab. Make sure that both the SQL Server Agent and SQL Server Database Engine
services have a Startup Type of Manual. The Windows Server Failover Cluster will take care of stopping and
starting the service.
SQL Server Agent: TESTDOMAINsqlservice
SQL Server Database Engine: TESTDOMAINsqlservice
Click Next.
28
17. In the Database Engine Configuration dialog box, select Windows Authentication Mode in the Server
Authentication tab. If you want to add the currently logged on user to be a part of the SQL Server administrators
group, click the Add Current User button. Otherwise, you can add the appropriate domain accounts or security
groups.
In the Data Directories tab, enter the following
Data root directory: E:
User database directory: E:SQLSERVERMSSQLData
User database log directory: F:SQLSERVERMSSQLData
Temp DB directory: E:SQLSERVERMSSQLData
Temp DB log directory: F:SQLSERVERMSSQLData
Backup directory: H:SQLSERVERMSSQLBackup
NOTE: New in SQL Server 2012/2014 is the option to store the tempdb database on a local drive instead of a
clustered drive. Should you decide to do so, you will get prompted to make sure that all of the nodes in the cluster
contain the same directory structure and that the SQL Server service account has read/write permissions on
those folders.
29
Click Yes. Then, click Next.
18. In the Error and Usage Reporting dialog box, click Next.
19. In the Cluster Installation Rules dialog box, verify that all checks are successful. Click Next.
30
20. In the Ready to Install dialog box, verify that all configurations are correct. Click Next.
21. In the Complete dialog box, click Close. This concludes the installation of a SQL Server 2012/2014 Failover
Clustered Instance.
31
SQL SERVER 2012/2014 FAILOVER CLUSTER INSTANCE
INSTALLATION - INSTALL SECONDARY (FAILOVER) CLUSTER
NODE
Now that you have a working failover cluster, we will make it highly available by adding nodes. Most of the steps
outlined below are similar to the ones when installing a failover clustered instance. While all the steps are still
included, some screenshots have been omitted.
To add a node to a SQL Server 2012/2014 failover clustered instance:
1. Run setup.exe from the installation media to launch SQL Server Installation Center. Click on the
Installation link on the left-hand side.
2. Click on the Add node to a SQL Server failover cluster link. This will run the SQL Server 2012/2014 Setup
wizard.
32
3. In the Setup Support Rules dialog box, validate that the checks return successful results and click OK. Click
Next until you get to the Cluster Node Configuration dialog box.
4. In the Cluster Node Configuration dialog box, validate that the information on the existing SQL Server
2012/2014 cluster is correct. Click Next.
5. In the Service Accounts dialog box, verify that the information is the same as what you have used to configure
the first node. Click Next.
NOTE: If you used different service accounts for the SQL Server services, make sure you provided the correct
credentials. If you noticed, the order of the services in this dialog box differs from when you are installing a
failover clustered instance.
6. In the Error and Usage Reporting dialog box, click Next.
7. In the Add Node Rules dialog box, verify that all checks are successful and click Next.
33
8. In the Ready to Add Node dialog box, verify that all configurations are correct and click Install.
9. In the Complete dialog box, click Close. This concludes adding a node to a SQL Server 2012/2014 Failover
Cluster.
10. Reboot both nodes after completing the installation just to be sure that there are no pending reboot operations
that may possibly be flagged as a warning.

More Related Content

PPT
High Availability with Windows Server Clustering and Geo-Clustering
PDF
Vsphere esxi-vcenter-server-55-setup-mscs
PPTX
Windows clustering and quorum basics
PDF
Guia instalacion SQL Server Denali
PDF
Vs host clustering
PPTX
VMWARE Professionals - Availability and Resiliency
PDF
Power vault md32xxi deployment guide for v mware esx4.1 r2
PDF
VirtualCenter Database Maintenance: VirtualCenter 2.0.x and ...
High Availability with Windows Server Clustering and Geo-Clustering
Vsphere esxi-vcenter-server-55-setup-mscs
Windows clustering and quorum basics
Guia instalacion SQL Server Denali
Vs host clustering
VMWARE Professionals - Availability and Resiliency
Power vault md32xxi deployment guide for v mware esx4.1 r2
VirtualCenter Database Maintenance: VirtualCenter 2.0.x and ...

What's hot (20)

PDF
Field installation guide-v3_1
PDF
Hyper v and failover clustering mini poster
PDF
Installation Guide
PDF
Perf vsphere-memory management
PDF
HP PolyServe Software for Microsoft SQL Server
PDF
Setup guide nos-v3_5
PDF
Eql tr symantec-backup-exec-10d-tr1024
PDF
Comparação entre XenServer 6.2 e VMware VSphere 5.1 - Comparison of Citrix Xe...
PDF
MySQL Cluster 8.0 tutorial text
PDF
View RA_v1_HiRez
PPTX
"Component metadata health" check fails with invalid state error
PDF
VMware ventaja competitiva
PDF
How to backup and restore a vm using veeam
PDF
Platform administration guide-nos_v3_5
PDF
Command reference nos-v3_5
PDF
VMware Performance
PDF
MySQL Cluster 8.0 tutorial
PDF
HPE VM Explorer 6 1 user manual
PDF
SQL Sevrer 2008 R2 Overview
PDF
What is mod_perl?
Field installation guide-v3_1
Hyper v and failover clustering mini poster
Installation Guide
Perf vsphere-memory management
HP PolyServe Software for Microsoft SQL Server
Setup guide nos-v3_5
Eql tr symantec-backup-exec-10d-tr1024
Comparação entre XenServer 6.2 e VMware VSphere 5.1 - Comparison of Citrix Xe...
MySQL Cluster 8.0 tutorial text
View RA_v1_HiRez
"Component metadata health" check fails with invalid state error
VMware ventaja competitiva
How to backup and restore a vm using veeam
Platform administration guide-nos_v3_5
Command reference nos-v3_5
VMware Performance
MySQL Cluster 8.0 tutorial
HPE VM Explorer 6 1 user manual
SQL Sevrer 2008 R2 Overview
What is mod_perl?
Ad

Viewers also liked (6)

PPTX
Hebrew Windows Cluster 2012 in a one slide diagram
 
PDF
Critical sql-server-databases
PPT
SQL Server Cluster Presentation
PPT
Active directory
PPT
Active Directory
PPT
Active Directory Training
Hebrew Windows Cluster 2012 in a one slide diagram
 
Critical sql-server-databases
SQL Server Cluster Presentation
Active directory
Active Directory
Active Directory Training
Ad

Similar to FailOver Clustring (20)

PDF
Installation and c onfiguration
PPTX
Configuration manager
PDF
03 setting up database server sample
DOC
SOP - 2013 Server Build
PDF
Dell PowerEdge Deployment Guide
PDF
Nintex installation guide
DOC
Sap ep 7.0 install
PDF
Windows tuning guide_for_vspace
PDF
CCTV Nu client user_manual
DOCX
Application Catalog and Approval Runbooks Sample
PDF
2009 2010 advanced_configuration_guideserver
PDF
Sharepoint 2007 Install Best Practice Phase 1
PPTX
Understanding Windows Azure’s Active Directory (AD) and PowerShell Tools
PDF
Dot netnuke07 setpbysetp
PDF
Fcm rapid-install-11122-1634210
PDF
Installation
PDF
Dell open manage essentials install
PDF
Server Core Remote Management by Sander Berkouwer & Joachim Nässlander
PDF
02 setting up domain controller
PDF
Users Guide of AthTek WebXone
Installation and c onfiguration
Configuration manager
03 setting up database server sample
SOP - 2013 Server Build
Dell PowerEdge Deployment Guide
Nintex installation guide
Sap ep 7.0 install
Windows tuning guide_for_vspace
CCTV Nu client user_manual
Application Catalog and Approval Runbooks Sample
2009 2010 advanced_configuration_guideserver
Sharepoint 2007 Install Best Practice Phase 1
Understanding Windows Azure’s Active Directory (AD) and PowerShell Tools
Dot netnuke07 setpbysetp
Fcm rapid-install-11122-1634210
Installation
Dell open manage essentials install
Server Core Remote Management by Sander Berkouwer & Joachim Nässlander
02 setting up domain controller
Users Guide of AthTek WebXone

FailOver Clustring

  • 1. 1 Installing & Configuring SQL Server 2012/2014 Failover Cluster
  • 2. 2 CONTENTS Introduction ......................................................................................................................... 3 Assumptions ......................................................................................................................... 3 Cluster Configuration Details ......................................................................................................................... 3 Connecting to the iSCSI Storage ......................................................................................................................... 4 Initializing and Formatting the Disks .......................................................................................................................... 6 Installing the .NET Framework 3.5 ......................................................................................................................... 10 Windows Failover Cluster Feature Installation ......................................................................................................................... 11 Windows Server Failover Clustering Configuration .......................................................................................................................... 13 SQL Server 2012/2014 Failover Cluster Instance Installation - Install Primary (Initial) Cluster Node ......................................................................................................................... 19 SQL Server 2012/2014 Failover Cluster Instance Installation - Install Secondary (Failover) Cluster Node ............................................................................................................... 31
  • 3. 3 INTRODUCTION The goal of this documentation is to provide a step-by-step procedure in configuring a 2-node Windows Server 2012 Failover Cluster that will host a SQL Server 2012/2014 Failover Clustered Instance. ASSUMPTIONS When using this guide, a few assumptions have been made:  Windows Server 2012/2014 is installed on each server that you will cluster and join to the domain.  The disks (LUNs) that you want to use in the cluster are exposed to the servers that you will cluster and are configured appropriately as per High Availability Best Practices solutions.  You have decided which quorum model will be used by the failover cluster. So will use the disk witness as the quorum model. CLUSTER CONFIGURATION DETAILS Prior to building your cluster, it is important to have all the details in place to make sure that installation and configuration will go smoothly. The following details will be used to build and configure a SQL Server 2012/2014 Failover Clustered Instance. Active Directory Domain Name: <Domain Name> StarWind Server iSCSI SAN IP address: <SAN Ip Address> Cluster Nodes: <Node1>&<Node2> Cluster Disks: <Disk1,Disk2.etc> Windows Server Failover Cluster Name and IP Address: WINCLUSTER & 172.16.0.211 SQL Server Failover Cluster Name and IP Address: SQLCLUSTER & 172.16.0.212 SQL Server Service Account: <Domain Name>sqlservice
  • 4. 4 CONNECTING TO THE ISCSI STORAGE Windows Server 2012 comes with iSCSI Initiator software that enables connection of a Windows host to an external iSCSI storage array like iSCSI SAN using network adapters. You can launch the tool from the Server Manager dashboard, under Tools and select iSCSI Initiator. NOTE: These steps have to be performed on both of the servers that will act as nodes in your failover cluster. You will get a message saying that the Microsoft iSCSI service is not running. Simply click Yes to continue. To connect to the iSCSI target: 1. In the iSCSI Initiator Properties page, under the Targets tab, enter the IP address of the MDVision’s server iSCSI SAN on the Target field. Click Quick Connect. You should see a list of the iSCSI Targets that have been defined on your iSCSI SAN.
  • 5. 5 1. In the Quick Connect dialog box, select the target that you will use and click Connect. Click Done to go back to the iSCSI Initiator Properties page. 2. In the Quick Connect dialog box, select the target that you will use and click Connect. Click Done to go back to the iSCSI Initiator Properties page. 3. Click OK to close the iSCSI Initiator Properties page. Once the targets have been defined using the iSCSI Initiator tool, you can now bring the disks online, initialize them, and create new volumes using the Disk Management console.
  • 6. 6 INITIALIZING AND FORMATTING THE DISKS After configuring the servers to connect to the iSCSI target, we can proceed to initialize and format the disks. We will use the Disk Management console to perform this task. You can launch the tool from the Server Manager dashboard, under Tools and select Computer Management. NOTE: These steps have to be performed on both of the servers that will act as nodes in your failover cluster. To initialize and format the drives: 1. From within Computer Management, expand the Storage section and select Disk Management.
  • 7. 7 2. Right-click any of the disks that you want to configure and select Online. Once the disk is brought online, it is now. 3. To initialize, right-click on the disk and select Initialize Disk. The Initialize Disk dialog box will appear.
  • 8. 8 4. In the Initialize Disk dialog box, make sure that the correct disk is selected for initialization and then choose whether to initialize the disk using the MBR or GPT partition styles. The most common partition style for disks used in SQL Server instances is MBR, which is selected by default. Click OK to select the MBR partition style. 5. To create a disk partition, right-click on the unallocated space and select New Simple Volume. 6. In the Welcome to the New Simple Volume Wizard dialog box, click Next.
  • 9. 9 7. In the Specify Volume Size dialog box, enter the volume size and click Next. 8. In the Assign Drive Letter or Path dialog box, specify the drive letter you would like to use and click Next. 9. In the Format Partition dialog box:  Make sure that the file system selected is NTFS.  To follow Microsoft best practices on allocation unit size, select 64K.  In the Volume label: text box, enter the appropriate name. Click Next
  • 10. 10 10. In the Completing the New Simple Volume Wizard dialog box, review the settings you have made and click Finish. 11. Repeat these steps on all of the disks that you want to configure as part of your Windows Server Failover Cluster. INSTALLING THE .NET FRAMEWORK 3.5 SQL Server 2012/2014 requires both the Microsoft .NET Framework 3.5.1 and 4.0 as part of its prerequisite software. The .NET Framework 3.5.1 package is already a part of the Windows Server 2012 installation media while the .NET Framework 4.0 is included in the SQL Server 2012/2014 installation media. However, there are issues when installing the .NET Framework 3.5.1 on Windows Server 2012 machines when using the Server Manager dashboard. Microsoft KB article 2734872 describes the issues you will encounter when installing the .NET Framework 3.5.1 on a Windows 8 or Windows Server 2012 machine. To install the Microsoft .NET Framework 3.5.1 on a Windows Server 2012, we will be using the Deployment Image Servicing and Management (DISM) Command-Line tool. NOTE: These steps have to be performed on both of the servers that will act as nodes in your failover cluster. To install the Microsoft .NET Framework 3.5.1, open a command-line and type the command below. dism /online /enable-feature /featurename:NetFX3 /all /Source:d:sourcessxs /LimitAccess
  • 11. 11 WINDOWS FAILOVER CLUSTER FEATURE INSTALLATION Windows Server Failover Clustering feature provides high availability and scalability in many server workloads. SQL Server 2012/2014 takes advantage of this feature and its capabilities to support a failover clustered instance and the new SQL Server 2012/2014 Always On Availability Group feature. Discussion of the new SQL Server 2012/2014 Always On Availability Group feature is beyond the scope of this document. We will only be focusing on SQL Server failover clustered instances. NOTE: These steps have to be performed on both of the servers that will act as nodes in your failover cluster. To add the Failover Clustering feature: 1. Open the Server Manager dashboard and select Add roles and features. This will launch the Add Roles Features Wizard.
  • 12. 12 2. Click Next until you reach the Select Features dialog box. Select the Failover Clustering checkbox. When prompted with the Add features that are required for Failover Clustering dialog box, click Add Features. Click Next.
  • 13. 13 3. Click Install to install the Failover Clustering feature. WINDOWS SERVER FAILOVER CLUSTERING CONFIGURATION Once the Windows Server Failover Clustering Feature has been installed, we can proceed with configuring a Windows Server Failover Cluster. We will start with running the Failover Cluster Validation Wizard to make sure that our cluster configuration will be officially supported by Microsoft. To configure Windows Failover Clustering:
  • 14. 14 1. Launch Failover Cluster Manager from within the Server Manager console. 2. Within Failover Cluster Manager, click the Validate Configuration… link.
  • 15. 15 3. In the Validate a Configuration Wizard dialog box, click Next. 4. In the Select Servers or a Cluster dialog box, add the following server names – WS-CLUSTER3 and WS-CLUSTER4. Click Next.
  • 16. 16 5. In the Testing Options dialog box, make sure that the option Run all tests (recommended) is selected. Click Next. 6. In the Confirmation dialog box, click Next.
  • 17. 17 7. In the Summary dialog box, click Finish to create the Windows Server Failover Cluster. 8. In the Access Point for Administering the Cluster dialog box,enter the following details  Cluster Name: WINCLUSTER2  Address: 172.16.0.211
  • 18. 18 9. In the Confirmation dialog box, click Next. This will create the Windows Server Failover Cluster using the servers as nodes of the cluster, add DNS and Active Directory entries for the cluster hostname. 10. In the Summary dialog box, verify that the configuration is successful. 11. Verify that the cluster quorum configuration is using Node and Disk Majority, using the appropriate drive that you configured as the quorum disk.
  • 19. 19 SQL SERVER 2012/2014 FAILOVER CLUSTER INSTANCE INSTALLATION - INSTALL PRIMARY (INITIAL) CLUSTER NODE Installing a SQL Server 2012/2014 Failover Clustered Instance requires that you have the appropriate permissions in your Active Directory domain and that you have local Administrator rights to the machines that will act as nodes in your failover cluster. Configuring the appropriate permissions in Active Directory is beyond the scope of this document. There are two options to install SQL Server 2012/2014 Failover Clustered Instance. The first one is by using the integrated failover cluster install with the Add Node option and the second one is the Advanced/Enterprise installation option. The process outlined below will take into account the first option and will be installing a DEFAULT instance. To install a SQL Server 2012/2014 failover clustered instance: 1. Run setup.exe from the installation media to launch SQL Server Installation Center. Click on the Installation link on the left-hand side. 2. Click on the New SQL Server Failover Cluster Installation link. This will run the SQL Server 2012/2014 Setup wizard.
  • 20. 20 3. In the Setup Support Rules dialog box, validate that the checks return successful results and click Next. 4. In the Product Key dialog box, enter the product key that came with your installation media and click Next.
  • 21. 21 5. In the License Terms dialog box, click the I accept the license terms check box and click Next.
  • 22. 22 6. In the Product Updates dialog box, you have the option to include SQL Server product updates like service packs and cumulative updates in the installation process. If your servers are connected to the Internet, the installation media will connect to Windows Update and check for available SQL Server 2012/2014 updates. You can opt to install the detected updates as part of the installation process. Click Next. 7. In the Setup Support Rules dialog box, validate that the checks return successful results. If the checks returned a few warnings, make sure you fix them before proceeding with the installation. Click Next.
  • 23. 23 8. In the Setup Role dialog box, select the SQL Server Feature Installation option and click Next. 9. In the Feature Selection dialog box, select the following components – Database Engine Services, SQL Server Replication, Client Tools Connectivity and Management Tools. Click Next. NOTE: Data Quality Services is now a requirement when installing the Database Engine Services on a Failover Cluster when the installation media includes SQL Server Service Pack 1 as per Microsoft KB article 2674817.
  • 24. 24 10. In the Feature Rules dialog box, verify that all the rules have passed. If the rules returned a few warnings, make sure you fix them before proceeding with the installation. Click Next. 11. In the Instance Configuration dialog box, enter the following details:  SQL Server Network Name: SQLCLUSTER2  Instance ID: MSSQLSERVER Click Next.
  • 25. 25 12. In the Disk Space Requirements dialog box, check that you have enough space on your local disks to install the SQL Server 2012/2014 binaries. Click Next. 13. In the Cluster Resource Group dialog box, check the resources available on your Windows Server Failover Cluster. This tells you that a new Resource Group will be created on your cluster for the SQL Server instance. To specify the SQL Server cluster resource group name, you can either use the drop-down box to specify an existing group to use or type the name of a new group to create it. Accept all the defaults and click Next.
  • 26. 26 14. In the Cluster Disk Selection dialog box, select the available disk groups that are on the cluster for SQL Server 2012/2014 to use. Click Next.
  • 27. 27 15. In the Cluster Network Configuration dialog box, enter the virtual IP address that your SQL Server 2012/2014 failover cluster will use. IP Type: IPv4 Address: 172.16.0.212 16. In the Server Configuration dialog box, use the following credentials for the SQL Server service accounts in the Service Accounts tab. Make sure that both the SQL Server Agent and SQL Server Database Engine services have a Startup Type of Manual. The Windows Server Failover Cluster will take care of stopping and starting the service. SQL Server Agent: TESTDOMAINsqlservice SQL Server Database Engine: TESTDOMAINsqlservice Click Next.
  • 28. 28 17. In the Database Engine Configuration dialog box, select Windows Authentication Mode in the Server Authentication tab. If you want to add the currently logged on user to be a part of the SQL Server administrators group, click the Add Current User button. Otherwise, you can add the appropriate domain accounts or security groups. In the Data Directories tab, enter the following Data root directory: E: User database directory: E:SQLSERVERMSSQLData User database log directory: F:SQLSERVERMSSQLData Temp DB directory: E:SQLSERVERMSSQLData Temp DB log directory: F:SQLSERVERMSSQLData Backup directory: H:SQLSERVERMSSQLBackup NOTE: New in SQL Server 2012/2014 is the option to store the tempdb database on a local drive instead of a clustered drive. Should you decide to do so, you will get prompted to make sure that all of the nodes in the cluster contain the same directory structure and that the SQL Server service account has read/write permissions on those folders.
  • 29. 29 Click Yes. Then, click Next. 18. In the Error and Usage Reporting dialog box, click Next. 19. In the Cluster Installation Rules dialog box, verify that all checks are successful. Click Next.
  • 30. 30 20. In the Ready to Install dialog box, verify that all configurations are correct. Click Next. 21. In the Complete dialog box, click Close. This concludes the installation of a SQL Server 2012/2014 Failover Clustered Instance.
  • 31. 31 SQL SERVER 2012/2014 FAILOVER CLUSTER INSTANCE INSTALLATION - INSTALL SECONDARY (FAILOVER) CLUSTER NODE Now that you have a working failover cluster, we will make it highly available by adding nodes. Most of the steps outlined below are similar to the ones when installing a failover clustered instance. While all the steps are still included, some screenshots have been omitted. To add a node to a SQL Server 2012/2014 failover clustered instance: 1. Run setup.exe from the installation media to launch SQL Server Installation Center. Click on the Installation link on the left-hand side. 2. Click on the Add node to a SQL Server failover cluster link. This will run the SQL Server 2012/2014 Setup wizard.
  • 32. 32 3. In the Setup Support Rules dialog box, validate that the checks return successful results and click OK. Click Next until you get to the Cluster Node Configuration dialog box. 4. In the Cluster Node Configuration dialog box, validate that the information on the existing SQL Server 2012/2014 cluster is correct. Click Next. 5. In the Service Accounts dialog box, verify that the information is the same as what you have used to configure the first node. Click Next. NOTE: If you used different service accounts for the SQL Server services, make sure you provided the correct credentials. If you noticed, the order of the services in this dialog box differs from when you are installing a failover clustered instance. 6. In the Error and Usage Reporting dialog box, click Next. 7. In the Add Node Rules dialog box, verify that all checks are successful and click Next.
  • 33. 33 8. In the Ready to Add Node dialog box, verify that all configurations are correct and click Install. 9. In the Complete dialog box, click Close. This concludes adding a node to a SQL Server 2012/2014 Failover Cluster. 10. Reboot both nodes after completing the installation just to be sure that there are no pending reboot operations that may possibly be flagged as a warning.