Hi,
We have 8 node cluster. Whenever I am trying to collect the total number of datastore of the cluster by running the below command:
$esx = $cluster | Get-VMHost | Where {$_.ConnectionState -eq "Connected" -or $_.ConnectionState -eq "Maintenance"}
$ds = Get-Datastore -VMHost $esx | where {$_.Type -eq "VMFS" -and (Get-View $_).Summary.MultipleHostAccess}
here $ds.count is showing as 111.
But there are two nodes in the cluster on which the total number datastore is 110.
So I need a script to find out the datastore name which is missing on these two nodes.