Configure File Share Witness with USB Thumb Drive On #WindowsServer

3 Min. Read

In this article, we will show you how to configure file share witness with USB Thumb Drive on Windows Server 2019 and later.

Introduction

In Windows Server 2016, Microsoft added a new type of storage called Storage Spaces Direct (aka S2D). S2D enables building highly available storage systems with locally attached disks, and without the need to have any external SAS fabric such as shared JBODs or enclosures. This is the first true Software-Defined Storage (SDS) from Microsoft. Software-defined storage is a concept that involves storing data without dedicated hardware.

In June 2018, Microsoft made a big announcement for Storage Spaces Direct that will be shipped in Windows Server 2019. One of the announcements was to bring two-node at the edge, and the idea here is with any two-node cluster, whether it is running Windows, Nutanix, VMware, or anything else, any two-node cluster needs some kind of a quorum solution; it needs a tie-breaker to achieve quorum and guarantee high availability.

Note: Storage Spaces Direct was renamed Azure Stack HCI, and Azure Stack HCI was recently renamed Azure Local. Azure Local is a full-stack infrastructure software that runs directly on bare metal hardware and is validated by OEM partners. With it, you can run containers, virtual machines, and some Azure services at distributed locations with central management from the cloud, enabled by Azure Arc.

Microsoft did a great job in the previous release of Windows Server. You can use File Share Witness or Cloud Witness by leveraging Azure Blob Storage for a quorum. However, File Share Witness requires another Windows server to be available in the environment, and Cloud Witness requires Internet access. So what about scenarios with branch offices and retail stores without Internet access to the cloud, and no other Windows infrastructure to provide a file share?

For these scenarios, Microsoft introduced, starting with Windows Server 2019, a new witness solution called “USB Witness” by leveraging a simple USB Thumb Drive as the witness! This makes Windows Server 2019, 2022, and 2025 Hyper-Converged a great platform to deliver a true two-node cluster without the Internet, another server, and even Active Directory.

Prerequisites

Before we start configuring file share witness with a USB Thumb Drive, we have a couple of small requirements that we need to look at:

1) Router, Switch, NAS:

  • You can use any router, switch, or even NAS storage from any major vendor, such as QNAP and Synology.
  • Need to have a USB port.
  • Need to have SMB 2 or SMB 3 support. SMB 1 is not supported. It’s also worth mentioning to remove and uninstall SMB version 1.0 if you are still using it. The original SMB 1 protocol is nearly 30 years old, and like much of the software made in the ’80s, it was designed for a world that no longer exists!

2) USB Thumb Drive:

  • Any USB storage size will work.
  • You can use the cheapest USB thumb drive that you can find.

For this example, we use a modern home office router with USB and SMB 2 support.

Configure File Share Witness with USB Thumb Drive On #WindowsServer 1

How it works

Insert the USB thumb drive into the USB port on your router.

Configure File Share Witness with USB Thumb Drive On #WindowsServer 2

Use the router’s UI to configure the share name, username, and password for access.

Configure File Share Witness with USB Thumb Drive On #WindowsServer 3

And finally, login to any member node of the cluster and run the following PowerShell command:

Set-ClusterQuorum -FileShareWitness \\172.16.20.152\USBDisk1 -Credential $(Get-Credential)

Configure File Share Witness with USB Thumb Drive On #WindowsServer 4

If you open Failover Cluster Manager (FCM), you can see the File Share Witness is Online.

Configure File Share Witness with USB Thumb Drive On #WindowsServer 5

When you navigate to your File Share Witness share on the USB disk, you will see a folder created for your Cluster, which contains two files:

1) The VerifyShareWitnessAccess.txt text file, to verify the write access to the share from each cluster node.

2) The Witness.log is under 1 KB in size and contains the membership information for the Cluster.

Configure File Share Witness with USB Thumb Drive On #WindowsServer 6

You have now successfully configured a File Share Witness on a USB Thumb Drive for the cluster hosting your workloads.

And that’s it. Enjoy Windows Server 2019!

__
Thank you for reading our blog.

If you have any questions or feedback, please leave a comment.

-Charbel Nemnom-

Previous

My Home Office Workplace 2018 – How Does Yours Look Like? #ModernWorkplace #HomeOffice

Optimize ReFS Performance with System Center Data Protection Manager? #WindowsServer #ReFS #SCDPM #DPM

Next

Let us know what you think, or ask a question...