How to mount or unmount NAS/NFS share on ESXi
First you need to have the vmkernel port group configured for the NAS/NFS.
To mount NAS/NFS share on esxi:
esxcfg-nas -a -o <nas_server_hostname or ipaddress> -s <nas share name> <NAS_datastore_name>
To unmount NAS/NFS share on esxi:
esxcfg-nas -d <NAS_datastore_name>
Other options available in ESXi are:
~ # esxcfg-nas –help
esxcfg-nas <options> [<label>]
-a|–add Add a new NAS filesystem to /vmfs volumes.
Requires –host and –share options.
Use –readonly option only for readonly access.
-o|–host <host> Set the host name or ip address for a NAS mount.
-s|–share <share> Set the name of the NAS share on the remote system.
-y|–readonly Add the new NAS filesystem with readonly access.
-d|–delete Unmount and delete a filesystem.
-l | –list List the currently mounted NAS file systems.
-h| –help Show this message.
Recent Comments