I just had the need to check all storage pool allocations in a VMM stamp. You could do that manually inside the console.
But it is always better to do stuff with PowerShell 🙂
To get the current Pool allocation you can use this script.
1 2 3 4 5 6 7 8 9 |
Get-SCStoragePool | foreach { $AllocatedCap = [decimal]($_.AllocatedCapacity/$_.TotalManagedSpace)*100 [PSCustomObject] @{ StoragePool = $_.Name AllocatedCapacity = '{0:N2}' -f $AllocatedCap } } | Sort-Object AllocatedCapacity | ft -AutoSize |
Which gives you this output.
You could also use this script to check the allocation of your LUNs
1 2 3 4 5 6 7 8 9 10 |
Get-SCStorageLogicalUnit | foreach { $AllocatedCap = [decimal]($_.AllocatedCapacity/$_.TotalCapacity)*100 [PSCustomObject] @{ LogicalUnit = $_.SMDisplayName AllocatedCapacity = '{0:N2}' -f $AllocatedCap } } | Sort-Object SMDisplayName | ft -AutoSize |
I hope this is helpful for some of you guys.
Until next time
Cheers Philipp