Movatterモバイル変換


[0]ホーム

URL:


CN101471830B - Method of multi-path accessing remote logical device under Linux system - Google Patents

Method of multi-path accessing remote logical device under Linux system
Download PDF

Info

Publication number
CN101471830B
CN101471830BCN2007103023611ACN200710302361ACN101471830BCN 101471830 BCN101471830 BCN 101471830BCN 2007103023611 ACN2007103023611 ACN 2007103023611ACN 200710302361 ACN200710302361 ACN 200710302361ACN 101471830 BCN101471830 BCN 101471830B
Authority
CN
China
Prior art keywords
iscsi
online
linux system
initiator
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2007103023611A
Other languages
Chinese (zh)
Other versions
CN101471830A (en
Inventor
朱明胜
王纪东
陈玄同
刘文涵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Corp
Original Assignee
Inventec Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inventec CorpfiledCriticalInventec Corp
Priority to CN2007103023611ApriorityCriticalpatent/CN101471830B/en
Publication of CN101471830ApublicationCriticalpatent/CN101471830A/en
Application grantedgrantedCritical
Publication of CN101471830BpublicationCriticalpatent/CN101471830B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

A method for multi-path access of remote logic equipment under a Linux system is used for realizing multi-path access between an initiating terminal and a target terminal in a storage local area network. First, a communication connection is established between an initiator and a target. The initiating end requests to establish at least one online session with the target end. And then, the initiating terminal obtains the iSCSI online host distributed by the target terminal and obtains online equipment information corresponding to the iSCSI online host through a report logic unit number command. Then, the initiating end configures the device mapper, generates redundant device information according to the on-line devices and the corresponding logical unit numbers thereof, and maps the redundant on-line devices into a unique mapped device.

Description

The method of the accessing remote logic equipment through multiple routes under the linux system
Technical field
The present invention relates to a kind of method of visiting remote logic equipment, and be particularly related to the method for the accessing remote logic equipment through multiple routes under a kind of linux system.
Background technology
Store LAN (Storage Area Network, SAN) indication is for passing through internet small computer system interface (internet Small Computer Systems Interface, iSCSI) communication protocol standard, the technology of the virtual large-scale storage facilities that the storage facilities of a plurality of dispersions on the internet is connected to.The user stores LAN by one, and (Storage Area Network, the data on SAN) the access remote logic disk are just as the hard disk unit of access local side.Compared to existing RAID technology, the storage LAN of using iscsi technology to set up has small computer system interface (Small Computer Interface, high-speed transfer characteristic SCSI), and the high extendibility that is better than existing storage facilities concurrently.Therefore, store LAN and become the relevant hot technology of information storage gradually.Store LAN, it comprises originating end (Initiator) and destination end (Target) two parts.So-called originating end (initiator) can be considered requirement provides access service person, and destination end to can be considered be the supplier of storage device.Destination end produces a plurality of LUN, and (Logic UnitNumber, LUN), these LUN correspond to the entity storage device on the network respectively.After originating end and destination end foundation dialogue (Session), obtain these LUN immediately, and distributed to the user.The user looks for LUN, and by the aforesaid entity storage device of iSCSI command instruction access.Generally speaking, only can set up a dialogue between originating end and the destination end.If allow between originating end and destination end, to set up multi-path read-write (Multi-Path Input/Output), can reach the effect of fault-tolerant redundant and load balance.
Generally speaking, the server of (SuSE) Linux OS is all stable compared to Windows operating system in execution efficient and stability.Service server adopts the (SuSE) Linux OS meaning can bring the stability of a system of high gauge.In addition, these service servers then can improve the reliability of system availability and data if can support the multi-path read-write and avoid data to repeat.Yet under (SuSE) Linux OS, the part originating end and the destination end that store LAN can't be supported the multi-path read-write at all; In addition, though the originating end of part and destination end provide the multi-path read-write, yet when asking the different LUN of visit, find that the data content of institute's access is identical.Like that, how to allow the storage LAN under the linux system environment support the multipath visit, and avoid occurring two logical device that content is identical, become the important information subject under discussion that stores in the LAN field then.
Summary of the invention
In above-mentioned linux system environment, do not support accessing remote logic equipment through multiple routes, or (Logic Unit Number LUN), but obtains problems such as same data content to visit different logic device number.The objective of the invention is to propose a kind of method that is used for the accessing remote logic equipment through multiple routes under the linux system, by the on-line equipment of finding out access same logical units in all online main frames number, and these on-line equipment groups are turned to a unique reflection equipment, to allow each reflection equipment all be mapped to different LUN, to solve the problem of aforementioned access to same data content.
When realizing above-mentioned support accessing remote logic equipment through multiple routes (Logic Device), and (Logic Unit Number, LUN), but discovery obtains the phenomenon of identical data content to avoid visiting different logic device number.The method of the accessing remote logic equipment through multiple routes under the linux system of the present invention is as follows: at first, between originating end and destination end, set up communicate by letter online.Then, originating end requires to set up at least one on-line dialogue with destination end.Afterwards, originating end (initiator) is obtained the online main frame of at least one iSCSI that is distributed by destination end (target).Then, originating end is repaid LUN order (report LUN command) first by transmitting, and obtains the information of at least one on-line equipment of the online main frame of corresponding iSCSI.At last, originating end configuration device mapper, this device map device produces redundance unit information according to on-line equipment of obtaining and corresponding LUN, and the on-line equipment that these are redundant is mapped as unique reflection equipment (that is reflection device number, mapped LUN).What is called, redundant on-line equipment indication are the on-line equipment of a plurality of visit same logical units number.
According to preferred embodiment of the present invention, aforementioned communication is online, can be that the communication of being set up by TCP communication protocol or UDP communication protocol is online.The establishment step of on-line dialogue comprises: login Request Packet by iSCSI of originating end transmission earlier and give destination end; Judge whether to allow the access request of originating end transmission again according to information such as the safety certification of logining Request Packet parsing coating by iSCSI and cryptographic parameter by destination end; At last, destination end is logined the response package at passback iSCSI and is given originating end, and sets up described on-line dialogue.
According to preferred embodiment of the present invention, the information that iSCSI logins response package load (piggyback) comprises permission online-order and on line state.In addition, aforementioned repayment LUN order (report LUNcommand) is carried on the command description block (Command Description Block) in the iSCSI package.
According to preferred embodiment of the present invention, when wherein on-line dialogue generation flow congestion, aforesaid device map device is carried out network shunting means, and partial discharge is switched with another equipment equally loaded of videoing; In addition, when these on-line dialogues interrupt, then switch with another reflection equipment transmission data package by the device map device.
From the above mentioned, the present invention is after setting up on-line dialogue, and destination end is by transmitting the on-line equipment information that the order of repayment LUN obtains the online main frame of iSCSI.Then originating end again those on-line equipments that will correspond to same logical units number of the device map device by configuration be mapped as unique reflection equipment, to avoid visiting different on-line equipments, but connect to the thing of same logical units access identical data.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is the method flow diagram of the accessing remote logic equipment through multiple routes under the linux system of preferred embodiment of the present invention;
Fig. 2 A is the iSCSI package form schematic diagram of preferred embodiment of the present invention;
Fig. 2 B comprises the field schematic diagram for the iSCSI data cell of Fig. 2 A;
Fig. 3 is the real system architecture schematic diagram of making accessing remote logic equipment through multiple routes in the preferred embodiment of the present invention.
Wherein, Reference numeral
210 network package
220 Etherloop header file
230 IP data cells
240 tcp data unit
250 iSCSI data cells
252 iSCSI header files
254 iSCSI control commands
256 data contents
310 originating ends
320 destination end
330 device map devices
312,314 online main frames
312a, 312b, 314a, 314b on-line equipment
322,324 LUN
332,334 reflection equipment
Embodiment
In following preferred embodiment, describing in detail of purpose of the present invention and proposition.Yet notion of the present invention also can be used for other scope.Following listed examples only is used to purpose of the present invention and manner of execution are described, is not in order to limit its scope.
Fig. 1 is the method flow diagram of the accessing remote logic equipment through multiple routes under the linux system of preferred embodiment of the present invention.Please refer to Fig. 1, in the present embodiment, the method for the accessing remote logic equipment through multiple routes under the linux system is in order to realize storing LAN (Storage Area Network, originating end SAN) and the visit of the multipath between the destination end.At first, originating end is set up communicate by letter online (step S110) with destination end.Then, originating end requires to set up at least one on-line dialogue (step S120) with destination end.Afterwards, originating end is obtained the online main frame of at least one iSCSI (step S130) that destination end is distributed.Then, originating end obtains the on-line equipment information (step S140) of the online main frame of corresponding iSCSI by transmitting the order of repayment LUN.At last, originating end configuration device projection instrument according to the LUN of on-line equipment and correspondence, produces redundance unit information, and the on-line equipment of redundancy is mapped as reflection equipment (step S150), that is form a unique reflection device number (mapped LUN).
Hold, it is as follows that originating end and destination end are set up the online step of communicate by letter: originating end transmits the iSCSI request of logining earlier to destination end.Destination end is logined Request Packet parsing safety certification and cryptographic parameter wherein according to this iSCSI again.After being judged as legal user, promptly allow the access request of originating end.At this moment, iSCSI of destination end passback logins the response package and gives originating end, to set up on-line dialogue.In this enforcement, described communication online for the communication of adopting TCP communication protocol to be set up online.Communicating by letter online can also be that UDP communication is online, does not limit its scope at this.
The information of the iSCSI package that originating end and destination end are transmitted (for example, iSCSI logins Request Packet or iSCSI logins response packet) load (Piggyback) also comprises information such as allowing online-order and on line state usually.When set up communication online after, originating end will be repaid the command description block (Command Description Block) that logical block command number (report LUNcommand) is carried on the iSCSI package.Fig. 2 A is the iSCSI package form schematic diagram of preferred embodiment of the present invention.Please refer to Fig. 2 A, the instruction that originating end will have repayment logical block command number is coated on the command description block, and is encapsulated as iSCSI data cell 250.By tcp data unit 240, IP data cell 230 and Etherloop header file 220 etc., be encapsulated as network package 210 layer by layer afterwards, give destination end by Internet transmission.Fig. 2 B comprises the field schematic diagram for the iSCSI data cell of Fig. 2 A.Please refer to Fig. 2 B, in iSCSI data cell 250, also comprise iSCSI header file 252, iSCSI control command 254 and data content 256.Aforesaid repayment logical block command number promptly is to write in iSCSI control command 254 fields, and all addressable LUN that target phase is noted down then are to be written into data content 256.
Fig. 3 is the real system architecture schematic diagram of making accessing remote logic equipment through multiple routes in the preferred embodiment of the present invention.Please refer to Fig. 3, originating end 310 is set up TCP with destination end 320 earlier and is communicated by letter online.Set up communication online after, reattempt with destination end 320 and set up many on-line dialogues (Session), originating end 310 transmits iSCSI and logins Request Packet (Login Request PDU) and give destination end, and it is online to require to set up many communications.And obtain and distribute online main frame 312,314 of iSCSI and corresponding LUN 322,324.Originating end also has the iSCSI package of repayment LUN order by transmission, obtain the on-line equipment information of the online main frame of corresponding SCSI, even be the information such as manufacturer, model of on-line equipment such as the speed of the kind of on-line equipment, storage data and space etc.For another obtaining online main frame 312 pairing on-line equipment 312a, 312b, and obtain online main frame 314 pairing on-line equipment 314a, 314b.Afterwards, originating end can dispose a device map device, and this device map device can be compared on-line equipment 312a, 312b, 314a, and the pairing LUN 322,324 of 314b, and finds out the on-line equipment that corresponds to same logical units number.For instance, on-line equipment 312a and the pairing LUN of on-line equipment 314a are LUN 322, and then on-line equipment 312a and on-line equipment 314a being considered as is redundance unit on the same group.In like manner, on-line equipment 312b and on-line equipment 314b then are considered as corresponding to the redundance unit on the same group of LUN 324.Device map device record is these redundance unit information down, and the on-line equipment that these are redundant is mapped as reflection equipment (that is reflection device number, mapped LUN).For example, on-line equipment 312a and on-line equipment 314a are made as reflection equipment 332, and on-line equipment 312b and on-line equipment 314b are made as reflection equipment 334.By Fig. 3, can find to visit two different reflection equipment (332,334), at last can on-line access to different LUN (Logic Unit Number), can avoid taking out identical data conditions and take place with different path access same logical units number.
Because each mapped device all comprises a plurality of on-line equipments, and can have access to the LUN of destination end by different on-line dialogues, characteristic can reach the purpose of network shunting thus.For instance, by reflection equipment 332, the different on-line dialogues that can be set up via the online main frame of difference (312,314) are visitedidentical LUN 322, and then are reached the purpose of network flow quantity shunting.In addition, when a certain on-line dialogue generation flow congestion, then carry out network shunting means, partial discharge is switched come the balancing flow load with another reflection equipment.When on-line dialogue interrupts, also can visit former LUN with another paths by all the other the redundant on-line equipments in the reflection equipment, and the transmission of duration data package, avoid online interruption.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (8)

Translated fromChinese
1.一种Linux系统下的多路径访问远程逻辑设备的方法,用于在储存局域网络的发起端与目标端之间实现多路径访问逻辑设备,其特征在于,包括:1. a method for multi-path access remote logical device under a Linux system, for realizing multi-path access logical device between the initiator and the target end of storage local area network, it is characterized in that, comprising:(a)一发起端与一目标端建立一通信联机;(a) an initiator establishes a communication connection with a target;(b)该发起端要求与该目标端建立数条对话;(b) The initiator requests to establish several dialogs with the target;(c)该发起端取得目标端分配的至少一iSCSI联机主机;(c) The initiator acquires at least one iSCSI connection host allocated by the target;(d)该发起端通过传送一回报逻辑单元号命令,获取对应该/该些iSCSI联机主机的至少一联机设备的信息;以及(d) the initiator obtains information of at least one connected device corresponding to the/these iSCSI connected hosts by sending a return LUN command; and(e)该发起端配置一设备映射器,依据该些联机设备及对应的该逻辑单元号,产生一冗余设备信息,并将该些冗余的联机设备映射为一映像设备。(e) The initiating end is configured with a device mapper, which generates redundant device information according to the connected devices and the corresponding LUNs, and maps the redundant connected devices into a mapping device.2.根据权利要求1所述的Linux系统下的多路径访问逻辑设备的方法,其特征在于,建立该通信联机采用的通信协议选自于TCP通信协议及UDP通信协议所组成的集合之任一。2. the method for the multi-path access logical device under the Linux system according to claim 1 is characterized in that, the communication protocol that this communication connection adopts is set up is selected from any one of the collection that TCP communication protocol and UDP communication protocol are formed .3.根据权利要求1所述的Linux系统下的多路径访问逻辑设备的方法,其特征在于,该步骤(b)还包括:3. the method for the multi-path access logical device under the Linux system according to claim 1, is characterized in that, this step (b) also comprises:该发起端传送一iSCSI登入请求封包予该目标端;the initiator sends an iSCSI login request packet to the target;该目标端依据由该iSCSI登入请求封包解析的一安全认证及一密码参数判断允许该发起端的存取请求;以及The target end determines to allow the initiator's access request according to a security authentication and a password parameter parsed from the iSCSI login request packet; and回传一iSCSI登入回应封包予该发起端,并建立该些联机对话。Return an iSCSI login response packet to the initiator, and establish the connection sessions.4.根据权利要求3所述的Linux系统下的多路径访问逻辑设备的方法,其特征在于,该iSCSI登入回应封包负载的信息包括一允许联机指令以及一联机状态。4 . The method for multi-path accessing logical devices under Linux system according to claim 3 , wherein the information of the iSCSI login response packet load includes an online permission command and an online status. 5 .5.根据权利要求1所述的Linux系统下的多路径访问逻辑设备的方法,其特征在于,该回报逻辑单元号命令为负载于一iSCSI封包中的一命令描述区块。5. The method for multi-path accessing logical devices under the Linux system according to claim 1, wherein the command to report the logical unit number is a command description block loaded in an iSCSI packet.6.根据权利要求1所述的Linux系统下的多路径访问逻辑设备的方法,其特征在于,该些冗余的联机设备为访问相同逻辑单元号的联机设备。6. The method for multipath accessing logical devices under the Linux system according to claim 1, wherein the redundant online devices are online devices that access the same logical unit number.7.根据权利要求1所述的Linux系统下的多路径访问逻辑设备的方法,其特征在于,该设备映射器还用于执行以下功能:当该些联机对话发生流量拥塞时,执行一网络分流手段,将部分流量切换以另一映像设备均衡负载。7. The method for multi-path accessing logical devices under the Linux system according to claim 1, wherein the device mapper is also used to perform the following functions: when traffic congestion occurs in these online sessions, perform a network split The method is to switch part of the traffic to another image device to balance the load.8.根据权利要求1所述的Linux系统下的多路径访问逻辑设备的方法,其特征在于,该设备映射器还用于执行以下功能:当该些联机对话中断时,切换以另一映像设备传输数据封包。8. The method for multipath accessing logical devices under the Linux system according to claim 1, wherein the device mapper is also used to perform the following functions: when the online sessions are interrupted, switch to another image device transmit data packets.
CN2007103023611A2007-12-252007-12-25 Method of multi-path accessing remote logical device under Linux systemExpired - Fee RelatedCN101471830B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN2007103023611ACN101471830B (en)2007-12-252007-12-25 Method of multi-path accessing remote logical device under Linux system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN2007103023611ACN101471830B (en)2007-12-252007-12-25 Method of multi-path accessing remote logical device under Linux system

Publications (2)

Publication NumberPublication Date
CN101471830A CN101471830A (en)2009-07-01
CN101471830Btrue CN101471830B (en)2011-02-02

Family

ID=40828973

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN2007103023611AExpired - Fee RelatedCN101471830B (en)2007-12-252007-12-25 Method of multi-path accessing remote logical device under Linux system

Country Status (1)

CountryLink
CN (1)CN101471830B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103888367A (en)*2014-03-102014-06-25清华大学Multi-path TCP congestion control method based on packet transmission delay
CN105786732B (en)*2014-12-262019-02-12华为技术有限公司 Data access method and device
CN105162824A (en)*2015-07-072015-12-16浪潮(北京)电子信息产业有限公司Host multi-path disposition method in cloud storage system, and system
CN105141675B (en)*2015-08-102019-02-22浪潮(北京)电子信息产业有限公司 Method, transmitter and system for multi-path access to remote logical device
CN106557276B (en)*2015-09-302021-02-23中兴通讯股份有限公司Storage takeover and switching processing method and device
CN106527970A (en)*2016-09-222017-03-22华为技术有限公司A communication path selection method an device
CN107391047B (en)*2017-08-022021-05-28郑州云海信息技术有限公司 Method and device for storage system management
CN109413142B (en)*2018-09-072020-07-31电信科学技术第五研究所有限公司Method for realizing iSCSI virtual agent under L inux
CN110166558B (en)*2019-05-242020-03-06苏州浪潮智能科技有限公司Communication method, device and equipment of multi-control storage cluster

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1348134A (en)*2000-10-132002-05-08国际商业机器公司Method and equipment for providing multi-channel input/output in the environment of non-cocurrent cluster
CN1642170A (en)*2004-01-162005-07-20英业达股份有限公司 Method of Accessing Logical Devices Using iSCSI Protocol
CN101084481A (en)*2004-12-202007-12-05伊姆西公司A method to perform parallel data migration in a clustered storage environment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1348134A (en)*2000-10-132002-05-08国际商业机器公司Method and equipment for providing multi-channel input/output in the environment of non-cocurrent cluster
CN1642170A (en)*2004-01-162005-07-20英业达股份有限公司 Method of Accessing Logical Devices Using iSCSI Protocol
CN101084481A (en)*2004-12-202007-12-05伊姆西公司A method to perform parallel data migration in a clustered storage environment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
巴克等.深入理解SAN.《深入理解SAN》.2004,第65-74页.*
蔡斌等.SCSI子系统中间层多启动互连多路径I/O的存储方式的研究.《小型微型计算机系统》.2005,第26卷(第8期),第1420-1426页.*

Also Published As

Publication numberPublication date
CN101471830A (en)2009-07-01

Similar Documents

PublicationPublication DateTitle
CN101471830B (en) Method of multi-path accessing remote logical device under Linux system
US9331963B2 (en)Wireless host I/O using virtualized I/O controllers
JP4430710B2 (en) Failover and load balancing
CN100396065C (en) A Realization Method of iSCSI Storage System
US7367050B2 (en)Storage device
US7680953B2 (en)Computer system, storage device, management server and communication control method
US20050010688A1 (en)Management device for name of virtual port
US20080022120A1 (en)System, Method and Computer Program Product for Secure Access Control to a Storage Device
US20100169953A1 (en)Client/server authentication over fibre channel
JP4512179B2 (en) Storage apparatus and access management method thereof
JP2007102761A (en) System and method for restricting access to storage device
EP1864441B1 (en)Iscsi and fibre channel authentication
US7805520B2 (en)Storage system, program and method
Sarkar et al.Internet protocol storage area networks
US10798159B2 (en)Methods for managing workload throughput in a storage system and devices thereof
Hufferd et al.IP Storage Protocols: iSCSI
US20140136776A1 (en)Resilient mirroring
US8635420B2 (en)Resilient mirroring utilizing peer-to-peer storage
US20090216886A1 (en)Method of multi-path accessing remote logic device under linux system
JP2005157826A (en) Access control apparatus and method
US7571209B2 (en)Performance profiling for improved data throughput
US7523287B2 (en)Storage system and method for restricting access to virtual memory area by management host, and program for executing the same
CN108366087A (en)A kind of ISCSI service implementing methods and device based on distributed file system
TWI406545B (en)Method for access remote logic device with multi-path in linux operation system
CN105141675B (en) Method, transmitter and system for multi-path access to remote logical device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20110202

Termination date:20151225

EXPYTermination of patent right or utility model

[8]ページ先頭

©2009-2025 Movatter.jp