Dell VxRail: Unable to Unmount NFS Datastore

Summary: Failure to Unmount NFS Datastore from vSphere caused by the datastore ISO file being still mounted on the VMs' CD/DVD drive. It is solved by unmounting the datastore ISO file from all VMs associated from it. ...

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

Failure to Unmount NFS Datastore from vSphere. From the datastores, there are VMs showing connected to the datastore although it is not used by any of them.

 

Cause

Although the NFS datastore is not used on any of the ESXi hosts or the VMs, the VMs might have the datastore attached but not connected.
VM datastore not connected

 

Resolution

To resolve this issue, unmount the datastore ISO file from all VMs associated with it.

 

CAUTION: Ensure all VMs and their Hard disks (vmdk files) are detached from the NFS datastore to avoid potential DU as the VM could become inaccessible.

See the below screenshot showing the hard disk is attached to the vSAN datastore.
hard disk is attached to the vSAN datastore

 

To list mounted NFS datastores use command:

esxcli storage nfs list

 

The NFS datastore iso file has to be removed from the VMs.

  1. Right click on each VM and select Edit Settings.
  2. Change "Datastore ISO File" to "Client Device" and save changes.
  3. Repeat this on all VMs that appear under the NFS datastore.
  4. Unmount the datastore from vSphere again if needed and it should work.

 

select Client Device

 

Additional Information

In order to list mounted NFS datastores, use command:

esxcli storage nfs list

 

In order to delete a datastore, use command:

esxcli storage nfs remove -v NFS_Datastore_Name

 

Affected Products

VxRail
Article Properties
Article Number: 000220625
Article Type: Solution
Last Modified: 09 Jan 2024
Version:  1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.