Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 180923

Datastore Mismatch

$
0
0

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.


Viewing all articles
Browse latest Browse all 180923

Trending Articles