Recently my colleague Ben Evans and I came across a requirement of finding how much space was being consumed by the VMs across all cluster shared volumes. As a result I have compiled the information below and thought I’d share with you all.
To simply list the Cluster Shared Volumes, whether they are online and what hosts “own” them you can simply run the following command: Get-ClusterSharedVolume
PS C:\Windows\system32> Get-ClusterSharedVolume
If you wish to obtain more in-depth information such as the Cluster Storage path, size of the LUN, percentage free, etc then please see below.
The below information was extracted by running a PowerShell script found at the following URL: https://blogs.msdn.microsoft.com/clustering/2010/06/18/powershell-for-failover-clustering-csv-free-disk-space-and-other-info/
PS C:\Windows\system32> \\xyz\user1\psscripts\DisplayCSVInfo2.ps1
|Name||Path||Size (GB)||FreeSpace (GB)||UsedSpace (GB)||PercentFree|
You can then export the information from PowerShell to a .csv file by adding >C:\csv1.csv to the end of the command being ran (see below):