This is a heads up post for anyone who is creating a new virtual disk from a storage pool in Storage Spaces. If you are creating a disk and want to use the “Maximum size” parameter then you have to make sure that the Provisioning type is set to Fixed and not Thin. This is a normal expected behaviour as the Thin disk expands automatically and take space as it needs so you can’t pre-located 100% of the size, you will need to specify an initial disk size. For fixed size “-ProvisioningType Fixed” you can use the “-UseMaximumSize” parameter.
The unfriendly Powershell Error:
1 2 3 4 5 6 7 8 |
New-VirtualDisk : Invalid Parameter Activity ID: {93f131a2-3dcd-4878-ac95-8c7b127609d5} At line:1 char:2 + New-VirtualDisk -FriendlyName "Data Disk" -ProvisioningType "Thin" - ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (StorageWMI:ROOT/Microsoft/...SFT_StoragePool) [New-VirtualDisk], CimEx ception + FullyQualifiedErrorId : StorageWMI 5,New-VirtualDisk |
The GUI Error:
Thank you!