If you want to check the cluster size of NTFS formatted disks used for Cluster Shared Volumes, here’s some handy code below. Just change the names of the hyper-v clusters you want to check in red and run from an administrative level powershell prompt.
If you want another row of information from the fsutil command, just change the number where it says $arr[9]
Import-Module FailoverClusters
$Clusters = (“My-CLUSTERNAME01“,”My-CLUSTERNAME02“,”My-CLUSTERNAME03“)
#Get CSVs foreach cluster
foreach($Cluster in $Clusters){
$c = Get-ClusterSharedVolume -Cluster $Cluster
$csvs += $c
}
foreach ($csv in $csvs) {
invoke-command -ComputerName $csv.ownernode -scriptblock {
param ($name,$node)
$Clustersize = fsutil fsinfo ntfsinfo “C:ClusterStorage$name”
$arr = $Clustersize -split ‘`n’
write-host $name ” on ” $node ” has ” $arr[9]
} -argumentlist $csv.name, $csv.OwnerNode
}
The output reports against the owner node for the CSV. As the underlying disk for the CSV is the same on all nodes, I report against the owner node to limit the output to one row per CSV.