6.0

Table Of Contents
VMware, Inc. 27
3
ThevSphereCLIincludestwocommandsforfilemanipulation.vmkfstoolsallowsyoutomanipulateVMFS
(VirtualMachineFileSystem)andvirtualdisks.vifssupportsremoteinteractionwithfilesonyourESXihost.
Thischapterincludesthefollowingtopics:
“IntroductiontoVirtualMachineFileManagement”onpage 27
“ManagingtheVirtualMachineFileSystemwithvmkfstools”onpage 28
“UpgradingVMFS3VolumestoVMFS5”onpage 29
“ManagingVMFSVolumesonpage 29
“ReclaimingUnusedStorageSpace”onpage 31
“UsingvifstoViewandManipulateFilesonRemoteESXiHosts”onpage 32
Introduction to Virtual Machine File Management
YoucanusethevSphereWebClientorvCLIcommandstoaccessdifferenttypesofstoragedevicesthatyour
ESXihostdiscoversandtodeploydatastoresonthosedevices.
Dependingonthetypeofstorageyouuse,datastorescanbebackedbythefollowingfilesystemformats:
VirtualMachineFileSystem(VMFS).Highperformancefilesystemthatisoptimizedforstoringvirtual
machines.YourhostcandeployaVMFSdatastoreonanySCSIbasedlocalornetworkedstoragedevice,
includingFibreChannelandiSCSISANequipment.AsanalternativetousingtheVMFSdatastore,your
virtualmachine
canhavedirectaccesstorawdevicesanduseamappingfile(RDM)asaproxy.
YoumanageVMFSandRDMswiththevSphereWebClient,orthevmkfstoolscommand.
NetworkFileSystem(NFS).TheNFSclientbuiltintoESXiusestheNetworkFileSystem(NFS)protocol
overTCP/IPtoaccessadesignatedNFSvolumethatislocatedonaNASserver.TheESXihostcanmount
thevolumeanduseitforitsstorageneeds.vSpheresupportsversion3
and4.1oftheNFSprotocol.
Typically,theNFSvolumeordirectoryiscreatedbyastorageadministratorandisexportedformtheNFS
server.TheNFSvolumesdonotneedtobeformattedwithalocalfilesystem,suchasVMFS.Youcan
mountthevolumesdirectlyandusethem
tostoreandbootvirtualmachinesinthesamewaythatyouuse
VMFSdatastores.ThehostcanaccessadesignatedNFSvolumelocatedonanNFSserver,mountthe
volume,anduseitforanystorageneeds.
Managing Files
3
NOTESee“ManagingStorage”onpage 37forinformationaboutstoragemanipulationcommands.
NOTEDatastoresarelogicalcontainers,analogoustofilesystems,thathidespecificsofeachstoragedevice
andprovideauniformmodelforstoringvirtualmachinefiles.DatastorescanbeusedforstoringISOimages,
virtualmachinetemplates,andfloppyimages.ThevSphereWebClientusesthetermdatastoreexclusively.
Thismanual
usesthetermdatastoreandVMFS(orNFS)volumetorefertothesamelogicalcontaineronthe
physicaldevice.