6.0

Table Of Contents
VMware, Inc. 53
Chapter 4 Managing Storage
Monitoring and Managing SAN Storage
Theesxcli storage sancommandshelpadministratorstroubleshootissueswithI/Odevicesandfabric,
andincludeFibreChannel,FCoE,iSCSI,SASprotocolstatistics.Thecommandsallowyoutoretrievedevice
informationandI/Ostatisticsfromthosedevice.YoucanalsoissueLoopInitializationPrimitives(LIP)to
FC/FCoEdevicesandyoucanresetSAS
devices.
ForFCandFCoEdevices,youcanretrieveFCeventssuchasRSCN,LINKUP,LINKDOWN,FrameDropandFCoE
CVL.ThecommandslogawarningintheVMkernellogifitencounterstoomanyLinkTogglingorframedrops
ThefollowingexampleexaminesandresetsSANstoragethroughaFibreChanneladapter.Insteadoffc,the
informationretrievalcommandscanalsouseiscsi,fcoe, andsas.
To monitor and manage FibreChannel SAN storage
1Listadapterattributes.
esxcli storage san fc list
2 RetrievealleventsforaFibreChannelI/Odevice.
esxcli storage san fc events get
3ClearallI/ODeviceManagementeventsforthespecifiedadapter.
esxcli storage san fc events clear --adapter adapter
4 Resettheadapter
esxcli storage san fc reset
Monitoring and Managing Virtual SAN Storage
VirtualSANisadistributedlayerofsoftwarethatrunsnativelyasapartoftheESXihypervisor.VirtualSAN
aggregateslocalordirectattachedstoragedisksofahostclusterandcreatesasinglestoragepoolshared
acrossallhostsofthecluster.
WhilesupportingVMwarefeaturesthatrequireshared
storage,suchasHA,vMotion,andDRS,VirtualSAN
eliminatestheneedforanexternalsharedstorageandsimplifiesstorageconfigurationandvirtualmachine
provisioningactivities.
YoucanuseESXCLIcommandstoretrievevirtualSANinformation,manageVirtualSANclusters,perform
networkmanagement,addstorage,setthepolicy,andperform
othermonitoringandmanagementtasks.Type
esxcli vsan
--helpforacompletelistofcommands.
To retrieve Virtual SAN information
1VerifywhichVMkerneladaptersareusedforVirtualSANcommunication.
esxcli vsan network list
2ListstoragedisksthatwereclaimedbyVirtualSAN.
esxcli vsan storage list
3GetVirtualSANclusterinformation.
esxcli vsan cluster get
YoucanactivateVirtualSANwhenyoucreatehostclustersorenableVirtualSANonexistingclusters.When
enabled,VirtualSANaggregatesalllocalstoragedisksavailableonthehostsintoasingledatastoresharedby
allhosts.Youcanlaterexpandthedatastorebyaddingstoragedevicesorhoststo
thecluster.
YoucanrunthesecommandsintheESXiShellforahost,orthecommandaffectsthetargethostthatyou
specifyaspartofthevCLIconnectionoptions.