Windows Availability

Number of Nodes

Each cluster uses the concept of a "quorum node set" to determine which nodes control the cluster.
In simple terms this means that we need an odd number of participants in any "quorum vote" to ensure that one quorum node set can win that vote.
In a cluster with an even number of nodes we can use a "witness" (a shared disk or a file share) to meet that requirement.
We can avoid this by using an odd number of voting nodes.  

In a scenario where we use the cluster as the basis for a SQL Server AlwaysOn Availability Group, make sure to understand the license and storage implications of your choices.

Note that we can control whether a node has a vote.
A four node cluster with only three voting nodes is possible, as is a three node cluster with two voting nodes and a witness.

Enable Failover Clustering

Windows 2012

Server Manager - Manage - Add Roles and Features

Alternate PowerShell Method

You can install WSFC using...

Install-WindowsFeature -Name Failover-Clustering –IncludeManagementTools - restart

The server will reboot automatically after installation is complete

Validate Configuration

List Fibre Channel Host Bus AdaptersList iSCSI Host Bus AdaptersList SAS Host Bus AdaptersList BIOS InformationList Environment VariablesList Memory InformationList Operating System InformationList Plug and Play DevicesList Running ProcessesList Services InformationList Software UpdatesList System DriversList System InformationList Unsigned DriversList Network Binding Order
Validate Cluster Network ConfigurationValidate IP ConfigurationValidate Network CommunicationValidate Windows Firewall ConfigurationValidate Active Directory ConfigurationValidate All Drivers SignedValidate Memory Dump SettingsValidate Operating System EditionValidate Operating System Installation OptionValidate Operating System VersionValidate Required ServicesValidate Same Processor ArchitectureValidate Service Pack LevelsValidate Software Update Levels
View the report and review/correct warnings and errors, but DO NOT click Finish yet.

Common Errors

The errors below are fine for our test scenario. But, you may want to consider addressing this for a production environment...

The errors below are due to my test domain consisting of VirtualBox virtual servers...

Create Cluster

Validate Configuration








We know about the Network and System Configuration warnings... they are the common errors documented earlier on this page. The one that interests us now is the Cluster Configuration warning...

Note that if your cluster has an odd number of nodes we would not expect to encounter this scenario (because an odd number of nodes do not need an additional vote to achieve a quorum).

Connect to Cluster

Before we can continue (to correct issues or otherwise) we need to connect to the cluster...

Cluster Quorum Configuration

File Share Witness

In this example we are going to use a File Share from our Domain Controller (DC01). 

Think long and hard before you use a production Domain Controller for anything other than being a Domain Controller. In this case there are only three machines in MYDOMAIN (SQL01, SQL02 and DC01). Alternatives are: to use a share from my VirtualBox host, or add another server to the domain.On DC01 I did this...mkdir C:\Quorumnet share quorum /GRANT:MYDOMAIN\Administrator,full
(Failover Cluster Manager should automatically add these, assuming the administrative account your are using to configure this already has permissions on the file share).

PowerShell

Quorum configuration can also be handled using PowerShell...

Get-ClusterQuorum

Set-ClusterQuorum -NodeMajority

Set-ClusterQuorum -NodeAndFileShareMajority \\myserver\myshare

To check vote settings...

Get-ClusterNode | fl NodeName, NodeWeight

To change vote settings...

Get-ClusterNode "MYNODE3").NodeWeight=0

The above sets MYNODE3 to not have a vote. Use 1 to set it so it does have a vote.

Next Steps

Bibliography