Windows OS Hub
  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange

 Windows OS Hub / Virtualization / VMWare / How to Remove an Inactive NFS Datastore on VMWare ESXi Host

April 15, 2015 VMWare

How to Remove an Inactive NFS Datastore on VMWare ESXi Host

Several times I have come across the situation when the NFS datastore on the VMWare ESXi host becomes unavailable / inactive and greyed out in the host’s storage list. However, the NFS storage stays available on the network level. Usually, it can be solved by removing the NFS storage and then adding it back.

However, it happens that when trying to remove such inactive NFS storage from the ESXi host configuration, it returns an error:

The resource datastore_nfs02 is in use.

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

Inactive NFS Datastore on VMWare ESXi

Based upon the error, the NFS storage cannot be removed due to the Storage I/O control (SIOC) is enabled. If you disable it, another error appears:

Datastore is not accessible

disable Storage I/O control - VMWare ESXi

Solution

To properly remove the  NFS storage from the VMWare ESXi host, you must directly connect the ESXi host server via SSH (you can enable SSH from vSphere Client).

Display the list of the NFS storages in the system:

esxcli storage nfs list

esxcli storage nfs list

esxcli: list nfs storage

A similar command in ESXi 4.x looks like this:

esxcfg-nas -l

esxcfg-nas -l

To unmount the NFS storage:

esxcli storage nfs remove –v datastore_nfs02

esxcli storage nfs remove –v datastore_nfs02

In ESXi 4.x command is as follows:

esxcfg-nas -d datastore_nfs02

esxcfg-nas -d datastore_nfs02

Note. If the name of the NFS storage contains spaces, it has to be enclosed in quotes.

remove NFS datastore

If the NFS datastore isn’t removed from the vSphere Client, click the Refresh button in the ESXi storage section (Configuration -> Storage).

Refresh datastores view on VMWare ESXi

Note. This has to be done on every ESXi host, where you need to remove the inactive storage.

1 comment
0
Facebook Twitter Google + Pinterest
previous post
How to Increase Maximum Attachment Size Limit in Outlook
next post
How to Extract Windows User Passwords from Hiberfil.sys

Related Reading

Accessing USB Flash Drive from VMWare ESXi

February 26, 2021

FAQ: Live Migration of Virtual Machines with VMWare...

November 19, 2020

VMWare Error: Unable to Access a File Since...

October 1, 2020

How to Enable and Configure SNMP on VMWare...

September 7, 2020

Selecting the Number of vCPUs and Cores for...

August 18, 2020

1 comment

sav1 August 7, 2015 - 6:38 am

In my case the NFS storage was bisy with one of VM. Via thick vSphere Client I so it in Inventory “Datastores and Datastore Clusters” at “Virtual Machines” tab. Although there was no devices placed there at that moment and in fact of that the VM’s properties didnt content storage in storage list. But earlier there was mounted a CDROM to iso file at (i used this storage for delploy ), and there was a snapshot (i dont use snapshots in my work, but it was autogenerated with clone operation and in unknown reason didnt removed automaticaly). Then I deleted snapshot and occured VM covered from earlier tab, and then I abled to unmount storage.
Clearly, in except of using so hard manipulations (and in commonly, not preferable), in first step we should release storage from any obvious relations.

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange
  • Windows 10
  • Windows 8
  • Windows 7
  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2008 R2
  • PowerShell
  • VMWare
  • MS Office

Recent Posts

  • Accessing USB Flash Drive from VMWare ESXi

    February 26, 2021
  • How to Sign a PowerShell Script (PS1) with a Code Signing Certificate?

    February 25, 2021
  • Change the Default Port Number (TCP/1433) for a MS SQL Server Instance

    February 24, 2021
  • How to Shadow (Remote Control) a User’s RDP session on RDS Windows Server 2016/2019?

    February 22, 2021
  • Configuring PowerShell Script Execution Policy

    February 18, 2021
  • Configuring Proxy Settings on Windows Using Group Policy Preferences

    February 17, 2021
  • Updating Group Policy Settings on Windows Domain Computers

    February 16, 2021
  • Managing Administrative Shares (Admin$, IPC$, C$, D$) in Windows 10

    February 11, 2021
  • Packet Monitor (PktMon) – Built-in Packet Sniffer in Windows 10

    February 10, 2021
  • Fixing “Winload.efi is Missing or Contains Errors” in Windows 10

    February 5, 2021

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • How to Reset Root Password in VMware vCenter Appliance
  • Free backup of virtual machines VMWare ESXi using MKSBackup
  • VMware Converter: Synchronize changes when perfoming P2V or V2V
  • Backing Up VMWare Virtual Machines Using Altaro VM Backup
  • Removing VMWare vCenter Self-Signed Certificate Warning
  • How to Upgrade VM Hardware Version in VMWare ESXi
  • Tuning Windows Performance for Use in Virtual Environment
Footer Logo

@2014 - 2018 - Windows OS Hub. All about operating systems for sysadmins


Back To Top