Storage Spaces Direct Needs Rebalance

When you write or delete a lot of data in your storage pool it could be that your volumes end up with the operational status of “Needs Rebalance”

Needs rebalance

This operation needs to be executed by the Administrator (Yes, i’m pointing at you right now) when your disks need a rebalance.
You can use the following Powershell cmdlet to do so:

$UniqueId = (Get-StoragePool | Where {$_.IsPrimordial -eq $false}).UniqueId
Optimize-StoragePool -UniqueId $UniqueId

The output will be a progress bar for the optimization job:

Optimize-StoragePool

You could also use the “Get-StorageJob” cmdlet to show the status of the job:

Get-StorageJob

After the job is completed, everything is ok:

S2D Storage Pools

Happy days!

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
http://www.twitter.com/DarrylvdPeijl

 

Leave a Reply

Your email address will not be published. Required fields are marked *