freemansoft / win10-storage-spaces

Scripts for creating an destroying Fault Tolerant multi-tier storage spaces on Windows 10
MIT License
225 stars 40 forks source link

Fix missing ResiliencySettingName on New-StorageTier cmdlet #10

Closed underw8 closed 11 months ago

underw8 commented 12 months ago

The New-StorageTier which doesn't specify -ResiliencySettingName will resolve to 0 size on the next command, thus prevent the creation of VirtualDisk due to incorrect storage size.

freemansoft commented 11 months ago

Did you close this because it wasn't needed, I'm non responsive or some other reason?

underw8 commented 10 months ago

Did you close this because it wasn't needed, I'm non responsive or some other reason?

Thank you for your hard work, it wasn't needed, just reckoned that I have to uncomment these line for the rest of the script to work.

https://github.com/freemansoft/win10-storage-spaces/blob/f8984a85e0170086dcd70b5c2a7951dd5f8ac620/new-storage-space.ps1#L58

My fix above assume we'll use an array of two disks - 1 HDD and 1 SSD with the default ResiliencySettingName - which is Simple.

neominky commented 6 months ago

Did you close this because it wasn't needed, I'm non responsive or some other reason?

`PS C:\windows\system32> Get-StorageTierSupportedSize -FriendlyName "SSD" -ResiliencySettingName "Mirror"

SupportedSizes TierSizeMin TierSizeMax TierSizeDivisor


{} 0 0 0`

I also had the same problem. it was needed.