Windows file share witness (FSW)
What is a Windows file share witness?
A Windows file share witness is a file share that is available to all nodes in a high-availability cluster. The job of the witness is to provide an additional quorum vote when necessary to ensure a cluster continues to run in the event of a site outage.
A file share witness is most used when a high availability cluster spans two or more data center sites and when there is an even number of total nodes. In high-availability clustering, a common strategy to ensure surviving nodes continue to run or take over the work of failed nodes is to employ a quorum system. The quorum system gives every node a "vote." Cluster operations can only continue if most nodes are available. This ensures that the remaining nodes aren't overloaded. If a quorum cannot be met, cluster operations will cease.
Consider the example of a four-node cluster with two nodes at each site. If one site experiences an outage, the remaining two nodes might be capable of carrying on but would not have a quorum due to having two of four possible votes.
The theory behind a file share witness is to employ a third party -- usually located in a third physical location -- to serve as an additional vote so a quorum can be reached and cluster operations can continue to run.
For example, if one site fails, the file share witness located in a third location can confirm the operation of the remaining two nodes and cast a third vote to reach a quorum.
Another example might include a scenario in which network connectivity between cluster locations is disrupted. In this situation, all cluster nodes are capable of functioning but should not continue to work independently.
In this case, both sites would have independent connections to the file share witness. If connectivity between the two data center sites fails, the nodes at one site would query the file share witness to attempt to reach a quorum.
If a quorum can be reached, those nodes can continue cluster operations. In this case, whichever group of nodes first queries the file share system and reaches a quorum continues to run while the other nodes stop cluster operations.
A file share witness is like a cluster quorum disk but does not store cluster configuration data. However, the file share does include information about which version of the cluster configuration database is most current.