Share via


Set-ClusterQuorum

Set-ClusterQuorum

Configure quorum options for a failover cluster.

Syntax

Set-ClusterQuorum [-InputObject <psobject>] [-Cluster <string>] [-DiskOnly <string>] [-NodeAndDiskMajority <string>] [-NodeAndFileShareMajority <string>] [-NodeMajority] [<CommonParameters>]
  • InputObject

  • Cluster

  • DiskOnly

  • NodeAndDiskMajority

  • NodeAndFileShareMajority

  • NodeMajority

Detailed Description

The quorum configuration in a failover cluster determines the number of failures that the cluster can sustain. If an additional failure occurs, the cluster must stop running. The relevant failures in this context are failures of nodes or, in some cases, of a disk witness (which contains a copy of the cluster configuration) or file share witness.

Parameters

Cluster

Specifies the name of the cluster to run this cmdlet on. If you type "-Cluster ." or omit the parameter, the cmdlet runs on the local cluster.

Default Value: **

Data Type: string

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

DiskOnly

Causes the cluster quorum to be set to disk only type. This is not recommended as it creates a single point of failure to the cluster.

Default Value: **

Data Type: string

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

InputObject

Specifies the cluster to change the quorum type on.

Default Value: **

Data Type: psobject

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

true (ByValue)

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

NodeAndDiskMajority

Causes the cluster quorum to be set to node and disk majority type. The name of the disk resource to be used as the disk witness is expected with this parameter.

Default Value: **

Data Type: string

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

NodeAndFileShareMajority

Causes the cluster quorum to be set to node and file share majority type. The path to the file share to be used as the file share witness is expected with this parameter.

Default Value: **

Data Type: string

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

true

required

Variable Length?

false

variableLength

NodeMajority

Causes the cluster quorum to be set to node majority type.

Default Value: **

Data Type: SwitchParameter

Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Accept wildcard characters?

false

globbing

Accept Pipeline Input?

false

pipelineInput

Position?

named

position

Value Attributes

Name Value PSMAML Attribute

Required?

false

required

Variable Length?

false

variableLength

Input Type

Microsoft.FailoverClusters.PowerShell.Cluster

Return Type

Microsoft.FailoverClusters.PowerShell.ClusterQuorumSettings

Examples

-------------------------- EXAMPLE 1 --------------------------

Command Prompt: C:\PS>

 
Set-ClusterQuorum -NodeMajority 
 
Cluster                    QuorumResource                  QuorumType 
-------                    --------------                  ---------- 
cluster1                                                 NodeMajority

Description

-----------

This command changes the quorum configuration to Node Majority on the local cluster.

 

-------------------------- EXAMPLE 2 --------------------------

Command Prompt: C:\PS>

 
Set-ClusterQuorum -NodeAndDiskMajority "Cluster Disk 7" 
 
Cluster                    QuorumResource                  QuorumType 
-------                    --------------                  ---------- 
cluster1                   Cluster Disk 7         NodeAndDiskMajority

Description

-----------

This command changes the quorum configuration to Node and Disk Majority on the local cluster, using Cluster Disk 7 for the disk witness.

 

-------------------------- EXAMPLE 3 --------------------------

Command Prompt: C:\PS>

 
Set-ClusterQuorum -NodeAndFileShareMajority \\fileserver\fsw 
 
Cluster               QuorumResource                       QuorumType 
-------               --------------                       ---------- 
cluster1              File Share Witness     NodeAndFileShareMajority

Description

-----------

This command changes the quorum configuration to Node and File Share Majority on the local cluster, using \\fileserver\fsw for the file share witness.

See Also

Reference

Get-ClusterQuorum

Other Resources

Online version: