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