Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Unmount NFS datastores from VMware ESXi and NFS is in use

Mounting NFS datastore on ESXi server is very easy, similar way you might need to remove/unmount NFS share from ESXi server for maintenance or migration purpose. To unmount it, open VMWare vSphere Web Client and select Storage tab, from the list select NFS datastore, right click on it and select Unmount datastore. This launches the wizard, In the wizard the datastore is accessible from the hosts listed in the list. The host(s) will no longer have access to the virtual machine files on this datastore once the access is removed. If the datastore is unmounted from all hosts it will disappear from the inventory. Select the hosts that should not have access to this datastore. Click the check box on hosts list, and OK to proceed.

Warning: If you have configured HA cluster while unmounting datastore make sure, NFS datastore might be used by vSphere HA for heartbeating. Once unmounted, check the 'Cluster-Monitor-Issues' page to see if any hosts now have an insufficient number of heartbeat datastores. 

Earlier useful posts
Mount NFS share to multiple ESXi hosts
VMWare ESXi add and create NFS datastore
Microsoft Windows 2016 Install and configure NFS server for ESXi and Linux
Unmount NFS datastores from VMware ESXi and NFS is in use
Add NFS datastores to VMware ESXi hosts using PowerCLI

vmware vsphere web client, esxi vcenter, unmount datastore, nfs, network file system, select hosts to remove nfs, nfs storage, share drive

Next if unmounting NFS datastore shows the error The resource 'nfs' is in use (The "remove datastore" operation failed for the entity with the following error message), to resolve this, make sure that the following prerequisites are met:

  • No virtual machines reside on the datastore.
  • The datastore is not managed by Storage DRS.
  • The datastore is not part of a datastore cluster.
  • The datastore is not used for vSphere HA heartbeating.
  • Storage I/O control is disabled for this datastore.

vmware esxi, vcenter vsphere web client, NFs unmount datastore, the resource nfs is in use, network file system, error unmounting

In my case NFS storage still had virtual machines running, which I migrated using storage vmotion to another drive and emptied nfs drive, also made sure there are no other  dependencies listed above, After that removing NFS was successful with no error.

vmware vsphere web client nfs in use by virtual machine, mount NFS, unmount NFS, network file system, remove datastore from esxi, mount nfs vmfs datastore

Useful Article
MICROSFOT WINDOWS 2012 R2 ISCSI TARGET STORAGE SERVER FOR ESXI AND HYPERV
VMWARE ESXI CONFIGURE (VSWITCH) VMKERNEL NETWORK PORT FOR ISCSI STORAGE
VMWARE ESXI INSTALL AND CONFIGURE SOFTWARE ISCSI STORAGE ADAPTER FOR VMFS VERSION 6 DATASTORE
VMWARE VCENTER STORAGE MIGRATE/SVMOTION VM AND PORT BINDING MULTIPATHING TESTING
MICROSFOT WINDOWS 2012 R2 ISCSI TARGET STORAGE SERVER FOR ESXI AND HYPERV 

Go Back



Comment

Blog Search

Page Views

11274425

Follow me on Blogarama