How to list, mount and unmount NFS and VMFS Datastore.
search cancel

How to list, mount and unmount NFS and VMFS Datastore.

book

Article ID: 381759

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

This KB outlines the steps to list mounted and unmounted volumes along with steps on how to mount and unmount NFS and VMFS Datastore.

 

Environment

VMware ESXi 7.x
VMware ESXi 8.x

Resolution

Use the esxcli storage filesystem command to list mounted volumes, mount volumes, and to unmount a volume.  

Also, specify whether to persist the mounted volumes across reboots by using the --no-persist option:

  • To list VMFS mounted and unmounted volumes :
    • esxcli storage filesystem list

# Note in the example below there is no listed mount point for the unmounted datastore and the "mounted status" is false

  • To mount VMFS volume :
    • esxcli storage filesystem mount --volume-label=<label>|--volume-uuid=<VMFS-UUID>
  • To unmount VMFS volume :
    • esxcli storage filesystem unmount --volume-label=<label>|--volume-uuid=<VMFS-UUID>
  • To list NFS volume:
     
    • esxcli storage nfs list

  • To unmount the NFS volume:

    • esxcli storage nfs remove -v NFS_Datastore_Name

    • esxcfg-nas -d NFS_Datastore_Name

Additional Information

Detach a LUN device from ESXi hosts