VMware: Unable to remove an inaccessible NFS datastore

3

The backend storage volume corresponding to the datastore has been removed and the datastore appears as Inactive, when I want to remove (via vSphere Client connected to vCenter server) the NFS datastore I receive this error message:

Unmounting the datastore in vCenter Server fails with the error:
‘Call “HostDatastoreSystem.RemoveDatastore” form object “datastoreSystem-28” on vCenter Server “xxxx” failed. CannotRemove datastore ‘datastore_name’ because Storage I/O control is enabled on it. Correct it and re-try the operation

image

 

Solution:

To resolve this issue, log in directly to each ESXi host that has access to the inactive datastore and manually remove it.

– Connect to the vSphere ESXi host using SSH

– Run this command to list the mounted datastores:

esxcli storage nfs list

image

– Run this command to unmount the NFS datastore:

esxcli storage nfs remove –v datastorename

image

The inactive NFS datastore has been removed

Note: if your datastore display name have some spaces, please use quotes

 

More information: VMware

About Author

3 thoughts on “VMware: Unable to remove an inaccessible NFS datastore

  1. Its still showing under “HOME > INVENTORY > DATASTORES AND DATASTORE CLUSTERS”, but showing greyed out and (inactive). Is there a way to force the vcenter server to forget about it?

Leave a Reply

Your email address will not be published. Required fields are marked *