Applies To: SQL Server 2014, SQL Server 2016 Preview
If the Windows Server Failover Clustering (WSFC) node that hosts an instance of SQL Server that is enabled for AlwaysOn Availability Groups has WSFC quorum, sys.dm_hadr_cluster returns a row that exposes the cluster name and information about the quorum. If the WSFC node has no quorum, no row is returned.
Applies to: SQL Server (SQL Server 2012 through current version).
Beginning in SQL Server 2014, this dynamic management view supports AlwaysOn Failover Cluster Instances in addition to AlwaysOn Availability Groups.
Name of the WSFC cluster that hosts the instances of SQL Server that are enabled for AlwaysOn Availability Groups.
Type of quorum used by this WSFC cluster, one of:
0 = Node Majority. This quorum configuration can sustain failures of half the nodes (rounding up) minus one. For example, on a seven node cluster, this quorum configuration can sustain three node failures.
1 = Node and Disk Majority. If the disk witness remains on line, this quorum configuration can sustain failures of half the nodes (rounding up). For example, a six node cluster in which the disk witness is online could sustain three node failures. If the disk witness goes offline or fails, this quorum configuration can sustain failures of half the nodes (rounding up) minus one. For example, a six node cluster with a failed disk witness could sustain two (3-1=2) node failures.
2 = Node and File Share Majority. This quorum configuration works in a similar way to Node and Disk Majority, but uses a file-share witness instead of a disk witness.
3 = No Majority: Disk Only. If the quorum disk is online, this quorum configuration can sustain failures of all nodes except one.
Description of quorum_type, one of:
State of the WSFC quorum, one of:
0 = Unknown quorum state
1 = Normal quorum
2 = Forced quorum
Description of quorum_state, one of:
Requires VIEW SERVER STATE permission on the server.