VMware esxcli: Remove NFS Share: Difference between revisions
From wiki.jacobjohns.com
jwiki>jjohns Created |
jwiki>jjohns Disable SSH |
||
| Line 10: | Line 10: | ||
#* <code>esxcli storage nfs add -H ''NFS_IP''|''NFS_HOSTNAME'' -s ''Share_mount_point_on_the_NFS'' -v ''DatastoreName''</code> | #* <code>esxcli storage nfs add -H ''NFS_IP''|''NFS_HOSTNAME'' -s ''Share_mount_point_on_the_NFS'' -v ''DatastoreName''</code> | ||
#* <code>exit</code> | #* <code>exit</code> | ||
#Disable SSH | |||
Revision as of 14:35, 31 January 2023

- SSH to host
- List NFS storage
esxcli storage nfs list
- Remove the NFS storage.
esxcli storage nfs remove -v NFS_Datastore_Name
- List NFS storage again to verify it is gone.
- Remount via CLI or GUI.
esxcli storage nfs add -H NFS_IP|NFS_HOSTNAME -s Share_mount_point_on_the_NFS -v DatastoreNameexit
- Disable SSH
