如何创建Windows简单存储池?

如何创建Windows简单存储池?

在 Windows Server 2019 中,我尝试使用 Powershell 创建一个包含 6 个磁盘的简单存储池。总大小应约为 42 TB,但它只创建了 1.23 TB 的池。其余部分仍是原始池的一部分。以下是磁盘之前的样子。

PS D:\> Get-PhysicalDisk | Where Size -eq 7681501126656

DeviceId FriendlyName               SerialNumber                             MediaType CanPool OperationalStatus HealthStatus Usage          Size
-------- ------------               ------------                             --------- ------- ----------------- ------------ -----          ----
1        SAMSUNG MZQLB7T6HMLA-00007 3442_4730_4D80_1590_0025_3859_0000_0001. SSD       True    OK                Healthy      Auto-Select 6.99 TB
4        SAMSUNG MZQLB7T6HMLA-00007 3442_4730_4D80_1589_0025_3859_0000_0001. SSD       True    OK                Healthy      Auto-Select 6.99 TB
2        SAMSUNG MZQLB7T6HMLA-00007 3442_4730_4D80_1270_0025_3859_0000_0001. SSD       True    OK                Healthy      Auto-Select 6.99 TB
6        SAMSUNG MZQLB7T6HMLA-00007 3442_4730_4D80_1588_0025_3859_0000_0001. SSD       True    OK                Healthy      Auto-Select 6.99 TB
3        SAMSUNG MZQLB7T6HMLA-00007 3442_4730_4D80_1586_0025_3859_0000_0001. SSD       True    OK                Healthy      Auto-Select 6.99 TB
5        SAMSUNG MZQLB7T6HMLA-00007 3442_4730_4D80_1541_0025_3859_0000_0001. SSD       True    OK                Healthy      Auto-Select 6.99 TB

这是创建池的命令

PS D:\> $PD = (Get-PhysicalDisk | Where Size -eq 7681501126656)
PS D:\> New-StoragePool -FriendlyName NVMePool -Verbose -PhysicalDisks $PD -StorageSubSystemFriendlyName "Windows Storage*" -ResiliencySettingNameDefault Simple

FriendlyName OperationalStatus HealthStatus IsPrimordial IsReadOnly    Size AllocatedSize
------------ ----------------- ------------ ------------ ----------    ---- -------------
NVMePool     OK                Healthy      False        False      1.23 TB        1.5 GB

结果

PS D:\> Get-StoragePool

FriendlyName OperationalStatus HealthStatus IsPrimordial IsReadOnly     Size AllocatedSize
------------ ----------------- ------------ ------------ ----------     ---- -------------
NVMePool     OK                Healthy      False        False       1.23 TB        1.5 GB
Primordial   OK                Healthy      True         False      42.79 TB       1.24 TB

答案1

我搞明白了。这些磁盘有来自之前应用程序的现有分区。因此存储池只使用每个磁盘的第一个分区。解决方案是使用diskpart clean

相关内容