Documente Academic
Documente Profesional
Documente Cultură
Update 2 and later for ESX Server 3.5, ESX Server 3i version 3.5, VirtualCenter 2.5
You can find the most up-to-date technical documentation on our Web site at: http://www.vmware.com/support/ The VMware Web site also provides the latest product updates. If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com
20072009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents. VMware, the VMware boxes logo and design, Virtual SMP and VMotion are registered trademarks or trademarks of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies.
Contents
AboutThisBook
1 UsingESXServerwithaStorageAreaNetwork 11
UnderstandingVirtualization 12 NetworkVirtualization 12 StorageVirtualization 12 StorageAreaNetworkConcepts 15 Ports 16 MultipathingandPathFailover 17 StorageSystemTypes 17 TargetComparedtoLUNRepresentations 17 iSCSINamingConventions 19 OverviewofUsingESXServerwithaSAN 20 BenefitsofUsingESXServerwithaSAN 20 UseCases 21 FindingSANConfigurationInformation 21 BasicsofUsingSANStorageSystemswithan ESXServer 22 NetworkConfigurationandAuthentication 22 SharingaVMFSAcrossESXServers 22 MetadataUpdates 24 VolumeDisplayandRescan 24 LevelsofIndirection 24 DataAccess:VMFSorRDM 25 ThirdPartyManagementApplications 26 Discovery,Authentication,andAccessControl 26 ErrorCorrection 27 UnderstandingVMFSandSANStorageChoices 27 ChoosingLargerorSmallerLUNs 27 MakingLUNDecisions 28 TipsforMakingLUNDecisions 29
VMware, Inc.
UnderstandingDataAccess 30 AccessingDataonaSAN 30 HowVirtualMachinesAccessData 30 HowVirtualMachinesAccessDataonaSAN 31 PathManagementandFailover 32 SCSIStorageStackFailover 32 NICTeamingandFailover 33 ArrayBasedFailover 33 ChoosingVirtualMachineLocations 35 DesigningforServerFailure 36 UsingVMwareHA 36 ServerFailoverandStorageConsiderations 36
2 InstallationofiSCSIInitiatorsandStorage 37
PreparingforiSCSIStorageSetup 37 ESXServerSANRequirements 38 Restrictions 38 Recommendations 39 SettingLUNAllocations 39 SettingUpHardwareiSCSIInitiatorsandStorage 40 InstallingandViewingHardwareiSCSIInitiators 40 ConfiguringHardwareiSCSIInitiators 41 AddingHardwareInitiatediSCSIStorage 47 SettingAdditionalParameters 50 SettingUpSoftwareiSCSIInitiatorsandStorage 50 NetworkingConfigurationforSoftwareiSCSIStorage ConfiguringSoftwareiSCSIInitiators 56 ViewingSoftwareiSCSIInitiators 60 AddingSoftwareInitiatediSCSIStorage 62
50
3 ModifyingSANStorageSystemswithESXServer 65
SetupOverview 66 GeneralConsiderations 66 EMCCLARiiONStorageSystems 67 EMCCLARiiONAX100iandAX150iandRDM 68 PushingHostConfigurationChangestotheStorageSystem 68 EMCSymmetrixStorageSystems 68 HPStorageWorksStorageSystems 69 HPStorageWorksMSA 69 HPStorageWorksEVA 71
VMware, Inc.
Contents
4 BootingfromaSANwithESXServerSystems 77
BootingfromaSANOverview 77 BenefitsofBootingfromaSAN 78 DecidingtoBootFromaSAN 78 EnablingBootingfromaSAN 79 PreparingtheSAN 79 ConfiguringiSCSIHBAstoBootfromaSAN 81
5 ManagingESXServerSystemsThatUseSANStorage 85
IssuesandSolutions 86 GuidelinesforAvoidingSANProblems 86 GettingInformation 87 ViewingHBAInformation 87 ViewingDatastoreInformation 88 ResolvingDisplayIssues 89 UnderstandingLUNNamingintheDisplay 89 ResolvingIssueswithLUNsThatAreNotVisible 89 UsingRescan 90 RemovingDatastores 91 AdvancedLUNDisplayConfiguration 92 ChangingtheNumberofLUNsScannedbyUsingDisk.MaxLUN 92 MaskingLUNsbyUsingDisk.MaskLUNs 93 ChangingSparseLUNSupportbyUsingDiskSupportSparseLUN 94 Multipathing 94 ViewingtheCurrentMultipathingState 94 ActivePaths 97 SettingaLUNMultipathingPolicy 97 DisablingandEnablingPaths 98 SettingthePreferredPath(FixedPathPolicyOnly) 99 PathManagementandManualLoadBalancing 100 PathFailover 101
VMware, Inc.
VMkernelConfiguration 102 SharingDiagnosticPartitions 102 AvoidingandResolvingSANProblems 103 OptimizingSANStoragePerformance 103 StorageSystemPerformance 104 ServerPerformance 104 NetworkPerformance 105 ResolvingPerformanceIssues 108 MonitoringPerformance 108 CheckingEthernetSwitchStatistics 109 ResolvingPathThrashing 109 UnderstandingPathThrashing 110 EqualizingDiskAccessBetweenVirtualMachines 111 RemovingVMFS2Drivers 112 ReducingSCSIReservations 112 SettingMaximumQueueDepthforSoftwareiSCSI 112 SANStorageBackupConsiderations 113 SnapshotSoftware 114 UsingaThirdPartyBackupPackage 114 ChoosingYourBackupSolution 115 LayeredApplications 115 ArrayBased(ThirdParty)Solution 116 FileBased(VMFS)Solution 116 VMFSVolumeResignaturing 117 MountingOriginal,Snapshot,orReplicaVMFSVolumes 117 UnderstandingResignaturingOptions 118
Index 127
VMware, Inc.
WhenadiscussionappliestoallversionsofESXServerforVMwareInfrastructure3, thisbookusesthetermESXServer3.x.
VMware, Inc.
Intended Audience
TheinformationpresentedinthismanualiswrittenforexperiencedWindowsorLinux systemadministratorswhoarefamiliarwithvirtualmachinetechnologydatacenter operations.
Document Feedback
VMwarewelcomesyoursuggestionsforimprovingourdocumentation.Ifyouhave comments,sendyourfeedbackto: docfeedback@vmware.com
Support Offerings
FindouthowVMwaresupportofferingscanhelpmeetyourbusinessneeds.Goto: http://www.vmware.com/support/services
VMware, Inc.
10
VMware, Inc.
YoucanuseESXServerinconjunctionwithastorageareanetwork(SAN),aspecialized highspeednetworkthatconnectscomputersystemstohighperformancestorage subsystems.UsingESXServertogetherwithaSANprovidesextrastoragefor consolidation,improvesreliability,andhelpswithdisasterrecovery. TouseESXServereffectivelywithaSAN,youmusthaveaworkingknowledgeof ESX ServersystemsandSANconcepts.Also,whenyousetupESXServerhoststouse iSCSISANstoragesystems,specialconsiderationsarenecessary.Formoreinformation aboutusingESXServer,seetheESXServerConfigurationGuide. Thischapterdiscussesthefollowingtopics:
VMware, Inc.
11
Understanding Virtualization
TheVMwarevirtualizationlayeriscommonacrossVMwaredesktopproducts(suchas VMwareWorkstation)andserverproducts(suchasVMwareESXServer).Thislayer providesaconsistentplatformfordevelopment,testing,delivery,andsupportof applicationworkloadsandisorganizedasfollows:
Network Virtualization
Thevirtualizationlayerguaranteesthateachvirtualmachineisisolatedfromother virtualmachines.Virtualmachinescantalktoeachotheronlythroughnetworking mechanismssimilartothoseusedtoconnectseparatephysicalmachines. Theisolationallowsadministratorstobuildinternalfirewallsorothernetwork isolationenvironments,allowingsomevirtualmachinestoconnecttotheoutsidewhile othersareconnectedonlythroughvirtualnetworkstoothervirtualmachines. Formoreinformationonnetworkingconceptsandvirtualswitches,seetheESXServer ConfigurationGuide.
Storage Virtualization
InanESXServerenvironment,eachvirtualmachineincludesfromonetofourvirtual SCSIinitiators.ThesevirtualadaptersappearaseitherBuslogicorLSILogicSCSI controllers.TheyaretheonlytypesofSCSIcontrollersthatavirtualmachinecan access. EachvirtualdiskthatavirtualmachinecanaccessthroughoneofthevirtualSCSI initiatorsresidesintheVMwareVirtualMachineFileSystem(VMFS)oronarawdisk.
12
VMware, Inc.
Figure 11givesanoverviewofstoragevirtualization.ItillustratesstorageusingVMFS andstorageusingrawdevicemapping.ItalsoshowshowiSCSIstorageisaccessed througheitheriSCSIHBAsorbyusingageneralpurposeNICthatusesiSCSIinitiator software. Figure 1-1. iSCSI SAN Storage Virtualization
ESX Server virtual machine SCSI controller (Buslogic or LSI Logic) virtual disk virtual machine SCSI controller (Buslogic or LSI Logic) virtual disk
LUN2
LUN5
iSCSI Initiators
Toaccessremotetargets,yourESXServerhostusesiSCSIinitiators.Initiatorstransport SCSIrequestsandresponsesbetweentheESXServersystemandthetargetstorage deviceontheIPnetwork. ESXServersupportshardwarebasedandsoftwarebasediSCSIinitiators: Hardware iSCSI initiator. Athirdpartyhostbusadapter(HBA)withiSCSIover TCP/IPcapability.ThisspecializediSCSIadapterisresponsibleforalliSCSIprocessing andmanagement.
VMware, Inc.
13
Software iSCSI initiator. CodebuiltintotheVMkernelthatallowsanESXServerto connecttotheiSCSIstoragedevicethroughstandardnetworkadapters.Thesoftware initiatorhandlesiSCSIprocessingwhilecommunicatingwiththenetworkadapter throughthenetworkstack.Withthesoftwareinitiator,youcanuseiSCSItechnology withoutpurchasingspecializedhardware. NOTEGuestoperatingsystemsinvirtualmachinescannotseeiSCSIstoragedirectly. Totheguestoperatingsystems,iSCSIstorageattachedtotheESXServersystem appearstobeavailablethroughaSCSIHBA. ThediagraminFigure 11depictstwovirtualmachinesthatusedifferenttypesofiSCSI initiators. InthefirstexampleofiSCSIstorageconfiguration,theESXServersystemusesthe hardwareiSCSIinitiator.ThisspecializediSCSIinitiatorsendsiSCSIpacketstoadisk overaLAN. Inthesecondexample,theESXServersystemisconfiguredwiththesoftwareiSCSI initiator.Usingthesoftwareinitiator,theESXServersystemconnectstoaLANthrough anexistingNIC.
14
VMware, Inc.
www.searchstorage.com www.snia.org
VMware, Inc.
15
IfyouarenewtoSANtechnology,readthefollowingsectiontofamiliarizeyourself withthebasicterminologythisdocumentuses.TolearnaboutbasicSANconcepts,see theSANConceptualandDesignBasicswhitepaperat http://www.vmware.com/support/pubs. ThisconfigurationguidediscussesiSCSISANs,whichuseEthernetconnections betweencomputersystems,orhostservers,andhighperformancestoragesubsystems. TheSANcomponentsincludehostbusadapters(HBAs)orNetworkInterface Cards (NICs)inthehostservers,switchesandroutersthattransportthestoragetraffic,cables, storageprocessors(SPs),andstoragedisksystems. Totransfertrafficfromhostserverstosharedstorage,theSANusestheiSCSIprotocol thatpackagesSCSIcommandsintoiSCSIpacketsandtransmitstheseonanEthernet network.
Ports
Inthecontextofthisdocument,aportistheconnectionfromadeviceintotheSAN. EachnodeintheSAN,ahost,storagedevice,andEthernetswitchhasoneormoreports thatconnectittotheSAN.Portsareidentifiedinanumberofways: IP address EachiSCSIporthasanIPaddressassociatedwithitsothatroutingand switchingequipmentonyournetworkcanestablishtheconnectionbetweentheserver andstorage.ThisisjustliketheIPaddressyouassigntoyourcomputertogetaccessto yourcompanysnetworkortheInternet. iSCSI Name Auniquenameforidentifyingtheport.TheiSCSInamestartswith eitheriqn.(foriSCSIqualifiedname)oreui.(forextendeduniqueidentifier).Multiple iSCSIdevicescanbepresent,withmultipleiSCSInames,andcanbeconnectedthrough asinglephysicalEthernetport.iSCSInamesareusuallysettoauniquedefaultvalue, anddonotneedtobesetbytheuser.AnexampleofaVMwaregeneratediSCSIname isiqn.199801.com.vmware:iscsitestox68158ef2. iSCSI alias AmoremanageablenameforaniSCSIdeviceorport,usedinsteadofthe iSCSIname.iSCSIaliasesarenotunique,andareintendedtobejustafriendlyname toassociatewithaport.OnanESXServersystem,thedefaultiSCSIaliasisthenameof thesystem.
16
VMware, Inc.
Anactiveactivestoragesystem,whichallowsaccesstotheLUNssimultaneously throughallthestorageportsthatareavailablewithoutsignificantperformance degradation.Allthepathsareactiveatalltimes(unlessapathfails). Anactivepassivestoragesystem,inwhichoneportoranSPisactivelyproviding accesstoagivenLUN.TheotherportsorSPsactasbackupfortheLUNandcan beactivelyprovidingaccesstootherLUNI/O.I/Ocanbesentonlytoanactive port.Ifaccessthroughtheprimarystorageportfails,oneofthesecondaryportsor storageprocessorsbecomesactive,eitherautomaticallyorthroughadministrator intervention. Avirtualportstoragesystem,whichallowsaccesstoallavailablevolumesthrough asinglevirtualport.Theseareactiveactivestoragedevices,buthidetheirmultiple connectionsthoughasingleport.TheESXServermultipathinghasnoknowledge ofthemultipleconnectionstothestorage.Thesestoragesystemshandleport failoverandconnectionbalancingtransparently.Thisisoftenreferredtoas transparentfailover.
VMware, Inc.
17
storage array
storage array
Threevolumes(orLUNs,theSCSItermforlogicalunit,whichmeansaportionof storage)areavailableineachoftheseconfigurations.Inthefirstcase,ESXServersees onetarget(representedbyanIQNname)butthattargethasthreeLUNsthatcanbe used.EachoftheLUNsrepresentindividualstoragevolumes.Inthesecondcase,the ESXServerseesthreedifferenttargets,representedbythreeseparateIQNnames. Each ofthesetargetshasoneLUN. Targetnumbering(thoughnotIQNtargetnaming)isdecidedbytheESXServer,so targetsthataresharedbydifferentESXServersystemsmightnothavethesametarget number(vmhba1:2:3:4,wherethe2showsthetargetnumberposition).Also,multiple pathstothesamestoragearerepresentedbydifferenttargetnumbers. LUNnumberingisdecidedbythestoragesystem,soLUNnumbersacrosspathsand multipleESXServersystemsalwaysstaythesame(vmhba1:2:3:4,wherethe3shows theLUNposition).Onstoragesystemswithmultipletargets,likethesecondexample above,theLUNnumberisalwayszero(0). ESXServerbasediSCSIinitiatorsestablishonlyoneconnectiontoeachtarget. This meansstoragesystemswithasingletargetcontainingmultipleLUNshaveall LUNtrafficonthatoneconnection.WithasystemthathasthreetargetswithoneLUN each,threeconnectionsexistbetweenanESXServerandthethreevolumesavailable. Thisinformationisusefulwhenyouaretryingtoaggregatestoragetrafficonmultiple connectionsfromanESXServerwithmultipleiSCSIHBAs,wheretrafficforonetarget canbesettoaparticularHBA,whiletrafficforanothertargetcanuseadifferentHBA. ThisdocumentusesthetermLUNtomeanavolumeavailablefromastoragesystem, evenifthatLUNistheonlyoneavailableonaniSCSItarget.Thismeaningistoavoid confusionwithotherusesofthewordvolumeinthisdocument.Althoughstorage systemvendorsmightnotcalltheirvolumesLUNs,thisisultimatelyhowtheyare representedtotheESXServerstoragesystem.
18
VMware, Inc.
VMware, Inc.
19
YoucanstoredataredundantlyandconfiguremultipleEthernetpathstoyour iSCSIstorage,eliminatingasinglepointoffailure.Yourenterpriseisnotcrippled whenonedatacenterbecomesunavailable. ESXServersystemsprovidemultipathingbydefaultandautomaticallysupportit foreveryvirtualmachine.SeePathManagementandFailoveronpage 32. UsingaSANwithESXServersystemsextendsfailureresistancetotheserver. WhenyouuseSANstorage,allapplicationscaninstantlyberestartedafterhost failure.SeeDesigningforServerFailureonpage 36.
Ifvirtualmachinesareusedasstandbysystemsforexistingphysicalservers, sharedstorageisessentialandaSANisthebestsolution. UsetheVMwareVMotioncapabilitiestomigratevirtualmachinesseamlessly fromonehosttoanother. UseVMwareHighAvailability(HA)inconjunctionwithaSANforacoldstandby solutionthatguaranteesanimmediate,automaticresponse. UseVMwareDistributedResourceScheduler(DRS)tomigratevirtualmachines fromonehosttoanotherforloadbalancing.BecausestorageisonaSANstorage system,applicationscontinuerunningseamlessly. IfyouuseVMwareDRSclusters,putanESXServerhostintomaintenancemode tohavethesystemmigrateallrunningvirtualmachinestootherESXServerhosts. Youcanthenperformupgradesorothermaintenanceoperations.
20
VMware, Inc.
Use Cases
UsingESXServersystemsinconjunctionwithSANiseffectiveforthefollowingtasks: Maintenance with zero downtime. Whenyouperformmaintenance,useVMware DRSorVMotiontomigratevirtualmachinestootherservers.Ifsharedstorageisonthe SAN,youcanperformmaintenancewithoutinterruptionstotheuser. Load balancing. UseVMotionexplicitlyoruseVMwareDRStomigratevirtual machinestootherhostsforloadbalancing.IfsharedstorageisonaSAN,youcan performloadbalancingwithoutinterruptiontotheuser. Storage consolidation and simplification of storage layout. Ifyouareworking withmultiplehosts,andeachhostisrunningmultiplevirtualmachines,thehosts storageisnolongersufficientandexternalstorageisneeded.ChoosingaSANfor externalstorageresultsinasimplersystemarchitecturewhilegivingyoutheother benefitslistedinthissection.Youcanstartbyreservingalargevolumeandthen allocateportionstovirtualmachinesasneeded.Volumeallocationandcreationfrom thestoragedeviceneedstohappenonlyonce. Disaster recovery. HavingalldatastoredonaSANcangreatlyfacilitateremote storageofdatabackups.Inaddition,youcanrestartvirtualmachinesonremote ESX Serverhostsforrecoveryifonesiteiscompromised.
VMware, Inc.
21
Formoreinformation,seetheVMwareDocumentationWebsiteat http://www.vmware.com/support/pubs.
ForsoftwareiSCSI,networkingfortheVMkernelneedstobeconfigured.Youcan verifythenetworkconfigurationbyusingthevmkpingutility(seeAppendix B, Utilities,onpage 123).ForhardwareiSCSI,networkparameters,suchas IP address,subnetmask,anddefaultgatewaymustbeconfiguredontheHBA. Checkandchangethedefaultinitiatornameifnecessary. Thediscoveryaddressofthestoragesystemmustbesetandshouldbepingable usingvmkping. ForCHAPauthentication,enableitontheinitiatorandthestoragesystemside. Afterauthenticationisenabled,itappliesforallofthetargetsthatarenotyet discovered,butdoesnotapplytotargetsthatarealreadydiscovered.Afterthe discoveryaddressisset,thenewvolumesdiscoveredareexposedandcanbeused atthatpoint.
22
VMware, Inc.
VMFScan:
NOTESCSIreservationsareheldduringmetadataupdatestotheVMFSvolume. ESX ServerusesshortlivedSCSIreservationsaspartofitsdistributedlockingprotocol. BecausevirtualmachinesshareacommonVMFS,itmightbedifficulttocharacterize peakaccessperiodsortooptimizeperformance.Youneedtoplanvirtualmachine storageaccessforpeakperiods,butdifferentapplicationsmighthavedifferent peakaccessperiods.ThemorevirtualmachinesaresharingaVMFS,thegreaterthe potentialforperformancedegradationbecauseofI/Ocontention. NOTEVMwarerecommendsthatyouloadbalancevirtualmachinesoverservers, CPU,andstorage.Runamixofvirtualmachinesoneachserversothatnotall experiencehighdemandinthesameareaatthesametime. Figure 13showsseveralESXServersystemssharingthesameVMFSvolume. Figure 1-3. Accessing Virtual Disk Files
ESX Server A ESX Server B ESX Server C
VM1
VM2
VM3
VMware, Inc.
23
Metadata Updates
AVMFSholdsfiles,directories,symboliclinks,RDMs,andsoon,alongwith correspondingmetadatafortheseobjects.Metadataisaccessedeachtimetheattributes ofafileareaccessedormodified.Theseoperationsinclude,butarenotlimitedto:
Levels of Indirection
IfyoureusedtoworkingwithtraditionalSANs,thelevelsofindirectioncaninitially beconfusing.
Youcannotdirectlyaccessthevirtualmachineoperatingsystemthatusesthe storage.Withtraditionaltools,youcanmonitoronlytheVMwareESXServer operatingsystem(butnotthevirtualmachineoperatingsystem).Youusethe VI Clienttomonitorvirtualmachines. Eachvirtualmachineis,bydefault,configuredwithonevirtualharddiskandone virtualSCSIcontrollerduringinstallation.YoucanmodifytheSCSIcontrollertype andSCSIbussharingcharacteristicsbyusingtheVIClienttoeditthevirtual machinesettings,asshowninFigure 14.Youcanalsoaddharddiskstoyour virtualmachine.SeetheESXServerConfigurationGuide.
24
VMware, Inc.
VMware, Inc.
25
26
VMware, Inc.
OnlyinitiatorsthatmeetallrulesattachedtotheiSCSIvolumecanaccessit.
Error Correction
ToprotecttheintegrityofiSCSIheadersanddata,theiSCSIprotocoldefineserror correctionmethodsknownasheaderdigestsanddatadigests.Thesearedisabledby default,buttheusercanenablethem.Thesedigestspertainto,respectively,theheader andSCSIdatabeingtransferredbetweeniSCSIinitiatorsandtargets,inbothdirections. Headeranddatadigestschecktheendtoend,noncryptographicdataintegrity beyondtheintegritychecksthatothernetworkinglayersprovide,suchasTCPand Ethernet.Theychecktheentirecommunicationpath,includingallelementsthatcan changethenetworkleveltraffic,suchasrouters,switches,andproxies. TheexistenceandtypeofthedigestsarenegotiatedwhenaniSCSIconnectionis established.Whentheinitiatorandtargetagreeonadigestconfiguration,thisdigest mustbeusedforalltrafficbetweenthem. Enablingheaderanddatadigestsdoesrequireadditionalprocessingforboththe initiatorandthetargetandcanaffectthroughputandCPUuseperformance.
ManyLUNswithoneVMFSvolumeoneachLUN OnelargeLUNormanyLUNswithasingleVMFSvolumespanningallLUNs
YoucanhaveatmostoneVMFSvolumeperLUN.Youcan,however,decidetouseone largeLUNormultiplesmallLUNs.
VMware, Inc.
27
Youmightwantfewer,largerLUNsforthefollowingreasons:
Youmightwantmore,smallerLUNsforthefollowingreasons:
NOTEYoucandivideyourdatacenterintoserversthatarebestconfiguredwithfewer, largerLUNsandotherserversthatusemore,smallerLUNs.
Predictivescheme Adaptivescheme
Predictive Scheme
Inthepredictivescheme,you:
28
VMware, Inc.
Adaptive Scheme
Intheadaptivescheme,you:
To use disk shares to prioritize virtual machines 1 2 3 4 StartaVIClientandconnecttoaVirtualCenterServer. Selectthevirtualmachineintheinventorypanel,rightclick,andchooseEdit Settingsfromthemenu. ClicktheResourcestabandclickDisk. RightclicktheSharescolumnforthedisktomodifyandselecttherequiredvalue fromthedropdownmenu.
VMware, Inc.
29
FormoreinformationonVMFSandRDMs,seetheESXServerConfigurationGuide.
30
VMware, Inc.
3 4
IftheiSCSIinitiatorisahardwareiSCSIinitiator(iSCSIHBA),theHBAdoesthe following:
IftheiSCSIinitiatorisasoftwareiSCSIinitiator,it:
VMware, Inc.
31
HBA2
HBA1
software initiator
IP network
SP
SP
iSCSI storage
Similarly,ifSP1failsorthelinksbetweenSP1andtheswitchesbreaks,SP2takesover andprovidestheconnectionbetweentheswitchandthestoragedevice.Thisprocessis calledSPfailover.ESXServersupportsbothHBAandSPfailoverwithitsmultipathing capability. Youcanchooseamultipathingpolicyforyoursystem,eitherFixedorMostRecently Used.IfthepolicyisFixed,youcanspecifyapreferredpath.EachLUN(disk)thatis visibletotheESXServerhostcanhaveitsownpathpolicy.Forinformationonviewing thecurrentmultipathingstateandonsettingthemultipathingpolicy,see Multipathingonpage 94.
Array-Based Failover
SomeiSCSIstoragesystemsmanagepathuseoftheirportsautomatically (transparentlytoESXServer).Whenusingoneofthesestoragesystems,ESXServer doesnotseemultipleportsonthestorageandcannotchoosethestorageportit connectsto.ThesesystemshaveasinglevirtualportaddressthatESXServerusesto initiallycommunicate.Duringthisinitialcommunication,thestoragesystemcan redirectESXServertocommunicatewithanotherportonthestoragesystem.TheiSCSI initiatorsinESXServerobeythisreconnectionrequestandconnectwithadifferentport onthesystem.Thestoragesystemusesthistechniquetospreadtheloadacross availableports. IfESXServerlosesconnectiontooneoftheseports,itautomaticallyattemptsto reconnectwiththevirtualportofthestoragesystem,andshouldberedirectedtoan active,usableport.Thisreconnectionandredirectionhappensquicklyandgenerally doesnotdisruptrunningvirtualmachines.Thesestoragesystemscanalsorequestthat iSCSIinitiatorsreconnecttothesystem,tochangewhichstorageporttheyare connectedto.Thisallowsthemosteffectiveuseofthemultipleports.
VMware, Inc.
33
Figure 16showsanexampleofportredirection.ESXServerattemptstoconnecttothe 10.0.0.1virtualport.Thestoragesystemredirectsthisrequestto10.0.0.2.ESXServer connectswith10.0.0.2andusesthisportforI/Ocommunication. NOTEThestoragesystemdoesnotalwaysredirectconnections.Theportat10.0.0.1 couldbeusedfortraffic,also. Figure 1-6. Port Redirection
ESX Server Connect to storage at 10.0.0.1 10.0.0.1 Reconnect to 10.0.0.2 10.0.0.2 storage
ESX Server
10.0.0.2 storage
Iftheportonthestoragesystemthatisactingasthevirtualportbecomesunavailable, thestoragesystemreassignstheaddressofthevirtualporttoanotherportonthe system.Figure 17showsanexampleofthistypeofportreassignment.Inthiscase,the virtualport10.0.0.1becomesunavailableandthestoragesystemreassignsthevirtual portIPaddresstoadifferentport.Thesecondportrespondstobothaddresses. Figure 1-7. Port Reassignment
10.0.0.1
10.0.0.2 storage
34
VMware, Inc.
VMware, Inc.
35
Using VMware HA
VMwareHAallowsyoutoorganizevirtualmachinesintofailovergroups.Whenahost fails,allitsvirtualmachinesareimmediatelystartedondifferenthosts.Whenavirtual machineisrestoredonadifferenthost,itlosesitsmemorystatebutitsdiskstateis exactlyasitwaswhenthehostfailed(crashconsistentfailover).Sharedstorage(such asaSAN)isrequiredforHA.SeetheResourceManagementGuide. NOTEYoumustbelicensedtouseVMwareHA.
Approachestoserverfailoverworkonlyifeachserverhasaccesstothesame storage.Becausemultipleserversrequirealotofdiskspace,andbecausefailover forthestoragesystemcomplementsfailoverfortheserver,SANsareusually employedinconjunctionwithserverfailover. WhenyoudesignaSANtoworkinconjunctionwithserverfailover,allvolumes theclusteredvirtualmachinesusemustbeseenbyallESXServerhosts. Althoughavolumeisaccessibletoahost,allvirtualmachinesonthathostdonot necessarilyhaveaccesstoalldataonthatvolume.Avirtualmachinecanaccess onlythevirtualdisksforwhichitwasconfigured.Incaseofaconfigurationerror, virtualdisksarelockedwhenthevirtualmachinebootssonocorruptionoccurs.
36
VMware, Inc.
VMware, Inc.
37
Hardwareandfirmware.OnlyalimitednumberofSANstoragehardwareand firmwarecombinationsaresupportedinconjunctionwithESXServersystems. For anuptodatelist,seetheStorage/SANCompatibilityGuide. OneVMFSvolumeperLUN.ConfigureyoursystemtohaveonlyoneVMFS volumeforeachLUN.(InVMFS3,youdonotneedtosetaccessibility.) Unlessyoureusingdisklessservers(bootingfromaSAN),donotsetupthe diagnosticpartitiononaSANLUN.Inthecaseofdisklessserversthatbootfrom aSAN,ashareddiagnosticpartitionisappropriate. VMwarerecommendsthatyouuseRDMsforaccesstoanyrawdisk.Formore informationonRDMs,seetheESXServerConfigurationGuide. Multipathing.Formultipathingtoworkproperly,eachLUNmustpresentthe sameLUNnumbertoallESXServerhosts. Queuesize.SettheBusLogicorLSILogicdriverintheguestoperatingsystemto specifyalargeenoughqueue.YoucansetthequeuedepthforthephysicalHBA duringsystemsetup.Forsupporteddrivers,seetheStorage/SANCompatibility Guide. SCSITimeout.OnvirtualmachinesrunningMicrosoftWindows,increasethe valueoftheSCSITimeoutValueparametertoallowWindowstobettertolerate delayedI/Oresultingfrompathfailover.
Restrictions
ThefollowingrestrictionsapplywhenyouuseESXServerwithaSAN:
38
VMware, Inc.
Recommendations
Considerthefollowingrecommendationswhenyousetupyourenvironmentwith ESX ServerhostsandaSAN:
VMotionandVMwareDRS.WhenyouuseVirtualCenterandVMotionorDRS, makesurethattheLUNsforthevirtualmachinesareprovisionedtoallESXServer hosts.Thisconfigurationprovidesthegreatestfreedominmovingvirtual machines. Activeactiveversusactivepassivearrays.WhenyouuseVMotionorDRSwith anactivepassiveSANstoragedevice,makesurethatallESXServersystemshave consistentpathstoallstorageprocessors.Notdoingsocancausepaththrashing whenaVMotionmigrationoccurs.SeeResolvingPathThrashingonpage 109. ForactivepassivestoragearraysnotlistedintheStorage/SANCompatibilityGuide, VMwaredoesnotsupportstorageportfailover.Youmustconnecttheservertothe activeportonthestoragesystem.ThisconfigurationensuresthattheLUNsare presentedtotheESXServerhost.
VMware, Inc.
39
40
VMware, Inc.
Youcannowconfigureyourhardwareinitiatororchangeitsdefaultcharacteristics.
VMware, Inc.
41
To set up the iSCSI name, alias, and IP address for the hardware initiator 1 2 OpentheiSCSIInitiatorPropertiesdialogboxbyperformingthestepslistedin ToviewthehardwareiSCSIinitiatorpropertiesonpage 40. ClickConfigure. TheGeneralPropertiesdialogboxappears.
EntertheiSCSIalias. ThealiasisanamethatyouusetoidentifythehardwareiSCSIinitiator.
IfyouselectedUsethefollowingIPsettings,entervaluesforthefollowing:
ClickOKtosaveyourchanges,thenreboottheserverforthechangestotakeeffect.
42
VMware, Inc.
VMware, Inc.
43
TochangeordeleteaspecificIPaddress,selectitandclickEditorRemove.
To set up target discovery addresses by using Static Discovery 1 2 OpentheiSCSIInitiatorPropertiesdialogboxbyperformingthestepslistedinTo viewthehardwareiSCSIinitiatorpropertiesonpage 40. IntheiSCSIInitiatorPropertiesdialogbox,clicktheStaticDiscoverytab.
44
VMware, Inc.
Thetabdisplaysalldynamicallydiscoveredtargetsandanystatictargetsalready entered.
ToaddatargetaccessibletoyourESXServerhost,clickAddandenterthetargets IPaddressandfullyqualifieddomainname.
VMware, Inc.
45
46
VMware, Inc.
TomakeanychangestotheexistingCHAPparameters,clickConfigure. TheCHAPAuthenticationdialogboxopens.
4 5 6
VMware, Inc.
47
TheSelectStorageTypepageappears.
48
VMware, Inc.
SelecttheiSCSIdevicetouseforyourdatastoreandclickNext. TheCurrentDiskLayoutpageappears.
LookoverthecurrentdisklayoutandclickNext. TheDisk/LUNPropertiespageappears.
ClickNext. TheDisk/LUNFormattingpageappears.
9 10
11
ReviewthedatastoreinformationandclickFinish. ThiscreatesthedatastoreonthehardwareinitiatediSCSIdevice.
VMware, Inc.
49
50
VMware, Inc.
ClickAddNetworking. TheAddNetworkWizardappears.
VMware, Inc.
51
SelectthecheckboxesforthenetworkadaptersyourvSwitchwilluse.
YourchoicesappearinthePreviewpane. SelectadaptersforeachvSwitchsothatvirtualmachinesorotherservicesthat connectthroughtheadaptercanreachthecorrectEthernetsegment.Ifnoadapters appearunderCreateavirtualswitch,existingvSwitchesareusingallofthe networkadaptersinthesystem. NOTEDonotuseiSCSIon100MBNICs. 7 ClickNext. TheConnectionSettingspageappears. 8 UnderPortGroupProperties,selectorenteranetworklabeland,optionally,a VLANID.YoucanalsoenterorchangetheIPAddressandSubnetMaskunder IPSettings. NetworkLabelAnamethatidentifiestheportgroupthatyouarecreating.Thisis thelabelthatyouspecifywhenyouconfigureavirtualadaptertobeattachedto thisportgroup,whenyouconfigureiSCSIstorage.
52
VMware, Inc.
VMware, Inc.
53
10
OntheRoutingtabintheDNSandRoutingConfigurationdialogbox,theservice consoleandtheVMkerneleachneedtheirowngatewayinformation.
AfteryoucreateaVMkernelportforiSCSI,youmustcreateaserviceconsole connectiononthesamevSwitchastheVMkernelport.IfyouareusingESXServer3i, thisisnotnecessary. To configure a service console connection for software iSCSI (ESX Server 3 only) 1 LogintotheVI Clientandselecttheserverfromtheinventorypanel. Thehardwareconfigurationpageforthisserverappears. 2 3 ClicktheConfigurationtabandclickNetworking. Ontherightsideofthescreen,clickPropertiesforthevSwitchassociatedwiththe VMkernelportyoujustcreated.
54
VMware, Inc.
OnthePortstab,clickAdd. TheAddNetworkWizardappears.
Asaconnectiontype,selectServiceConsoleandclickNext. TheConnectionSettingspageappears.
InthePortGroupPropertiesarea,enteranetworklabelthatidentifiestheport groupthatyouarecreating.
NewerportsandportgroupsappearatthetopofthevSwitchdiagram.
VMware, Inc.
55
8 9
10
56
VMware, Inc.
ClickOKtosaveyourchanges.
VMware, Inc.
57
4 5
58
TomakeanychangestotheexistingCHAPparameters,clickConfigure.
VMware, Inc.
59
TheCHAPAuthenticationdialogboxopens.
4 5 6
60
VMware, Inc.
Thedetailsfortheinitiatorappear,includingthemodel,IPaddress,iSCSIname, discoverymethods,iSCSIalias,andanydiscoveredtargets.
VMware, Inc.
61
SelecttheDisk/LUNstoragetypeandclickNext.
62
VMware, Inc.
TheSelectDisk/LUNpageappears.Thiscantakeafewsecondsdependingonthe numberoftargetsthatyouhave.
SelecttheiSCSIdevicetouseforyourdatastoreandclickNext. TheCurrentDiskLayoutpageappears.
LookoverthecurrentdisklayoutandclickNext. TheDisk/LUNPropertiespageappears.
ClickNext.
VMware, Inc.
63
TheDisk/LUNFormattingpageappears.
Ifneeded,adjustthefilesystemvaluesandcapacityyouuseforthedatastore. Bydefault,theentirefreespaceavailableonthestoragedeviceisofferedtoyou.
10
ClickNext. TheReadytoCompletepageappears.
11
ReviewthedatastoreconfigurationinformationandclickFinish. ThiscreatesthedatastoreonthesoftwareinitiatediSCSIstoragedevice.
64
VMware, Inc.
AfteryouinstallyouriSCSIinitiatorsandstorage,youmightneedtomodifyyour storagesystemtoensurethatitworksproperlywithyourESXServerimplementation. ThischapterdiscussesmanyoftheiSCSIstoragesystemssupportedinconjunction withVMwareESXServer.Foreachdevice,itlistsmajorknownpotentialissues,points tovendorspecificinformation(ifavailable),orincludesinformationfromVMware knowledgebasearticles. NOTEInformationinthisdocumentisupdatedonlywitheachrelease.New informationmightalreadybeavailable.Also,otheriSCSIstoragesystemsare supportedbutarenotcoveredinthischapter.ConsultthemostrecentStorage/SAN CompatibilityGuide,checkwithyourstoragevendor,andexploretheVMware knowledgebasearticles. Thischapterdiscussesthefollowingtopics:
VMware, Inc.
65
Setup Overview
VMwareESXServersupportsavarietyofSANstoragesystemsindifferent configurations.Notallstoragedevicesarecertifiedforallfeaturesandcapabilitiesof ESXServer,andvendorsmighthavespecificpositionsofsupportwithregardto ESX Server.Forthelatestinformationregardingsupportedstoragesystems,seethe Storage/SANCompatibilityGuide. VMwaretestsESXServerwithstoragesystemsinthefollowingconfigurations: Basic Connectivity. TestswhetherESXServercanrecognizeandoperatewiththe storagesystem.Thisconfigurationdoesnotallowformultipathingoranytypeof failover. HBA Failover. TheserverisequippedwithmultipleHBAsconnectingtooneormore SANswitches.TheserverisrobusttoHBAandswitchfailureonly. Storage Port Failover. Theserverisattachedtomultiplestorageportsandisrobust tostorageportfailuresandswitchfailures. Booting from a SAN. TheESXServerhostbootsfromaLUNconfiguredontheSAN ratherthanfromtheserveritself.
General Considerations
Forallstoragesystems,makesurethatthefollowingrequirementsaremet:
LUNsmustbepresentedtoeachHBAofeachhostwiththesameLUNIDnumber. Ifdifferentnumbersareused,theESXServerhostsdonotrecognizedifferent pathstothesameLUN.BecauseinstructionsonhowtoconfigureidenticalSAN LUNIDsarevendorspecific,consultyourstoragedocumentationformore information. Unlessspecifiedforindividualstoragesystemsdiscussedinthischapter,setthe hosttypeforLUNspresentedtoESXServertoLinuxorLinux Cluster,if applicabletoyourstoragesystem.ThemethodESXServerusestoaccessthe storagesystemismostcompatiblewithLinuxaccess,however,thiscanvary dependingonthestoragesystemyouareusing.
66
VMware, Inc.
IfyouareusingVMotion,DRS,orHA,makesurethatsourceandtargethostsfor virtualmachinescanseethesameLUNswithidenticalLUNIDs. SAN administratorsmightfinditcounterintuitivetohavemultiplehostsseethe sameLUNsbecausetheymightbeconcernedaboutdatacorruption.However, VMFSpreventsmultiplevirtualmachinesfromwritingtothesamefileatthesame time,soprovisioningtheLUNstoallrequiredESXServersystemisappropriate. IfyoudonothaveCHAPauthenticationsetupontheLUNsthatarebeing accessed,youmustalsodisableCHAPontheESXServerhost.Otherwise, authenticationofthestoragesystemfails,althoughtheLUNshavenoCHAP requirement.
UsetheEMCsoftwaretoperformconfiguration.Formoreinformation,seetheEMC documentation. NOTEThisisanactivepassivediskarray,sorelatedissuesdescribedelsewhereinthis documentapply. Toavoidthepossibilityofpaththrashing,thedefaultmultipathingpolicyisMost RecentlyUsed,notFixed.TheESXServersystemsetsthedefaultpolicywhenit identifiesthestoragesystem.SeeResolvingPathThrashingonpage 109. AutomaticvolumeresignaturingisnotsupportedforAX100iandAX150istorage devices.Forinformationonresignaturing,seeVMFSVolumeResignaturingon page 117. NOTETobootfromaSAN,choosetheactivestorageprocessorforthebootLUNs targetintheHBABIOS.
VMware, Inc.
67
68
VMware, Inc.
HP StorageWorks MSA
Thissectiondescribesthesetupandconfigurationstepsneededtoallowan HP StorageWorksMSA1510istoragesystemtocommunicatewithinanESX Server environment. To enable MSA1510i storage systems to communicate with ESX Server 1 2 Install,connect,andpowerupthenetworkdevicesasdetailedinthevendor installationdocument. ObtaintheIPaddressassignedtotheMSA1510icontrollermanagementport. a b 3 4 ScrollthroughthemessagesontheLCDpaneluntilthefollowingmessage appears:603PortMA0IP<address> RecordthemanagementportIPaddressthatappearsinBasicMSA1510i information.
5 6
VMware, Inc.
69
iii
iv ThewizardsuggestsadefaultiSCSITargetNameandiSCSITargetAlias. Acceptthedefaultorenteruserdefinedvalues.
NOTEToconfiguretheremainingdataports,completetheInitialSystem ConfigurationWizardprocess,andthenusetasksavailableonthe Configuretab. c d 7 LoginSettings ManagementSettings
ClickFinishtoapplytheconfigurationsettings.
Createanarray. Createalogicaldrive. Createatarget. Createaportalgroup. Associateorassigntheportalscreatedusingthewizardwiththeportalgroup created. Maplogicaldrivestothetarget. Addinitiators(initiatorIQNnameandalias). UpdatetheACLsofthelogicaldrivestoprovideaccesstoinitiators(selectthelist ofinitiatorstoaccessthelogicaldrive).
SeetheMSA1510iConfigurationGuide.
70
VMware, Inc.
HP StorageWorks EVA
ThetwotypesofHPStorageWorksEVAsystemsareEVA_GL,anactivepassive system,andEVA_XL,anactiveactivesystem. SettheconnectiontypetoCustomwhenyoupresentaLUNtoanESXServerhost. The valueisoneofthefollowing:
ForHPEVAgl3000/5000(activepassive),usethe000000002200282E hostmode type. ForHPEVAglfirmware4.001(activeactivefirmwareforGLseries)andabove,use theVMware hostmodetype. ForEVA4000/6000/8000activeactivearrayswithfirmwareearlierthan5.031,use the000000202200083E hostmodetype. ForEVA4000/6000/8000activeactivearrayswithfirmware5.031andlater,usethe VMware hostmodetype.
Multipathing
WhenyousetupmultipathingbetweentwoQLogicHBAsandmultipleportsona NetworkAppliancestoragesystem,givethetwoQLogicHBAsdifferentdynamicor staticdiscoveryaddressestoconnecttothestorage. TheNetworkAppliancestoragesystemonlypermitsoneconnectionforeachtarget andeachinitiator.Attemptstomakeadditionalconnectionscausethefirstconnection todrop.Therefore,singleQLogicHBAsshouldnotattempttoconnecttomultiple IP addressesassociatedwiththesameNetworkAppliancetarget.
VMware, Inc.
71
LUNtypeVMware(ifVMwaretypeisnotavailable,useLinux). InitiatorgrouptypeVMware(ifVMwaretypeisnotavailable,useLinux).
Provisioning Storage
Youmustprovisionstorage,usingeitherFilerVieworCLI. To provision storage by using FilerView storage management 1 2 LogintoNetworkAppliancestoragesystemmanagement(FilerView). Createavolume. a b c d e 3 SelectVolumesandclickAdd.ClickNext. SelectFlexibility(Default)orTraditional,thenclickNext. EnteraVolumeName,selectaLanguage,andclickNext. EntervaluesforContainingAggregate,TotalVolumeSize,andSpace GuaranteeandclickNext. ClickCommittocreatethevolume.
72
VMware, Inc.
iii iv c 5
ClickAdd.
Createaflexiblevolume.
vol create <aggregate name> <volume size>
CreateaQtreetostoreeachLUN.
qtree create <path>
CreateaLUN.
lun create -s <size> -t vmware <path>
Createaninitiatorgroup.
igroup create -f -t vmware <igroup name>
MaptheLUNtotheinitiatorgroupyoucreated.
lun map (<path>) <igroup name> <LUN ID>
VMware, Inc.
73
ForadditionalinformationonusingNetworkApplianceStoragewithVMware technology,seethefollowingNetworkAppliancedocuments:
74
VMware, Inc.
Basic Configuration
Basicconfigurationstepsinclude: 1 2 3 4 5 InstallSAN/iQstoragenodes. CreateSAN/iQmanagementgroupsandclusters. Createvolumes. Assignvolumestoauthenticationgroupsandvolumelists. EnableARPredirectiononhardwareiSCSIHBAs. SeeesxcfghwiscsiUtilityonpage 126.
Asabestpractice,configurevirtualIPloadbalancinginSAN/iQforallESXServer authenticationgroups.
VMware, Inc.
75
76
VMware, Inc.
Thischapterdiscussesthefollowingtopics:
BootingfromaSANOverviewonpage 77 EnablingBootingfromaSANonpage 79
boot disk
VMware, Inc.
77
DonotbootfromaSANifyouriskI/Ocontentionbetweentheserviceconsoleand VMkernel.
78
VMware, Inc.
VMware, Inc.
79
To prepare the SAN 1 2 Connectnetworkcables,referringtoanycablingguidethatappliestoyoursetup. EnsureIPconnectivitybetweenyourstoragesystemandserver. Thisincludesproperconfigurationofanyroutersorswitchesonyourstorage network.StoragesystemsmustbeabletopingtheiSCSIHBAsinyourESXServer hosts. Configurethestoragesystem: a b Createavolume(orLUN)onthestoragesystemforESXServertobootfrom. ConfigurethestoragesystemsothattheESXServersystemhasaccesstothe assignedLUN.ThiscouldinvolveupdatingACLswiththeIPaddresses,iSCSI IQNnames,andtheCHAPauthenticationparameteryouuseonthe ESX Serversystem.Onsomestoragesystems,inadditiontoprovidingaccess informationfortheESXServerhost,youmustalsoexplicitlyassociatethe assignedLUNwiththehost. EnsurethattheLUNispresentedtotheESXServersystemasLUN0.(On storagesystemsthatpresentvolumesasmultipletargetsratherthanmultiple LUNS,thevolumesarealwayspresentedasLUN0). EnsurethatnoothersystemhasaccesstotheconfiguredLUN. RecordtheiSCSI(IQN)nameandIPaddressesofthetargetsassignedtothe ESXServerhost.YouneedthisinformationtoconfigureyouriSCSIHBA. CAUTIONIfyouusescriptedinstallationtoinstallESXServerwhenbooting fromaSAN,youneedtotakespecialstepstoavoidunintendeddataloss.See VMwareknowledgebasearticle1540at http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=1540.
d e
80
VMware, Inc.
ThesystemBIOSmustdesignatetheiSCSIcardasthebootcontroller. TheBIOSmustbeenabledontheiSCSIHBAtolocatethetargetbootLUN.
To enable the QLogic iSCSI HBA to Boot from a SAN 1 2 DuringserverPOST,pressCrtl+qtoentertheQLogiciSCSIHBAconfiguration menu. SelecttheI/Oporttoconfigure. Bydefault,theAdapterBootmodeissettoDisable.
VMware, Inc.
81
iii
82
VMware, Inc.
d e
NOTEIfmorethenoneLUNexistswithinthetarget,youcanchooseaspecific LUNIDbypressingEnterafteryoulocatetheiSCSIdevice.
VMware, Inc.
83
Saveyourchangesandrestartthesystem.
FormoreinformationandmoreuptodatedetailsaboutQLogichostadapter configurationsettings,seetheQLogichostadapterreadmefileattheQLogicwebsite.
84
VMware, Inc.
5\
IssuesandSolutionsonpage 86 GettingInformationonpage 87 ResolvingDisplayIssuesonpage 89 AdvancedLUNDisplayConfigurationonpage 92 Multipathingonpage 94 PathFailoveronpage 101 VMkernelConfigurationonpage 102 AvoidingandResolvingSANProblemsonpage 103 OptimizingSANStoragePerformanceonpage 103 ResolvingPerformanceIssuesonpage 108 SANStorageBackupConsiderationsonpage 113 LayeredApplicationsonpage 115 VMFSVolumeResignaturingonpage 117
VMware, Inc.
85
86
VMware, Inc.
Getting Information
ThissectionexplainshowtofindinformationaboutHBAs,status,multipathing,andso on.Ifyouexperienceproblemswhenperformingthesetasks,seeResolvingDisplay Issuesonpage 89.
VMware, Inc.
87
4
88
ClickPropertiestoviewandchangeproperties.
VMware, Inc.
VMware, Inc.
89
ForbootingfromaSAN,ensurethateachESXServerhostseesonlyrequired LUNs.DonotallowanyESXServerhosttoseeanybootLUNotherthanitsown. UsestoragesystemsoftwaretomakesurethattheESXServerhostcanseeonlythe LUNsthatitissupposedtosee. EnsurethattheDisk.MaxLUNandDisk.MaskLUNssettingsallowyoutoview theLUNyouexpecttosee.SeeChangingtheNumberofLUNsScannedbyUsing Disk.MaxLUNonpage 92andMaskingLUNsbyUsingDisk.MaskLUNson page 93. Storage processor. Ifastoragesystemhasmorethanonestorageprocessor,make surethattheSANswitchhasaconnectiontotheSPthatownstheLUNsyouwantto access.Onsomestoragesystems,onlyoneSPisactiveandtheotherSPispassiveuntil afailureoccurs.IfyouareconnectedtothewrongSP(theonewiththepassivepath) youmightnotseetheexpectedLUNs,oryoumightseetheLUNsbutgeterrorswhen tryingtoaccessthem. Software iSCSI Network Configuration. ThesoftwareiSCSIinitiatorinESXServer requiresthataserviceconsolenetworkportandaVMkernelnetworkporthaveaccess totheiSCSIstorage.ThesoftwareinitiatorusestheserviceconsoleforiSCSIdiscovery anderrorhandling.ItusestheVMkernelfordatatransferbetweentheESXServer systemandtheiSCSIstorage.SeeNetworkingConfigurationforSoftwareiSCSI Storageonpage 50.
Using Rescan
Performarescaneachtimeyou:
90
VMware, Inc.
Makeachangetoahostinacluster. ChangeCHAPsettingsoraddnewdiscoveryaddresses.
NOTEDonotrescanwhenapathisunavailable.Ifonepathfails,theothertakesover andyoursystemcontinuestobefullyfunctional.If,however,yourescanatatime whenapathisnotavailable,theESXServerhostmightremovethepathfromitslistof pathstothedevice.ThepathcannotbeusedbytheESXServerhostuntilthenexttime arescanisperformedwhilethepathisactive. To perform a rescan 1 2 IntheVIClient,selectahostandclicktheConfigurationtab. IntheHardwarepanel,chooseStorageAdaptersandclickRescanabovethe StorageAdapterspanel. YoucanalsorightclickanindividualadapterandclickRescantorescanjustthat adapter.
Removing Datastores
UsingtheVIClient,youcanremoveadatastorefrombeingusedasstorageforvirtual machines.YoucannotremovetargetsinsoftwareiSCSI,exceptbyrebooting. To remove a datastore 1 2 3 4 Turnoffallvirtualmachinesthatusethedatastorebeingremoved. Selectandremoveeachvirtualmachinefromtheinventorybyrightclickingthe virtualmachineandclickingRemovefromInventory. ClicktheConfigurationtabandclickStoragetodisplayallstoragedevices. SelectthedatastoretoremoveandclickRemove.
VMware, Inc.
91
92
VMware, Inc.
ScrolldowntoDisk.MaxLUN,changetheexistingvaluetothevalueofyour choice,andclickOK.
CAUTIONIfatarget,LUN,orvmhbanumberchangesbecauseofaserverorSAN reconfiguration,theincorrectLUNmightbemaskedorexposed.
VMware, Inc.
93
Multipathing
SANimplementationswithahighnumberofLUNsandpathstothoseLUNscancause ESXServertorunoutofresourcesbeforeallofthepathsareenumerated.Thisscenario preventsESXServerfromseeingallofthepathstothestorage.Toavoidthissituation, reducethepathcounttotheLUNs. Foranintroductiontomultipathingconcepts,seePathManagementandFailoveron page 32.
94
VMware, Inc.
InformationaboutthatdatastoreappearsintheDetailspanel.
3 4
Thedisplayincludesinformationonthestatusofeachpathtothedeviceextent. Thefollowingpathinformationappears:
VMware, Inc.
StandbyThepathisworkingbutisnotcurrentlyusedfordatatransfer. DeadThesoftwarecannotconnecttothediskthroughthispath.
NOTEiSCSIstoragesystemsthatprovidetransparentfailoverbehaveasactiveactive.
96
VMware, Inc.
Active Paths
ESXServerdoesnottypicallyperformI/OloadbalancingacrosspathsforagivenLUN. Atanyonetime,onlyasinglepathisusedtoissueI/OtoagivenLUN.Thispathis knownastheactivepath.
FixedTheESXServerhostalwaysusesthepreferredpathtothediskwhenthat pathisavailable.Ifitcannotaccessthediskthroughthepreferredpath,ittriesthe alternativepaths.Fixedisthedefaultpolicyforactiveactivestoragedevices. MostRecentlyUsedTheESXServerhostusesthemostrecentpathtothedisk untilthispathbecomesunavailable.Thatis,theESXServerhostdoesnot automaticallyrevertbacktothepreferredpath.MostRecentlyUsedisthedefault policyforactivepassivestoragedevicesandisrequiredforthosedevices. RoundRobinTheESXServerhostusesanautomaticpathselectionrotating throughallavailablepaths.Inadditiontopathfailover,roundrobinsupportsload balancingacrossthepaths. NOTERoundrobinloadbalancingisexperimentalandnotsupportedfor productionuse.Formoreinformation,seetheRoundRobinLoadBalancingwhite paper.
VMware, Inc.
97
TheESXServerhostsetsthemultipathingpolicyaccordingtothemakeandmodelof thestoragesystemitdetects.Ifthedetectedstoragesystemisnotsupported,itis treatedasactiveactive.Foralistofsupportedstoragesystems,seetheStorage/SAN CompatibilityGuide. NOTEVMwarerecommendsthatyounotchangeMostRecentlyUsedtoFixed. The systemsetsthispolicyforthestoragesystemsthatrequireit. To set the multipathing policy by using a VI Client 1 2 3 4 5 6 IntheVIClientinventorypanel,selectthehostandclicktheConfigurationtab. IntheHardwarepanel,selectStorage. Selectthedatastoretochangethemultipathingpolicyfor,andclickPropertiesin theDetailspanel. IntheExtentpanel,selectthedevicetomakethechangefor,andclickManage PathsintheExtentDevicepanelontheright. IntheManagePathsdialogbox,clickChange. SelectthemultipathingpolicyinthedialogboxthatappearsandclickDone.
NOTEForactivepassivestoragedevices,VMwarerecommendsMostRecentlyUsed.
98
VMware, Inc.
4 5
VMware, Inc.
99
IP network
SP1
SP2
storage array
Forloadbalancing,setthepreferredpathsasfollows.
100
VMware, Inc.
Path Failover
PathfailoverreferstosituationswhentheactivepathtoaLUNischangedfromone pathtoanother,usuallybecauseofsomeSANcomponentfailurealongthecurrent path.AserverusuallyhasoneortwoHBAsandeachHBAseesoneortwostorage processorsonagivenSANstoragesystem.Youcandeterminetheactivepaththe paththattheservercurrentlyusesbylookingattheLUNsproperties. Figure 5-10. Active and Standby Paths
Whenanetworkcableispulled,I/Omightpausefor30to60secondsuntiltheiSCSI driverdeterminesthatthelinkisunavailableanduntilfailoveroccurs.Asaresult,the virtualmachines(withtheirvirtualdisksinstalledonSANstorage)canappear unresponsive.Ifyouattempttodisplaythehost,itsstoragedevices,oritsadapter,the operationmightappeartostall.Afterfailoveriscomplete,I/Oresumesnormally. Incaseofmultiplebreakages,allconnectionstoSANstoragedevicesmightbelost. If noneoftheconnectionstothestoragedeviceisworking,somevirtualmachines mightencounterI/OerrorsontheirvirtualSCSIdisks. Setting Guest Operating System Timeout Youmightwanttoincreasethestandard disktimeoutvaluesothataWindowsguestoperatingsystemisnotextensively disruptedduringfailover.
VMware, Inc.
101
ForWindows2000andWindowsServer2003guestoperatingsystems,youcanset operatingsystemtimeoutbyfusingtheregistry. To set operating system timeout for Windows servers 1 2 3 4 BackupyourWindowsregistry. SelectStart>Run,typeregedit.exeandclickOK. Intheleftpanelhierarchyview,doubleclickHKEY_LOCAL_MACHINE,then System,thenCurrentControlSet,thenServices,andthenDisk. SelecttheTimeOutValueandsetthedatavaluetox03c(hexadecimal)or 60 (decimal). Afteryoumakethischange,Windowswaitsatleast60secondsfordelayeddisk operationstocompletebeforeitgenerateserrors. 5 ClickOKtoexittheRegistryEditor.
VMkernel Configuration
WhenyouinstallyourESXServersystem,decidewheretoplacedifferentstorage elementssuchastheroot(/)and/bootpartitionsoftheserviceconsole(ESXServer3 only).
CAUTIONTheinstallerletsyoueraseanyaccessibledisks,includingSANLUNs inusebyotherservers.
VMware, Inc.
103
Server Performance
Ensuringoptimalserverperformancerequireslookingatanumberoffactors.Each serverapplicationmusthaveaccesstoitsdesignatedstoragewiththefollowingitems:
104
VMware, Inc.
PlaceeachLUNonaRAIDgroupthatprovidesthenecessaryperformancelevels. PayattentiontotheactivitiesandresourceuseofotherLUNSintheassignedRAID group.AhighperformanceRAIDgroupthathastoomanyapplicationsdoingI/O toitmightnotmeettheperformancegoalsthatanapplicationrunningonthe ESX Serverhostrequires. ProvideeachserverwithasufficientnumberofNICsorHBAstoallowmaximum throughputforalltheapplicationshostedontheserverforthepeakperiod.I/O spreadacrossmultipleportsprovideshigherthroughputandlesslatencyforeach application. ToprovideredundancyforsoftwareiSCSI,intheinitiatorbindmultipleNICsto thevswitchusedforiSCSIconnectivity. AllocateadequateperformancecapacitywhenyouallocateLUNsorRAIDgroups forESXServersystems,multipleoperatingsystemswilluseandsharethat resource.Asaresult,theperformancerequiredfromeachLUNinthestorage subsystemcanbemuchhigherifyouareworkingwithESXServersystemsthanif youareusingphysicalmachines.Forexample,ifyouexpecttorunfour I/Ointensiveapplications,allocatefourtimestheperformancecapacityforthe ESXServerLUNs. WhenyouusemultipleESXServersystemsinconjunctionwithaVirtualCenter Server,theperformanceneededfromthestoragesubsystemincreases correspondingly.
MatchthenumberofoutstandingI/OsthatapplicationsrunningonanESXServer systemwiththenumberofI/OstheSANcanhandle.
Network Performance
AtypicalSANconsistsofacollectionofcomputersconnectedtoacollectionofstorage systemsthroughanetworkofswitches.Often,numerouscomputersareaccessingthe samestorage.Figure 511showsseveralcomputersystemsconnectedtoastorage systemthroughanEthernetswitch.Inthisconfiguration,eachsystemisconnected throughasingleEthernetlinktotheswitch,whichisalsoconnectedtothestorage systemthroughasingleEthernetlink.Inmostconfigurations,withmodernswitches andtypicaltraffic,thisisnotaproblem.
VMware, Inc.
105
Whensystemsreaddatafromstorage,themaximumresponsefromthestorageisto sendenoughdatatofillthelinkbetweenthestoragesystemsandtheEthernetswitch. Itisunlikelythatanysinglesystemorvirtualmachinewillgetfulluseofthenetwork speed,butthisistheexpectedsituationwhenmanysystemsshareonestoragedevice. Whenwritingdatatostorage,multiplesystemsorvirtualmachinesmightattemptto filltheirlinks.AsFigure 512shows,whenthishappens,theswitchbetweenthe systemsandthestoragesystemhastodropdata.Thishappensbecause,whileithasa singleconnectiontothestoragedevice,ithasmoretraffictosendtothestoragesystem thanasinglelinkcancarry.Inthiscase,theswitchdropsnetworkpacketsbecausethe amountofdataitcantransmitislimitedbythespeedofthelinkbetweenitandthe storagesystem. Figure 5-12. Dropped Packets
1 Gbit 1 Gbit
106
VMware, Inc.
iSCSItrafficiscarriedonthenetworkbytheTransmissionControlProtocol(TCP). TCP isareliabletransmissionprotocolthatensuresthatdroppedpacketsareretried andeventuallyreachtheirdestination.TCPisdesignedtorecoverfromdropped packetsandretransmitsthemquicklyandseamlessly.However,whentheswitch discardspacketswithanyregularity,networkthroughputsufferssignificantly.The networkbecomescongestedwithrequeststoresenddataandwiththeresentpackets, andlessdataisactuallytransferredthaninanetworkwithoutcongestion. MostEthernetswitchescanbuffer,orstore,dataandgiveeverydeviceattemptingto senddataanequalchancetogettothedestination.Thisabilitytobuffersome transmissions,combinedwithmanysystemslimitingthenumberofoutstanding commands,allowssmallburstsfromseveralsystemstobesenttoastoragesystemin turn. Ifthetransactionsarelargeandmultipleserversaretryingtosenddatathrougha singleswitchport,aswitchsabilitytobufferonerequestwhileanotheristransmitted canbeexceeded.Inthiscase,theswitchdropsthedataitcannotsend,andthestorage systemmustrequestretransmissionofthedroppedpacket.Forexample,ifanEthernet switchcanbuffer32KBonaninputport,buttheserverconnectedtoitthinksitcansend 256KBtothestoragedevice,someofthedataisdropped. Mostmanagedswitchesprovideinformationondroppedpackets,similartothe following:
*: interface is up IHQ: pkts in input hold queue OHQ: pkts in output hold queue RXBS: rx rate (bits/sec) TXBS: tx rate (bits/sec) TRTL: throttle count
Interface * GigabitEthernet0/1 IHQ 3 IQD 9922 OHQ 0
IQD: pkts dropped from input queue OQD: pkts dropped from output queue RXPS: rx rate (pkts/sec) TXPS: tx rate (pkts/sec)
OQD 0 RXBS 476303000 RXPS 62273 TXBS 477840000 TXPS 63677 TRTL 0
VMware, Inc.
107
Generally,applicationsorsystemsthatwritealotofdatatostorage,suchasdata acquisitionortransactionloggingsystems,shouldnotshareEthernetlinkstoastorage device.Thesetypesofapplicationsperformbestwithmultipleconnectionstostorage devices. Figure 513,showsmultipleconnectionsfromtheswitchtothestorage. Figure 5-13. Multiple Connections from Switch to Storage
Monitoring Performance
TheVIClientoffersextensivefacilitiesforcollectingperformanceinformation. The informationisthengraphicallydisplayedintheVIClient.TheVIClientupdates itsdisplayperiodically.Forinformation,seetheVirtualInfrastructureUsersGuide.
108
VMware, Inc.
VMware, Inc.
109
Considerhowpathselectionworks:
110
VMware, Inc.
VMware, Inc.
111
Asignificantincreaseinthespeedofcertainmanagementoperationslikerefreshing datastoresandrescanningstorageadaptersshouldresult.
esxcfg-module
-s
iscsi_max_lun_queue=value
iscsi_mod
112
VMware, Inc.
Identificationofcriticalapplicationsthatrequiremorefrequentbackupcycles withinagivenperiodoftime. Recoverypointandrecoverytimegoals.Considerhowpreciseyourrecoverypoint needstobe,andhowlongyouarewillingtowaitforit. Therateofchange(RoC)associatedwiththedata.Forexample,ifyouareusing synchronousasynchronousreplication,theRoCaffectstheamountofbandwidth requiredbetweentheprimaryandsecondarystoragedevices. OverallimpactonSANenvironment,storageperformance(whilebackingup), andotherapplications. IdentificationofpeaktrafficperiodsontheSAN(backupsscheduledduringthose peakperiodscanslowtheapplicationsandthebackupprocess). Timetoscheduleallbackupsinthedatacenter. Timeittakestobackupanindividualapplication. Resourceavailabilityforarchivingdata;usuallyofflinemediaaccess(tape).
VMware, Inc.
113
Snapshot Software
Snapshotsoftwareallowsanadministratortomakeaninstantaneouscopyofanysingle virtualdiskdefinedwithinthedisksubsystem.Snapshotsoftwareisavailableat differentlevels:
Administratorsmakesnapshotsforavarietyofreasons,including:
114
VMware, Inc.
Layered Applications
SANadministratorscustomarilyusespecializedarraybasedsoftwareforbackup, disasterrecovery,datamining,forensics,andconfigurationtesting. Storageproviderstypicallysupplytwotypesofadvancedservicesfortheir LUNssnapshottingandreplication.
WhenyouuseanESXServersysteminconjunctionwithaSAN,decidewhether arraybasedorhostbasedtoolsaremoresuitableforyourparticularsituation.
VMware, Inc.
115
Arraybasedsolutionsusuallyresultinmorecomprehensivestatistics.WithRDM, dataalwaystakesthesamepath,whichresultsineasierperformance management. SecurityismoretransparenttothestorageadministratorwhenyouuseRDMand anarraybasedsolutionbecausewithRDM,virtualmachinesmoreclosely resemblephysicalmachines. Ifyouuseanarraybasedsolution,physicalcompatibilityRDMsareoftenusedfor thestorageofvirtualmachines.IfyoudonotintendtouseRDM,checkthestorage vendordocumentationtoseeifoperationsonLUNswithVMFSvolumesare supported.Furthermore,ifyouusearrayoperationsonVMFSLUNs,carefully readthesectiononresignaturing.
116
VMware, Inc.
IntheVIClient,selectthehostintheinventorypanel. ClicktheConfigurationtabandclickAdvancedSettings. SelectLVMintheleftpanel,thensettheLVM.EnableResignatureoptionto1. RescanforanynewLUNsorVMFSvolumes. Aftertherescan,thecopiedVMFSvolumeappearsas /vmfs/volumes/snap-<DIGIT>-<old-label>. IftheVMX fileforanyofthevirtualmachinesortheVMSDfileforvirtualmachine snapshotscontains/vmfs/volumes/<label or UUID>/paths,youmustchange theseitemstoreflecttheresignaturedvolumepath.
SettheLVM.EnableResignatureoptionto0afterresignaturingiscomplete.
NOTEAnyvirtualmachinesonthisnewsnapshotvolumearenotautodiscovered. Youmustmanuallyregisterthevirtualmachines.
VMware, Inc.
117
State1isthesafeststatebut:
118
VMware, Inc.
VMware, Inc.
119
120
VMware, Inc.
Multipathing Checklist
HPMSA HPEVA
EVA3000/5000firmware3.x:000000002200282E EVA4000/6000/8000:000000202200083E
NetApp EqualLogic
Nospecificrequirements Nospecificrequirements
VMware, Inc.
121
SetDisk.UseLunResetto1 SetDisk.UseDeviceResetto0
122
VMware, Inc.
Utilities
esxtopUtilityonpage 123 storageMonitorUtilityonpage 124 esxcfgswiscsiUtilityonpage 125 esxcfghwiscsiUtilityonpage 126 vmkpingUtilityonpage 126
esxtop Utility
TheesxtopcommandlineutilityprovidesadetailedlookatESXServer3resourceuse inrealtime.ItrunsontheESXServerhostsserviceconsole.Fordetailedinformation aboutesxtop,seetheResourceManagementGuideortype man esxtop atthe commandlineprompt. NOTEIfyouareusingESXServer3i,theresxtoputilityprovidessimilarfunctionality. SeeRemoteCommandLineInterfaceInstallationandReferenceGuide.
VMware, Inc.
123
storageMonitor Utility
ThestorageMonitorutilitymonitorsSCSIsenseerrorsthatstoragedevicesattachedto VMwareESXServerexperience.Theutilitygatherssenseerrorinformationby periodicallypollingthestorageMonitorrunninginsidetheVMkernel,andsendserror informationtoastandardoutputfile,afile,orthesystemlog.Itformatserror informationbeforesendingittooutput.Forexample,itconvertssenseerrorcodesto correspondingtextaccordingtoSCSI3specification. Ifnoconfigurationfileisspecified,storageMonitorparsesthe /etc/vmware/storageMonitor.conf defaultconfigurationfiletofiltercertainerrorsand allowothererrorstobedisplayed.Youcanusethe-doptiontorunstorageMonitorin interactivemodeordaemonmode.
Options
YoucanstartstorageMonitorfromtheESXServercommandlineusingoneofthe followingoptions. Table B-1. storageMonitor Command-Line Options
Option <config-file> Description Allowsyoutospecifyaconfigurationfile.Ifthisoptionisleft unspecified,thedefaultisused. TheconfigurationfilespecifieswhichtypeoferrorsstorageMonitor shouldallowandwhichonesitshouldfilterbeforedisplayingthem. Thedefaultconfigurationfileillustratestheformatoftheentries. -d SpecifiesthatstorageMonitorshouldberunindaemonmode.Whenthis optionisspecified,alloutputgoeseithertosyslogortoalogfilethat theuserspecifies.Ifthe-soptionisalsospecified,outputiswrittento astandardoutputfileaswell. Displayshelpinformation. Whenthisoptionisspecified,outputfromtheprogramiswrittento <log_file>.Thisoptionisvalidonlyifthe-doptionisalsospecified. Allowsyoutospecifytheinterval(inseconds)usedforpollingkernel residentstorageandforretrievingthestatusorerrorsofthestorage devices.Ifthisoptionisnotspecified,thedefaultpollingintervalof 10 secondsisused. SpecifiesthatstorageMonitorshouldsendoutputtoastandardoutput file.ThisoptionisonlyvalidifyoustartstorageMonitorindaemon mode(-doptionisspecified).
-h -l <log_file> -p <poll_interval>
-s
124
VMware, Inc.
Appendix B Utilities
Examples
storageMonitor -p 60
esxcfg-swiscsi Utility
Theesxcfg-swiscsiutilityallowsyoutoenableordisablesoftwareiSCSIonESXhosts. Usageexample: esxcfgswiscsi[e][d][h][q][s]<vmkernelSCSIadaptername> Table B-2. esxcfg-swiscsi Command-Line Options
Option -e -d -q -s -h Description EnablessoftwareiSCSI. DisablessoftwareiSCSI.Usingthisoptioncanleadtoproblemsifyou areusingiSCSIvolumes. ChecksifsoftwareiSCSIisonoroff. ScansfordisksavailablethroughthesoftwareiSCSIinterface. Displayshelpinformation.
VMware, Inc.
125
esxcfg-hwiscsi Utility
Theesxcfg-hwiscsiutilityallowsyoutoconfiguresupportedparametersforhardware iSCSI. Usageexample: /sbin/esxcfg-hwiscsi [-l] [-a allow|deny] [-h] <vmkernel SCSI adapter name> Table B-3. esxcfg-hwiscsi Command-Line Options
Option -l -a -h Description Listscurrentconfiguration(overridessettingsoptions). AllowsordeniesARPredirectiononadapter. Displayshelpinformation.
vmkping Utility
ThevmkpingutilityallowsyoutoverifytheVMkernelnetworkingconfiguration. Usageexample: vmkping [options] [host|IP address] Table B-4. vmkping Command-Line Options
Option -D -c <count> -i <interval> -s <size> Description VMkernelTCPstackdebugmode. Setspacketcount. Setsinterval. Setssendsize.
126
VMware, Inc.
Index
A
access data 30 equalizing disk access 111 access control 26 active path status 95 active paths 97 active-active disk arrays 17, 39, 71, 96, 100, 109 active-passive disk arrays 17, 34, 39, 67, 71, 96, 109 path policy reset 86 path thrashing 110 adding iSCSI hardware-initiated storage 47 iSCSI software-initiated storage 62 allocations, LUN 39 applications, layered 115 array-based (third-party) solution 116 authentication 26, 46, 59, 80, 90 avoiding problems 86, 103
enabling Qlogic HBA for 81 overview 77 BusLogic queue depth 38 SCSI controller 12
C
cable connectivity issues 89 changing disk.supportSparseLun 94 CHAP authentication 22, 26, 46, 59, 80, 90 configuring hardware-initiated iSCSI storage 47 software-initiated iSCSI storage 62 current multipathing state 94
D
data access 30 RDM 25 VMFS 25 datastores creating on hardware-initiated iSCSI storage 47 creating on software-initiated iSCSI storage 62 removing 91 viewing information 88 dead paths 96 diagnostic partitions 38 sharing 102 disabled path status 95 disabling paths 98 DisallowSnapshotLUN 118
127
B
backups and disaster recovery 21 considerations 113 solution 115 third-party backup package 114 booting from a SAN benefits 78 enabling 79
VMware, Inc.
disaster recovery 21 discovery 26 address 43, 58 static 44 disk access, equalizing 111 disk arrays active-active 39, 96, 100 active-passive 39, 96, 110 disk shares 29 disk.maskLuns 93 disk.maxLun 92 Disk.SchedNumReqOutstanding 111 disk.supportSparseLun 94 disks, configuration options 14 distributed locking 15 drivers, VMFS-2 112 dump partitions 38 sharing 102
F
failover 32, 36, 101 I/O delay 34 failure, server 36 finding information 21 Fixed path policy 34, 96, 97 path thrashing 110 preferred path 99
H
hardware iSCSI initiators installing 40 setting up CHAP parameters 46 setting up discovery addresses 43 setting up naming parameters 41 HBA enabling Qlogic HBA for booting from a SAN 81 list of types 87 queue depth 112 high-tier storage 35 host type 66 HP StorageWorks 69 EVA 71 MSA 69
E
EMC CLARiiON 67 EMC Symmetrix 68 pseudo LUNs 68 EnableResignature 118 enabling paths 98 enabling Qlogic HBA for booting from a SAN 81 equalizing disk access 111 EqualLogic storage systems 74 ESX Server basics of using with SAN 22 benefits 20 sharing VMFS 22 ESX Server 3i 88, 109, 123 esxcfg-hwiscsi utility 126 esxcfg-module 112 esxcfg-swiscsi utility 125 esxtop utility 109, 123
128
I
I/O delay 34, 38 indirection, levels of 24 iSCSI hardware-initiated storage, adding 47 iSCSI HBA alias 42
VMware, Inc.
Index
iSCSI initiators hardware 13 software 14 iSCSI networking creating a VMkernel port 50 iSCSI software-initiated storage adding 62 iSCSI software-initiated storage, adding 62 iscsi_max_lun_queue 113 issues performance 108 visibility 89
L
layered applications 115 LeftHand Networks SAN/iQ storage systems 75 levels of indirection 24 Linux Cluster host type 66 Linux host type 66 list of HBA types 87 load balancing 21 manual 100 locations of virtual machines 35 locking 15 Logical Volume Manager (LVM) 15 lower-tier storage 35 LSI Logic SCSI controller 12 LSILogic queue depth 38 LUN discovery, VMkernel 24 LUN not visible cable connectivity 89 issues 89 SP visibility 90 LUNs allocations 39 changing number scanned 92 creating, and rescan 90
decisions 28 disk.maskLuns 93 display and rescan 24 display configuration 92 fewer, larger compared to smaller 27 masking changes and rescan 90 multipathing policy 97 number scanned 92 one VMFS volume per 38 removing 91 setting multipathing policy 97 sparse 94 LVM (Logical Volume Manager) 15 LVM.EnableResignature 117
M
maintenance, zero downtime 21 management applications 26 manual load balancing 100 mapping file 15 masking, using disk.maskLuns 93 maximum HBA queue depth 112 maxLun 92 metadata updates 24 mid-tier storage 35 monitoring performance 108 Most Recently Used path policy 96, 97 path thrashing 110 MRU path policy 96 MSA (HP StorageWorks) 69 multipathing 38, 94 viewing the current state of 94 multipathing policy 97 multipathing software 25 multipathing state 94 multiple extents 88
VMware, Inc.
129
N
Network Appliance storage provisioning storage 73 Network Appliance storage system 71 network performance 105 network virtualization 12 number of extents 15 number of outstanding disk requests 111
O
operating system timeout 101 outstanding disk requests 111
network 105 optimizing 103 removing VMFS-2 drivers 112 SCSI reservations 23 server 104 storage system 104 preferred path 96, 99 prioritizing virtual machines 29 problems avoiding 103 performance 108 visibility 89
P
passive disk arrays 39, 96 path thrashing 110 path failover 32 path failure rescan 91 path management 32, 100 path policies Fixed 34, 96, 97 Most Recently Used 97 MRU 96 Round Robin 97 path policy reset active-passive disk array 86 path status 95, 96 path thrashing 67, 109, 110 path, asterisk next to 96 paths active 97 disabling 98 enabling 98 preferred 96, 99 performance checking Ethernet switch statistics 109 issues 108 monitoring 108
130
Q
Qlogic HBA, enabling for booting from a SAN 81 queue depth 112
R
raw device mapping (RDM) 30, 68 data access 25 mapping file 15 removing datastores 91 removing LUNs 91 removing VMFS-2 drivers 112 rescan 90 LUN creation 90 LUN display 24 LUN masking 90 when path is unavailable 91 reservations reducing 112 resignaturing options 118 resolving problems 103 resxtop utility 109, 123 Round Robin path policy 97
VMware, Inc.
Index
S
SAN backup considerations 113 basics of using with ESX Server 22 benefits 20 concepts 15 optimizing performance of 103 server failover 36 scanning, changing number 92 SCSI HBA configuring 42 SCSI reservations 22 reducing 112 server failover 36 server failure 36 server performance 104 service console 88, 102, 109 sharing diagnostic partitions 102 sharing VMFS across servers 22 snapshot 117 snapshot software 114 software iSCSI networking 50 software iSCSI initiators enabling 56 setting up CHAP parameters 59 setting up discovery addresses 58 SP visibility, LUN not visible 90 sparse LUN support 94 standby path status 96 storage choices 27 storage consolidation 21 storage devices details 88 viewing 88 storage systems EMC CLARiiON 67 EMC Symmetrix 68
EqualLogic 74 HP StorageWorks 69 LeftHand Networks SAN/iQ 75 Network Appliance 71 performance 104 types 17 storage virtualization 12 storageMonitor utility 124
T
testing, storage systems 66 third-party backup package 114 third-party management applications 26 timeout 101 TimeoutValue parameter 38 troubleshooting 86, 89, 103
U
use cases disaster recovery 21 load balancing 21 maintenance 21 storage consolidation 21 utilities esxcfg-hwiscsi 126 esxcfg-swiscsi 125 esxtop 124 resxtop 123 storageMonitor 124 vmkping 126
V
virtual machines data access 30 data access on SAN 31 default configuration 24 equalizing disk access 111 I/O delay 34 locations 35
VMware, Inc.
131
prioritizing 29 SAN data access 31 visibility issues 89 vmdk file 14, 30, 116 VMFS 15, 25, 27 locking 15 number of extents 15 one volume per LUN 38 SCSI reservations 22 sharing across ESX Servers 22 volume resignaturing 117 VMFS-2 drivers 112 vmhba 88 VMkernel configuration 102 LUN discovery 24 vmkping utility 126 VMotion 20, 21, 26, 39, 67, 112, 119 VMware DRS 20, 21, 67, 119 using with VMotion 39 VMware HA 20, 26, 36, 67, 119 volume resignaturing 117
132
VMware, Inc.