了解 Windows 服务器存储空间物理磁盘冗余如何工作取决于其配置位置

了解 Windows 服务器存储空间物理磁盘冗余如何工作取决于其配置位置

我的任务是配置 Windows 服务器以使用以下磁盘的分层存储

  • 4 个 900 GB SSD
  • 10 个 2.2TB HDD

SSD 层将使用具有 1 个冗余磁盘的奇偶校验进行配置,而 HHD 层将使用具有 2 个冗余磁盘的奇偶校验进行配置。

通过 powershell 配置时,我发现可以在两点设置物理磁盘冗余,即在创建存储层时和在创建虚拟磁盘时再次设置。

我想了解这个设置在这两点上的影响,以及是否有必要在虚拟磁盘级别进行设置,因为我之前已经设置过了。

我可以确认这-PhysicalDiskRedundancy两个级别的设置都会影响虚拟磁盘的存储效率。

然后我创建了一个脚本来生成几个具有不同配置的虚拟磁盘来验证效果。

$SSD_Parity1  = New-StorageTier -FriendlyName SSD_Parity1 -StoragePoolFriendlyName Dtaa -FaultDomainAwareness PhysicalDisk -MediaType SSD -ProvisioningType Fixed -ResiliencySettingName Parity -PhysicalDiskRedundancy 1
$HDD_Parity1  = New-StorageTier -FriendlyName HDD_Parity1 -StoragePoolFriendlyName Dtaa -FaultDomainAwareness PhysicalDisk -MediaType HDD -ProvisioningType Fixed -ResiliencySettingName Parity -PhysicalDiskRedundancy 1

$SSD_Parity2  = New-StorageTier -FriendlyName SSD_Parity2 -StoragePoolFriendlyName Dtaa -FaultDomainAwareness PhysicalDisk -MediaType SSD -ProvisioningType Fixed -ResiliencySettingName Parity -PhysicalDiskRedundancy 2
$HDD_Parity2  = New-StorageTier -FriendlyName HDD_Parity2 -StoragePoolFriendlyName Dtaa -FaultDomainAwareness PhysicalDisk -MediaType HDD -ProvisioningType Fixed -ResiliencySettingName Parity -PhysicalDiskRedundancy 2


$SSD_Mirror1 = New-StorageTier -FriendlyName SSD_Mirror1 -StoragePoolFriendlyName Dtaa -FaultDomainAwareness PhysicalDisk -MediaType SSD -ProvisioningType Fixed -ResiliencySettingName Mirror -PhysicalDiskRedundancy 1
$HDD_Mirror1 = New-StorageTier -FriendlyName HDD_Mirror1 -StoragePoolFriendlyName Dtaa -FaultDomainAwareness PhysicalDisk -MediaType HDD -ProvisioningType Fixed -ResiliencySettingName Mirror -PhysicalDiskRedundancy 1

$SSD_Mirror2 = New-StorageTier -FriendlyName SSD_Mirror2 -StoragePoolFriendlyName Dtaa -FaultDomainAwareness PhysicalDisk -MediaType SSD -ProvisioningType Fixed -ResiliencySettingName Mirror -PhysicalDiskRedundancy 2
$HDD_Mirror2 = New-StorageTier -FriendlyName HDD_Mirror2 -StoragePoolFriendlyName Dtaa -FaultDomainAwareness PhysicalDisk -MediaType HDD -ProvisioningType Fixed -ResiliencySettingName Mirror -PhysicalDiskRedundancy 2

#$SSD_ParityExpectedCFG  = New-StorageTier -FriendlyName SSD_Parity22 -StoragePoolFriendlyName Dtaa -FaultDomainAwareness PhysicalDisk -MediaType SSD -ProvisioningType Fixed -ResiliencySettingName Parity -PhysicalDiskRedundancy 1
#$HDD_ParityExpectedCFG  = New-StorageTier -FriendlyName HDD_Parity22 -StoragePoolFriendlyName Dtaa -FaultDomainAwareness PhysicalDisk -MediaType HDD -ProvisioningType Fixed -ResiliencySettingName Parity -PhysicalDiskRedundancy 2


$Pairs =@($SSD_Parity1,$HDD_Parity1),($SSD_Parity2,$HDD_Parity2),($SSD_Mirror1,$HDD_Mirror1),($SSD_Mirror2,$HDD_Mirror2),($SSD_Mirror1,$HDD_Parity2)

$details = @()

$ErrorActionPreference = "Continue"
$disks += $Pairs | %{
    $name = "$( $_[0].FriendlyName ) $($_[1].FriendlyName )"
    New-VirtualDisk -FriendlyName "$name (default)" -StoragePoolFriendlyName DTAA -StorageTiers $($_[0]),$($_[1]) -StorageTierSizes 25GB,25GB #-FaultDomainAwareness PhysicalDisk
    New-VirtualDisk -FriendlyName "$name (pd2-mirror)" -StoragePoolFriendlyName DTAA -StorageTiers $($_[0]),$($_[1]) -StorageTierSizes 25GB,25GB -ResiliencySettingName 'Mirror' -FaultDomainAwareness PhysicalDisk -PhysicalDiskRedundancy 2
    New-VirtualDisk -FriendlyName "$name (pd1-mirror)" -StoragePoolFriendlyName DTAA -StorageTiers $($_[0]),$($_[1]) -StorageTierSizes 25GB,25GB -ResiliencySettingName 'Mirror' -FaultDomainAwareness PhysicalDisk -PhysicalDiskRedundancy 1
    New-VirtualDisk -FriendlyName "$name (pd2-parity)" -StoragePoolFriendlyName DTAA -StorageTiers $($_[0]),$($_[1]) -StorageTierSizes 25GB,25GB -ResiliencySettingName 'Parity' -FaultDomainAwareness PhysicalDisk -PhysicalDiskRedundancy 2
    New-VirtualDisk -FriendlyName "$name (pd1-parity)" -StoragePoolFriendlyName DTAA -StorageTiers $($_[0]),$($_[1]) -StorageTierSizes 25GB,25GB -ResiliencySettingName 'Parity' -FaultDomainAwareness PhysicalDisk -PhysicalDiskRedundancy 1
}

$disks += New-VirtualDisk -FriendlyName "NoTier (default)" -StoragePoolFriendlyName DTAA -Size 50GB
$disks += New-VirtualDisk -FriendlyName "NoTier (pd1-mirror)" -StoragePoolFriendlyName DTAA -Size 50GB -ResiliencySettingName 'Mirror' -FaultDomainAwareness PhysicalDisk -PhysicalDiskRedundancy 1
$disks += New-VirtualDisk -FriendlyName "NoTier (pd2-mirror)" -StoragePoolFriendlyName DTAA -Size 50GB -ResiliencySettingName 'Mirror' -FaultDomainAwareness PhysicalDisk -PhysicalDiskRedundancy 2
$disks += New-VirtualDisk -FriendlyName "NoTier (pd1-parity)" -StoragePoolFriendlyName DTAA -Size 50GB -ResiliencySettingName 'Parity' -FaultDomainAwareness PhysicalDisk -PhysicalDiskRedundancy 1
$disks += New-VirtualDisk -FriendlyName "NoTier (pd2-parity)" -StoragePoolFriendlyName DTAA -Size 50GB -ResiliencySettingName 'Parity' -FaultDomainAwareness PhysicalDisk -PhysicalDiskRedundancy 2

脚本的输出


FriendlyName                         ResiliencySettingName FaultDomainRedundancy OperationalStatus HealthStatus  Size FootprintOnPool StorageEfficiency
------------                         --------------------- --------------------- ----------------- ------------  ---- --------------- -----------------
SSD_Parity1 HDD_Parity1 (default)                                                OK                Healthy      50 GB        72.25 GB            69.20%
SSD_Parity1 HDD_Parity1 (pd2-mirror)                                             OK                Healthy      51 GB       156.75 GB            32.54%
SSD_Parity1 HDD_Parity1 (pd1-mirror)                                             OK                Healthy      50 GB        102.5 GB            48.78%
SSD_Parity1 HDD_Parity1 (pd2-parity)                                             OK                Healthy      50 GB        92.75 GB            53.91%
SSD_Parity1 HDD_Parity1 (pd1-parity)                                             OK                Healthy      50 GB        72.25 GB            69.20%
SSD_Parity2 HDD_Parity2 (default)                                                OK                Healthy      50 GB        92.75 GB            53.91%
SSD_Parity2 HDD_Parity2 (pd2-mirror)                                             OK                Healthy      51 GB       156.75 GB            32.54%
SSD_Parity2 HDD_Parity2 (pd1-mirror)                                             OK                Healthy      50 GB        102.5 GB            48.78%
SSD_Parity2 HDD_Parity2 (pd2-parity)                                             OK                Healthy      50 GB        92.75 GB            53.91%
SSD_Parity2 HDD_Parity2 (pd1-parity)                                             OK                Healthy      50 GB        72.25 GB            69.20%
SSD_Mirror1 HDD_Mirror1 (default)                                                OK                Healthy      50 GB        102.5 GB            48.78%
SSD_Mirror1 HDD_Mirror1 (pd2-mirror)                                             OK                Healthy      51 GB       156.75 GB            32.54%
SSD_Mirror1 HDD_Mirror1 (pd1-mirror)                                             OK                Healthy      50 GB        102.5 GB            48.78%
SSD_Mirror1 HDD_Mirror1 (pd2-parity)                                             OK                Healthy      50 GB        92.75 GB            53.91%
SSD_Mirror1 HDD_Mirror1 (pd1-parity)                                             OK                Healthy      50 GB        72.25 GB            69.20%
SSD_Mirror2 HDD_Mirror2 (default)                                                OK                Healthy      51 GB       156.75 GB            32.54%
SSD_Mirror2 HDD_Mirror2 (pd2-mirror)                                             OK                Healthy      51 GB       156.75 GB            32.54%
SSD_Mirror2 HDD_Mirror2 (pd1-mirror)                                             OK                Healthy      50 GB        102.5 GB            48.78%
SSD_Mirror2 HDD_Mirror2 (pd2-parity)                                             OK                Healthy      50 GB        92.75 GB            53.91%
SSD_Mirror2 HDD_Mirror2 (pd1-parity)                                             OK                Healthy      50 GB        72.25 GB            69.20%
SSD_Mirror1 HDD_Parity2 (default)                                                OK                Healthy      50 GB        93.25 GB            53.62%
SSD_Mirror1 HDD_Parity2 (pd2-mirror)                                             OK                Healthy      51 GB       156.75 GB            32.54%
SSD_Mirror1 HDD_Parity2 (pd1-mirror)                                             OK                Healthy      50 GB        102.5 GB            48.78%
SSD_Mirror1 HDD_Parity2 (pd2-parity)                                             OK                Healthy      50 GB        92.75 GB            53.91%
SSD_Mirror1 HDD_Parity2 (pd1-parity)                                             OK                Healthy      50 GB        72.25 GB            69.20%
NoTier (default)                     Mirror                1                     OK                Healthy      56 GB        114.5 GB            48.91%
NoTier (pd1-mirror)                  Mirror                1                     OK                Healthy      56 GB        114.5 GB            48.91%
NoTier (pd2-mirror)                  Mirror                2                     OK                Healthy      52 GB       159.75 GB            32.55%
NoTier (pd1-parity)                  Parity                1                     OK                Healthy      52 GB         68.5 GB            75.91%
NoTier (pd2-parity)                  Parity                2                     OK                Healthy      56 GB        82.25 GB            68.09%

虽然这证明在两个地方设置磁盘冗余都有效,但我还没有找到原因。

谢谢,任何帮助都将不胜感激。

相关内容