win10-storage-spaces
win10-storage-spaces copied to clipboard
Errors when running the command `New-VirtualDisk`, when using the create script
For some background, I am using a simple single ssd and single hdd caching tier. I am running Windows 11 Pro, Version: 23H2 Build: 22631.4541, which should be the latest version of mainstream windows.
Regarding the new-storage-space.ps1
script, when running the segment:
New-VirtualDisk -StoragePoolFriendlyName $StoragePoolName -FriendlyName $TieredDiskName -StorageTiers @($SSDTier, $HDDTier) -StorageTierSizes @($SSDTierSize, $HDDTierSize) -ResiliencySettingName $DriveTierResiliency -AutoWriteCacheSize -AutoNumberOfColumns
it gives the error The value for PhysicalDiskRedundancy is outside of the supported range of values.
, where I will have to add the argument to the above command: -PhysicalDiskRedundancy 0
then after the corrected command, I get the error, The value for NumberOfDataCopies is outside of the supported range of values.
, where I will have to add the argument: -NumberOfDataCopies 1
after adding these two arguments, the command runs successfully, and I am able to complete the script successfully.
Those two arguments have default values that are inherited from the ResiliencySettingName Simple
argument, where I used simple do to my configuration.
Anyway I just wanted to tell you all that there might be an issue with new versions of windows.
For more information regarding the command, I'll leave this link here: https://learn.microsoft.com/en-us/windows-hardware/drivers/storage/createvirtualdisk-msft-storagepool