Windows Server 2019

Configuring Windows Server 2019 Storage Spaces Direct S2D in VMware vSphere

A look at Configuring Windows Server 2019 Storage Spaces Direct S2D in VMware vSphere including installing and initial storage spaces direct configuration

Software defined storage today is one of the hottest and most desired technology solutions in the enterprise datacenter. Most organizations are looking very seriously at software defined storage solutions as opposed to refreshing SAN storage devices in the next refresh cycle. Why is this? Software defined storage provides exceptional features and functionality that generally allow businesses today to not be tied to a specific hardware vendor for features and functionality as has traditionally been the case. With the release of Windows Server 2019 (in a state of non release due to retraction from Microsoft with reported issues), the latest version of Storage Spaces Direct is now available. Storage Spaces Direct or S2D is Microsoft’s software-defined stoage solution that allows using commodity directly attached storage to be used as production storage for Hyper-V and other infrastructure technologies. In this post, we will take a look at Configuring Windows Server 2019 Storage Spaces Direct S2D in VMware vSphere to see how S2D is configured and how this can be done inside of VMware virtual machines for lab purposes.

Configuring Windows Server 2019 Storage Spaces Direct S2D Lab Setup

To begin with, let me give you an overview of the VMware vSphere lab itself that is being used as well as the Windows Server 2019 variant used in testing.ย  In the home lab, I am running VMware vSphere 6.7 (waiting on U1).ย  Windows Server 2019 has been installed in three VMware virtual machines each with (3) 10 gig disks for provisioning to use in the S2D configuration.ย  Prior to the recall of sorts on the current Windows Server 2019 binaries, I had downloaded the ISO and had built a 3-node Hyper-V cluster using the GA release. However, I received the following error when attempting to enable S2D on the cluster.

Windows-Server-2019-GA-Storage-Spaces-Direct-Error-installing-on-non-validated-hardware
Windows Server 2019 GA Storage Spaces Direct Error installing on non validated hardware

Microsoft supposedly has a registry key that will allow storage spaces direct to be installed regardless of the compatibility with the product. At the time of this writing however, I do not have my hands on the registry key to allow the installation to move forward. Microsoft however, plainly states the Insider versions of the Server OS do allow installing S2D on non-supported hardware. I did find this to be true as backing back down to the 17744 build release on each of the three cluster nodes of the Insider preview did allow me to run the Enable-Clusters2d command.

Highlights:

Configuring Windows Server 2019 Storage Spaces Direct S2D in VMware vSphere

Below, I will run through the steps to get Storage Spaces Direct up and running and in a configured state so you are ready to begin carving out storage for your virtual machines running on top of your S2D cluster.ย  As a disclaimer here, I closely followed the steps found on Virtualtothecore blog with a few little changes for my environment.ย  I am continuing to play with the commands to see what is needed in Windows Server 2019 and what may not be needed for this to work in a VMware virtual machine.

The first thing we need to do is install the Windows features needed forย Failover Clusteringย andย Hyper-V, since our cluster will be intended for use as a Hyper-V cluster running on top of Storage Spaces Direct.

Install-required-Windows-Features-for-Failover-Clustering-and-Hyper-V
Install required Windows Features for, Failover Clustering and Hyper-V

After rebooting the hosts after installing the Windows features/roles we need, we can now create the cluster itself.ย  From PowerShell, this is as simple as running theย New-Cluster command, naming the cluster, and then providing the hosts that will be members.ย  Also, we provide the IP address assigned to the Cluster name.

New-Cluster -Name S2Dcluster -Node hyper19-01.cloud.local, hyper19-02.cloud.local, hyper19-03.cloud.local -NoStorage -StaticAddress 10.1.149.190
Creating-a-new-Windows-Server-2019-cluster-for-creating-a-Storage-Spaces-Direct-cluster
Creating a new Windows Server 2019 cluster for creating a Storage Spaces Direct cluster

To check and see whether the disks we have provisioned to the servers are available toย pool, we can run theย Get-Physicaldiskย cmdlet to check the status of the disks.

Checking-Windows-disks-to-see-if-they-can-be-used-with-Storage-Spaces-Direct-pooling
Checking Windows disks to see if they can be used with Storage Spaces Direct pooling

To actually enable the Storage Spaces Direct functionality on the cluster, we run the following command:

Enable-Clusters2d -cachestate disabled -autoconfig:0 -skipeligibilitychecks
Running-the-enable-clusters2d-command-on-the-cluster
Running the enable-clusters2d command on the cluster

The configuration process begins on the cluster.

Windows-Server-2019-Storage-Spaces-Direct-configuration-begins-on-the-cluster
Windows Server 2019 Storage Spaces Direct configuration begins on the cluster

You should see the command finish without error.ย  There is a log file that gets created covering the process found atย C:WindowsClusterReportsEnableClusterS2D.

Windows-Server-2019-Storage-Spaces-Direct-cluster-configured-successfully
Windows Server 2019 Storage Spaces Direct cluster configured successfully

The next step is to create the Storage Pool.ย  The Storage Pool is the raw storage that we can create virtual disks from.

New-StoragePool -StorageSubSystemFriendlyName *Cluster* -FriendlyName S2D -ProvisioningTypeDefault Fixed -PhysicalDisk (Get-PhysicalDisk | ? CanPool -eq $true)
Creating-a-new-Storage-Pool-in-Windows-Server-2019-Storage-Spaces-Direct
Creating a new Storage Pool in Windows Server 2019 Storage Spaces Direct

To visually manage the new Storage Pool, you can launch Server Manager, click the Cluster name, navigate toย Storage Pools and you should see the Storage Pool created in the step above.

Windows-Server-2019-Storage-Spaces-Direct-Storage-Pool-Ready-for-Configuration
Windows Server 2019 Storage Spaces Direct Storage Pool Ready for Configuration

Takeaways

The process ofย Configuring Windows Server 2019 Storage Spaces Direct S2D in VMware vSphere was simpler that I thought it would be as I expected to see errors or other unexplained behavior.ย  I had tried this once before in Windows Server 2016 cluster hosts and ran into a few odditites that I was never able to get around with the time I had to play around with it.ย  It looks like however, in Windows Server 2019, these issues are no longer present.ย  One thing to emphasize again, this is the Insiders Preview release build 17744 that was used in the post.ย  Hopefully the registry key that will allow using the GA release will be published so we can hack away with the GA release, once it is re-released.ย  Stay tuned for more Storage Spaces Direct information, configuration, and labbing.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.