Users Guide
15–Windows Server 2016
配置 Storage Spaces Direct
275 AH0054602-05 M
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
步骤 5. 启用 Storage Spaces Direct
创建群集后,使用 Enable-ClusterStorageSpacesDirect Windows
PowerShell cmdlet。该 cmdlet 会将存储系统置于 Storage Spaces Direct 模式并
自动执行以下操作:
创建一个名如 S2D on Cluster1 的大型池。
配置 Storage Spaces Direct 高速缓存。如果有多种介质类型可供 Storage Spaces
Direct 使用,它会配置最有效的类型作为高速缓存设备 (在大多数情况下,读取和
写入)。
创建两个层作为默认层:Capacity (容量)和 Performance (性能)。该 cmdlet
会分析设备并以混合的设备类型和弹性配置每个层。
步骤 6. 创建虚拟磁盘
如果 Storage Spaces Direct 已启用,它会使用所有磁盘创建一个池。它还会命名
该池 (例如 S2D on Cluster1),并在名称中指定群集名称。
以下 Windows PowerShell 命令在存储池上创建具有镜像和奇偶校验弹性的虚拟磁
盘:
New-Volume -StoragePoolFriendlyName "S2D*" -FriendlyName
<VirtualDiskName> -FileSystem CSVFS_ReFS -StorageTierfriendlyNames
Capacity,Performance -StorageTierSizes <Size of capacity tier in
size units, example: 800GB>, <Size of Performance tier in size
units, example: 80GB> -CimSession <ClusterName>