I’d like to start with a shout out to Philip Elder, for he came up with the initial idea and script that I’ve used here.

One thing that’s not always obvious when dealing with S2D Clusters is how much of your Storage Pool has been provisioned and how much capacity, if any, is left.

To help with this, we came up with be script you’ll see at the bottom of this article.

It’s designed to be run both locally on a cluster host and against multiple clusters remotely.

So what can you expect to get out of this script?

Total Size - This is your RAW capacity in the pool

Allocated Size - This is the RAW amount of storage already allocated to Virtual Disks

RAW Free Space - This is your remaining capacity in the pool

Mirror Available - This is how much space you can provision as Mirror Volumes, it assumes 2-way mirror for 2-Nodes and 3-way mirror for 3+ Nodes

Parity Available - This is how much space you can provision as Parity Volumes

Reserved Space, this is how much space needs to be retained for rebuilds after disk failure

So how do you run this?

Well it’s very simple, you can just run the command with nothing else directly on a cluster host and get an output

Get-PoolStats | ft -au

Or you can run it remotely against multiple clusters

Get-PoolStats -CimSession Cluster-Gen13,Cluster-Gen14 | ft -au Get-StoragePool -FriendlyName S2D* -CimSession Cluster-Gen13,Cluster-Gen14 | Get-PoolStats | ft -au

As always, I hope this script helps someone else out there