VMware esxcli: Remove NFS Share

From wiki.jacobjohns.com
Revision as of 14:35, 31 January 2023 by jwiki>jjohns (Disable SSH)
  1. SSH to host
  2. List NFS storage
    • esxcli storage nfs list
  3. Remove the NFS storage.
    • esxcli storage nfs remove -v NFS_Datastore_Name
  4. List NFS storage again to verify it is gone.
  5. Remount via CLI or GUI.
    • esxcli storage nfs add -H NFS_IP|NFS_HOSTNAME -s Share_mount_point_on_the_NFS -v DatastoreName
    • exit
  6. Disable SSH