Search the VMware Knowledge Base (KB)
View by Article ID

Unable to remove an inaccessible NFS datastore with Storage I/O control enabled (2008507)

  • 57 Ratings


  • Cannot remove an inactive/inaccessible NFS datastore.
  • Storage DRS is enabled on the NFS datastore.
  • The backend storage volume corresponding to the datastore has been removed and the datastore appears as Inactive.
  • Cannot unmount a read only NFS datastore that is mounted as read-write on another host with Storage IO control enabled from vCenter Server.
  • Planned SRM Failover fails.
  • 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

  • Disabling Storage I/O Control on the datastore fails with the error:

    Datastore is not accessible


This is an expected behaviour.

You cannot remove an inactive NFS datastore with Storage I/O Control enabled. However, when the back end volume is ungracefully removed, Storage I/O Control cannot be disabled.

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

Note: Before attempting to remove the datastore, ensure that there are no virtual machines running or registered against the datastore. Backup programs or third-party tools may also be using the datastore. For more information on requirements for unmounting a datastore, see Unmounting a LUN checklist in Unmounting a LUN or detaching a datastore/storage device from multiple VMware ESXi 5.x/6.0 hosts (2004605).
To manually remove the datastore:
  1. Connect to the ESX/ESXi host using SSH. For more information, see Connecting to an ESX host using a SSH client (1019852) or  Using Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910).
  2. Run this command to list the mounted datastores:

    ESXi 5.0, ESXi 5.1, ESXi 5.5:

    # esxcli storage nfs list
    Volume Name  Host        Share  Accessible  Mounted  Hardware Acceleration
    -----------  ----------  -----  ----------  -------  ---------------------
    vol_nfs-2  /nfs2         true     true  Not Supported

    ESXi 4.x:

    # esxcfg-nas -l
    vol_nfs-2 is /nfs2 from mounted

    Where vol_nfs-2 is the NFS datastore name.

  3. Make a note of the NFS datastore name.
  4. Run this command to stop the SIOC service:

    /etc/init.d/storageRM stop

  5. In the vSphere Client, select the host and then click the Configuration tab.
  6. Click Rescan All.
  7. After the rescan completes, run this command to restart the SIOC service:

    /etc/init.d/storageRM start

  8. Run this command to unmount the NFS datastore:

    ESXi 5.0:

    # esxcli storage nfs remove -v vol_nfs-2

    ESXi 4.x:

    # esxcfg-nas -d vol_nfs-2

  9. Log in to vCenter Server again and refresh the list of datastores in the Datastores View for each host.

Additional Information

To be alerted when this article is updated, click Subscribe to Document in the Actions box.



See Also

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.


  • 57 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)

Please enter the Captcha code before clicking Submit.
  • 57 Ratings