Beruflich Dokumente
Kultur Dokumente
XenSe X erver
ww ww.citrix.com m
Conte ents
About ..... ............................................ ....................... ............................................................................................... 3 Visual Legend .............................. L ....................... ............................................................................................... 4 Additio Termino onal ology ............. ....................... ............................................................................................... 5 Chapter 1: Introductio to iSCSI Multipathing ............................................................................................. 6 1 on M g Overview ...................................... ....................... ............................................................................................... 6 Creatin Redundancy for Storag Traffic ...... ng ge ............................................................................................... 6 Multipa athing iSCSI Storage Traf ................ ffic ............................................................................................... 8 Unde erstanding Multipathing .. M ....................... ............................................................................................... 8 Chapter 2: Configurin Software Initiator iSCS Multipathiing ................................................................. 12 2 ng I SI Overview ...................................... ....................... .............................................................................................12 Before Configuring iSCSI Multi g ipathing ........ .............................................................................................12 Multi ipath Handle Support.... er ....................... .............................................................................................13 Corre Physical and Subnet Configuration ..........................................................................................13 ect a C n Configu uring iSCSI Software Init S tiator Multipathing .................................................................................14 Chapter 3: Creating th Storage Repository...... 3 he R ............................................................................................. 17 Overview ...................................... ....................... .............................................................................................17 Creatin the Storag Repository after Enabli Multipath ...............................................................17 ng ge y ing hing Revisio History .......................... on ....................... .............................................................................................21
Page 2
Abo out
This docu ument helps you understa how to configure sof and c ftware initiator iSCSI multipathing for r XenServe It includes the followin topics: er. s ng An overview of multipathi in genera and iSCSI m A o ing al multipathing in particular g r In nstructions for configurin software in fo ng nitiator iSCS multipathin SI ng After configur multipat A ring thing, instruc ctions for sellecting Targe IQNs when creating a et n st torage reposi itory using XenCenter X
Due to sc cope, this gui provides some, but not much, dev ide vice-specific information. For devicespecific configuration Citrix sugge reviewin the storage vendors do c n, ests ng e ocumentation the storag n, ge vendors hardware compatibility li and conta ist, acting the ven ndors techn nical support if necessary. enServer supports multipathing for Fi ibre Channell and iSCSI S SANs. For in nformation ab bout Note: Xe Fibre Cha annel multipathing, see th XenServer Administrator Guide and the Citrix Kn he A rs nowledge Ce enter.
Page 3
Visua Legend al
This guid relies heav on diagrams to explain key concep These dia de vily n pts. agrams use th following he g icons: Icon Mea aning Hos A XenServ host is th physical se st. ver he erver on whic the XenSe ch erver hype ervisor is running.
Phys sical Switch The device on a physica network th connects h. e al hat netw work segment together. ts
Stora Array. This icon rep age T presents a gen neric storage array with a LUN configured in it. N
Stora Control age ller. This ico represents a storage co on ontroller on a stora array. age
Page 4
Page 5
Overv view
This chap provides an introduc pter s ction to confi iguring iSCSI multipathin support. It includes the I ng following topics: g An overview of the impor A o rtance of redu undancy for software init tiator iSCSI s storage traffic An explanatio of multipa A on athing and ho it works ow
For some audiences, the informati in this ch e t ion hapter may b unnecessar However, this informa be ry. , ation is given to provide a common baseline of infor o c rmation and avoid pitfall that result from commo ls on misconce eptions about iSCSI softw initiator multipathing t ware g.
Page 6
This illustr ration shows ho for storage traffic, both pa are active w multipath whereas on one path is a ow, aths with hing nly active with NIC bonding. ongly recomm mends that you do not mix NIC bond and iSC multipath y m ding CSI hing. There is no s Citrix stro benefit fr rom layering multipathing and NIC bo g onding on th same conn he nection. Afte you enable er e multipath hing, you not only have better perform t mance but yo also have t failover t bonding ou the that g would ha provided. ave .
Page 7
Multipath is incom hing mpatible with the followin technologiies, so you sh ng hould consid using NIC der C bonding when: w You have an NFS storage device. Y N Your storage device does not support iSCSI conne Y d n i ections over m multiple IPs (for example e, Dell EqualLog or HP Le D gic eftHand SAN N). You have limi number of NICs and need to rou iSCSI traf and file t Y ited d ute ffic traffic (such a as CIFS) over th same NIC. C he .
For more information about choo e n osing NIC bo onding or mu ultipathing, see Designing X XenServer Net twork Configurat tions. Tip: To determine wh XenServe hosts have multipathin enabled on them, see M d hat er e ng n Multipathin on ng the Gene tab in Xe eral enCenter.
If you enable multipat thing, you must do so on all hosts in the pool. m n
Page 8
As previo ously stated, multipathing is a method of providing redundant access to storage devices i one m g d g if or more components between the XenServer host and the storage array fail. (Multip c e h y pathing prote ects against co onnectivity fa ailures and not storage de evice failures s.) Multipath creates multiple conn hing m nections betw ween the Xen nServer host and the stor t rage controll ler; these con nnections are known as pa When organizations configure m e aths. multipathing, they are configurin multiple paths to a sto ng p orage device (LUN) on a storage subs system. XenServe uses the DM-MP multi er D ipath handler in its multip r pathing impl lementation. The primary y purpose of the DM-M handler is that it creat a storage device for ea LUN instead of creat a o MP s tes ach ting storage device for eac path. That is, DM-MP reconciles m ch r multiple paths to a LUN so that Linux only o creates on storage de ne evice in spite of seeing multiple paths. e Without DM-MP, Lin would cr D nux reate a storag device for each path to a LUN. Thi means in a ge o is an environm with two paths to a LUN, Linux would create two storage devices. Th would ma it ment o L e e his ake difficult to specify a storage device or find the path to that device. t e However for Linux to establish multiple active links, or ses r, m ssions, to a LU Linux m use DMUN, must -MP so that it can treat mu ultiple paths as representin only one LUN yet stil be able to r a ng ll recognize bo oth paths. Establish hing Multip Active Li ple inks to a LU UN For a Xen nServer host to establish a link with th storage re t he epository, it m must, using iS SCSI terminolo create a target and in ogy, nitiator conne ection. XenS erver, the ini itiator, does so by queryin the o ng storage device, the targ and waiti for the ta rget, ing arget to reply saying it is a y available. Aft XenServe ter er nServer, in its role as initia s ator, logs int the target. The target n to now receives a list of target IQNs, Xen has a link for sending traffic. k
This illustr ration shows th process for cr he reating a session (1) XenServ in its role a initiator, qu n. ver, as ueries the storag ge target for a list of IQNs; (2) the storage device (target) responds with the list; and (3 after receivin the IQN lis e (3) ng st, XenServer establishes a session with the target. r s e
Page 9
This link (the session) remains up and only nee to be est ) eds tablished if th is a rebo After you here oot. u configure both paths to the storag array (the multipath) an two paths are created, XenServer c e ge m nd s , can create a session for ea link, as sh ach hown in the following illu ustration.
This illustr ration shows ho when multip ow pathing is enab XenServer creates two ses bled r ssions with the storage target. The mult tipath handle uses target IQNs to det er termine if the storage dev e vices discove ered on the ta arget are differ LUNs or different pa rent r aths. The han ndler makes t determin this nation by que erying the sto orage target. Th target repl with the IQN, which includes the LUN serial number. (Ide he lies I e eally, regardl less of the nu umber of path connecting to a LUN, the serial nu hs g umber in the IQN is alwa the same.) ays ) The mult tipath handle checks IQN for match serial nu er Ns hing umbers to de etermine how many paths are w s associated with each LUN. When the serial nu d L umbers in the IQNs matc the handle assumes th e ch, er hat the IQNs are associat with the same LUN and therefore must repres different paths to tha s ted s a e sent t at LUN. u s s pecifically, wh you crea hen ate When you create the storage repository and multipathing is enabled (sp the Physi Block De ical evice (PBD)), XenServer includes a m multihome param meter that re esets XenServ ver to expect a multihomed device. (T term mul t The ltihome refer to comput or, in this case, a stora rs ter s age device that has multip IP addresses connecte to a netwo ple ed ork.) If XenSer is not aw the stor rver ware rage device is multihomed (because m s d multipathing w not enab was bled before th PBD/stora repositor was created), XenServe can only cr he age ry er reate one ses ssion (or path to h) the array. For iSCSI arrays, it is better to con I nfigure multi ipathing first however, if you created the storage t; f d repository first, you ca put the ho into main y an ost ntenance mod and then configure multipathing. ( de (For Fibre Cha annel, Citrix strongly reco ommends co onfiguring mu ultipathing an enabling the multipath nd hing check box in XenCen before cr x nter reating the st torage reposiitory.) With all types of SAN it is best to plan and design your st t Ns, t d torage and n networking co onfiguration before im mplementation, determine you want multipathing, and configur it before p e m re putting the po ool Page 10
into prod duction. Conf figuring mult tipathing afte the pool is live results i a service interruption: er s in configurin multipath affects al VMs connected to the storage repo ng hing ll ository.
Page 11
Cha apter 2: Config guring S Software Initia ator iSC CSI Mu ultipathing
Overv view
This chap provides high-level steps for conf pter s figuring iSCS software in SI nitiator multi ipathing in XenCente It include er. es: St teps for conf figuring mult tipathing for iSCSI softw initiator s ware storage devic including ces, g how to check if the target ports are operating in po ortal mode How to enabl MPP RDA Handler Support for L Arrays H le AC S LSI
Both of these topics are described in more dep in the sec t a d pth ctions that fo ollow. Review this w informati before se ion etting up iSCSI multipathing and inco rporate it int your desig to gn.
Page 12
Page 13
This illustr ration shows ho both NICs on the host in a multipathed iSCSI configu ow d uration must be on different e subnets. In this illustratio NIC 1 on the host along with Switch 1 and NIC 1 on both storage c n on, n controllers are on a different su ubnet than NIC Switch 2, and NIC 2 on the storage con C2, a n ntrollers. In additio one NIC on each stor on, rage controlle must be o the same s er on subnet as eac NIC. For ch example, in the illustration that follows, XenSe erver NIC 1 iis on the sam subnet as NIC1 on Sto me orage Controlle 1 and NIC 1 on Storag Controller 2. er C ge After per rforming the physical con nfiguration, you enable an disable sto nd orage multipa athing support in t XenCente in the Mu er ultipathing tab on the ho Propert dialog. It is easier to do this befor osts ties t re you create the storage repository. The overall process for e e p enabling mult tipathing req quires a series of s tasks, which is shown in the proce n edure that fol llows. Importan Do not ro iSCSI st nt: oute torage traffic through the XenServer h c e hosts primary manageme ent interface.
Page 14
To confi igure multip pathing for iSCSI software initiator i r 1. Create the red C dundant phys sical paths (th is, set up the cables, s hat switches, and subnets bef d fore co onfiguring an storage settings in Xen ny nServer, inclu uding creatin your storag repository ng ge y. a) Make sure that eac NIC on th host is on a different s ch he subnet as sho in the own diagra am. b) On ea controller on the storage array, pu one of the NICs on on of those ach r ut ne subnets. (For exam mple, make su that on C ure Controller A,, NIC 1 is on Subnet 1 an n nd NIC 2 is on Subne 2. Likewise on Contro B, make sure that NI 1 is on Su et e, oller IC ubnet 1 and NIC 2 is on Subnet 2.) 2. Follow any ve F endor multipathing config gurations spe ecific to your storage dev and creat any r vice te LUNs you wil require. L ll Im mportant: Make sure the iSCSI target and all serv in the po must not have the sam M e vers ool me IQ set. It is imperative th every iSC target and initiator ha a unique IQN. If a no QN hat CSI d ave onun nique IQN id dentifier is used, data cor u rruption can occur and/o access to th target may be or he y denied. 3. Verify that the iSCSI targe ports are operating in p V e et o portal mode: 1. In XenCenter, start the New Stora Reposit age tory wizard ( (Storage men > New nu R Storage Repository). i. Click th hrough the options until you reach th Enter a n o he name and pa ath for the new iSCSI storage pag click Disc e ge, cover IQNs. XenServer queries the storage array for a liist of IQNs. s Check the Target IQN list box on the Loc I x cation page o the Storag of ge Reposi itory Wizard. .
ii.
If the iSCSI tar ports are operating in portal mod all target I should sh rget e n de, IPs how p he Storage Repo ository Wizard. up in the on th Location page of the S D e o r handler: 4. Do one of the following to enable support for your multipath h For MPP RDAC, enab multipath in XenC ble hing Center (that is select the E s, Enable multipath hing on this server chec box in the Multipathin tab on th hosts s ck ng he Propertie dialog) and see Enabli MPP RD es d ing DAC Handler Support for LSI Arrays on r r page 16. rix ends users co onsult the arr vendors d ray documentati or bestion Note: Citr recomme practice gu to deter uide rmine precise which mu ely ultipath hand to select. If in doubt, LSI dler array data paths will ty ypically work best with th MPP RDA drivers. he AC
Page 15
For DMP, enable mult tipathing in XenCenter (t is, select the Enable multipathin X that t e ng on this se erver check box in the Multipathing tab on the h b M g hosts Properties dialog). Enabling multipathing is shown in the followin illustration m g ng n:
This screenshot show the XenC T s Center Enable multipathi on this server check box. le hing
Page 16
Overv view
This chap explains how to creat a storage repository aft enabling iSCSI multip pter te r fter pathing, inclu uding: How to se elect the mos appropriate options in XenCenter b st based on the number of Target IQ your arra returns QNs ay How to in nterpret the IQN as XenC I Center displa it ays How to us the wildca masking option in Xe se ard o enCenter
Page 17
This diagra shows how some iSCSI st ram torage devices (targets) return only one IQN whereas other iSCSI storage (t N e devices retu multiple IQ when Xen urn QNs nServer queries the target stora device for th IQN. rage the Looking at the IQNs in the Storag Repository wizard, ma be slightly confusing si ge y ay ince XenCen nter a formation. Unlike with th xe sr-prob command the IQN di U he be d, isplayed in displays additional inf XenCente also includ the IP ad er des ddress of the NIC on the controller an the port n nd number the h host and array use for com y mmunication. To determ if target query (that is, clicking Discover IQ returned one or more IQNs, note the mine t D QN) e e following illustration of a sample IQN value XenCenter mi g I X might display:
Page 18
This illustr ration shows a sample IQN number, as it might be display in XenCen The first p of the IQN is n m ayed nter. part N vendor spec and does not change. It in cific n ncludes the date the storage ven applied fo the IQN nu e endor for umber and the s storage vendor nam The second part of the IQ number incl me. p QN ludes vendor sp pecific informati This is the part of the IQ to tion. e QN examine when determinin whether or not to select the Wild Masking (*) option in the XenCenter Storage Repo w ng g ository wizard. Some sto orage devices, such as Dat taCore and StarWind arra have a m S ays, multi-IQN fea ature and ret turn multiple IQNs. For th arrays, you must spe I hese y ecify the IP addresses of a targets, in the Target Host all box on th Location page of the New Storage Repository wizard, and separate them with a com he e mma. After you enter the IP addresses, if you press Discover IQ u P i D QNs, XenCen will retu multiple I nter urn IQNs with diffe erent names. For stora devices th return mu age hat ultiple IQNs, when you a creating th storage, y must sele , are he you ect the Wildc card Maskin (*) option in XenCen ng n nter, which is denoted by an asterisk in front of the n e Target IQ in the Ta QN arget IQN li box. The wildcard mas ist w n follows: sking option appears as f
This screen capture shows the XenCente Storage Repo n s er ository wizards Wildcard M Masking (*) opti which is us for tion, sed storage tha require multip IQN support. After enter all the IP addresses of th targets separa by comma the at iple ring he rated as, Storage Rep epository wizard returns multip IQNs with different IQN numbers. rd iple h N
Page 19
To create a storage repository after enablin multipath a ng hing 1. In XenCenter create the new storage repository fo the pool us the New Storage n r, n r or sing w Repository wi R izard. 2. Click through the options until you rea the Ente a name an path for t new iSC C h ach er nd the CSI st torage page. Fill out the options in th page untill you reach D his Discover IQNs. 3. Click Discove IQNs. Xe C er enServer queries the stora array for a list of IQN Do one o the age Ns. of fo ollowing:
If only on identical IQ value is returned, sele the IQN on the stora device (ta ne QN r ect age arget) that corresponds with the LUN yo want to co ou onfigure. If you are using a stora array that returns mu age ultiple distinct IQNs, as d t described y pter, select th * option fr he rom the Targ IQN list box. get t previously in this chap
Page 20
1.3
Page 21
About Ci itrix Citrix Sys stems, Inc. (N NASDAQ:CT TXS) is the leading proviider of virtua l alization, netw working and d software as a service technologies for more tha 230,000 o t an organizations worldwide. Its Citrix Delivery Center, Citri Cloud Cen (C3) and Citrix Onlin Services product famil radically ix nter ne lies c or f vering applica ations as an o on-demand s service to any y simplify computing fo millions of users, deliv user, in an location on any device Citrix custo ny o e. omers includ the worlds largest Inte de ernet compan nies, 99 percen of Fortune Global 500 enterprises, and hundred of thousan of small businesses and nt e ds nds prosumer worldwide Citrix partn with ove 10,000 com rs e. ners er mpanies worl rldwide in mo than 100 ore countries. Founded in 1989, annua revenue in 2010 was $1 billion. n al n 1.87
s, hts . ccess Gatewa ay, Branch Repeater, , 2011 Citrix Systems Inc. All righ reserved. Citrix, Ac peater, HD DX, XenServer, Xen nCenter, X XenApp, X XenDesktop and Citrix x Citrix Rep Delivery Center are trademarks of Citrix Sys e stems, Inc. an nd/or one or more of its subsidiaries, and s may be re egistered in the United St tates Patent and Tradema Office an in other co a ark nd ountries. All other trademark and registered tradema are prop ks arks perty of their respective o r owners.
Page 22