Have anyone ever lost power in a virtualizer host and after it boots your NFS share was lost?
Well this is solved by only a few esxcli commands …
It doesn’t take a lot to fix this issue…
First, list the NFS datastores that you have mounted on the host.
esxcli storage nfs list
Inactive! That s the word we will find. Write somewhere the Volume Name, Share Name and Host that you get from the previous command.
Before we can add our datastore back we need to first get rid of it. The following command takes care of that…
esxcli storage nfs remove -v DATASTORE_NAME
Depending on whether or not you have any VMs registered on the datastore and host you may get an error, you may not – I’ve found it varies. Anyway, lastly we simply need to mount the datastore back to our host using the following command… Be sure to use the exact same values you gathered from the ‘nfs list’ command.
esxcli storage nfs add -H HOST -s ShareName/MountPoint -v DATASTORE_NAME
There you go!
You should now have a happy healthy baby NFS datastore back into your storage pool.
Recent Comments