Users Guide

15–Windows Server 2016
Configuring Storage Spaces Direct
278 AH0054602-00 M
Get-StoragePool |? IsPrimordial -eq $false | Set-StoragePool
-IsReadOnly:$false -ErrorAction SilentlyContinue
Get-StoragePool |? IsPrimordial -eq $false | Get-VirtualDisk |
Remove-VirtualDisk -Confirm:$false -ErrorAction SilentlyContinue
Get-StoragePool |? IsPrimordial -eq $false | Remove-StoragePool
-Confirm:$false -ErrorAction SilentlyContinue
Get-PhysicalDisk | Reset-PhysicalDisk -ErrorAction
SilentlyContinue
Get-Disk |? Number -ne $null |? IsBoot -ne $true |? IsSystem -ne
$true |? PartitionStyle -ne RAW |% {
$_ | Set-Disk -isoffline:$false
$_ | Set-Disk -isreadonly:$false
$_ | Clear-Disk -RemoveData -RemoveOEM -Confirm:$false
$_ | Set-Disk -isreadonly:$true
$_ | Set-Disk -isoffline:$true
}
Get-Disk |? Number -ne $null |? IsBoot -ne $true |? IsSystem -ne
$true |? PartitionStyle -eq RAW | Group -NoElement -Property
FriendlyName
} | Sort -Property PsComputerName,Count
Step 5. Enabling Storage Spaces Direct
After creating the cluster, issue the Enable-ClusterS2D Windows PowerShell
cmdlet. The cmdlet places the storage system into the Storage Spaces Direct
mode and automatically does the following:
Creates a single, large pool that has a name such as S2D on Cluster1.
Configures a Storage Spaces Direct cache. If there is more than one media
type available for Storage Spaces Direct use, it configures the most efficient
type as cache devices (in most cases, read and write).
Creates two tiers—Capacity and Performance—as default tiers. The
cmdlet analyzes the devices and configures each tier with the mix of device
types and resiliency.
Step 6. Creating Virtual Disks
If the Storage Spaces Direct was enabled, it creates a single pool using all of the
disks. It also names the pool (for example S2D on Cluster1), with the name of the
cluster that is specified in the name.