Set-ClusterQuorum

Set-ClusterQuorum

Configures quorum options for a failover cluster.

Sintaxis

Parameter Set: InputObject
Set-ClusterQuorum [-Cluster <String> ] [-DiskOnly <String> ] [-DiskWitness <String> ] [-FileShareWitness <String> ] [-InputObject <PSObject> ] [-NoWitness] [ <CommonParameters>]

Descripción detallada

The Set-ClusterQuorum cmdlet configures quorum options for a failover cluster. 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.

Parámetros

-Cluster<String>

Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is . or it is omitted, then the cmdlet runs on the local cluster.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-DiskOnly<String>

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

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-DiskWitness<String>

Specifies the name of the disk resource that the cluster quorum uses as the disk witness. Specifying this parameter sets the cluster quorum to the Node and Disk Majority type.

Alias

NodeAndDiskMajority

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-FileShareWitness<String>

Specifies the path of the file share that the cluster quorum uses as the file witness. Specifying this parameter sets the cluster quorum to the Node and File Share Majority type.

Alias

NodeAndFileShareMajority

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-InputObject<PSObject>

Specifies the cluster on which to change the quorum type.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

-NoWitness

Indicates that the cmdlet sets the cluster quorum to the Node Majority type.

Alias

NodeMajority

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • Microsoft.FailoverClusters.PowerShell.Cluster

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.FailoverClusters.PowerShell.ClusterQuorumSettings

Ejemplos

Example 1

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

PS C:\> Set-ClusterQuorum -NodeMajority

Example 2

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

PS C:\> Set-ClusterQuorum -NodeAndDiskMajority "Cluster Disk 7"

Example 3

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

PS C:\> Set-ClusterQuorum -NodeAndFileShareMajority \\fileserver\fsw

Temas relacionados

Get-ClusterQuorum