Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 293210

How to check if a datastore is inactive?

$
0
0

Hi,

 

I'm looking for a reliable method to figure out if a datastore is inactive or not (greyed out). Symptom: NAS gets shut down for a while, NFS datastore becomes (and remains) inactive.

 

I tried:

 

(Get-Datastore -Name "backup" -Datacenter (Get-Datacenter "TEST" -erroraction "Stop") -erroraction "Stop").accessible

returns TRUE

 

and

 

((Get-Datastore -Name "backup" -Datacenter (Get-Datacenter "TEST" -erroraction "Stop") -erroraction "Stop")|Get-View).overallstatus

returns "green"

 

Nice but useless since the datastore is inactive, not accessible and the status should be "grey".

Is there any other method to figure that out?

 

Thanks,

Peter


Viewing all articles
Browse latest Browse all 293210

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>