November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

How to mount or unmount NAS/NFS share on ESXi

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.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>