Users Guide
15–Windows Server 2016
配置 Storage Spaces Direct
274 AH0054602-05 M
步骤 2. 创建群集
创建步骤 1. 运行群集验证工具中具有四个节点的群集 (群集创建已验证)。
要创建群集,请发出以下 Windows PowerShell 命令。
New-Cluster -Name <ClusterName> -Node <MachineName1, MachineName2,
MachineName3, MachineName4> -NoStorage
–NoStorage
参数是必需的。如果未包括该参数,磁盘将自动添加到群集,您必须
移除磁盘,然后才能启用 Storage Spaces Direct。否则,磁盘将不包括在 Storage
Spaces Direct 存储池中。
步骤 3. 配置群集见证
您应该配置群集的见证,以使该四节点系统能够承受两个节点发生故障或脱机。对
于这些系统,您可配置文件共享见证或云见证。
有关详细信息,请访问:
https://docs.microsoft.com/en-us/windows-server/failover-clustering/manage-clust
er-quorum
步骤 4. 清理用于 Storage Spaces Direct 的磁盘
旨在用于 Storage Spaces Direct 的磁盘必须为空,且不带分区或其他数据。如果
磁盘有分区或其他数据,该磁盘将不会包括在 Storage Spaces Direct 系统中。
可在 Windows PowerShell 脚本 (
.PS1) 文件中放入以下 Windows PowerShell 命
令,并从管理系统打开的 Windows PowerShell (或 Windows PowerShell ISE)
控制台以管理员权限执行。
icm (Get-Cluster -Name HCNanoUSClu3 | Get-ClusterNode) {
Update-StorageProviderCache
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
注
运行此脚本可帮助识别每个节点上可用于 Storage Spaces Direct 的磁盘,
并从这些磁盘移除所有数据和分区。