6.5

Table Of Contents
2 Add a new NAS le system to the ESXi host.
Specify the NAS server with --host, the volume to use for the mount with --volume-name, and the share
name on the remote system to use for this NAS mount point with --share.
esxcli <conn_options> storage nfs add --host=dir42.eng.vmware.com --share=/<mount_dir> --
volume-name=nfsstore-dir42
This command adds an entry to the known NAS le system list and supplies the share name of the new
NAS le system. You must supply the host name, share name, and volume name for the new NAS le
system.
3 Add a second NAS le system with read-only access.
esxcli <conn_options> storage nfs add --host=dir42.eng.vmware.com --share=/home --volume-
name=FileServerHome2 --readonly
4 Delete one of the NAS le systems.
esxcli <conn_options> storage nfs remove --volume-name=FileServerHome2
This command unmounts the NAS le system and removes it from the list of known le systems.
Managie a NAS File System with vicfg-nas
You can use vicfg-nas as a vCLI command with connection options.
For more information on connection options, see “Connection Options for vCLI Host Management
Commands,” on page 19.
Procedure
1 List all known NAS le systems.
vicfg-nas <conn_options> -l
For each NAS le system, the command lists the mount name, share name, and host name and whether
the le system is mounted. If no NAS le systems are available, the system returns a No NAS datastore
found message.
2 Add a new NAS le system to the ESXi host.
vicfg-nas <conn_options --add --nasserver dir42.eng.vmware.com -s /<mount_dir> nfsstore-dir42
This command adds an entry to the known NAS le system list and supplies the share name of the new
NAS le system. You must supply the host name and the share name for the new NAS le system.
3 Add a second NAS le system with read-only access.
vicfg-nas <conn_options> -a -y --n esx42nas2 -s /home FileServerHome2
4 Delete one of the NAS le systems.
vicfg-nas <conn_options> -d FileServerHome1
This command unmounts the NAS le system and removes it from the list of known le systems.
Monitor and Manage FibreChannel SAN Storage
The esxcli storage san commands help administrators troubleshoot issues with I/O devices and fabric, and
include Fibre Channel, FCoE, iSCSI, SAS protocol statistics.
The commands allow you to retrieve device information and I/O statistics from those device. You can also
issue Loop Initialization Primitives (LIP) to FC/FCoE devices and you can reset SAS devices.
Chapter 4 Managing Storage
VMware, Inc. 59