Muokkaa

Jaa


Configure a file share witness for Failover Clustering

When a cluster contains an even number of voting nodes, you should configure a witness. Adding a witness vote enables the cluster to continue running if half the cluster nodes simultaneously go down or are disconnected. A file share witness is a type of quorum witness that uses a Server Message Block (SMB) file share to maintain cluster information in a log file. This file share can be hosted on a server, USB storage, or Network Attached Storage (NAS).

The file share witness is also beneficial for multisite clusters with replicated storage.

You might use a file share witness when:

  • A Cloud Witness can't be used because your cluster nodes don't have a reliable internet connection or an internet connectivity.

  • A disk witness can't be used because there aren't any shared drives to use for a disk witness. For example, a Storage Spaces Direct cluster, SQL Server Always On Availability Groups (AG), or Exchange Database Availability Group (DAG). None of these types of clusters use shared disks.

For information about quorum configuration options, see Configure and manage quorum.

In this article, learn how-to configure a file share witness for your Failover Cluster.

Prerequisites

Before you can use a file share witness, you must have the following prerequisites in place:

  • The Failover Cluster feature must be installed and configured on your device. To learn more, see Install or Uninstall Roles, Role Services, or Features.

  • You have the Full Control permission on the Failover Cluster.

  • Administrative credentials to configure a file share on the witness device.

  • A device to host the file share witness supporting SMB 2 or later.

  • If you're using a non-domain joined device for the file share, your cluster must be running Windows Server 2019 or later.

  • The device hosting the file share witness must have a minimum of 5 MB of free space.

Warning

The use of Distributed File System (DFS) or replicated storage technologies isn't supported with failover clustering. DFS can cause a partition-in-space or partition-in-time, where the cluster nodes are running independently of each other and could cause data loss.

Configure the file share

When configuring a file share witness for the cluster quorum, the file share:

  • Must be dedicated to the single cluster and not used to store user or application data.

  • A single file server can be configured with multiple file shares to use as a witness for multiple clusters.

  • Should be physically separate from the cluster nodes or cluster sites. For example, consider the separation of network, power, rack, and rooms if necessary. Separation allows opportunity for cluster nodes or sites to survive if network communication between them is lost.

  • You can use a separate Failover Cluster for high availability of the file share.

The file share witness can be hosted on a domain-joined Windows device or a non-domain joined device, for example:

  • NAS devices.

  • Windows devices joined to a workgroup.

  • Routers with local USB storage.

The steps to configure the file share witness are different depending on the type of device hosting the file share. To create the file share, select the relevant tab for your scenario.

To configure the file share witness on a domain-joined Windows device, follow these steps:

Important

The SMB file share must be hosted on a Windows server joined to the same Active Directory forest as the cluster.

  1. Right-click Start, select Computer Management.

  2. In the Computer Management console, expand System Tools > Shared Folders.

  3. Right-click Shares, select New Share.

  4. On the Create A Shared Folder Wizard, select Next to begin.

  5. Enter the path to the folder that you want to share or select Browse to locate a folder, then select Next.

  6. Enter a name for the Share name, then select Change to configure the offline settings. Adding a description for the share is optional.

  7. Select No files or programs from the shared folder are available offline. Select OK, then select Next.

  8. Under Shared Folder Permissions, select Customize permissions, then select Custom.

  9. Select Everyone, then select Remove.

  10. Select Add, enter the name, or locate the Cluster Name Object (CNO) for the cluster or suitable Active Directory group containing the CNO. Then select OK.

  11. Select both Change and Read permissions.

  12. Select the Security tab, then select Advanced.

  13. In the Advanced Security Settings screen, under the Permissions tab, select Add.

  14. Under Basic permissions, select Modify, Read & execute, List folder contents, and Read. Then select OK.

  15. Confirm and configure any other folder permissions to meet your organization's requirements. Select OK for each dialog until you return to the Shared Folder Permissions screen.

  16. Select Finish to create the share.

Now you have a file share on a domain-joined Windows device with the necessary permissions per your organization. Proceed to the next step to configure the cluster quorum settings.

Configure the cluster quorum

You can configure the cluster quorum settings by using Failover Cluster Manager or the FailoverClusters PowerShell module.

To configure the cluster quorum to use a file share witness on a domain joined device using Failover Cluster Manager, follow these steps:

  1. In Server Manager, select Tools, then select Failover Cluster Manager.

  2. On the left pane, under Failover Cluster Manager, select the cluster that you want to configure.

  3. On the right pane, under Actions, select More Actions, and then select Configure Cluster Quorum Settings.

  4. Under the Configure Cluster Quorum Wizard, select Next.

  5. Under Select Quorum Configuration Option, select Select the quorum witness, then select Next.

  6. Under Select Quorum Witness, select Configure a file share witness, then select Next.

  7. Under Configure File Share Witness, type the file path location or select Browse, select Browse again and locate the file share to use as the witness resource. Then select Next.

  8. Under Confirmation, review your configuration and select Next.

  9. After the wizard runs, the Summary page appears. If you want to view a report of the tasks that the wizard performed, select View Report. Select Finish to complete your configuration.

Note

After you configure the cluster quorum, we recommend that you run the Validate Quorum Configuration test to verify the updated quorum settings.