forked from dsccommunity/FailoverClusterDsc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3-SetQuorumToNodeAndFileShareMajority.ps1
More file actions
30 lines (26 loc) · 1.1 KB
/
3-SetQuorumToNodeAndFileShareMajority.ps1
File metadata and controls
30 lines (26 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<#
.EXAMPLE
This example shows how to set the quorum in a failover cluster to use
node and file share majority.
This example assumes the failover cluster is already present.
This example also assumes that path \\witness.company.local\witness$ is already
present and has the right permission to be used by the cluster.
Either the user running the configuration or the Cluster Name Object (CNO)
should have full control on the share to be able to create the witness folder
and set the permissions. More than one cluster can use the same share.
Here is a link for setting up the high availability for the file share witness
https://blogs.msdn.microsoft.com/clustering/2014/03/31/configuring-a-file-share-witness-on-a-scale-out-file-server/
#>
Configuration Example
{
Import-DscResource -ModuleName xFailOverCluster
Node localhost
{
xClusterQuorum 'SetQuorumToNodeAndDiskMajority'
{
IsSingleInstance = 'Yes'
Type = 'NodeAndFileShareMajority'
Resource = '\\witness.company.local\witness$'
}
}
}