Vsphere Datacenter
Vsphere Datacenter
ProgrammingGuide>Storage
IntroductiontoStorage
TheVMwarevSpherestoragearchitectureconsistsoflayersofabstractionthathideandmanagethecomplexityand
differencesofphysicalstoragesubsystems,showninStorageArchitecture.
StorageArchitecture
HowVirtualMachinesAccessStorage
Virtualmachinesusevirtualdisksfortheiroperatingsystem,applicationsoftware,andotherdatafiles.Avirtualdiskis
storedasaVMDKfileonadatastore.Thevirtualdiskhidesthephysicalstoragelayerfromthevirtualmachines
operatingsystem.Regardlessofthetypeofstoragedevicethatyourhostuses,thevirtualdiskalwaysappearstothe
virtualmachineasalocalSCSIdevice.Asaresult,youcanrunoperatingsystemsthatarenotcertifiedforspecific
storageequipment,suchasSAN,inthevirtualmachine.
Whenavirtualmachinecommunicateswithitsvirtualdiskstoredonadatastore,itissuesSCSIcommands.Because
datastorescanexistondifferenttypesofphysicalstorage,thesecommandsareencapsulatedintootherforms,
dependingontheprotocolthattheESX/ESXihostusestoconnecttothephysicalstoragedevice.
Totheapplicationsandguestoperatingsystemsrunningoneachvirtualmachine,thestoragesubsystemappearsasa
virtualSCSIcontrollerconnectedtooneormorevirtualSCSIdisksasshowninthetophalfofStorageArchitecture.
ThesecontrollersaretheonlytypesofSCSIcontrollersthatavirtualmachinecanseeandaccess,andincludethe
objectsthatextendVirtualSCSIController:
ParaVirtualSCSIController
VirtualBusLogicController
VirtualLsiLogicController
VirtualLsiLogicSASController
Howpreciselyavirtualmachineaccessesstoragedependsonthesetupofthehost.StorageAPIArchitecturegivesan
overviewofthedifferentpossibilities.
StorageAPIArchitecture
Datastores
Adatastoreisamanageablestorageentity,usuallyusedasarepositoryforvirtualmachinefilesincludinglogfiles,
scripts,configurationfiles,virtualdisks,andsoon.vSpheresupportstwotypesofdatastores,VMFSandNAS.
IfyouwanttouseaNASvolume,mountitusingCreateNasDatastoreandunmountitusing
RemoveDatastore.Thetwocommandsarehostspecific,youmustinvokethecreateandremovemethodson
eachhostonwhichyouwanttomountorunmountthedatastore.
TocreateaVMFSdatastore,callCreateVmfsDatastore,passinginanyexistingdisk.Asaresultofthecall,
thediskisformattedwithVMFSandthedatastoreisautomountedonallESX/ESXihostsonwhichthediskis
visiblethenexttimeyouperformarescan.WhenyoucallRemoveDatastoreonaVMFSdatastore,thedatastore
isdestroyed.Afterarescan,thedatastoreisnolongeravailabletoanyESX/ESXisystems.IncontrasttoNAS
datastores,youdonothavetoinvokeamethodsforcreationandremovalofthedatastoreoneachhost.
AnESX/ESXihostautomaticallydiscoverstheVMFSvolumeonattachedLogicalUnitNumbers(LUNs)onstartupand
afterrescanningthehostbusadapter.WhenyoucreateaVMFSdatastore,thedatastorelabelisbasedontheVMFS
volumelabel.Ifthereisaconflictwithanexistingdatastore,thelabelismadeuniquebyappendingasuffix.TheVMFS
volumelabelremainsunchanged.
DestroyingaVMFSdatastoreremovesthepartitionsthatcomposetheVMFSvolume.
Datastorescanspanmultiplephysicalstoragedevices.AsingleVMFSvolumecancontainoneormoreLUNsfroma
localSCSIdiskarrayonaphysicalhost,aFibreChannelSANdiskfarm,oriSCSISANdiskfarm.TheESX/ESXi
systemdetectsnewLUNSthatareaddedtoanyofthephysicalstoragesubsystems.Whentheuserqueriesforalist
ofavailabledevices,thenewlydiscovereddevicesareincluded.YoucanextendstoragecapacityonanexistingVMFS
volumewithoutpoweringdownphysicalhostsorstoragesubsystems.
IfanyoftheLUNswithinaVMFSvolumefailsorbecomesunavailable,onlyvirtualmachineswithdataonthatLUNare
affected.AnexceptionistheLUNthathasthefirstextentofthespannedvolume(multiextentvolume).Allothervirtual
machineswithvirtualdisksresidingonotherLUNscontinuetofunctionnormally.
Helpusimprovethisinformation.Sendfeedbacktodocfeedback@vmware.com.