6.0

Table Of Contents
Getting Started with vSphere Command-Line Interfaces
54 VMware, Inc.
To manage a Virtual SAN cluster
1JointhetargethosttoagivenVirtualSANcluster.
esxcli vsan cluster join --cluster-uuid <uuid>
TheUUIDoftheclusterisrequired.
2VerifythatthetargethostisjoinedtoaVirtualSANcluster.
esxcli vsan cluster get
3RemovethetargethostfromtheVirtualSANcluster.
esxcli vsan cluster leave
To add and remove Virtual SAN storage
1Addanhdd(ordatadisk)forusebyVirtualSAN.
esxcli vsan storage add --disks <device_name>
Thecommandexpectsanemptydisk,whichwillbepartitionedorformatted.Specifyadevicename,for
example,mpx.vmhba2:C0:T1:L0.
2AddansdddiskforusebyVirtualSAN.
esxcli vsan storage add --ssd <device_name>
Thecommandexpectsanemptydisk,whichwillbepartitionedorformatted.Specifyadevicename,for
example,mpx.vmhba2:C0:T1:L0.
3ListtheVirtualSANstorageconfiguration.Youcandisplaythecompletelist,orfiltertoshowonlya
singledevice.
esxcli vsan storage list --device <device>
4Removedisksordiskgroups.
YoucanremovedisksordiskgroupsonlywhenVirtualSANisinmanualmode.Fortheautomaticdisk
claimmode,theremoveactionisnotsupported
RemoveanindividualVirtualSANdisk.
esxcli vsan storage remove --disk <device_name>
Insteadofspecifyingthedevicename,youcanspecifytheUUIDifyouincludethe--uuidoption.
Removeadiskgroup’sSSDandeachofitsbackingHDDdrivesfromVirtualSANusage.
esxcli vsan storage remove --ssd <device_name>
Insteadofspecifyingthedevicename,youcanspecifytheUUIDifyouincludethe--uuidoption.
AnySSDthatyouremovefromVirtualSANbecomesavailableforsuchfeaturesasFlashReadCache.
Monitoring vSphere Flash Read Cache
FlashReadCache™letsyouacceleratevirtualmachineperformancethroughtheuseofhostresidentflash
devicesasacache.ThevSphereStoragedocumentationdiscussesvSphereFlashReadCacheinsomedetail.
YoucanreserveaFlashReadCacheforanyindividualvirtualdisk.TheFlashReadCacheiscreatedonly
when
avirtualmachineispoweredon,anditisdiscardedwhenavirtualmachineissuspendedorpoweredoff.
Whenyoumigrateavirtualmachineyouhavetheoptiontomigratethecache.Bydefaultthecacheismigrated
ifthevirtualflashmoduleonthesourceanddestination
hostsarecompatible.Ifyoudonotmigratethecache,
thecacheisrewarmedonthedestinationhost.Youcanchangethesizeofthecachewhileavirtualmachineis
poweredon.Inthisinstance,theexistingcacheisdiscardedandanewwritethroughcacheiscreated,which
results
inacachewarmupperiod.Theadvantageofcreatinganewcacheisthatthecachesizecanbettermatch
theapplicationʹsactivedata.