Beruflich Dokumente
Kultur Dokumente
This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new edition. To check for more recent editions of this document, see http://www.vmware.com/support/pubs.
You can find the most up-to-date technical documentation on the VMware 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
Copyright 20062010 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 is a registered trademark or trademark 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 OverviewofVMwareESXServer 13
IntroductiontoESXServer 14 SystemComponents 14 SoftwareandHardwareCompatibility 15 UnderstandingVirtualization 16 CPU,Memory,andNetworkVirtualization 16 VirtualSCSI 17 DiskConfigurationOptions 18 VirtualMachineFileSystem 19 RawDeviceMapping 19 VirtualSCSIHostBusAdapters 20 InteractingwithESXServerSystems 20 VMwareVirtualCenter 20 ESXServer3ServiceConsole 21 VirtualizationataGlance 22
2 UsingESXServerwithFibreChannelSAN 25
StorageAreaNetworkConcepts 26 OverviewofUsingESXServerwithSAN 28 BenefitsofUsingESXServerwithSAN 28 ESXServerandSANUseCases 29 FindingFurtherInformation 30 SpecificsofUsingSANArrayswithESXServer 31 SharingaVMFSAcrossESXServers 31 MetadataUpdates 32 LUNDisplayandRescan 32 HostType 33 LevelsofIndirection 33 DataAccess:VMFSorRDM 34 ThirdPartyManagementApplications 35
VMware, Inc.
ZoningandESXServer 35 AccessControl(LUNMasking)andESXServer 36 UnderstandingVMFSandSANStorageChoices 36 ChoosingLargerorSmallerLUNs 36 MakingLUNDecisions 37 PredictiveScheme 37 AdaptiveScheme 37 TipsforMakingLUNDecisions 38 UnderstandingDataAccess 39 PathManagementandFailover 41 ChoosingVirtualMachineLocations 43 DesigningforServerFailure 44 UsingVMwareHA 44 UsingClusterServices 44 ServerFailoverandStorageConsiderations 45 OptimizingResourceUse 46 UsingVMotiontoMigrateVirtualMachines 46 UsingVMwareDRStoMigrateVirtualMachines 47
3 RequirementsandInstallation 49
GeneralESXServerSANRequirements 50 RestrictionsforESXServerwithaSAN 50 SettingLUNAllocations 51 SettingFibreChannelHBA 51 Recommendations 52 ESXServerBootfromSANRequirements 53 InstallationandSetupSteps 54
4 SettingUpSANStorageDeviceswithESXServer 57
SetupOverview 58 Testing 58 SupportedDevices 59 GeneralSetupConsiderations 59 EMCCLARiiONStorageSystems 60 EMCCLARiiONAX100andRDM 60 AX100DisplayProblemswithInactiveConnections 61 PushingHostConfigurationChangestotheArray 61 EMCSymmetrixStorageSystems 61
VMware, Inc.
Contents
IBMTotalStorageDS4000StorageSystems 62 ConfiguringtheHardwareforSANFailoverwithDS4000StorageServers 62 VerifyingtheStorageProcessorPortConfiguration 63 DisablingAutoVolumeTransfer 64 ConfiguringStorageProcessorSenseData 65 IBMTotalStorageDS4000andPathThrashing 66 IBMTotalStorage8000 66 HPStorageWorksStorageSystems 66 HPStorageWorksMSA 66 SettingtheProfileNametoLinux 66 HubControllerIssues 68 HPStorageWorksEVA 68 HPStorageWorksXP 69 HitachiDataSystemsStorage 69 NetworkApplianceStorage 69
5 UsingBootfromSANwithESXServerSystems 71
BootfromSANOverview 72 HowBootfromaSANWorks 72 BenefitsofBootfromSAN 73 GettingReadyforBootfromSAN 73 BeforeYouBegin 74 LUNMaskinginBootfromSANMode 74 PreparingtheSAN 75 MinimizingtheNumberofInitiators 76 SettingUptheFCHBAforBootfromSAN 76 SettingUptheQLogicFCHBAforBootfromSAN 76 EnablingtheQLogicHBABIOS 76 EnablingtheSelectableBoot 77 SelectingtheBootLUN 77 SettingUpYourSystemtoBootfromCDROMFirst SettingUptheEmulexFCHBAforBootfromSAN 78
78
6 ManagingESXServerSystemsThatUseSANStorage 81
IssuesandSolutions 82 GuidelinesforAvoidingProblems 83 GettingInformation 83 ViewingHBAInformation 83 ViewingDatastoreInformation 84
VMware, Inc.
ResolvingDisplayIssues 85 UnderstandingLUNNamingintheDisplay 85 ResolvingIssueswithLUNsThatAreNotVisible 86 UsingRescan 87 RemovingDatastores 88 AdvancedLUNDisplayConfiguration 88 ChangingtheNumberofLUNsScannedUsingDisk.MaxLUN 88 MaskingLUNsUsingDisk.MaskLUNs 89 ChangingSparseLUNSupportUsingDisk.SupportSparseLUN 90 NPortIDVirtualization 90 HowNPIVBasedLUNAccessWorks 90 RequirementsforUsingNPIV 91 AssigningWWNstoVirtualMachines 92 Multipathing 95 ViewingtheCurrentMultipathingState 95 SettingaLUNMultipathingPolicy 98 DisablingandEnablingPaths 99 SettingthePreferredPathforFixedPathPolicy 100 PathManagementandManualLoadBalancing 100 Failover 102 SettingtheHBATimeoutforFailover 103 SettingDeviceDriverOptionsforSCSIControllers 103 SettingOperatingSystemTimeout 104 VMkernelConfiguration 104 SharingDiagnosticPartitions 104 AvoidingandResolvingProblems 105 OptimizingSANStoragePerformance 106 StorageArrayPerformance 106 ServerPerformance 107 ResolvingPerformanceIssues 108 MonitoringPerformance 108 ResolvingPathThrashing 108 UnderstandingPathThrashing 109 EqualizingDiskAccessBetweenVirtualMachines 110 RemovingVMFS2Drivers 111 RemovingNFSDrivers 111 ReducingSCSIReservations 111 SettingMaximumQueueDepthforHBAs 112 AdjustingQueueDepthforaQLogicHBA 112 AdjustingQueueDepthforanEmulexHBA 113
VMware, Inc.
Contents
SANStorageBackupConsiderations 114 SnapshotSoftware 115 UsingaThirdPartyBackupPackage 115 ChoosingYourBackupSolution 116 LayeredApplications 116 ArrayBased(ThirdParty)Solution 116 FileBased(VMFS)Solution 117 VMFSVolumeResignaturing 117 MountingOriginal,Snapshot,orReplicaVMFSVolumes 118 UnderstandingResignaturingOptions 118 State1EnableResignature=0,DisallowSnapshotLUN=1(default) 119 State2EnableResignature=1,(DisallowSnapshotLUNisnotrelevant) 119 State3EnableResignature=0,DisallowSnapshotLUN=0 119
Index 127
VMware, Inc.
VMware, Inc.
VMware, Inc.
Intended Audience
TheinformationpresentedinthismanualiswrittenforexperiencedWindowsorLinux systemadministratorsandwhoarefamiliarwithvirtualmachinetechnology datacenteroperations.
Document Feedback
VMwarewelcomesyoursuggestionsforimprovingourdocumentation.Ifyouhave comments,sendyourfeedbackto: docfeedback@vmware.com
10
VMware, Inc.
Support Offerings
FindouthowVMwaresupportofferingscanhelpmeetyourbusinessneeds.Goto http://www.vmware.com/support/services.
VMware, Inc.
11
12
VMware, Inc.
VMware, Inc.
13
System Components
AnESXServersystemhasthefollowingkeycomponents:
14
VMware, Inc.
ESX Server host applications applications applications applications guest operating guest operating guest operating guest operating system system system system virtual machine virtual machine virtual machine virtual machine VMware virtualization layer host operating system
VirtualCenter Server
memory
CPUs
storage array
disk
network
VMware, Inc.
15
Understanding Virtualization
TheVMwarevirtualizationlayeriscommonacrossVMwaredesktopproducts(suchas VMwareWorkstation)andserverproducts(suchasVMwareESXServer).Thislayer providesaconsistentplatformfordevelopment,testing,delivery,andsupportof applicationworkloadsandisorganizedasfollows:
16
VMware, Inc.
MemoryvirtualizationAcontiguousmemoryspaceisvisibletoeachvirtual machine.However,theallocatedphysicalmemorymightnotbecontiguous. Instead,noncontiguousphysicalpagesareremappedandpresentedtoeach virtualmachine.Withunusuallymemoryintensiveloads,servermemory becomesovercommitted.Inthatcase,someofthephysicalmemoryofavirtual machinemightbemappedtosharedpagesortopagesthatareunmappedor swappedout. ESXServerperformsthisvirtualmemorymanagementwithouttheinformation thattheguestoperatingsystemhasandwithoutinterferingwiththeguest operatingsystemsmemorymanagementsubsystem. SeetheResourceManagementGuide.
Virtual SCSI
InanESXServerenvironment,eachvirtualmachineincludesfromonetofourvirtual SCSIhostbusadapters(HBAs).ThesevirtualadaptersappearaseitherBuslogicorLSI LogicSCSIcontrollers.TheyaretheonlytypesofSCSIcontrollersthatavirtual machinecanaccess. EachvirtualdiskthatavirtualmachinecanaccessthroughoneofthevirtualSCSI adaptersresidesintheVMFSorisarawdisk.
VMware, Inc.
17
18
VMware, Inc.
LocalSCSIdevicepassedthroughdirectlytothevirtualmachine(forexample,a localtapedrive).
VMware, Inc.
19
Withaclient(VIClientorVIWebAccess).Clientscanbeconnecteddirectlytothe ESXServerhost,oryoucanmanagemultipleESXServerhostssimultaneouslyby usingtheVirtualCenterManagementServer. WithESXServer3,useaserviceconsole.InESXServer3.x,useoftheservice consoleisnotnecessaryandisdiscouragedbecauseyoucanperformmost administrativeoperationsusingaVIClientorVIWebAccess.Forscripted management,usetheVirtualInfrastructureSDK. Formoreinformationontheserviceconsole,seeESXServer3ServiceConsole onpage 21.
20
VMware, Inc.
VIWebAccessallowsyoutoconnecttoaVirtualCenterServerbyusinganHTML browser.
Figure 13showstheConfigurationtabofaVIClientdisplaywithStorageselected. TheselectedESXServerhostconnectstoSANLUNsandtolocalharddisks.The differenceinthedisplayisvisibleonlybecauseofthenamesthatwerechosenduring setup. Figure 1-3. Storage Information Displayed in VI Client, Configuration Tab
VMware, Inc.
21
Hostdaemon(hostd)Performsactionsintheserviceconsoleonbehalfofthe serviceconsoleandtheVIClient. Authenticationdaemon(vmauthd)AuthenticatesremoteusersoftheVIClient andremoteconsolesbyusingtheusernameandpassworddatabase.Youcanalso useanyotherauthenticationstorethatyoucanaccessusingtheserviceconsoles PluggableAuthenticationModule(PAM)capabilities.Havingmultiplepassword storagemechanismspermitstheuseofpasswordsfromaWindowsdomain controller,LDAPorRADIUSserver,orsimilarcentralauthenticationstorein conjunctionwithVMwareESXServerforremoteaccess. SNMPserver(netsnmpd)ImplementstheSNMPtrapsanddatastructuresthat anadministratorcanusetointegrateanESXServersystemintoanSNMPbased systemmanagementtool.
Virtualization at a Glance
ESXServervirtualizestheresourcesofthephysicalsystemforthevirtualmachinesto use. Figure 14illustrateshowmultiplevirtualmachinessharephysicaldevices.Itshows twovirtualmachines,eachconfiguredwiththefollowing:
22
VMware, Inc.
VMFS
raw disk
storage array
network adapter
VMware, Inc.
23
24
VMware, Inc.
VMware, Inc.
25
www.searchstorage.com www.snia.org
Becausethisindustrychangesconstantly,checktheseresourcesfrequently. IfyouarenewtoSANtechnology,readthissectiontofamiliarizeyourselfwiththe basicterminologySANConfigurationGuideuses.TolearnaboutbasicSANconcepts, seetheSANConceptualandDesignBasicswhitepaperat http://www.vmware.com/support/pubs. NOTESANadministratorscanskipthissectionandcontinuewiththerestofthis chapter. Astorageareanetwork(SAN)isaspecializedhighspeednetworkthatconnects computersystems,orhostservers,tohighperformancestoragesubsystems.TheSAN componentsincludehostbusadapters(HBAs)inthehostservers,switchesthathelp routestoragetraffic,cables,storageprocessors(SPs),andstoragediskarrays. ASANtopologywithatleastoneswitchpresentonthenetworkformsaSANfabric. Totransfertrafficfromhostserverstosharedstorage,theSANusesFibreChannel(FC) protocolthatpackagesSCSIcommandsintoFibreChannelframes.
26
VMware, Inc.
WhenNPortIDVirtualization(NPIV)isused,asingleFCHBAport(Nport)can registerwiththefabricbyusingseveralWWPNs.ThisallowsanNporttoclaim multiplefabricaddresses,eachofwhichappearsasauniqueentity.Inthecontextofa SANbeingusedbyESXServerhosts,thesemultiple,uniqueidentifiersallowthe assignmentofWWNstoindividualvirtualmachinesaspartoftheirconfiguration.See NPortIDVirtualizationonpage 90. Whentransferringdatabetweenthehostserverandstorage,theSANusesa multipathingtechnique.Multipathingallowsyoutohavemorethanonephysicalpath fromtheESXServerhosttoaLUNonastoragearray. IfapathoranycomponentalongthepathHBA,cable,switchport,orstorage processorfails,theserverselectsanotheroftheavailablepaths.Theprocessof detectingafailedpathandswitchingtoanotheriscalledpathfailover.
VMware, Inc.
27
Storagediskarrayscanbeofthefollowingtypes:
YoucanstoredataredundantlyandconfiguremultipleFCfabrics,eliminatinga singlepointoffailure.Yourenterpriseisnotcrippledwhenonedatacenter becomesunavailable. ESXServersystemsprovidemultipathingbydefaultandautomaticallysupportit foreveryvirtualmachine.SeePathManagementandFailoveronpage 41. UsingaSANwithESXServersystemsextendsfailureresistancetotheserver. WhenyouuseSANstorage,allapplicationscaninstantlyberestartedafterhost failure.SeeDesigningforServerFailureonpage 44.
28
VMware, Inc.
Becausesharedcentralstorageisavailable,buildingvirtualmachineclustersthat useMSCSbecomespossible.SeeServerFailoverandStorageConsiderationson page 45. Ifvirtualmachinesareusedasstandbysystemsforexistingphysicalservers, sharedstorageisessentialandaSANisthebestsolution. UsetheVMwareVMotioncapabilitiestomigratevirtualmachinesseamlessly fromonehosttoanother. UseVMwareHighAvailability(HA)inconjunctionwithaSANforacoldstandby solutionthatguaranteesanimmediate,automaticresponse. UseVMwareDistributedResourceScheduler(DRS)tomigratevirtualmachines fromonehosttoanotherforloadbalancing.BecausestorageisonaSANarray, applicationscontinuerunningseamlessly. IfyouuseVMwareDRSclusters,putanESXServerhostintomaintenancemode tohavethesystemmigrateallrunningvirtualmachinestootherESXServerhosts. Youcanthenperformupgradesorothermaintenanceoperations.
VMware, Inc.
29
StorageconsolidationandsimplificationofstoragelayoutIfyouareworking withmultiplehosts,andeachhostisrunningmultiplevirtualmachines,thehosts storageisnolongersufficientandexternalstorageisneeded.ChoosingaSANfor externalstorageresultsinasimplersystemarchitecturewhilegivingyoutheother benefitslistedinthissection.StartbyreservingalargeLUNandthenallocate portionstovirtualmachinesasneeded.LUNreservationandcreationfromthe storagedeviceneedstohappenonlyonce. DisasterrecoveryHavingalldatastoredonaSANcangreatlyfacilitateremote storageofdatabackups.Inaddition,youcanrestartvirtualmachinesonremote ESXServerhostsforrecoveryifonesiteiscompromised.
Useyourstoragearrayvendorsdocumentationformostsetupquestions.Your storagearrayvendormightalsoofferdocumentationonusingthestoragearrayin anESXServerenvironment. TheVMwareDocumentationWebsiteathttp://www.vmware.com/support/pubs/. TheiSCSISANConfigurationGuidediscussestheuseofESXServerwithiSCSI storageareanetworks. TheVMwareI/OCompatibilityGuideliststhecurrentlyapprovedHBAs,HBA drivers,anddriverversions. TheVMwareStorage/SANCompatibilityGuidelistscurrentlyapprovedstorage arrays. TheVMwareReleaseNotesgiveinformationaboutknownissuesandworkarounds. TheVMwareKnowledgeBaseshaveinformationoncommonissuesand workarounds.
30
VMware, Inc.
VMware, Inc.
31
VM1
VM2
VM3
Metadata Updates
AVMFSholdsfiles,directories,symboliclinks,RDMs,andsoon,andcorresponding metadatafortheseobjects.Metadataisaccessedeachtimetheattributesofafileare accessedormodified.Theseoperationsinclude,butarenotlimitedtothefollowing:
32
VMware, Inc.
Host Type
ALUNhasaslightlydifferentbehaviordependingonthetypeofhostthatisaccessing it.Usually,thehosttypeassignmentdealswithoperatingsystemspecificfeaturesor issues.ESXServerarraysaretypicallyconfiguredwithahosttypeofLinuxor,if available,ESXorVMwarehosttype. SeeChapter 6,ManagingESXServerSystemsThatUseSANStorage,onpage 81and theVMwareknowledgebases.
Levels of Indirection
IfyouareusedtoworkingwithtraditionalSANs,thelevelsofindirectioncaninitially beconfusing.
Youcannotdirectlyaccessthevirtualmachineoperatingsystemthatusesthe storage.Withtraditionaltools,youcanmonitoronlytheVMwareESXServer operatingsystem,butnotthevirtualmachineoperatingsystem.Youusethe VI Clienttomonitorvirtualmachines. Eachvirtualmachineis,bydefault,configuredwithonevirtualharddiskandone virtualSCSIcontrollerduringinstallation.YoucanmodifytheSCSIcontrollertype andSCSIbussharingcharacteristicsbyusingtheVIClienttoeditthevirtual machinesettings,asshowninFigure 22.Youcanalsoaddharddiskstoyour virtualmachine.SeetheBasicSystemAdministration.
VMware, Inc.
33
34
VMware, Inc.
VMware, Inc.
35
Whenyouusezoning,keepinmindthefollowingitems:
NOTECheckwiththestoragearrayvendorforzoningbestpractices.
ManyLUNswithoneVMFSvolumeoneachLUN ManyLUNswithasingleVMFSvolumespanningallLUNs
36
Youmightwantmore,smallerLUNsforthefollowingreasons:
Predictivescheme Adaptivescheme
Predictive Scheme
Inthepredictivescheme,you:
Adaptive Scheme
Intheadaptivescheme,you:
VMware, Inc.
37
To use disk shares to prioritize virtual machines 1 2 3 4 StartaVIClientandconnecttoaVirtualCenterServer. Selectthevirtualmachinefromtheinventory,rightclick,andchooseEditSettings. ClicktheResourcestabandclickDisk. RightclicktheSharescolumnforthedisktomodify,andselecttherequiredvalue fromthedropdownmenu.
38
VMware, Inc.
VMware, Inc.
39
FormoreinformationaboutVMFSandRDMs,seetheESXServer3ConfigurationGuide orESXServer3iConfigurationGuide. WhenavirtualmachineinteractswithaSAN,thefollowingprocesstakesplace: 1 2 Whentheguestoperatingsysteminavirtualmachineneedstoreadorwriteto SCSIdisk,itissuesSCSIcommandstothevirtualdisk. Devicedriversinthevirtualmachinesoperatingsystemcommunicatewiththe virtualSCSIcontrollers.VMwareESXServersupportstwotypesofvirtualSCSI controllers:BusLogicandLSILogic. ThevirtualSCSIControllerforwardsthecommandtotheVMkernel. TheVMkernel:
3 4
40
SendsthemodifiedI/OrequestfromthedevicedriverintheVMkerneltothe physicalHBA(hostHBA).
ThehostHBA:
VMware, Inc.
41
HBA2
HBA1
HBA3
HBA4
switch
switch
SP1
SP2
storage array
Similarly,ifSP1failsorthelinksbetweenSP1andtheswitchesbreaks,SP2takesover andprovidestheconnectionbetweentheswitchandthestoragedevice.Thisprocessis calledSPfailover.VMwareESXServersupportsHBAandSPfailoverwithits multipathingcapability. Youcanchooseamultipathingpolicyforyoursystem,eitherFixedorMostRecently Used.IfthepolicyisFixed,youcanspecifyapreferredpath.EachLUN(disk)thatis visibletotheESXServerhostcanhaveitsownpathpolicy.Forinformationonhowto viewthecurrentmultipathingstateandhowtosetthemultipathingpolicy,see Multipathingonpage 95.
42
VMware, Inc.
VMware, Inc.
43
Using VMware HA
VMwareHAallowsyoutoorganizevirtualmachinesintofailovergroups.Whenahost fails,allitsvirtualmachinesareimmediatelystartedondifferenthosts.HArequires SANstorage. Whenavirtualmachineisrestoredonadifferenthost,itlosesitsmemorystatebutits diskstateisexactlyasitwaswhenthehostfailed(crashconsistentfailover).Shared storage,suchasaSAN,isrequiredforHA.SeetheResourceManagementGuide. NOTEYoumustbelicensedtouseVMwareHA.
44
SeeSetupforMicrosoftClusterService. Figure 25showsdifferentconfigurationoptionsavailableforachievingfailoverwith clustering. Figure 2-5. Clustering Using a Clustering Service
virtual machine virtual machine virtual machine virtual machine virtual machine virtual machine virtual machine cluster in a box cluster across boxes physical to virtual clustering
VMware, Inc.
45
AlthoughaLUNisaccessibletoahost,allvirtualmachinesonthathostdonot necessarilyhaveaccesstoalldataonthatLUN.Avirtualmachinecanaccessonly thevirtualdisksforwhichitwasconfigured.Incaseofaconfigurationerror, virtualdisksarelockedwhenthevirtualmachinebootssothatnocorruption occurs. NOTEAsarule,whenyouareusingbootfromaSAN,onlytheESXServersystemthat isbootingfromaLUNshouldseeeachbootLUN.Anexceptioniswhenyouaretrying torecoverfromafailurebypointingasecondESXServersystemtothesameLUN.In thiscase,theSANLUNinquestionisnotreallybootingfromSAN.NoESXServer systemisbootingfromitbecauseitiscorrupted.TheSANLUNisanonbootLUNthat ismadevisibletoanESXServersystem.
MigratevirtualmachinesmanuallybyusingVMotion. MigratevirtualmachinesautomaticallybyusingVMwareDRS.
46
VMware, Inc.
SeetheResourceManagementGuide.
VMware, Inc.
47
48
VMware, Inc.
ThischapterdiscusseshardwareandsystemrequirementsforusingESXServer systemswithSANstorage.Thechapterconsistsofthefollowingsections:
VMware, Inc.
49
Hardwareandfirmware.OnlyalimitednumberofSANstoragehardwareand firmwarecombinationsaresupportedinconjunctionwithESXServersystems.For anuptodatelist,seetheStorage/SANCompatibilityGuide. OneVMFSvolumeperLUN.ConfigureyoursystemtohaveonlyoneVMFS volumeperLUN.WithVMFS3,youdonothavetosetaccessibility. Unlessyouareusingdisklessservers,donotsetupthediagnosticpartitionona SANLUN. InthecaseofdisklessserversthatbootfromaSAN,ashareddiagnosticpartition isappropriate.SeeSharingDiagnosticPartitionsonpage 104.
VMwarerecommendsthatyouuseRDMsforaccesstoanyrawdiskfromanESX Server2.5orlatermachine.FormoreinformationonRDMs,seetheESXServer3 ConfigurationGuideorESXServer3iConfigurationGuide. Multipathing.Formultipathingtoworkproperly,eachLUNmustpresentthe sameLUNIDnumbertoallESXServerhosts. Queuesize.MakesuretheBusLogicorLSILogicdriverintheguestoperating systemspecifiesalargeenoughqueue.Youcansetthequeuedepthforthe physicalHBAduringsystemsetup.Forsupporteddrivers,seetheStorage/SAN CompatibilityGuide. SCSItimeout.OnvirtualmachinesrunningMicrosoftWindows,consider increasingthevalueoftheSCSITimeoutValueparametertoallowsWindowsto bettertoleratedelayedI/Oresultingfrompathfailover.SeeSettingOperating SystemTimeoutonpage 104.
50
VMware, Inc.
VMotionandVMwareDRS.WhenyouuseVirtualCenterandVMotionorDRS, makesurethattheLUNsforthevirtualmachinesareprovisionedtoallESXServer hosts.Thisprovidesthegreatestfreedominmovingvirtualmachines. Active/activecomparedtoactive/passivearrays.WhenyouuseVMotionorDRS withanactive/passiveSANstoragedevice,makesurethatallESXServersystems haveconsistentpathstoallstorageprocessors.Notdoingsocancausepath thrashingwhenaVMotionmigrationoccurs.SeeResolvingPathThrashingon page 108. Foractive/passivestoragearraysnotlistedintheStorage/SANCompatibilityGuide, VMwaredoesnotsupportstorageportfailover.Inthosecases,youmustconnect theservertotheactiveportonthestoragearray.Thisconfigurationensuresthat theLUNsarepresentedtotheESXServerhost.
VMware, Inc.
51
Settingthetimeoutforfailover.Setthetimeoutvaluefordetectingwhenapath failsintheHBAdriver.VMwarerecommendsthatyousetthetimeoutto30 secondstoensureoptimalperformance.Tosetthevalue,followtheinstructionsin SettingtheHBATimeoutforFailoveronpage 103. Dedicatedadapterfortapedrives.Forbestresults,useadedicatedSCSIadapter foranytapedrivesthatyouareconnectingtoanESXServersystem.FCconnected tapedrivesarenotsupported.UsetheConsolidatedBackupproxy,asdiscussedin theVirtualMachineBackupGuide. ForadditionalinformationonbootfromaSANHBAsetup,seeChapter 5,Using BootfromSANwithESXServerSystems,onpage 71.
Recommendations
ConsiderthefollowingwhensettingupyourenvironmentwithESXServerhostsand aSAN:
UseRDMforavirtualdiskofavirtualmachinetousesomeofthehardware snapshottingfunctionsofthediskarray,ortoaccessadiskfromavirtualmachine andaphysicalmachineinacoldstandbyhostconfigurationfordataLUNs. UseRDMfortheshareddisksinaMicrosoftClusterServicesetup.SeetheSetup forMicrosoftClusterService. AllocatealargeLUNformultiplevirtualmachinestouseandsetitupasaVMFS. Youcanthencreateordeletevirtualmachinesdynamicallywithouthavingto requestadditionaldiskspaceeachtimeyouaddavirtualmachine. TomoveavirtualmachinetoadifferenthostusingVMotion,theLUNsthathold thevirtualdisksofthevirtualmachinesmustbevisiblefromallthehosts.
52
VMware, Inc.
VMware, Inc.
53
Chapter 3,GeneralESXServerSAN Requirements,onpage 50. Storage/SANCompatibilityGuide. Forspecialrequirementsthatapplyonlyto bootfromSAN,seeChapter 3,ESXServer BootfromSANRequirements,onpage 53. SeealsoChapter 5,UsingBootfromSAN withESXServerSystems,onpage 71.
Performanynecessarystoragearray modification.
InstallationGuide.
54
VMware, Inc.
VMware, Inc.
55
56
VMware, Inc.
VMware, Inc.
57
Setup Overview
VMwareESXServersupportsavarietyofSANstoragearraysindifferent configurations.Notallstoragedevicesarecertifiedforallfeaturesandcapabilitiesof ESXServer,andvendorsmighthavespecificpositionsofsupportwithregardtoESX Server.Forthelatestinformationregardingsupportedstoragearrays,seethe Storage/SANCompatibilityGuide.
Testing
VMwaretestsESXServerwithstoragearraysinthefollowingconfigurations:
BasicconnectivityTestswhetherESXServercanrecognizeandoperatewiththe storagearray.Thisconfigurationdoesnotallowformultipathingoranytypeof failover. HBAfailoverTheserverisequippedwithmultipleHBAsconnectingtooneor moreSANswitches.TheserverisrobusttoHBAandswitchfailureonly. StorageportfailoverTheserverisattachedtomultiplestorageportsandis robusttostorageportfailuresandswitchfailures. BootfromSANTheESXServerhostbootsfromaLUNconfiguredontheSAN ratherthanfromtheserveritself. DirectconnectTheserverconnectstothearraywithoutusingswitches,using onlyanFCcable.Forallothertests,afabricconnectionisused.FCArbitratedLoop (AL)isnotsupported. ClusteringThesystemistestedwithMicrosoftClusterServicerunninginthe virtualmachine.SeetheSetupforMicrosoftClusterServicedocument.
58
VMware, Inc.
Supported Devices
Table 41listsstoragedevicessupportedwithESXServer3.xandpointswheretofind moreinformationaboutusingtheminconjunctionwithESXServer. Table 4-1. Supported SAN Arrays
Manufacturer EMC Device CLARiiONStorageSystem. AlsoavailablefromFSC. AlsoavailablefromDell,Inc.asthe Dell/EMCFCRAIDArrayfamily ofproducts. SymmetrixStorageSystem. IBM IBMTotalStorageDS4000systems (formerlyFAStTStoragesystem). AlsoavailablefromLSIEugenio andStorageTek. IBMTotalStorageEnterprise StorageSystems(previouslyShark Storagesystems). HewlettPackard Hitachi HPStorageWorks(MSA,EVA, and XP). HitachiDataSystemsStorage. AlsoavailablefromSunandas HP XP. Network Appliance NetworkApplianceFCSAN StorageSolutions. IBMTotalStorage8000on page 66. HPStorageWorksStorage Systemsonpage 66. HitachiDataSystemsStorageon page 69. NetworkApplianceStorageon page 69. EMCSymmetrixStorage Systemsonpage 61. IBMTotalStorageDS4000Storage Systemsonpage 62. Reference EMCCLARiiONStorage Systemsonpage 60.
VMware, Inc.
UsetheEMCsoftwaretoperformconfiguration.SeetheEMCdocumentation. Thisarrayisanactive/passivediskarray,sothefollowingrelatedissuesapply. Toavoidthepossibilityofpaththrashing,thedefaultmultipathingpolicyisMost RecentlyUsed,notFixed.TheESXServersystemsetsthedefaultpolicywhenit identifiesthearray.SeeResolvingPathThrashingonpage 108. AutomaticvolumeresignaturingisnotsupportedforAX100storagedevices.See VMFSVolumeResignaturingonpage 117. TousebootfromSAN,makesurethattheactiveSPischosenforthebootLUNstarget intheHBABIOS.
60
VMware, Inc.
UseEMCsoftwaretoconfigurethestoragearray.SeeyourEMCdocumentation.
VMware, Inc.
61
Configuring the Hardware for SAN Failover with DS4000 Storage Servers
TosetupahighlyavailableSANfailoverconfigurationwithDS4000storagemodels equippedwithtwostorageprocessors,youneedthefollowinghardwarecomponents:
UsethefollowingconnectionsettingsfortheESXServerhost,asshowninFigure 41:
62
VMware, Inc.
FC switch 1
FC switch 2
SP1 storage
SP2
VMware, Inc.
63
SelecteachstorageadaptertoseeitsWWPN.
SelectStoragetoseetheavailabledatastores.
ComparetheWWPNinformationtotheinformationlistedintheDS4000storage subsystemprofile.
64
VMware, Inc.
VMware, Inc.
65
HP StorageWorks MSA
Thissectionlistsissuesofinterestifyouareusingtheactive/passiveversionoftheHP StorageWorksMSA.
66
VMware, Inc.
To set the Profile Name for a connection 1 CreateastaticconnectionontheMSA1000byusingtheMSA1000commandline interface. Forinformationoninstallingandconfiguringthecommandlineinterface,seethe HPStorageWorksMSA1000documentation. NOTEYoucannotcreateconnectionsettingsbyusingtheHPArrayConfiguration utility. 2 3 4 ConnecttheMSA1000commandlineinterfacetotheMSA1000. VerifythattheFCnetworkbetweentheMSA1000andtheESXServerhostis working. Startthecommandlineinterfaceandenterthefollowingattheprompt:
SHOW CONNECTIONS
TheoutputdisplaysaconnectionspecificationforeachFCWWNNandWWPN attachedtotheMSA1000:
Connection Name: <unknown> Host WWNN = 20:02:00:a0:b8:0c:d5:56 Host WWPN = 20:03:00:a0:b8:0c:d5:57 Profile Name = Default Unit Offset 0 Controller 1 Port 1 Status = Online Controller 2 Port 1 Status = Online
5 6
Verifytheconnectionasfollows:
SHOW CONNECTIONS
VMware, Inc.
67
Unit Offset = 0 Controller 1 Port 1 Status = Online Controller 2 Port 1 Status = Online
HP StorageWorks EVA
ThetwotypesofHPStorageWorksEVAsystemsare:EVA_GL,anactive/passive system;andEVA_XL,anactive/activesystem. SettheconnectiontypetoCustomwhenyoupresentaLUNtoanESXServerhost.The valueisoneofthefollowing:
68
VMware, Inc.
HP StorageWorks XP
ForHPStorageWorksXP,setthehostmodetoWindows(notLinux).Thissystemis availablefromHitachiDataSystems.
9900and9900vusesNetwarehostmode. 9500vseriesusesHostmode1:standardandHostmode2:SUNCluster.
CheckwithyourHDSrepresentativeforhostmodesettingsforthemodelsnot listedhere.
LUNtypeVMware(ifVMwaretypeisnotavailable,useLinux) InitiatorgrouptypeVMware(ifVMwaretypeisnotavailable,useLinux)
CreateaFlexibleVolume:
vol create <aggregate name> <volume size>
VMware, Inc.
69
CreateaQtreetostoreeachLUN:
qtree create <path>
CreateaLUN:
lun create -s <size> -t vmware <path>
Createaninitiatorgroup:
igroup create -f -t vmware <igroup name>
MaptheLUNtotheinitiatorgroupyoujustcreated:
lun map (<path>) <igroup name> <LUN ID>
ForadditionalinformationonhowtouseNetworkApplianceStoragewithVMware technology,seethefollowingNetworkAppliancedocuments:
70
VMware, Inc.
VMware, Inc.
71
DonotusebootfromSAN:
NOTEWithESXServer2.5,youcouldnotusebootfromSANtogetherwithRDM.With ESXServer3.x,thisrestrictionisremoved.
boot disk
72
VMware, Inc.
OnasystemsetuptobootfromaSAN:
VMware, Inc.
73
Therestofthissectionliststhetasksyouneedtocompletebeforeyoucansuccessfully bootyourESXServermachinefromSAN.
Therecommendationsorsamplesetupsforthetypeofsetupyouwant:
Restrictionsandrequirements,including:
FindtheWWNforthebootpathHBAbyusingoneofthefollowingmethods:
GointotheFCHBABIOSuponboot. FindtheWWNonthephysicalcard.ItissimilartoaMACaddress.
74
VMware, Inc.
FromtheSANstoragearray,maketheESXServerhostvisibletotheSAN.This isoftenreferredtoascreatinganobject. FromtheSANstoragearray,setuptheESXServerhosttohavetheWWPNs ofthehostsFCadaptersasportnamesornodenames. CreateLUNs. AssignLUNs. RecordtheIPaddressesoftheFCswitchesandstoragearrays. RecordtheWWPNforeachSPandhostadapterinvolved. CAUTIONIfyouusescriptedinstallationtoinstallESXServerinbootfrom SANmode,youneedtotakespecialstepstoavoidunintendeddataloss.See VMwareknowledgebasearticle1540at http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=1540.
ConfiguretheHBABIOSforbootfromSAN,asdiscussedinthefollowing sections:
BootyourESXServersystemfromtheESXServerinstallationCD. SeetheInstallationGuide.
VMware, Inc.
75
PerformtheappropriateactiondependingonthenumberofHBAs.
a b
76
VMware, Inc.
3 4 5
4 5
PressEsctwicetoexit. PressEntertosavethesetting.
VMware, Inc.
77
YoucannowinstalltheESXServersystem,asdiscussedintheInstallationGuide.
ToenabletheBootBIOSprompt ToenabletheBIOS
To enable the BootBIOS prompt 1 FromtheESXServerserviceconsoleoraLinuxcommandprompt,runlputil. NOTEConsiderbootingtheESXServerhostfromaLinuxAdministrationCDthat loadstheEmulexdriver,thenrunlputilfromthere. 2 3 4 5 Select<3>FirmwareMaintenance. Selectanadapter. Select<6>BootBIOSMaintenance. Select<1>EnableBootBIOS.
78
VMware, Inc.
c d e 3
4 5
BootintothesystemBIOSandmoveEmulexfirstinthebootcontrollersequence. RebootandinstallonaSANLUN.
VMware, Inc.
79
80
VMware, Inc.
IssuesandSolutionsonpage 82 GuidelinesforAvoidingProblemsonpage 83 GettingInformationonpage 83 ResolvingDisplayIssuesonpage 85 AdvancedLUNDisplayConfigurationonpage 88 NPortIDVirtualizationonpage 90 Multipathingonpage 95 Failoveronpage 102 VMkernelConfigurationonpage 104 SharingDiagnosticPartitionsonpage 104 AvoidingandResolvingProblemsonpage 105 OptimizingSANStoragePerformanceonpage 106 ResolvingPerformanceIssuesonpage 108 SANStorageBackupConsiderationsonpage 114 LayeredApplicationsonpage 116 VMFSVolumeResignaturingonpage 117
VMware, Inc.
81
82
VMware, Inc.
Getting Information
ThissectionexplainshowtofindinformationaboutHBAs,status,multipathing,andso on.Ifyouexperienceproblemswhenperformingthesetasks,seeResolvingDisplay Issuesonpage 85.
VMware, Inc.
83
84
VMware, Inc.
Extent
ClickPropertiestoviewandchangeproperties.
Ifthelastnumberis0ornotdisplayed,thenamereferstotheentireLUN.
VMware, Inc. 85
CableconnectivityIfyoudonotseeaport,theproblemcouldbecable connectivityorzoning.Checkthecablesfirst. ZoningLimitsaccesstospecificstoragedevices,increasessecurity,anddecreases trafficoverthenetwork.Somestoragevendorsallowonlysingleinitiatorzones.In thatcase,anHBAcanbeinmultiplezonestoonlyonetarget.Othervendorsallow multipleinitiatorzones.Seeyourstoragevendorsdocumentationforzoning requirements.UsetheSANswitchsoftwaretoconfigureandmanagezoning. LUNmaskingIfanESXServerhostseesaparticularstoragedevicebutnotthe expectedLUNsonthatdevice,itmightbethatLUNmaskinghasnotbeensetup properly. TobootfromaSAN,ensurethateachESXServerhostseesonlyrequiredLUNs. DonotallowanyESXServerhosttoseeanybootLUNotherthanitsown.Usedisk arraysoftwaretomakesurethattheESXServerhostcanseeonlytheLUNsthatit issupposedtosee. EnsurethattheDisk.MaxLUNandDisk.MaskLUNssettingsallowyoutoview theLUNyouexpecttosee.SeeChangingtheNumberofLUNsScannedUsing Disk.MaxLUNonpage 88andMaskingLUNsUsingDisk.MaskLUNson page 89.
86
VMware, Inc.
Using Rescan
Performarescaneachtimeyoudooneofthefollowing:
ZoneanewdiskarrayontheSANtoanESXServerhost. CreatenewLUNsonaSANdiskarray. ChangetheLUNmaskingonanESXServerhostdiskarray.Afteryoumaskall pathstoaLUN,rescanalladapterswithpathstotheLUNinordertoupdatethe configuration. Reseatacable. MakeachangetoanESXServerhostinacluster. MakeachangetoadatastoreconfigurationonanESXServerhost,forexample, createanewdatastore,remove,upgrade,orresignatureadatastore,oraddan extent.
NOTEDonotrescanwhenapathisdown.Ifonepathfails,theothertakesoverand yoursystemcontinuestobefullyfunctional.If,however,yourescanatatimewhena pathisnotavailable,theESXServerhostremovesthepathfromitslistofpathstothe device.ThepathcannotbeusedbytheESXServerhostuntilthenexttimearescanis performedwhilethepathisactive. To perform a rescan 1 2 IntheVIClient,selectahostandclicktheConfigurationtab. IntheHardwarepanel,chooseStorageAdapters,andclickRescanabovethe StorageAdapterspanel. YoucanalsoselectanindividualadapterandclickRescantorescanjustthat adapter.
VMware, Inc.
87
Removing Datastores
(SEEUPDATE)UsingtheVIClient,youcanremoveadatastorefromtheESXServerhost. Beforeremovingthedatastore,migratevirtualmachinesthatresideonthisdatastore. To remove a datastore 1 2 3 4 IntheInventorypanel,selectthehost. ClicktheConfigurationtabandclickStoragetodisplayallstoragedevices. SelectthedatastoretoremoveandclickRemove. ClickRefreshtoupdatetheviewofavailablestorageoptions.
88
VMware, Inc.
ScrolldowntoDisk.MaxLUN,changetheexistingvaluetothevalueofyour choice,andclickOK.
ClickOK.
VMware, Inc.
89
CAUTIONIfatarget,LUN,orvmhbanumberchangesbecauseofaserverorSAN reconfiguration,theincorrectLUNmaybemaskedorexposed.
N-Port ID Virtualization
NPortIDVirtualization(NPIV)isanANSIT11standardthatdescribeshowasingle FibreChannelHBAportcanregisterwiththefabricusingseveralworldwideport names(WWPNs).ThisallowsafabricattachedNporttoclaimmultiplefabric addresses.EachaddressappearsasauniqueentityontheFibreChannelfabric.
90
VMware, Inc.
machinemustnotbemaskedagainstitsWWNs.Whenvirtualmachinesdonothave WWNassignments,theyaccessstorageLUNswiththeWWNsoftheirhostsphysical HBAs.ByusingNPIV,however,aSANadministratorcanmonitorandroutestorage accessonapervirtualmachinebasis.Thefollowingsectiondescribeshowthisworks. NPIVenablesasingleFCHBAporttoregisterseveraluniqueWWNswiththefabric, eachofwhichcanbeassignedtoanindividualvirtualmachine.Whenavirtual machinehasaWWNassignedtoit,thevirtualmachinesconfigurationfile(.vmx)is updatedtoincludeaWWNpair(consistingofaWorldWidePortName,WWPN,and aWorldWideNodeName,WWNN).Asthatvirtualmachineispoweredon,the VMkernelinstantiatesavirtualport(VPORT)onthephysicalHBAwhichisusedto accesstheLUN.TheVPORTisavirtualHBAthatappearstotheFCfabricasaphysical HBA,thatis,ithasitsownuniqueidentifier,theWWNpairthatwasassignedtothe virtualmachine.EachVPORTisspecifictothevirtualmachine,andtheVPORTis destroyedonthehostanditnolongerappearstotheFCfabricwhenthevirtual machineispoweredoff. IfNPIVisenabled,fourWWNpairs(WWPN&WWNN)arespecifiedforeachvirtual machineatcreationtime.WhenavirtualmachineusingNPIVispoweredon,ituses eachoftheseWWNpairsinsequencetotrytodiscoveranaccesspathtothestorage. ThenumberofVPORTsthatareinstantiatedequalsthenumberofphysicalHBAs presentonthehostuptothemaximumoffour.AVPORTiscreatedoneachphysical HBAthataphysicalpathisfoundon.Eachphysicalpathisusedtodeterminethe virtualpaththatwillbeusedtoaccesstheLUN.NotethatHBAsthatarenot NPIVawareareskippedinthisdiscoveryprocessbecauseVPORTscannotbe instantiatedonthem. NOTEIfauserhasfourphysicalHBAsaspathstothestorage,allphysicalpathsmust bezonedtothevirtualmachinebytheSANadministrator.Thisisrequiredtosupport multipathingeventhoughonlyonepathatatimewillbeactive.
VMware, Inc.
TheESXServerhostsphysicalHBAsmustsupportNPIV.Currently,thefollowing vendorsandtypesofHBAprovidethissupport:
QLogicany4GBHBA. Emulex4GBHBAsthathaveNPIVcompatiblefirmware.
8 9
92
VMware, Inc.
10 11 12 13 14
15 SelectRawDeviceMapping,andclickNext. 16 17 FromalistofSANdisksorLUNs,selectarawLUNyouwantyourvirtualmachine toaccessdirectly. SelectadatastorefortheRDMmappingfile. YoucanplacetheRDMfileonthesamedatastorewhereyourvirtualmachinefiles reside,orselectadifferentdatastore. NOTEIfyouwanttouseVMotionforavirtualmachinewithenabledNPIV,make surethattheRDMfileislocatedonthesamedatastorewherethevirtualmachine configurationfileresides.YoucannotperformStorageVMotion,orVMotion betweendatastores,whenNPIVisenabled. 18 Selectacompatibilitymode,eitherphysicalorvirtual.
VMware, Inc.
93
3 4 5
LeaveunchangedTheexistingWWNassignmentsareretained.The readonlyWWNAssignmentssectionofthisdialogboxdisplaysthenodeand portvaluesofanyexistingWWNassignments. GeneratenewWWNsNewWWNsaregeneratedandassignedtothe virtualmachine,overwritinganyexistingWWNs(thoseoftheHBAitselfare unaffected). RemoveWWNassignmentTheWWNsassignedtothevirtualmachineare removedanditusestheHBAWWNstoaccessthestorageLUN.Thisoption isnotavailableifyouarecreatinganewvirtualmachine. CAUTIONRemovingorchangingavirtualmachinesexistingWWN assignmentscausesittoloseconnectivitytothestorageLUNs
ClickOKtosaveyourchanges.
94
VMware, Inc.
Multipathing
Foranintroductiontomultipathingconcepts,seePathManagementandFailoveron page 41. NOTESANimplementationswithahighnumberofLUNsandpathstothoseLUNs cancauseESXServertorunoutofresourcesbeforeallofthepathsareenumerated.This preventsESXServerfromseeingallofthepathstothestorage.Toavoidthissituation, reducethepathcounttotheLUNs.
Toviewadditionalinformation,ortochangethemultipathingpolicy,select PropertiesabovetheDetailspanel.
VMware, Inc.
95
Thedisplayincludesinformationonthestatusofeachpathtothedevice.The followingpathinformationcanappear:
96
VMware, Inc.
VMware, Inc.
97
FixedTheESXServerhostalwaysusesthedesignatedpreferredpathtothedisk whenthatpathisavailable.Ifitcannotaccessthediskthroughthepreferredpath, ittriesthealternatepaths.Fixedisthedefaultpolicyforactive/activestorage devices. MostRecentlyUsedTheESXServerhostusesthemostrecentpathtothedisk untilthispathbecomesunavailable.Thatis,theESXServerhostdoesnot automaticallyrevertbacktothepreferredpath.MostRecentlyUsedisthedefault policyforactive/passivestoragedevicesandisrequiredforthosedevices. RoundRobinTheESXServerhostusesanautomaticpathselectionrotating throughallavailablepaths.Inadditiontopathfailover,roundrobinsupportsload balancingacrossthepaths. NOTERoundrobinloadbalancingisexperimentalandnotsupportedfor productionuse.SeetheRoundRobinLoadBalancingwhitepaper.
TheESXServerhostsetsthemultipathingpolicyaccordingtothemakeandmodelof thearrayitdetects.Ifthedetectedarrayisnotsupported,itistreatedasactive/active. Foralistofsupportedarrays,seetheStorage/SANCompatibilityGuide. NOTEManuallychangingMostRecentlyUsedtoFixedisnotrecommended.The systemsetsthispolicyforthosearraysthatrequireit. To set the multipathing policy using a VI Client 1 2 3 4 IntheVIClientinventorypanel,selectthehostandclicktheConfigurationtab. IntheHardwarepanel,selectStorage. Selectthedatastoreforwhichyouwanttochangethemultipathingpolicy,and clickPropertiesintheDetailspanel. IntheExtentpanel,selectthedeviceforwhichyouwanttomakethechange,and clickManagePathsintheExtentDevicepanelontheright. TheManagePathswizardopens.
98
VMware, Inc.
UnderPolicy,clickChange. TheSelectionPolicypageopens.
SelectthemultipathingpolicyandclickOK.
VMware, Inc.
99
IfPreferredisnotavailable,makesurethatthepathpolicyisFixed. 7 ClickOKtwicetosaveyoursettingsandexitthedialogboxes.
100
VMware, Inc.
FC switch
SP1
SP2
storage array
Forloadbalancing,setthepreferredpathsasfollows.
VMware, Inc.
101
Failover
PathfailoverreferstosituationswhentheactivepathtoaLUNischangedfromone pathtoanother,usuallybecauseofsomeSANcomponentfailurealongthecurrent path.AserverusuallyhasoneortwoHBAsandeachHBAseesoneortwostorage processorsonagivenSANarray.Youcandeterminetheactivepaththepath currentlyusedbytheserverbylookingattheLUNsproperties. Figure 6-3. Active and Standby Paths
102
VMware, Inc.
ForQLogicHBAs,thetimeoutvalueis2*n + 5seconds,wherenisthevalueof thePortDownRetryCountparameteroftheBIOSoftheQLogiccard.Youcan changethepathfailuredetectiontimebychangingthevalueofthemodule parameterqlport_down_retry(whosedefaultvaluecomesfromtheBIOS setting).Therecommendedsettingforthisparameteris14. ForEmulexHBAs,youcanmodifythepathfailuredetectiontimebychangingthe valueofthemoduleparameterslpfc_linkdown_tmo(thedefaultis30)and lpfc_nodev_tmo(thedefaultis30).Thedriverusesthelargestofthetwo parameterstodeterminepathfailuredetectiontime.Therecommendedsettingfor eachisthedefault.
2 3
VMware, Inc.
Findtheoptionslinerightunderthenamelineandmodifyitasappropriate. RepeatforeverySCSIadapterthatiscontrolledbythesamedriverifneeded.
103
VMkernel Configuration
WhenyouinstallyourESXServersystem,decidewheretoplacedifferentstorage elementssuchasthe/and/bootpartitionsoftheserviceconsole(ESXServer3only). ThedifferentcomponentsarediscussedinmoredetailintheInstallationGuide.
VMware, Inc.
105
106
VMware, Inc.
Server Performance
Ensuringoptimalserverperformancerequireslookingatanumberoffactors.Each serverapplicationmusthaveaccesstoitsdesignatedstoragewith:
PlaceeachLUNonaRAIDgroupthatprovidesthenecessaryperformancelevels. PayattentiontotheactivitiesandresourceutilizationofotherLUNSinthe assignedRAIDgroup.AhighperformanceRAIDgroupthathastoomany applicationsdoingI/Otoitmightnotmeetperformancegoalsrequiredbyan applicationrunningontheESXServerhost. MakesurethateachserverhasasufficientnumberofHBAstoallowmaximum throughputforalltheapplicationshostedontheserverforthepeakperiod.I/O spreadacrossmultipleHBAsprovidehigherthroughputandlesslatencyforeach application. ToprovideredundancyintheeventofHBAfailure,makesuretheserveris connectedtoadualredundantfabric. WhenallocatingLUNsorRAIDgroupsforESXServersystems,multipleoperating systemswilluseandsharethatresource.Asaresult,theperformancerequired fromeachLUNinthestoragesubsystemcanbemuchhigherifyouareworking withESXServersystemsthanifyouareusingphysicalmachines.Forexample,if youexpecttorunfourI/Ointensiveapplications,allocatefourtimesthe performancecapacityfortheESXServerLUNs. WhenusingmultipleESXServersystemsinconjunctionwithaVirtualCenter Server,theperformanceneededfromthestoragesubsystemincreases correspondingly. ThenumberofoutstandingI/OsneededbyapplicationsrunningonanESXServer systemshouldmatchthenumberofI/OstheHBAandstoragearraycanhandle.
VMware, Inc.
107
Monitoring Performance
TheVIClientoffersextensivefacilitiesforcollectingperformanceinformation.The informationisthengraphicallydisplayedintheVIClient.Forinformation,seetheBasic SystemAdministration.TheVIClientupdatesitsdisplayperiodically. WithESXServer3,youcanalsousetheesxtoptool,availablefromtheserviceconsole. Forinformationaboutesxtop,seetheResourceManagementGuide,orlookattheman pagefromtheserviceconsole.Youcanuseesxtoptomonitorperformanceinrealtime. IfyouareusingESXServer3i,similarfunctionalityisprovidedbytheresxtoptool.
108
VMware, Inc.
Paththrashingisaproblemthatyoutypicallywontexperiencewithotheroperating systems:
VMware, Inc.
109
Considerhowpathselectionworks:
110
VMware, Inc.
VMware, Inc.
111
DependingonthemodeloftheHBA,themodulecanbeoneofthefollowing:
qla2300_707(ESXServer3.0.x) qla2300_707_vmw(ESXServer3.5)
Inthiscase,theHBArepresentedbyql2xwillhaveitsLUNqueuedepthsetto64. 4 Reboot.
112
VMware, Inc.
DependingonthemodeloftheHBA,themodulecanbeoneofthefollowing:
VMware, Inc.
113
Identificationofcriticalapplicationsthatrequiremorefrequentbackupcycles withinagivenperiodoftime. Recoverypointandrecoverytimegoals.Considerhowpreciseyourrecoverypoint needstobe,andhowlongyouarewillingtowaitforit. Therateofchange(RoC)associatedwiththedata.Forexample,ifyouareusing synchronous/asynchronousreplication,theRoCaffectstheamountofbandwidth requiredbetweentheprimaryandsecondarystoragedevices. OverallimpactonSANenvironment,storageperformance(whilebackingup), andotherapplications. IdentificationofpeaktrafficperiodsontheSAN(backupsscheduledduringthose peakperiodscanslowtheapplicationsandthebackupprocess). Timetoscheduleallbackupswithinthedatacenter. Timeittakestobackupanindividualapplication. Resourceavailabilityforarchivingdata;usuallyofflinemediaaccess(tape).
Includearecoverytimeobjectiveforeachapplicationwhenyoudesignyourbackup strategy.Thatis,considerthetimeandresourcesnecessarytoreprovisionthedata.For example,ifascheduledbackupstoressomuchdatathatrecoveryrequiresa considerableamountoftime,examinethescheduledbackup.Performthebackupmore frequently,sothatlessdataisbackedupatatimeandtherecoverytimedecreases. Ifaparticularapplicationrequiresrecoverywithinacertaintimeframe,thebackup processneedstoprovideatimescheduleandspecificdataprocessingtomeetthis requirement.Fastrecoverycanrequiretheuseofrecoveryvolumesthatresideon onlinestoragetominimizeoreliminatetheneedtoaccessslowofflinemediafor missingdatacomponents.
114
VMware, Inc.
Snapshot Software
Snapshotsoftwareallowsanadministratortomakeaninstantaneouscopyofanysingle virtualdiskdefinedwithinthedisksubsystem.Snapshotsoftwareisavailableat differentlevels:
Administratorsmakesnapshotsforavarietyofreasons,including:
VMware, Inc.
115
Layered Applications
SANadministratorscustomarilyusespecializedarraybasedsoftwareforbackup, disasterrecovery,datamining,forensics,andconfigurationtesting. Storageproviderstypicallysupplytwotypesofadvancedservicesfortheir LUNssnapshottingandreplication.
WhenyouuseanESXServersysteminconjunctionwithaSAN,youneedtodecide whetherarraybasedorhostbasedtoolsaremoresuitableforyourparticularsituation.
116
VMware, Inc.
VMware, Inc.
117
IntheVIClient,selectthehostintheinventorypanel. ClicktheConfigurationtabandclickAdvancedSettings. SelectLVMintheleftpanel,thensettheLVM.EnableResignatureoptionto1. RescanforanynewLUNsorVMFSvolumes.Volumesthataredetectedtobe snapshotsorreplicasareresignatured. Afterrescan,thecopiedVMFSvolumeappearsas /vmfs/volumes/snap-<DIGIT>-<old-label>. Ifthe.vmxfileforanyofthevirtualmachinesorthe.vmsdfileforvirtualmachine snapshotscontains/vmfs/volumes/<label or UUID>/paths,youmustchange theseitemstoreflecttheresignaturedvolumepath.
SettheLVM.EnableResignatureoptionto0afterresignaturingiscomplete.
118
VMware, Inc.
VMware, Inc.
119
120
VMware, Inc.
Multipathing Checklist
HPMSA
HosttypemustbeLinux. SettheconnectiontypeforeachHBAporttoLinux.
VMware, Inc.
121
EVA3000/5000firmware3.x:000000002200282E EVA4000/6000/8000:000000202200083E
SetDisk.UseLunResetto1 SetDisk.UseDeviceResetto0
122
VMware, Inc.
Utilities
VMware, Inc.
123
storageMonitor Utility
ThestorageMonitorutilitymonitorsSCSIsenseerrorsexperiencedbystorage devicesattachedtoVMwareESXServer.Theutilitygatherssenseerrorinformationby periodicallypollingthestorageMonitorrunninginsidetheVMkernel,andsends errorinformationtostandardoutput,afile,orthesystemlog.Itformatserror informationbeforesendingittooutput.Forexample,itconvertssenseerrorcodesto correspondingtextasperSCSI3specification. Ifnoconfigurationfileisspecified,storageMonitorparsesthedefaultconfiguration file/etc/vmware/storageMonitor.conftofiltercertainerrorsandallowothererrors tobedisplayed.YoucanrunstorageMonitorininteractivemodeordaemonmode usingthe-doption.
Options
YoucaninvokestorageMonitorfromtheESXServercommandlineusingoneofthe followingoptions. Table B-1. storageMonitor Command-Line Options
Option <config-file> Description Allowsyoutospecifyaconfigurationfile.Ifthisoptionisleft unspecified,thedefaultisused. TheconfigurationfilespecifieswhichtypeoferrorsstorageMonitor shouldallowandwhichonesitshouldfilterbeforedisplayingthem. Thedefaultconfigurationfileillustratestheformatoftheentries. -d SpecifiesthatstorageMonitorshouldberunindaemonmode.When thisoptionisspecifiedalloutputgoeseithertosyslogortoalogfile specifiedbytheuser.Ifthe-soptionisalsospecified,outputiswritten tostandardoutaswell. Displayshelpinformation. Whenthisoptionisspecified,outputfromtheprogramiswrittento <log_file>.Thisoptionisvalidonlyifthe-doptionisalsospecified.
-h -l <log_file>
124
VMware, Inc.
Appendix B Utilities
-s
Examples
storageMonitor -p 60
RunsstorageMonitorindaemonmodeusingtheconfigurationfilemyconf.conf. Writesoutputtosyslog.Bydefault,syslogislocatedat/var/log/storageMonitor.
storageMonitor -d -l mylog.log -s
VMware, Inc.
125
126
VMware, Inc.
Index
Symbols
* next to path 97 .vmdk file 18
B
backups 50 considerations 114 solution 116 third-party backup package 115 benefits 28 BIOS enabling for BFS 78 enabling Qlogic HBA for BFS 76 boot BIOS prompt, enabling for BFS 78 boot from CD-ROM 78 boot from SAN benefits 73 boot LUN considerations 53 conceptual overview 72 diagnostic partitions 74 Emulex FC HBA 78 enabling Qlogic HBA BIOS 76 ESX Server requirements 53 HBA requirements 53 introduction 72 LUN masking 74 preparing installation 73 Qlogic FC HBA 76 requirements 53 boot LUN 77 boot LUN, selecting 77 BusLogic queue depth 50 SCSI controller 17
A
access control 36 equalizing disk access 110 active path status 96 active/active disk arrays 51, 66, 97, 100 active/passive disk arrays 43, 51, 77, 97 boot from SAN 53 HP StorageWorks MSA 66 path policy reset 83 path thrashing 109, 110 advanced LUN display configuration 88 allocations 51 applications,layered 116 array-based (third-party) solution 116 asterisk next to path 97 authentication daemon 22 auto volume transfer 64 avoiding problems 105 AVT 64, 109 AX100 display problems 61 inactive connections 61
VMware, Inc.
127
C
cables connectivity issues 86 reseating and rescan 87 cant see LUN 85 CD-ROM, booting from 78 changing disk.maskLuns 89 changing disk.maxLun 88 changing disk.supportSparseLun 90 cluster across boxes 44 cluster in a box 44 cluster services 44 commands, SDK 20 configuration options 18 storage processor sense data 65 configuring hardware for SAN failover DS4000 62 consolidated backup proxy 50 CPU virtualization 16 current multipathing state 95
D
data access 39 RDM 34 VMFS 34 datastores, removing 88 dead paths 96 design for server failure 44 details about storage devices 84 device driver options 103 Emulex 103 Qlogic 103 device drivers 14 diagnostic partitions 50 boot from SAN 74 sharing 104 direct connect 58
128
disabled path status 96 disabling auto volume transfer 64 disabling paths 99 disallowSnapshotLUN 119 disaster recovery 30 disk access, equalizing 110 disk arrays active/active 51, 97, 100 active/passive 51, 66, 77, 97, 109 zoning disk array to ESX Server 87 disk shares 38 disk.maskLuns 89 disk.maxLun 88 Disk.SchedNumReqOutstanding parameter 110 disk.supportSparseLun 90 disks, configuration options 18 display problems, AX100 61 distributed locking 19 drivers device drivers 103 VMFS-2 111 DRS 47 DS4000, configuring hardware for SAN failover 62 dump partitions 50 sharing 104
E
EMC CLARiiON 60 EMC Symmetrix 61 pseudo LUNs 62 Emulex FC HBA boot from SAN 78 device driver options 103 lpfc_linkdown_tmo 103 NPIV support 92 enableResignature 119 enabling BIOS for BFS 78
VMware, Inc.
Index
enabling boot BIOS prompt for BFS 78 enabling paths 99 enabling selectable boot 77 equalizing disk access 110 ESX Server benefits 28 introduction 14 sharing VMFS 31 ESX Server 3 14, 72, 104, 108 ESX Server 3i 14, 108 ESX Server and SAN, requirements 50 esxtop utility 124 EVA (HP StorageWorks) 68 extents 19 definition 85
F
failover 41, 45, 102 FAStT storage 62 HBA 103 I/O delay 43 zones 36 failure 44 FC HBA setup 51 finding information 30 Fixed path policy 43, 97, 98 path thrashing 109 preferred path 100
list of types 83 Qlogic 76, 92 queue depth 112 setup 51 static load balancing 51 timeout 103 types 83 high-tier storage 43 Hitachi Data Systems storage 69 microcode 69 host daemon 22 host type 59 hostd 22 HP StorageWorks 66 EVA 68 MSA 66 XP 69 hub controller issues 68
I
I/O delay 43, 50 IBM TotalStorage DS4000 62 path thrashing 66 IBM TotalStorage Enterprise Storage Systems 66 indirection 33 installation preparing for boot from SAN 73 SAN 53 steps 54 interacting with ESX Server systems 20 Inter-Switch Link 63 iSCSI 19 ISL 63 issues 82 hub controller 68 performance 108 visibility 85
G
getting information 83
H
HA 44 hardware compatibility 15 HBA Emulex 78, 92 enabling Qlogic HBA BIOS for BFS 76
VMware, Inc.
129
L
layered applications 116 LDAP 22 levels of indirection 33 Linux host type 59 profile name 66 service console 22 VMkernel 14 Linux Cluster host type 59 list of HBA types 83 load balancing 29, 51 manual 100 locations of virtual machines 43 locking 19 metadata updates 32 lower-tier storage 43 lpfc_linkdown_tmo parameter 103 lpfc_nodedev_tmo parameter 103 LSI Logic SCSI controller 17 LSILogic queue depth 50 LUN discovery, VMkernel 33 LUN masking 36, 86 boot from SAN 74 LUN not visible cable connectivity 86 issues 86 masking 86 SP visibility 87 zoning 86 LUNs 1 VMFS volume 50 allocations 51 boot LUN 77 cant see 85 changing number scanned 88 creating, and rescan 87 decisions 37
disk.maskLuns 89 display and rescan 32 display configuration 88 fewer, larger vs. more, smaller 36 masking changes and rescan 87 multipathing policy 98 NPIV-based access 90 number scanned 88 removing 88 selecting boot LUN 77 setting multipathing policy 98 sparse 90
M
maintenance 29 Manage Paths dialog box 99 management applications 35 manual load balancing 100 mapping file 19 masking 36 LUN not visible 86 using disk.maskLuns 89 maximum HBA queue depth 112 maxLun 88 memory virtualization 16 metadata updates 32 microcode, Hitachi Data Systems storage 69 Microsoft Cluster Service 19, 29, 58 mid-tier storage 43 monitoring performance 108 Most Recently Used path policy 97, 98 path thrashing 109 MRU path policy 97 MSA (HP StorageWorks) 66 MSCS 29, 58 multipathing 95 multipathing policy 98 multipathing software 34
VMware, Inc.
130
Index
N
N+1 clustering 45 net-snmpd 22 Netware host mode 69 Network Appliance storage 69 provisioning storage 69 network virtualization 16 NFS 19 N-Port ID Virtualization (NPIV) 27, 90 requirements 91 number of extents 19 number of outstanding disk requests 110
O
operating system timeout 104 optimizing resource utilization 46 outstanding disk requests 110
P
PAM 22 parameters, lpfc_nodedev_tmo 103 passive disk arrays 51, 66, 77, 97 path thrashing 109 path failover 41 path failure rescan 87 path management 41, 100 path policies Fixed 43, 97, 98 Most Recently Used 98 MRU 97 Round Robin 98 path policy reset active/passive disk array 83 path status 96 path thrashing 60, 108, 109 IBM TotalStorage DS4000 66
paths disabling 99 enabling 99 preferred 97, 100 performance 106, 107 issues 108 monitoring 108 optimizing 106 removing VMFS-2 drivers 111 SCSI reservations 31 physical to virtual clustering 45 pitfalls 83 Pluggable Authentication Module 22 port address 27 Port_ID 27 PortDownRetryCount parameter 103 ports, configuration 63 preferred path 97, 100 prioritizing virtual machines 38 problems avoiding 105 hub controller 68 performance 108 visibility 85 profile name, Linux 66
Q
Qlogic FC HBA boot from SAN 76 device driver options 103 NPIV support 92 PortDownRetryCount 103 Qlogic HBA BIOS, enabling for BFS 76 queue depth 112
VMware, Inc.
131
R
RADIUS 22 raw device mapping 19, 39, 60 mapping file 19 RDM 19, 34, 39, 60 mapping file 19 Microsoft Cluster Service 19 removing datastores 88 removing LUNs 88 removing VMFS-2 drivers 111 requirements 50 boot from SAN 53 rescan 87 adding disk array 87 LUN creation 87 LUN display 32 LUN masking 87 reseating cables 87 when path is down 87 reservations reducing SCSI reservations 111 resignaturing options 118 resolving problems 105 resource utilization, optimizing 46 restrictions 50 resxtop 108 Round Robin path policy 98
S
SAN 36 arrays 31 backup considerations 114 hardware failover 62 installation considerations 53 preparing 75 preparing to install ESX Server 73 requirements 50 server failover 45
132
SAN fabric 26 SAN storage performance, optimizing 106 SAN storage, benefits 28 scanning, changing number 88 SCSI controllers, device driver options 103 SCSI reservations 31 SCSI reservations, reducing 111 SDK 20 selectable boot, enabling 77 server failover 45 server failure 44 server performance 107 service console 14, 21, 72, 104, 108 authentication 21 interfaces 21 setup steps 54 sharing diagnostic partitions 104 sharing VMFS across servers 31 size of zones 36 snapshot 118 snapshot software 115 SNMP server 22 software compatibility 15 solutions 82 SP visibility, LUN not visible 87 sparse LUN support 90 standby path status 96 storage arrays performance 106 storage choices 36 storage devices details 84 viewing 84 storage processors configuring sense data 65 port configuration 63 sense data 65
VMware, Inc.
Index
storage systems EMC CLARiiON 60 EMC Symmetrix 61 Hitachi 69 HP StorageWorks 66 Network Appliance 69 storageMonitor utility 124 supported devices 59
T
tape devices 52 testing 58 third-party backup package 115 third-party management applications 35 timeout 103, 104 TimeoutValue parameter 50 tips 38 troubleshooting 82, 105
U
use cases 29 utilities esxtop 124 storageMonitor 124
V
VI Client 14, 20 VI Web Access 14, 20 Virtual Infrastructure SDK 20 Virtual Machine File System 19 Virtual Machine Monitor 14 virtual machines assigning WWNs to 92 default configuration 33 equalizing disk access 110 I/O delay 43 locations 43 prioritizing 38 sharing devices 22
virtual ports (VPORTs) 91 virtual SCSI HBAs 17, 20 virtualization 16 at a glance 22 visibility issues 85 vmauthd 22 VMFS 19, 34, 36 1 volume per LUN 50 creating new volume 19 locking 19 minimum size 19 number of extents 19 SCSI reservations 31 sharing across ESX Servers 31 VMFS volume resignaturing 117 VMFS-2 drivers 111 vmhba 85 VMkernel 14 configuration 104 LUN discovery 33 VMM 14 VMotion 29, 46, 51 VMware Consolidated Backup proxy 50 VMware DRS 29, 47 VMware HA 29, 44 VMware Infrastructure Client 14 volume resignaturing 117
W
World Wide Names (WWNs) 91 assigning to virtual machines 92 World Wide Node Names (WWNNs) 91 World Wide Port Names (WWPNs) 27, 64, 91
X
XP (HP StorageWorks) 69
VMware, Inc.
133
Z
zones failover 36 recommended size 36 when to create 36 zoning and ESX Server 35 LUN not visible 86
134
VMware, Inc.
LastUpdated:May14,2010 ThisdocumentprovidesupdatestotheESXServer3.5,ESXServer3iversion3.5,and VirtualCenter2.5versionoftheFibre Channel SAN Configuration Guide.Updated descriptionsareorganizedbypagenumbersoyoucaneasilylocatetheareasofthe guidethathavechanges. ThefollowingisalistofupdatestotheFibre Channel SAN Configuration Guide:
VMware, Inc.
Update1
Update2
VMware, Inc.
Updates for the Changing Sparse LUN Support Using Disk.SupportSparseLUN Section on Page 90
IntheChangingSparseLUNSupportUsingDisk.SupportSparseLUNsection,the nameoftheDisk.SupportSparseLUNparameterisspelledincorrectlyas Disk.SupportSparesLUN.Thesentenceshouldreadasfollows: IfalltheLUNsarepresentintherange,youcandisabletheDisk.SupportSparseLUN parameter.
Disk.UseLunReset Disk.UseDeviceReset
VMware, Inc.
Update3
Update4
VMware, Inc.