储存空间直接指导


12

我最近出于PoC目的在4x DL380 G7上部署了WS2016 DC。每个服务器都有4个300GB 10K SAS驱动器,此外,我还有几个Intel SSD,可以从公司临时借用。我的主要目标是测试不同的存储副本“模式”,并在Storage Spaces Direct的顶部部署横向扩展文件服务器角色。

大约一个月前,我很难在不同的硬件配置(2台Supermicro服务器)上部署2节点存储空间直通。老实说,安装过程远非“简单”。WinRM出现问题,当我尝试“ -Enable-ClusterS2D”时出现“不受支持的总线类型”错误,后来当我尝试创建新的分层空间时出现了一些问题。

本质上,我正在寻找有关如何使用Powershell在4节点环境中设置Storage Spaces Direct的最新指南。弹性类型并不重要,因为我想测试不同的弹性设置。

谢谢您的帮助!

Answers:


11

简而言之,部署顺序如下:

  1. 部署必要的WS角色和功能
  2. 验证故障转移群集
  3. 创建故障转移群集
  4. 启用直接存储空间

-EnableStorageS2D

  1. 创建和配置存储池

输入示例:

New-StoragePool -StorageSubSystemName #CLUSTER_NAME# -FriendlyName #POOL_NAME# -WriteCacheSizeDefault 0 -ProvisioningTypeDefault Fixed -ResiliencySettingNameDefault Simple -PhysicalDisk (Get-StorageSubSystem -Name #CLUSTER_NAME# | Get-PhysicalDisk)

  1. 创建和配置虚拟磁盘

输入示例:

New-Volume -StoragePoolFriendlyName #POOL_NAME# -FriendlyName #VD_NAME# -PhysicalDiskRedundancy 2 -FileSystem CSVFS_REFS –Size 100GB

  1. 部署SOFS
  2. 创建文件共享就是这样!

这是我发现有帮助的两篇文章:

链接1 https://www.starwindsoftware.com/blog/microsoft-storage-spaces-direct-4-node-setup-2

链接2 https://technet.microsoft.com/zh-cn/windows-server-docs/storage/storage-spaces/hyper-converged-solution-using-storage-spaces-direct


2
我已按照您提供的指导配置了Storage Spaces Direct,现在将部署SOFS进一步测试此设置。感谢您的协助!
威廉

2
三思而后行:2节点S2D缺少本地重建代码支持,并且仅做双向镜像。TL; DR:第二个节点修补程序重新引导期间磁盘故障将使您的群集关闭。而且性能也不是那么好:没有DRAM回写缓存,并且CSV是只读的。
BaronSamedi1958 '17

对于理想的POC可能仍然足够好。
TomTom

4

我当前用于评估Storage Spaces Direct的脚本

# windows server installation
Install-WindowsFeature Hyper-V, Data-Center-Bridging, Failover-Clustering, RSAT-Clustering-Powershell, Hyper-V-PowerShell -IncludeManagementTools

# before creating cluster set correct MediaType for all disks
#note before setting MediaType disks have to be assigned to a Storage Pool which can be deleted right after setting
Get-Physicaldisk | where size -gt 506870912000 | Set-PhysicalDisk MediaType HDD

# Create the cluster
New-Cluster -Name w16hyper -Node w16hyper1, w16hyper2, w16hyper3 -NoStorage -StaticAddress 192.168.2.100

# hack to use RAID cards as JBOD
(Get-Cluster).S2DBusTypes=0x100

Enable-ClusterStorageSpacesDirect -CacheState Disabled

Get-StorageSubSystem Cluster*
Get-StorageSubSystem Cluster* | Get-Volume

#statistics
Get-StorageSubSystem Cluster* | Get-StorageHealthReport

#jobs running on background (eg. rebuild)
Get-StorageJob | ? JobState -Eq Running

#status
Get-StoragePool S2D* | Get-PhysicalDisk | Group OperationalStatus -NoElement
Get-StoragePool S2D* | Get-PhysicalDisk | Sort Model, OperationalStatus

#get log info
Get-StorageSubSystem Cluster* | Debug-StorageSubSystem

Get-VirtualDisk
Get-PhysicalDisk -Usage Retired

#create new mirrored volume (survive 1 fail for 2node system, 2 simultaneous fails for more nodes)
New-Volume -FriendlyName "Volume A" -FileSystem CSVFS_ReFS -StoragePoolFriendlyName S* -Size 1TB

#create hybrid volume (mirror + parity) with recommended 10% mirror part size
New-Volume -FriendlyName "Volume A" -FileSystem CSVFS_ReFS -StoragePoolFriendlyName S* -StorageTierFriendlyNames Performance, Capacity -StorageTierSizes 100GB, 900GB

#cleanup (pool has to be deleted on each node)
Disable-ClusterStorageSpacesDirect
Get-StoragePool S2D* | Set-StoragePool -IsReadOnly $false
Get-StoragePool S2D* | Remove-StoragePool
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.