Another issue that comes along with power outages? Hosts coming back up before their storage… With fiber channel, you can typically reconnect it with a refresh/rescan, but with NFS, they tend to become disconnected.
The fix is to remove and re-add the Datastore (see kb 1005057)
With no way to handle them en masse in the gui and no desire to have to repeat this process in the future, I used Powershell!
Here is the raw script, I will add comments in the near future for those interested.
I chose to run this per cluster
1 2 3 4 5 6 7 8 9 10 |
Add-PSSnapin Vmware.VimAutomation.Core -ea SilentlyContinue Import-Module Vmware.VimAutomation.Core -ea SilentlyContinue connect-viserver "vCenter-Name" $hosts = get-vmhost -location "Cluster-001" foreach ($VMHost in $hosts) { Write-Host $VMHost.name Remove-Datastore -VMHost $VMHost -Datastore "ISO" -Confirm:$false } Disconnect-VIServer * -Confirm:$false |