Set-ClusterQuorum
Set-ClusterQuorum
Configures quorum options for a failover cluster.
構文
Parameter Set: InputObject
Set-ClusterQuorum [-Cluster <String> ] [-DiskOnly <String> ] [-DiskWitness <String> ] [-FileShareWitness <String> ] [-InputObject <PSObject> ] [-NoWitness] [ <CommonParameters>]
詳細説明
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.
パラメーター
-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.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
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.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
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.
エイリアス |
NodeAndDiskMajority |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
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.
エイリアス |
NodeAndFileShareMajority |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-InputObject<PSObject>
Specifies the cluster on which to change the quorum type.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-NoWitness
Indicates that the cmdlet sets the cluster quorum to the Node Majority type.
エイリアス |
NodeMajority |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
- Microsoft.FailoverClusters.PowerShell.Cluster
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- Microsoft.FailoverClusters.PowerShell.ClusterQuorumSettings
例
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