Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 4.33 KB

sys-dm-hadr-cluster-transact-sql.md

File metadata and controls

54 lines (43 loc) · 4.33 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sys.dm_hadr_cluster (Transact-SQL)
Returns a row that exposes the cluster name and information about the quorum. If the WSFC node has no quorum, no row is returned.
rwestMSFT
randolphwest
10/17/2023
sql
system-objects
reference
sys.dm_hadr_cluster
dm_hadr_cluster_HADR
sys.dm_hadr_cluster_TSQL
dm_hadr_cluster
Availability Groups [SQL Server], monitoring
sys.dm_hadr_cluster catalog view
Availability Groups [SQL Server], WSFC clusters
TSQL

sys.dm_hadr_cluster (Transact-SQL)

[!INCLUDE SQL Server]

If the Windows Server Failover Clustering (WSFC) node that hosts an instance of [!INCLUDE ssNoVersion] that is enabled for [!INCLUDE ssHADR] 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.

Tip

Beginning in [!INCLUDE ssSQL14], this dynamic management view supports failover cluster instances (FCIs) in addition to availability groups (AGs).

Column name Data type Description
cluster_name nvarchar(128) Name of the WSFC cluster that hosts the instances of [!INCLUDE ssNoVersion] that are enabled for [!INCLUDE ssHADR].
quorum_type tinyint 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.

4 = Unknown Quorum. Unknown Quorum for the cluster.

5 = Cloud Witness. Cluster utilizes Microsoft Azure for quorum arbitration. If the cloud witness is available, the cluster can sustain the failure of half the nodes (rounding up).
quorum_type_desc varchar(50) Description of quorum_type, one of:

NODE_MAJORITY
NODE_AND_DISK_MAJORITY
NODE_AND_FILE_SHARE_MAJORITY
NO_MAJORITY:_DISK_ONLY
UNKNOWN_QUORUM
CLOUD_WITNESS
quorum_state tinyint State of the WSFC quorum, one of:

0 = Unknown quorum state
1 = Normal quorum
2 = Forced quorum
quorum_state_desc varchar(50) Description of quorum_state, one of:

UNKNOWN_QUORUM_STATE
NORMAL_QUORUM
FORCED_QUORUM

Remarks

[!INCLUDE dmv-cluster-column-display]

Permissions

For [!INCLUDE sssql19-md] and previous versions, requires VIEW SERVER STATE permission on the server.

For [!INCLUDE sssql22-md] and later versions, requires VIEW SERVER PERFORMANCE STATE permission on the server.

Related content