In this blog post I will show you how to resize a Storage Space AKA virtual disk based on Storage Spaces Direct.The first thing is to understand that Multi-Resilient volumes are created differently comparing to a Parity or Mirror volume. A Multi-Resilient volume makes use of two tiers instead of one and therefore when expanding you need to expand multiple tiers.
Resize the volume
Next get the StorageTiers bound to the virtual disk “Disk1” with Powershell and show the size in GBs:
Aha, we can see the two StorageTiers that are bound to the virtual disks called “Disk1”
So I have 900GB in my Capacity tier and 100GB in my Performance tier which sums to 1000GB.
In this case I want to resize my storagetiers +100%, so making the performance tier 200GB and the capacity tier 1800GB.You can resize storagetiers using the Resize-StorageTier cmdlet.
Get-VirtualDisk "Disk1" | Get-StorageTier | ? Friendlyname -eq "Disk1_Performance" | Resize-StorageTier -Size 200GB
Now that the tiers are resized we have come to the following scenario:
We can also check this with Powershell and confirm this:
Get-VirtualDisk "Disk1"| Get-Disk | Get-Partition | Where Type -eq Basic | FT Size
Get-VirtualDisk "Disk1"| Get-Disk | Get-Partition | Where Type -eq Basic | Get-PartitionSupportedSize
As you can see the virtual disk is already 2000GB, the partition is still 1000GB and the maximum size of the partition can be 2000GB. Once the virtual disk is expanded, you also will have to expand the partition.
Thank you for reading my blog.
If you have any questions or feedback, leave a comment or drop me an email.
Darryl van der Peijl