6.0

Table Of Contents
Getting Started with vSphere Command-Line Interfaces
28 VMware, Inc.
YoumanageNASstoragedevicesfromthevSphereWebClientorwiththeesxcli storage nfs
command.Thediagrambelowillustratesdifferenttypesofstorage,butitisforconceptualpurposesonly.
Itisnotarecommendedconfiguration.
Figure 3-1. Virtual Machines Accessing Different Types of Storage
Managing the Virtual Machine File System with vmkfstools
VMFSdatastoresprimarilyserveasrepositoriesforvirtualmachines.Youcanstoremultiplevirtualmachines
onthesameVMFSvolume.Eachvirtualmachine,encapsulatedinasetoffiles,occupiesaseparatesingle
directory.Fortheoperatingsysteminsidethevirtualmachine,VMFSpreservestheinternalfilesystem
semantics.
Inaddition,
youcanusetheVMFSdatastorestostoreotherfiles,suchasvirtualmachinetemplatesandISO
images.VMFSsupportsfileandblocksizesthatenablevirtualmachinestorundataintensiveapplications,
includingdatabases,ERP,andCRM,invirtualmachines.SeethevSphereStoragedocumentation.
Youusethevmkfstools
vCLItocreateandmanipulatevirtualdisks,filesystems,logicalvolumes,and
physicalstoragedevicesonanESXihost.Youcanusevmkfstoolstocreateandmanageavirtualmachinefile
system(VMFS)onaphysicalpartitionofadiskandtomanipulatefiles,suchasvirtualdisks,storedon
VMFS
3andNFS.Youcanalsousevmkfstoolstosetupandmanagerawdevicemappings(RDMs).
ThevSphereStoragedocumentationincludesacompletereferencetothevmkfstoolscommandthatyoucan
useintheESXiShell.YoucanusemostofthesameoptionswiththevmkfstoolsvCLIcommand.
Specifyone
oftheconnectionoptionslistedin“ConnectionOptionsforvCLIHostManagementCommands”onpage 18
inplaceof<conn_options>.
ThefollowingoptionssupportedbythevmkfstoolsESXiShellcommandarenotsupportedby the
vmkfstoolsvCLIcommand.
--breaklock -B
--chainConsistent -e
--eagerzero -k
--fix -x
--lock -L
iSCSI array NAS appliancefibre array
Host
VMFS
local
ethernet
SCSI
VMFS VMFS NFS
virtual
machine
virtual
machine
virtual
machine
virtual
machine
virtual
machine
SAN LAN LAN LAN
iSCSI
hardware
initiator
fibre
channel
HBA
ethernet
NIC
ethernet
NIC
software
initiator
requires TCP/IP connectivity
Key
physical
disk
datastore
virtual
disk
IMPORTANTThevmkfstoolsvCLIsupportsmostbutnotalloftheoptionsthatthevmkfstoolsESXiShell
commandsupports.SeeVMwareKnowledgeBasearticle1008194.
Youcannotrunvmkfstoolswith
--serverpointingtoavCenterServersystem.