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
NameStateNodeLUN001OnlineHOST01LUN002OnlineHOST01LUN003OnlineHOST03LUN004OnlineHOST04LUN005OnlineHOST02
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
NamePathSize (GB)FreeSpace (GB)UsedSpace (GB)PercentFreeLUN001c:\ClusterStorage \C00199.8779.1020.7879.20LUN002c:\ClusterStorage \C0021,023.87298.40725.4729.14LUN003c:\ClusterStorage \C0033,071.872,602.57469.3084.72LUN004c:\ClusterStorage \C0043,071.871,288.861,783.0141.96LUN005c:\ClusterStorage \C0052,047.871,679.65368.2282.02
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):
Leave a Reply