TWI231671B - Method for interviewing logic equipment by Internet small computer systems interface (iSCSI) - Google Patents

Method for interviewing logic equipment by Internet small computer systems interface (iSCSI) Download PDF

Info

Publication number
TWI231671B
TWI231671B TW92137798A TW92137798A TWI231671B TW I231671 B TWI231671 B TW I231671B TW 92137798 A TW92137798 A TW 92137798A TW 92137798 A TW92137798 A TW 92137798A TW I231671 B TWI231671 B TW I231671B
Authority
TW
Taiwan
Prior art keywords
scs
logical
scsi
accessing
patent application
Prior art date
Application number
TW92137798A
Other languages
Chinese (zh)
Other versions
TW200522595A (en
Inventor
Win-Harn Liu
Hsuan-Tung Chen
Hung-Hsu Lin
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 Corp filed Critical Inventec Corp
Priority to TW92137798A priority Critical patent/TWI231671B/en
Application granted granted Critical
Publication of TWI231671B publication Critical patent/TWI231671B/en
Publication of TW200522595A publication Critical patent/TW200522595A/en

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to a method for interviewing logic equipment by Internet small computer systems interface (iSCSI), which realizes the data transmission from the initiator to the logic target, comprising: giving each target equipment document a set of ID and logical unit numbers (LUN) and waiting the connection between the initiator and the target; after setting up the connection, accessing SCSI protocol data unit (PDU) from the connection; accessing SCSI command data block (CDB) for SCSI PDU; after confirming the ID in SCSI CDB with the corresponding LUN equipment documents, conducting the corresponding processes to the equipment documents in accordance with the SCSI instructions; sending the corresponding SCSI CDB back to the initiator from the connection.

Description

1231671 五、發明說明(1) 【發明所屬之技術領域】 本發明係為一種i SCS I協定實現方法,特別係指一種 利用iSCSI協定訪問邏輯設備的方法。 【先前技術】 i s c S I (互聯網小型電腦系統介面),即i n t e r n e t S C S I,是一種在I η ΐ e r n e t協定網路上,特別是乙太網上進 行資料塊傳輸的標準。從根本上說,i SCS I協定是一種跨 過I P網路來傳輸潛伏時間短的SCS I資料塊的方法。 SCS I (小型電腦系統介面)是以一種廣泛使用的連接 硬碟和電腦的技術標準,i SCS I這種技術則是將該技術應 用到網路連接上。SCS I是一個在物理設備(如驅動器、印 表機、電知專等)之間通信的面向資料塊的客戶機/伺服 器的I /0協定。發送一個SCS I指令的設備叫做發起設備 (Ini ti at or),也就是發出存取資料要求的一方,通常 為伺服器端或使用者電腦。接收並回應要求的一方為目標 設備(Target),通常為儲存設備端。發起設備負責發送 命令資料塊(Command Data Block,CDB),命令資料塊 中包含有必須由接收CDB的目標設備執行的參數。SCSI傳 輸器把這些CDB消息映射為物理的互聯以傳播這些資訊。 發起設備將SCS I任務發送給目標設備以執行一次〇s級資料 1專輸操作。一個目標設備有一個或多個邏輯單元處理發起 設備^請求命令,每個邏輯單元被分配給一個標示編號或 邏輯單元號(Logical Unit Numbers, LUN)。每個包含處 理π卩令的邏輯單元都被包含在一個中,並由發起設備1231671 V. Description of the invention (1) [Technical field to which the invention belongs] The present invention relates to a method for implementing the i SCS I protocol, and particularly to a method for accessing a logical device using the iSCSI protocol. [Prior technology] i s c S I (Internet small computer system interface), i n t e r n e t S C S I, is a standard for data block transmission on the I η ΐ e r n e t protocol network, especially Ethernet. Fundamentally, the i SCS I protocol is a method of transmitting SCS I data blocks with short latency over the IP network. SCS I (Small Computer System Interface) is a widely used technology standard for connecting hard disks and computers. I SCS I is a technology that applies this technology to network connections. SCS I is a block-oriented client / server I / 0 protocol that communicates between physical devices (such as drives, printers, electronics, etc.). The device that sends an SCS I command is called the initiating device (Ini ti at or), that is, the party that sends the data access request, usually the server or the user's computer. The party that receives and responds to the request is the target, usually the storage device. The initiating device is responsible for sending a Command Data Block (CDB). The command data block contains parameters that must be executed by the target device receiving the CDB. SCSI transmitters map these CDB messages into physical interconnections to propagate this information. The initiating device sends the SCS I task to the target device to perform a 0s-level data 1 exclusive input operation. A target device has one or more logical units to process initiating device ^ request commands, and each logical unit is assigned a label number or logical unit number (LUN). Each logical unit containing the processing π order is contained in one, and is initiated by the initiating device

12316711231671

五、發明說明(2) 1 I標設備特定的邏輯單元發送。例如:發起者請求讀取 ί ^的資料塊,目標設備的邏輯單元向發設備傳送相應的 貝料塊’並通過中斷狀態指明請求已完&。而iSCsi的主 要任務是,通過丨P網路在發起設備和目備之間完成 CDB的封裝、可靠轉送等處理。 下 iSCSI協定實現了在TCP/IP網路上傳輸SCSI指令,使 用戶能夠通過目前最被廣泛使用的乙太網來訪問在網路任 何地點伺服器上的塊(b 1 〇 c k)存儲設傷。這些存儲設備 可為硬碟、CD — R〇M或其他硬體設備,但這些設備必須都能 夠執行SCSI指令。 一 在Linux中,幾乎所有的硬體設備都有其相應的設備 =件,如硬碟、CPU等等,並且許多生成的設備如磁片冗 餘陣列(Raid)也會有其對應的設備文件。而Linux内核 通過設備文件和進程對話,所以内核中的設備驅動程式可 以通過它們和物理設備通信或執行指令。 凊參見「第1圖」,目前在UnuXT,此協定的大部4 的目標設備120端的實現辦法都是寫成—個Linux kernel module (内核模組),經編譯後裝載到内核之中,鈇後丑 Module便會在内核中充當網路子系統(Netw〇rk Subsystem) 和 SCSR 系統(SCSI Subsystem ) 12狀 橋梁。iSCSI協定就是一個在網路上封包和解包的過程, 在網路的一端,資料包被封裝成包括Tcp/I 、 別包和scsm料三部分内容,傳輸到網路另 1 部分内容分別被順序地解開。 一 1231671 五、發明說明(3) 首先從網路子系統1 2 1中取得從發起設備u 〇傳來的 iSCSI PDU (協定資料單元),然後根據在PDU中不同的 i SCS I指令,做相應的處理及回應,然後傳回網路子系統 121。有很多PDU包含SCSI CDB,而這些CDB便會遞交至 SCSI子系統1 23去處理,而處理完後的回應便會以CDB的形 式傳遞上來,i SCS I模組1 2 2便再做相關的處理,然後再將 這些PD蹲送至網路子系統12卜因此,目前的Module只能 將SCSI物理設備,如驅動器、印表機、電腦等等,提供給 用戶來使用。但若伺服器為了性能、容錯、擴展性或方便 官理的目的,通常會構造出一些邏輯設備(或稱為虛擬設 備),例如將硬碟重新組織為其他方式(如ra丨、邏輯 卷等,並想將這些方式通過Modu 1 e提供給用戶來使用,這 在iSCSI協定中是不能直接做到的。 【發明内容】 有蓉於此,本發明乃為解決上述問題而提出一種利用 i SCS I協定訪問邏輯設備的方法,主要的目的在於:使 i SCS I協定不僅僅只能提供給SCS I物理設備,也可將 R A I D.、邏輯卷等這樣的邏輯設備提供給用戶,從而實現發 起設備與邏輯目標設備之間的通信。 所以為達上述目的,本發明中提供一種利用13(:31協 定訪問邏輯設備的方法,使i SCS I協定不僅僅只能提供 SCSI物理設備,也可將RAID、邏輯卷等邏輯設備,提供給 用戶使用,因此用戶可直接享受到伺服器帶來的便利及性 能的提升,而不用在自己本機上多增加硬體設備。從而可V. Description of the invention (2) 1 I standard device specific logic unit transmission. For example: the initiator requests to read the data block, and the logic unit of the target device transmits the corresponding shell block to the sending device, and indicates that the request is completed & by the interrupt status. The main task of iSCsi is to complete CDB encapsulation and reliable transfer between the initiator and the target device through the P network. The iSCSI protocol realizes the transmission of SCSI commands on the TCP / IP network, so that users can access the block (b 1 0 c k) storage device on the server anywhere on the network through the most widely used Ethernet at present. These storage devices can be hard disks, CD-ROMs, or other hardware devices, but these devices must be capable of executing SCSI commands. First, in Linux, almost all hardware devices have their corresponding device = pieces, such as hard disks, CPUs, etc., and many generated devices such as redundant array of disks (Raid) will also have their corresponding device files . The Linux kernel talks to the process through device files, so device drivers in the kernel can communicate with the physical device or execute instructions through them.凊 Refer to “Figure 1”. Currently in UnuXT, the implementation methods of the 120 target devices of most of the 4 of this agreement are written as a Linux kernel module (kernel module), which is compiled and loaded into the kernel. The Ugly Module will act as a 12-shaped bridge between the network subsystem (Network Subsystem) and the SCSR system (SCSI Subsystem) in the kernel. The iSCSI protocol is a process of packetizing and unpacking on the network. At one end of the network, the data packet is encapsulated into three parts: Tcp / I, packet and scsm, and the other part of the content is transmitted sequentially to the network. Untie. 11231671 V. Description of the invention (3) First obtain the iSCSI PDU (Protocol Data Unit) from the initiator u 0 from the network subsystem 1 2 1 and then do the corresponding according to the different i SCS I commands in the PDU. Process and respond, and then return to the network subsystem 121. Many PDUs contain SCSI CDBs, and these CDBs will be submitted to the SCSI subsystem 1 23 for processing, and the processed responses will be transmitted in the form of CDB. The i SCS I module 1 2 2 will then do the related Process and then send these PDs to the network subsystem 12. Therefore, the current Module can only provide SCSI physical devices, such as drives, printers, computers, etc., to users for use. However, if the server is used for performance, fault tolerance, scalability, or convenient management purposes, some logical devices (or virtual devices) are usually constructed. , And want to provide these methods to users through Modu 1 e, which can not be done directly in the iSCSI protocol. [Summary of the invention] Here, the present invention is to solve the above problems by using i SCS The method of I protocol accessing logical devices is mainly to make the i SCS I protocol not only available to SCS I physical devices, but also to provide users with logical devices such as RAI D., logical volumes, and so on. Communication between the device and the logical target device. Therefore, in order to achieve the above purpose, the present invention provides a method for accessing a logical device using the 13 (: 31 protocol, so that the i SCS I protocol can not only provide SCSI physical devices, but also Logical devices such as RAID and logical volumes are provided to users, so users can directly enjoy the convenience and performance improvement brought by the server, instead of Multi increased hardware device present on the machine. Thereby

12316711231671

【實施方式】 資料統和存儲設備的管理員時常被曰益膨脹封 =二=的資料存儲需求所困擾,很多人開始考 決方案。虛擬存儲,將大量不同的物理[Implementation] Administrators of data systems and storage devices are often troubled by the need for data storage, and many people start to consider solutions. Virtual storage, a large number of different physical

備的過程’目的是幫助企業擴充、集中=大: 刀存儲設備。本發明使用iscsi協定不僅可以應用在物理 設,之間的通信,而且還可以實現象邏輯卷、Raid這樣 邏輯设備的通信。 、 、二1 SCS I使我們可以用乙太網來構建J p存儲局域網。通 過廷種方法,1 SCS I克服了直接連接存儲的局限性,使我 們可以跨不同伺服,器共用存儲資源,並可在不停機狀離下 擴充存儲容量。iSCSI系統由一塊SCSH« (大部分實現方 式為虛擬SCSI卡)發出一個SCSI指令,指令被封裝到資訊 包中並發送。接收方從資訊包中抽取scs丨指令並執行,然 後把返回的SCS I回應和資料封裝到I p資訊包中,並將它們 發回到發送方。糸統抽取資料或指令,並把它們傳回s c s I 子系統。 本發明S C S I C D B便不傳交給S C S I子系統來處理,而是 在module中解開SCSI CDB然後根據SCSI指令在module中處The purpose of the preparation process is to help companies expand, centralize = large: knife storage devices. The invention uses the iscsi protocol not only for communication between physical devices, but also for communication of logical devices such as logical volumes and Raids. SCS I allows us to use Ethernet to build J p storage area networks. Through this method, 1 SCS I overcomes the limitation of directly connected storage, allowing us to share storage resources across different servers and servers, and expand storage capacity without stopping. The iSCSI system sends a SCSI command from a SCSH «(mostly implemented as a virtual SCSI card). The command is encapsulated in an information packet and sent. The receiver extracts the scs 丨 instruction from the packet and executes it, then encapsulates the returned SCS I response and data into the IP packet and sends them back to the sender. The system extracts data or instructions and passes them back to the s c s I subsystem. The S C S I C D B of the present invention is not passed to the S C S I subsystem for processing, but the SCSI CDB is unlocked in the module and then processed in the module according to the SCSI instruction.

第8頁 1231671 五、發明說明(5) 理。 請參見「第2圖」,該圖係本發明利用i SCS I協定訪問 邏輯設備的方法之總體流程圖。如圖所示,首先賦予每個 目標設備文件一組I D與邏輯單元號(步驟2 1 0),接收該 發起設備的訪問請求’同時建立該發起設備與該目標設備 的連接(步驟2 2 0),自該連接中提取SCSI協定資料單元 (步驟2 3 0),自該協定資料單元中提取SCSI命令資料塊 (步驟2 4 0),確定該命令資料塊中的I D與邏輯單元號對 應之設備文件,同時根據該命令資料塊中的SCS I指令,對 該設備文件進行相應處理’並製造出相應的回應(步驟 2 5 0),將該回應構造成SCSI協定資料單元放入連接中回 送至該發起設備(步驟2 6 〇)。 本發明在Linux下使iSCSI協定將設備文件當物理硬碟 使用。請參見「第3圖」’ 5亥圖是本發明初始化之流程 圖。載入modu 1 e時,各設備文件首先被打開(步驟 3 0 1),每個設備文件被賦予一組I D與邏輯單元號(l U N : logical unit number, LUN)(步,驟 3〇2),同日夺啟動守 護進程一(負責處理創建連接)(步驟3 0 3)和守護進程 三(解釋和處理SCSI CDB)(步驟3〇4),然後等待起動 設備的訪問。 ^ 一個”守護進程”(即守護程式進程)通常為一個後臺 進程,而且它不屬於任何一個終端合却,i . 1 ’曰活(terminal session)。許多系統服務由守護程式實施,如網路服務, 列印等。Page 8 1231671 V. Description of the invention (5). Please refer to "Figure 2", which is a general flowchart of a method for accessing a logical device using the i SCS I protocol of the present invention. As shown in the figure, each target device file is first given a set of ID and logical unit number (step 2 1 0), and the access request of the initiator device is received. At the same time, the connection between the initiator device and the target device is established (step 2 2 0). ), Extract a SCSI protocol data unit from the connection (step 230), extract a SCSI command data block from the protocol data unit (step 240), and determine that the ID in the command data block corresponds to the logical unit number Device file, according to the SCS I instruction in the command data block, process the device file accordingly and create a corresponding response (step 250), construct the response into a SCSI protocol data unit, and send it back in the connection. To the initiating device (step 26). The invention enables the iSCSI protocol to use device files as physical hard disks under Linux. Please refer to "Figure 3" and Figure 5 is a flowchart of initialization of the present invention. When loading the modu 1 e, each device file is first opened (step 3 0 1), and each device file is given a set of ID and logical unit number (LUN) (step, step 3 02) ), On the same day, start the daemon one (responsible for processing connection creation) (step 303) and daemon three (interpret and handle SCSI CDB) (step 304), and then wait for the access of the boot device. ^ A "daemon process" (that is, a daemon process) is usually a background process, and it does not belong to any terminal shutdown, i. 1 'terminal session. Many system services are implemented by daemons, such as web services, printing, etc.

第9頁 1231671 五、發明說明(6) 發起設備訪問時’守護進程一從内核接受來自發起設 備的socket (從發起設備來的參數也包含在其中),而後 守護進程一建立連接並將套接字(S〇cket) · ^於連接Page 91231671 V. Description of the invention (6) When the initiating device accesses, the 'daemon process accepts sockets from the initiating device from the kernel (the parameters from the initiating device are also included), and then the daemon establishes a connection and socket Word (S〇cket) · ^ in connection

(Connection)中,隨後依次創建守護進程四(回送〖SCSI PDU給發起設備)與守護進程二(處理從發起設備來的 iSCSI PDU),建立的連接被轉交至守護進程四和守護進 程二。每當有新的訪問時,此過程便會迴圈一次。 然後守護進程二從連接中提取i s c s I p D U的頭 (header) ’而後根據header中的指令,作相應的處理。 才曰令可分兩類’第一種為S C S I硬碟的I 〇或對s c s I硬碟狀態 的請求;第二種為其他請求,如對i scs丨目標設備” ^ (target)狀態的請求、參數的交換、登錄等等。若為第 一種指令時,SCSI CDB被提取出來,然後交給守護進程三 處理;若為其他請求’則根據不同的指令,做出不同的回 應。請參見「第4圖」,守護進程三從連接的SCSI CDB中 提取SCSI的指令(步驟4100),確定對哪個1峽LUN的指 令(步驟4 2 0 0) ’並辨別是為哪一種指令(步驟4 3 〇 〇),In (Connection), daemon four (returns the SCSI PDU to the initiating device) and daemon two (processing the iSCSI PDU from the initiating device) are created in turn, and the connection established is transferred to daemon four and daemon process two. This process is repeated every time there is a new visit. Then the daemon process 2 extracts the header ’of i s c s I p D U from the connection, and then performs corresponding processing according to the instructions in the header. There are two types of commands: the first is I 〇 for SCSI hard disks or the request for scs I hard disk status; the second is other requests, such as requests for the status of "scs 丨 target device" ^ (target) , Parameter exchange, login, etc. If it is the first instruction, the SCSI CDB is extracted and then handed over to the daemon process three; if it is another request, then different responses will be made according to different instructions. See "Figure 4", daemon 3 extracts SCSI instructions from the connected SCSI CDB (step 4100), determines which LUN instruction (step 4 2 0 0) 'and discerns which instruction (step 4) 3 〇〇),

SCSI指令包括 INQUIRY、READ、READ CAPACITY以及 WRITE 等。若為INQUIRY(步驟4310),回應的種類要設定為 disk (步驟431 1),相應的回應被製造出來(步X驟 回應包含設備的種類、廠商資料、產品資料;^ ^ read (步驟43 2 0 ),調用設備文件的尋找和讀取函數^到 (步驟4321) ’相應的回應被製造出來;甚SCSI instructions include INQUIRY, READ, READ CAPACITY, and WRITE. If it is INQUIRY (step 4310), the type of response should be set to disk (step 4311), and the corresponding response is created (step X step response contains the type of device, manufacturer data, product data; ^ ^ read (step 43 2 0), calling the device file search and read functions ^ to (step 4321) 'The corresponding response was created; even

^ READ CAPACITY (步驟43 3 0 ),設備的容量被計笪山Α /卜 饥τ异出來(步驟^ READ CAPACITY (step 43 3 0), the capacity of the device is calculated by 笪 山 Α / 卜 ττ (step

1231671 五、發明說明(7) 43 3 1),相應的回應跟著被製造出來;若為wRiTE (步驟 4340),調用設備文件的尋找和存寫函數寫入Data ( 20 9),相應的回應被製造出來(210);若為其他指令1231671 V. Description of the invention (7) 43 3 1), the corresponding response is created; if it is wRiTE (step 4340), the device file search and write function is called to write Data (20 9), and the corresponding response is Manufactured (210); if other instructions

如 MODE SENSE、 REPORT LUNS、 START STOP UNIT、 TEST UNIT READY、VERIFY等等,相應的回應被4製造出來。隨後 回應被做成iSCSI PDU(步驟4400),如果有DATA,則回 應與DATA被做成iSCSI PDU,然後放回連接中等待傳送 (步驟4 5 0 0)’等待守護進程四處理。每當有新的$ c s I指 令時’此過程便會迴圈一次。另外每當有新的iSCSI PDU 時,守護進程四便會從連接中將iSCSI PDU傳回發起設 備。如需要卸載modu 1 e,所有資源被清除,各守護進程被 關閉。 應用本發明之利用i SCS I協定訪問邏輯設備的方法, 可將Raid、邏輯卷(i〇gicai volume)等提供給用戶使 用,下面以磁碟陣列系統中i SCS I協定下的邏輯卷實現方 法為例,對本發明進行詳細說明。 像磁片一樣邏輯卷可以保留文件系統、原始資料區、 轉儲區或交換區。與磁片不同的是,當創建邏輯卷並隨後 擴展其大小時,邏輯卷可以選擇大小。也可以通過多塊磁 片來擴展邏輯卷。Such as MODE SENSE, REPORT LUNS, START STOP UNIT, TEST UNIT READY, VERIFY, etc., the corresponding response is made by 4. The response is then made into an iSCSI PDU (step 4400). If there is DATA, the response and DATA are made into an iSCSI PDU, and then put back into the connection and waiting to be transmitted (step 4500). Whenever there is a new $ c s I instruction ’, this process will loop. In addition, whenever there is a new iSCSI PDU, the daemon IV will pass the iSCSI PDU from the connection back to the initiator. If you need to uninstall modu 1 e, all resources are cleared and each daemon is shut down. By applying the method for accessing a logical device using the i SCS I protocol of the present invention, a Raid, a logical volume (iogicai volume), etc. can be provided to a user for use. The method for implementing a logical volume under the i SCS I protocol in a disk array system is described below As an example, the present invention will be described in detail. Like disks, logical volumes can hold file systems, raw data areas, dump areas, or swap areas. Unlike diskettes, when you create a logical volume and then expand its size, the logical volume can choose a size. You can also expand logical volumes with multiple disks.

首先初始化階段打開邏輯卷的設備文件,賦予一組j D 與LUN於此設備文件,創建SCSI CDB處理守護進程以及連 接守護進程。請參見「第5圖」該圖是本發明實施例之邏 輯卷實現方法中處理SCSI CDB之流程圖。當有iSCSI PDUFirst, in the initialization phase, open the device file of the logical volume, assign a set of jD and LUN to this device file, and create a SCSI CDB processing daemon and a connection daemon. Please refer to "Figure 5", which is a flowchart of processing a SCSI CDB in a logical volume implementation method according to an embodiment of the present invention. When there is iSCSI PDU

1231671 時 五、發明說明(8) 物^ i顿51〇〇) ’提取SCSI命令(步驟5 2 0 0),辨別命令 机a二種類(步驟5 3 0 0)。若為INQUIRY (步驟531 0), 雁^^應中的種類為disk(步驟5311),製造出相應的回 了 +厂驟531 2),設定廠商資料、產品資料。若為READ 二驟53 2 〇),則調用邏輯卷的尋找和讀取函數得到Data . =驟5 3 2 1)並製造相應的回應。若為rEAD CAPACITY(步 應、3⑼)’則計算此邏輯卷的容量(步驟5 3 3 1)並製造相 回應。若為WRITE(步驟5 3 40),則調用邏輯卷的尋 ^ 1存寫函數寫入Data(步驟5341)並製造相應的回應。1231671 hours V. Description of the invention (8) Object ^ 顿 51〇〇) 'Extract SCSI commands (step 5 2 0 0), identify the two types of command machine a (step 5 3 0 0). If it is INQUIRY (step 531 0), the type of the wild bird should be disk (step 5311), and the corresponding reply + factory step 531 2) is made, and the manufacturer data and product data are set. If it is READ step 53 2 〇), then the search and read functions of the logical volume are called to get Data. = Step 5 3 2 1) and create a corresponding response. If it is rEAD CAPACITY (step, 3⑼) ’, calculate the capacity of this logical volume (step 5 3 3 1) and make a response. If it is WRITE (step 5 3 40), the search and write function of the logical volume is called to write the data (step 5341) and a corresponding response is created.

右"、其他指令(步驟 535 0),如 MODE SENSE、REPORT 々LUNS、START STOP UNIT、TEST UNIT READY、VERIFY 等 等,則製造相應的回應(步驟5312)。隨後製作iscsi PDU包含回應,以及Data (步驟5 40 0),再將iSCSI PD敝 回連接中等待傳送(步驟5 5 〇 〇)。 雖然本發明以前过〔 > 卜乂土杳_太么/ | .丄 IV ^ ^ ^ 述之較佳貫施例揭硌如上,然其並非 用以限疋本發明,故任Y 誠 之精神和範圍内,當可悉此ΐ藝者、’在不脫離本發明 之保護範圍當視後附之申請專利範圍所界定者本毛Right ", other instructions (step 5350 0), such as MODE SENSE, REPORT 々LUNS, START STOP UNIT, TEST UNIT READY, VERIFY, etc., then create corresponding responses (step 5312). Subsequently, the iscsi PDU is generated including the response and the data (step 5400), and the iSCSI PD is then returned to the connection and waiting for transmission (step 5500). Although the present invention has been previously < > BU 乂 土 杳 _ 太 么 / |. 丄 IV ^ ^ ^ The preferred embodiment described above is disclosed above, but it is not intended to limit the present invention, so the spirit of Y Cheng and Within the scope, when it is known that this artist, 'without departing from the scope of the present invention

第12頁 1231671 圖式簡單說明 第1圖係iSCSI協定實現過程之示意圖; 第2圖係本發明利用i SCS I協定訪問邏輯設備的方法之 總體流程圖; 第3圖係本發明初始化之流程圖; 第4圖係本發明處理SCSI CDB之流程圖;及 第5圖係本發明實施例之I SCS I協定下邏輯卷實現方法 之流程圖。 【圖式符號說明】Page 121231671 The diagram briefly illustrates the implementation process of the iSCSI protocol. Figure 2 is a general flowchart of the method for accessing logical devices using the i SCS I protocol of the present invention. Figure 3 is the flowchart of the initialization of the present invention. FIG. 4 is a flowchart of processing the SCSI CDB according to the present invention; and FIG. 5 is a flowchart of a method for implementing a logical volume under the I SCS I agreement according to the embodiment of the present invention. [Illustration of Symbols]

110 發起設備 120 目標設備 121 網路子系統 122 iSCSI模組 123 SCSI子系統110 Initiating device 120 Target device 121 Network subsystem 122 iSCSI module 123 SCSI subsystem

第13頁Page 13

Claims (1)

1231671 六、申請專利範圍 1、一種利用i SCS I協定訪問邏輯設備的方法,其可實現發 起設備(Initiator)到邏輯目標設備(Target)的'責料" 傳輸,包括如下步骤: 賦予每個目標設備文件一組I D與邏輯單元號 (LUN); 接收該發起設備的訪問請求,同時建立該發起設備 (Ini ti at or)與該目標設備(Target)的連接 (Connection); 自該連接中提取scsi協定資料單元(PDU); .自該協定資料單元中提取SCSI命令資料塊(CDB); 確定該命令資料塊中的ID與邏輯單元號對應之設備 文件,同時根據該命令資料塊中的SCS I指令,對該設備文 件進行相應處理,並製造出相應的回應;及 將該回應構造成SCSI協定資料皁元放入連接中回送 至該發起設備。 2、 如申請專利範圍第1項所述之利用i SCS丨協定訪問邏輯 設備的方法,其中更包括從内核中接收來自發起設備的套 接字(Socket) ’並將該套接字置於該連接^之步驟。 3、 如申請專利範圍第1項所述之利用i SCS I協定訪問邏輯 設備的方法,其中所述邏輯目標設備為邏輯卷(Logical Volume) 0 4、 如申請專利範圍第1項所述之利用i scs〗協定訪問邏輯 設備的方法,其中所述邏輯目標設備為磁片冗餘陣列 (Raid)。1231671 VI. Scope of patent application 1. A method for accessing a logical device by using the i SCS I agreement, which can realize the 'responsibility' transmission from the initiator to the logical target device, including the following steps: A set of ID and logical unit number (LUN) of the target device file; receiving the access request of the initiator device, and simultaneously establishing a connection (Connection) between the initiator device (Target) or the target device (Target); from the connection Extract scsi protocol data unit (PDU); Extract SCSI command data block (CDB) from the protocol data unit; determine the device file corresponding to the ID and logical unit number in the command data block, and according to the command data block The SCS I instruction processes the device file accordingly and creates a corresponding response; and constructs the response as a SCSI protocol data element into the connection and sends it back to the originating device. 2. The method for accessing a logical device using the i SCS 丨 protocol as described in item 1 of the scope of the patent application, which further includes receiving a socket from the initiating device (Socket) from the kernel and placing the socket in the Steps to connect ^. 3. The method for accessing a logical device using the i SCS I agreement as described in item 1 of the scope of patent application, wherein the logical target device is a logical volume 0 4. Use as described in item 1 of the scope of patent application i scs agrees on a method for accessing a logical device, wherein the logical target device is a redundant array of disks (Raid). 第14頁 1231671 六、申請專利範圍 5、 如申請專利範圍第1項所述之利用i SCS I協定訪問邏輯 設備的方法,其中所述SCSI指令包括INQUIRY、READ、 READ CAPACITY以及 WRITE。 6、 如申請專利範圍第5項所述之利用i SCS I協定訪問邏輯 設備的方法,其中所述SCSI指令若為INQUIRY,則回應的 種類設定為D i s k。 7、 如申請專利範圍第5項所述之利用i SCS I協定訪問邏輯 設備的方法,其中所述SCSI指令若為READ,則調用設備文 件的函數得到D a t a。 8、 如申請專利範圍第5項所述之利用i SCS I協定訪問邏輯 設備的方法,其中所述SCSI指令若為READ CAPACITY,則 計算設備的容量。 9、 如申請專利範圍第5項所述之利用i SCS I協定訪問邏輯 設備的方法,其中所述SCSI指令若為WRITE (10),調用 設備文件的尋找和存寫函數寫入Da t a。 1 0、如申請專利範圍第5項所述之利用i SCS I協定訪問邏輯 設備的方法,其中所述將該回應構造成SCS I協定資料單 元之步驟系為將該回應與Date構造成SCSI協定資料單 元0Page 14 1231671 VI. Scope of patent application 5. The method for accessing a logical device using the i SCS I agreement as described in item 1 of the scope of patent application, wherein the SCSI instructions include INQUIRY, READ, READ CAPACITY, and WRITE. 6. The method for accessing a logical device using the i SCS I protocol as described in item 5 of the scope of the patent application, wherein if the SCSI instruction is INQUIRY, the type of the response is set to D i s k. 7. The method for accessing a logical device using the i SCS I agreement as described in item 5 of the scope of the patent application, wherein if the SCSI instruction is READ, the function of the device file is called to obtain D a t a. 8. The method for accessing a logical device using the i SCS I agreement as described in item 5 of the scope of patent application, wherein if the SCSI instruction is READ CAPACITY, the capacity of the device is calculated. 9. The method for accessing a logical device using the i SCS I agreement as described in item 5 of the scope of the patent application, wherein if the SCSI instruction is WRITE (10), the device file search and write functions are called to write Da t a. 10. The method for accessing a logical device using the i SCS I protocol as described in item 5 of the scope of the patent application, wherein the step of constructing the response into an SCS I agreement data unit is to construct the response and the Date into a SCSI agreement Data unit 0 3?4 第15頁3? 4 page 15
TW92137798A 2003-12-31 2003-12-31 Method for interviewing logic equipment by Internet small computer systems interface (iSCSI) TWI231671B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW92137798A TWI231671B (en) 2003-12-31 2003-12-31 Method for interviewing logic equipment by Internet small computer systems interface (iSCSI)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW92137798A TWI231671B (en) 2003-12-31 2003-12-31 Method for interviewing logic equipment by Internet small computer systems interface (iSCSI)

Publications (2)

Publication Number Publication Date
TWI231671B true TWI231671B (en) 2005-04-21
TW200522595A TW200522595A (en) 2005-07-01

Family

ID=36122034

Family Applications (1)

Application Number Title Priority Date Filing Date
TW92137798A TWI231671B (en) 2003-12-31 2003-12-31 Method for interviewing logic equipment by Internet small computer systems interface (iSCSI)

Country Status (1)

Country Link
TW (1) TWI231671B (en)

Also Published As

Publication number Publication date
TW200522595A (en) 2005-07-01

Similar Documents

Publication Publication Date Title
US7392291B2 (en) Architecture for providing block-level storage access over a computer network
JP4457185B2 (en) Silicon-based storage virtualization server
JP4252301B2 (en) Storage system and data backup method thereof
US6907457B2 (en) Architecture for access to embedded files using a SAN intermediate device
US8090908B1 (en) Single nodename cluster system for fibre channel
JP5026283B2 (en) Collaborative shared storage architecture
US8341308B2 (en) Method and apparatus for a fibre channel N-port ID virtualization protocol
US7240098B1 (en) System, method, and software for a virtual host bus adapter in a storage-area network
TW200404430A (en) ISCSI driver to adapter interface protocol
US8694723B2 (en) Method and system for coupling serial attached SCSI (SAS) devices and internet small computer system internet (iSCSI) devices through single host bus adapter
US20070174850A1 (en) Method and System for HBA Assisted Storage Virtualization
US20070156974A1 (en) Managing internet small computer systems interface communications
CN106648838B (en) Resource pool management configuration method and device
CN100452795C (en) Method for accessing logic equipment utilizing ISCSI agreement
CN100353330C (en) Disk mirroring method based on IP network
Palekar et al. Design and implementation of a SCSI target for storage area networks
US10798159B2 (en) Methods for managing workload throughput in a storage system and devices thereof
TWI231671B (en) Method for interviewing logic equipment by Internet small computer systems interface (iSCSI)
CN102868684A (en) Fiber channel target and realizing method thereof
US8271258B2 (en) Emulated Z-series queued direct I/O
US11388135B2 (en) Automated management server discovery
Pallampati iSCSI Performance over RDMA-enabled Network
CN105872096A (en) Far-end sharing system for external equipment
CN105573935A (en) Leveling IO
US8037524B1 (en) System and method for differentiated cross-licensing for services across heterogeneous systems using transient keys

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees