WO2016101856A1 - Data access method and apparatus - Google Patents

Data access method and apparatus Download PDF

Info

Publication number
WO2016101856A1
WO2016101856A1 PCT/CN2015/098105 CN2015098105W WO2016101856A1 WO 2016101856 A1 WO2016101856 A1 WO 2016101856A1 CN 2015098105 W CN2015098105 W CN 2015098105W WO 2016101856 A1 WO2016101856 A1 WO 2016101856A1
Authority
WO
WIPO (PCT)
Prior art keywords
lun
host
information
storage device
allocation request
Prior art date
Application number
PCT/CN2015/098105
Other languages
French (fr)
Chinese (zh)
Inventor
高蒙
王燊
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2016101856A1 publication Critical patent/WO2016101856A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus

Definitions

  • the embodiments of the present invention relate to the field of computer technologies, and in particular, to a data access method and apparatus.
  • the mapping between the host and the logical unit number (LUN) of the storage device is one of the key operations in the storage configuration.
  • the purpose is to mount the storage resources of an enterprise storage device to the host, so that the host can use the host. Storage resources provided by enterprise storage devices. After a LUN of a storage device is mapped to a host, it must be scanned by the host to be recognized and used by the operating system device of the host.
  • a proxy is used in the prior art to establish an agent between the host and the enterprise storage device.
  • the agent belongs to the internal elements of the enterprise storage device.
  • the LUN of the storage device is associated with the agent, not the host. That is, the mapping relationship between the agent and the LUN on the storage device is established.
  • the host can only see the proxy, but the LUN of the storage device is not visible.
  • the host sends an input/output (IO) request to the LUN of the storage device. The request is sent to the proxy first.
  • the LUN of the storage device and when the mount relationship between the LUN of the storage device and the agent changes, the agent needs to notify the host.
  • the protocol related parts such as the resolution of the LUN (IDentity, ID for short), the discovery of the LUN, and the in-band management of other LUNs need to be corresponding. change. This change not only adds extra workload to the storage device, but also increases the complexity of IO processing and affects IO performance.
  • the embodiment of the invention provides a data access method and device, which can be applied to a large-scale cluster network, which simplifies the process of the host discovering the LUN, and does not need to change the existing storage protocol, and does not affect the IO performance.
  • an embodiment of the present invention provides a data access method, which is applied to a storage system, where the storage system includes a host and a storage device, and the host includes an application module and an interface module, and the method includes:
  • the interface module acquires a logical unit number LUN allocation request sent by the application module, and sends the LUN allocation request to the storage device; the LUN allocation request is used to instruct the storage device to allocate a LUN for the host And establishing a mapping relationship between the identifier of the LUN and the host;
  • the interface module receives the mapping relationship and the LUN information sent by the storage device, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate that the host is configured according to the Mapping the relationship and the information of the LUN, and accessing a storage space corresponding to the identifier of the LUN on the storage device.
  • the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
  • the information about the LUN further includes: port information of the host, where the host is used Establishing a data link between the host and the storage device, and the interface module of the host sends the LUN allocation request to the storage device by using the data link.
  • an embodiment of the present invention provides a data access method, which is applied to a storage system, where the storage system includes a host and a storage device, and the storage device includes a storage management interface module, and the method includes:
  • the storage management interface module receives a logical unit number LUN allocation request sent by the host, allocates a LUN to the host according to the LUN allocation request, and establishes a mapping relationship between the identifier of the LUN and the host;
  • the storage management interface module sends the information about the mapping relationship and the LUN to the host, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate that the host is configured according to the The mapping relationship and the information of the LUN access the storage space corresponding to the identifier of the LUN on the storage device.
  • the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
  • the information about the LUN further includes: port information of the host, where the host is used Establishing a data link between the host and the storage device, where the storage device receives the LUN allocation request sent by the host through the data link.
  • an embodiment of the present invention provides a host, including an application module and an interface module.
  • the application module is configured to send a LUN allocation request to the interface module, where the interface module is configured to obtain the LUN allocation request sent by the application module, and send the LUN allocation request a storage device; the LUN allocation request is used to instruct the storage device to allocate a LUN to the host, and establish a mapping relationship between the identifier of the LUN and the host;
  • the interface module is further configured to receive the mapping relationship and the LUN information sent by the storage device, where the information about the LUN includes an identifier of the LUN, and the information about the LUN is used to indicate the The host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping relationship and the information of the LUN.
  • the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
  • the information about the LUN further includes: port information of the host, where the host is configured Establishing a data link between the host and the storage device, and the interface module of the host sends the LUN allocation request to the storage device by using the data link.
  • an embodiment of the present invention provides a storage device, including:
  • a storage management interface module configured to receive a logical unit number LUN allocation request sent by the host, allocate a LUN to the host according to the LUN allocation request, and establish a mapping relationship between the identifier of the LUN and the host;
  • the storage management interface module is further configured to send the mapping relationship and the information about the LUN to the host, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate the location
  • the host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping relationship and the information of the LUN.
  • the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
  • the information about the LUN further includes: port information of the host, where the host is used Establishing a data link between the host and the storage device, where the storage device receives the LUN allocation request sent by the host through the data link.
  • the data access method and device of the embodiment of the present invention obtains a logical unit number LUN allocation request sent by the application module, and sends the LUN allocation request to the storage device; the LUN allocation request is used to indicate the storage.
  • the device allocates a LUN to the host, and establishes a mapping relationship between the identifier of the LUN and the host; the interface module receives the mapping relationship and the information about the LUN sent by the storage device;
  • the information about the LUN includes the identifier of the LUN, and the information about the LUN is used to indicate that the host accesses the identifier of the LUN according to the mapping relationship and the information of the LUN.
  • the storage space can be applied to a large-scale cluster network to dynamically allocate storage resources.
  • the host does not need to scan the LUNs, which simplifies the process of discovering LUNs by the host and does not need to change existing storage protocols and does not affect IO performance.
  • FIG. 1 is a system architecture diagram 1 of an embodiment of a data access method according to the present invention.
  • Embodiment 1 of a data access method according to the present invention is a flowchart of Embodiment 1 of a data access method according to the present invention
  • FIG. 3 is a system architecture diagram 2 of an embodiment of a data access method according to the present invention.
  • FIG. 4 is a system architecture diagram 3 of an embodiment of a data access method according to the present invention.
  • FIG. 5 is a flowchart of Embodiment 2 of a data access method according to the present invention.
  • Embodiment 1 of a host according to the present invention is a schematic structural diagram of Embodiment 1 of a host according to the present invention.
  • FIG. 7 is a schematic structural diagram of Embodiment 1 of a storage device according to the present invention.
  • Embodiment 8 is a schematic structural diagram of Embodiment 2 of a host according to the present invention.
  • FIG. 9 is a schematic structural diagram of Embodiment 2 of a storage device according to the present invention.
  • FIG. 1 is a system architecture diagram of an embodiment of a data access method according to the present invention.
  • the embodiment of the present invention is applied to a storage system.
  • the storage system includes a host and a storage device, and may also include a cluster management center.
  • the storage system in FIG. 1 includes a host 210, a host 220, and a host 230.
  • the host bus Adapter (HBA) is connected to the enterprise storage device 240, and the cluster management center 250 can manage the host.
  • HBA host bus Adapter
  • FIG. 2 is a flowchart of a first embodiment of a data access method according to an embodiment of the present invention.
  • FIG. 3 is a system architecture diagram of an embodiment of a data access method according to the present invention.
  • FIG. 2 the method in this embodiment is applied to a storage system, where the storage system includes a host and a storage device, and the host includes an application module and an interface module, and the method includes:
  • Step 201 The interface module acquires a logical unit number LUN allocation request sent by the application module, and sends the LUN allocation request to the storage device.
  • the LUN allocation request is used to indicate that the storage device is the
  • the host allocates a LUN and establishes a mapping relationship between the identifier of the LUN and the host.
  • Step 202 The interface module receives the mapping relationship and the LUN information sent by the storage device, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate the host The storage space corresponding to the identifier of the LUN on the storage device is accessed according to the mapping relationship and the information about the LUN.
  • the host manages the mapping relationship between the host and the LUN of the storage device through the interface module.
  • the driver layer of the host does not need to scan the HBA, but the information about the LUN through the interface module.
  • the identification of the LUN, etc. is passed to the application in the application module.
  • the application running on each host can access the storage space corresponding to the identifier of the LUN on the storage device through the information of the LUN.
  • the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
  • the LUN allocation request is a space allocation command sent from the application program of the application module, and mainly includes a storage space size and a storage space type (such as thin configuration and completion). Full configuration), performance requirements, reliability requirements, etc. It is necessary to determine what is specifically included according to the specific specifications of the storage device.
  • the LUN allocation request When the LUN allocation request is sent to the storage device, it needs to be converted into a management request recognizable by the storage device, and the management request is a storage configuration command and a management command that can be understood from the perspective of the storage device.
  • Enterprise storage devices provide a programmable management interface accessible by external applications within the storage device, such as the storage management interface module shown in Figure 3. Data center administrators can write applications to flexibly configure and manage storage devices based on interface specifications.
  • the application module of the application module in the host 210 uses the storage space in the storage device 240 to send a LUN allocation request to the interface module, and the interface module converts the LUN allocation request into a management request of the storage device.
  • the information is sent to the storage device 240.
  • the storage device 240 allocates the LUN corresponding to the LUN allocation request, such as LUN 1, and establishes a mapping relationship between the LUN 1 and the host 210, and returns the mapping relationship and the information of the LUN 1 to the interface module. .
  • the interface module obtains the information of the LUN 1 and returns the information to the application module.
  • the application module of the application module uses the information of the LUN 1 to access the storage space corresponding to the LUN 1.
  • the interface module includes an application adaptation unit 300 and a storage adaptation unit 310, where the interface module obtains a logical unit number LUN allocation request, including:
  • the application adaptation unit acquires the LUN allocation request, and forwards the LUN allocation request to the storage adaptation unit;
  • the sending the LUN allocation request to the storage device includes:
  • the storage adaptation unit converts the LUN allocation request into a management request of the storage device, and sends the request to the storage device;
  • the storage adaptation unit receives the mapping relationship and the information about the LUN, and sends the mapping relationship and the information about the LUN to the application adaptation unit, where the application adaptation unit sends the information to the application module. .
  • the application module of the application module in the host 210 uses the storage space in the storage device 240, and sends a LUN allocation request to the interface module application adaptation unit, and the application adaptation unit uses the LUN.
  • the allocation request is forwarded to the storage adaptation unit, and the storage adaptation unit converts the LUN allocation request into a management request of the storage device, and sends the LUN to the storage device 240, and the storage device 240 allocates the LUN corresponding to the LUN allocation request, such as a LUN. 1.
  • the mapping relationship between the LUN 1 and the host 210 is established, and the mapping relationship and the information of the LUN 1 are returned to the storage adaptation unit of the interface module, and forwarded to the application adaptation unit.
  • the application adapting unit returns the obtained information of the LUN 1 to the application of the application module, and the application of the application module accesses the storage space corresponding to the LUN 1 by using the information of the LUN 1.
  • the information about the LUN further includes: port information of the host, where the host establishes a data link between the host and the storage device, and the interface module of the host passes the data link. Sending the LUN allocation request to the storage device.
  • the port information of the host is used by the host to establish a data link between the host and the storage. After obtaining the information about the LUN, the host needs to configure the LUN on the correct host port to send IO requests.
  • the LUN allocation request sent by the application module is obtained by the interface module, and the LUN allocation request is sent to the storage device;
  • the LUN allocation request is used to indicate that the storage device is allocated to the host a LUN, and establishing a mapping relationship between the identifier of the LUN and the host;
  • the interface module receives the mapping relationship and the information about the LUN sent by the storage device, where the information about the LUN includes the LUN
  • the information of the LUN is used to indicate that the host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping relationship and the information about the LUN, and can be applied to a large-scale cluster.
  • the storage resources are dynamically allocated. The host does not need to scan the LUNs. This simplifies the process of discovering LUNs by the host and does not need to change the existing storage protocols.
  • FIG. 5 is a flowchart of Embodiment 2 of a data access method according to the present invention. As shown in FIG. 5, the method in this embodiment is applied to a storage system, where the storage system includes a host and a storage device, and the storage device includes a storage management interface module, and the method includes:
  • Step 501 The storage management interface module receives a logical unit number LUN allocation request sent by the host, allocates a LUN to the host according to the LUN allocation request, and establishes a mapping relationship between the identifier of the LUN and the host.
  • Step 502 The storage management interface module sends the mapping relationship and the information about the LUN to the host, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate the The host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping information of the LUN.
  • the application module of the application module in the host 210 uses the storage space in the storage device 240, and sends a LUN allocation request to the interface module of the host, and the interface module of the host allocates the LUN.
  • the storage management interface module of the storage device 240 is allocated to the storage management interface module of the storage device 240.
  • the storage management interface module of the storage device 240 allocates a LUN corresponding to the LUN allocation request, such as LUN 1, and establishes LUN 1 and host 210.
  • the interface module of the host obtains the information of the LUN 1 and returns the information to the application module of the application module.
  • the application module of the application module uses the information of the LUN 1 to access the storage space corresponding to the LUN 1.
  • the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
  • the LUN allocation request is a space allocation command sent from the application program of the application module, and mainly includes a storage space size, a storage space type (such as thin configuration, full configuration), performance requirements, and reliability requirements. It is necessary to determine what is specifically included according to the specific specifications of the storage device.
  • the LUN allocation request When the LUN allocation request is sent to the storage device, it needs to be converted into a management request recognizable by the storage device, and the management request is a storage configuration command and a management command that can be understood from the perspective of the storage device.
  • Enterprise storage devices provide a programmable management interface accessible by external applications within the storage device, such as the storage management interface module shown in Figure 3. Data center administrators can write applications to flexibly configure and manage storage devices based on interface specifications.
  • the information about the LUN further includes: port information of the host, where The host establishes a data link between the host and the storage device, and the storage device receives the LUN allocation request sent by the host through the data link.
  • the storage management interface module receives the logical unit number LUN allocation request sent by the host, allocates a LUN to the host according to the LUN allocation request, and establishes a mapping relationship between the identifier of the LUN and the host.
  • the storage management interface module sends the information about the mapping relationship and the LUN to the host, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate that the host is configured according to the
  • the mapping relationship and the information about the LUN access the storage space corresponding to the identifier of the LUN on the storage device, and can be applied to a large-scale cluster network, dynamically allocate storage resources, and the host does not need to scan the LUN, thereby simplifying the host. Discover the process of the LUN without changing the existing storage protocol and without affecting IO performance.
  • FIG. 6 is a schematic structural diagram of Embodiment 1 of a host according to the present invention. As shown in Figure 6, the host of this embodiment includes an application module 601 and an interface module 602;
  • the application module 601 is configured to send a logical unit number LUN allocation request to the interface module 602.
  • the interface module 602 is configured to obtain the LUN allocation request sent by the application module 601, and the The LUN allocation request is sent to the storage device; the LUN allocation request is used to instruct the storage device to allocate a LUN to the host, and establish a mapping relationship between the identifier of the LUN and the host;
  • the interface module 602 is further configured to receive the mapping relationship and the LUN information sent by the storage device, where the information about the LUN includes an identifier of the LUN, and the information about the LUN is used to indicate The host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping relationship and the information about the LUN.
  • the interface module 602 includes an application adaptation unit and a storage adaptation unit, where the application adaptation unit is configured to acquire the LUN allocation request, and forward the LUN allocation request to the storage adaptation. unit;
  • the storage adaptation unit is configured to convert the LUN allocation request into a management request of the storage device, and send the request to the storage device.
  • the storage adaptation unit is further configured to receive the mapping relationship and the LUN Sending the mapping relationship and the information about the LUN to the application adaptation unit, and sending the information to the application module by the application adaptation unit.
  • the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
  • the information about the LUN further includes: port information of the host, where the host establishes a data link between the host and the storage device, and the interface module of the host passes the data link. Sending the LUN allocation request to the storage device.
  • the host of the embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 7 is a schematic structural diagram of Embodiment 1 of a storage device according to the present invention. As shown in FIG. 7, the storage device of this embodiment includes:
  • the storage management interface module 701 is configured to receive a logical unit number LUN allocation request sent by the host, allocate a LUN to the host according to the LUN allocation request, and establish a mapping relationship between the identifier of the LUN and the host.
  • the storage management interface module 701 is further configured to send the information about the mapping relationship and the LUN to the host, where the information about the LUN includes an identifier of the LUN, and the information about the LUN is used to indicate The host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping relationship and the information about the LUN.
  • the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
  • the information about the LUN further includes: port information of the host, where the host establishes a data link between the host and the storage device, and the storage device receives the data by using the host The LUN allocation request sent by the link.
  • the storage device of this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 5, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 8 is a schematic structural diagram of Embodiment 2 of a host according to the present invention.
  • the host of this embodiment includes a communication interface 801, a processor 802, and a memory 803; the processor is respectively connected to the communication interface and the memory; and the memory is used to store the number. According to or information;
  • the communication interface 801 is configured to acquire the LUN allocation request sent by the processor 802, and send the LUN allocation request to the storage device; the LUN allocation request is used to indicate that the storage device is The host allocates a LUN, and establishes a mapping relationship between the identifier of the LUN and the host.
  • the communication interface 801 is further configured to receive the mapping relationship and the information about the LUN that are sent by the storage device, where the information about the LUN includes an identifier of the LUN, and the information about the LUN is used to indicate The host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping relationship and the information about the LUN.
  • the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
  • the information about the LUN further includes: port information of the host, where the processor establishes a data link between the host and the storage device, and the communication interface of the host passes the data link.
  • the road sends the LUN allocation request to the storage device.
  • the host of the embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 9 is a schematic structural diagram of Embodiment 2 of a storage device according to the present invention.
  • the storage device of this embodiment includes: a communication interface 901, a processor 902, and a memory 903; the processor 902 is respectively connected to the communication interface 901 and the memory 903; the memory 903, Used to store data or information;
  • the communication interface 901 is configured to receive a logical unit number LUN allocation request sent by the host, where the processor 902 is configured to allocate a LUN to the host according to the LUN allocation request, and establish an identifier of the LUN and the The mapping relationship of the host;
  • the communication interface 901 is further configured to send the information about the mapping relationship and the LUN to the host, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate the The host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping relationship and the information about the LUN.
  • the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
  • the information about the LUN further includes: port information of the host, where the host establishes a data link between the host and the storage device, and the storage device receives the data by using the host The LUN allocation request sent by the link.
  • the storage device of this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 5, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit or module is only a logical function division.
  • there may be another division manner for example, multiple units or modules may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical, mechanical or otherwise.
  • the modules described as separate components may or may not be physically separated.
  • the components displayed as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A data access method and apparatus. The data access method comprises: an interface module acquiring a logic unit number LUN assignment request sent by an application module and sending the LUN assignment request to a memory device; the LUN assignment request being used to instruct the memory device to assign an LUN to a host and establish a mapping relationship of an identification of the LUN and the host (201); the interface module receiving the mapping relationship and information of the LUN sent by the memory device, wherein the information of the LUN comprises the identification of the LUN; the information of the LUN is used to instruct the host to access a memory space on the memory device corresponding to the identification of the LUN according to the mapping relationship and the information of the LUN (202). The method is applicable in a large-scale cluster network, simplifies the procedure for the host to discover the LUN and has no need of altering the existing storage protocol and no influence on IO performance.

Description

数据访问方法及装置Data access method and device 技术领域Technical field
本发明实施例涉及计算机技术领域,尤其涉及一种数据访问方法及装置。The embodiments of the present invention relate to the field of computer technologies, and in particular, to a data access method and apparatus.
背景技术Background technique
主机与存储设备的逻辑单元号(Logical Unit Number,简称LUN)的映射是存储配置中的关键操作之一,目的是将一台企业级存储设备的存储资源挂载到主机上,使得主机能够使用企业级存储设备所提供的存储资源。存储设备的LUN映射到主机后,必须经过主机侧的扫描才能被主机的操作***设备识别及使用。The mapping between the host and the logical unit number (LUN) of the storage device is one of the key operations in the storage configuration. The purpose is to mount the storage resources of an enterprise storage device to the host, so that the host can use the host. Storage resources provided by enterprise storage devices. After a LUN of a storage device is mapped to a host, it must be scanned by the host to be recognized and used by the operating system device of the host.
当存储设备的LUN挂载到主机后,主机对LUN的扫描是一件耗时的工作。随着云计算和虚拟化的发展,主机与存储设备的拓扑关系变得越来越复杂。主机上往往需要挂载数以百计的LUN,在这种场景下,当有新的LUN挂载到主机时,主机上的下层驱动程序扫描主机总线适配器(Host Bus Adapter,简称HBA)以获取新LUN的信息,需要耗费较长的时间,极大程度上影响了整个***及集群的工作效率。After the LUN of the storage device is mounted to the host, scanning the LUN by the host is a time-consuming task. With the development of cloud computing and virtualization, the topological relationship between hosts and storage devices has become more and more complex. On a host, you need to mount hundreds of LUNs. In this scenario, when a new LUN is mounted to the host, the lower-layer driver on the host scans the Host Bus Adapter (HBA) to obtain The information of the new LUN takes a long time, which greatly affects the working efficiency of the entire system and the cluster.
为了减少主机扫描LUN的时间,简化主机与存储设备上的LUN的映射关系,现有技术中采用一种代理的方式,即在主机与企业级存储设备之间,建立一个代理。代理属于企业级存储设备的内部元素,存储设备的LUN关联至代理上,而非主机上,即建立了代理与存储设备上的LUN的映射关系。主机只能看到代理,而看不到存储设备的LUN,主机向存储设备的LUN发送输入/输出(Input/Output,简称IO)请求是先发到代理的,需要经过代理寻址到企业级存储设备的LUN,而且当存储设备的LUN与代理的挂载关系发生变化时,需要代理通知主机。 In order to reduce the time for the host to scan the LUN and simplify the mapping between the host and the LUN on the storage device, a proxy is used in the prior art to establish an agent between the host and the enterprise storage device. The agent belongs to the internal elements of the enterprise storage device. The LUN of the storage device is associated with the agent, not the host. That is, the mapping relationship between the agent and the LUN on the storage device is established. The host can only see the proxy, but the LUN of the storage device is not visible. The host sends an input/output (IO) request to the LUN of the storage device. The request is sent to the proxy first. The LUN of the storage device, and when the mount relationship between the LUN of the storage device and the agent changes, the agent needs to notify the host.
然而,现有技术中由于IO请求是发送至代理的,因此在LUN的标识(IDentity,简称ID)的解析、LUN的发现以及其他的LUN的带内管理等协议相关的部分都需要做相应的更改。这种改变不仅给存储设备带来了额外的工作量,而且也增加了IO处理的复杂度,影响了IO性能。However, in the prior art, since the IO request is sent to the proxy, the protocol related parts such as the resolution of the LUN (IDentity, ID for short), the discovery of the LUN, and the in-band management of other LUNs need to be corresponding. change. This change not only adds extra workload to the storage device, but also increases the complexity of IO processing and affects IO performance.
发明内容Summary of the invention
本发明实施例提供一种数据访问方法及装置,可应用于大规模的集群网络中,简化了主机发现LUN的流程,且不需更改现有存储协议,不影响IO性能。The embodiment of the invention provides a data access method and device, which can be applied to a large-scale cluster network, which simplifies the process of the host discovering the LUN, and does not need to change the existing storage protocol, and does not affect the IO performance.
第一方面,本发明实施例提供一种数据访问方法,应用于存储***,所述存储***包括主机与存储设备,所述主机包括应用模块和接口模块,所述方法包括:In a first aspect, an embodiment of the present invention provides a data access method, which is applied to a storage system, where the storage system includes a host and a storage device, and the host includes an application module and an interface module, and the method includes:
所述接口模块获取所述应用模块发送的逻辑单元号LUN分配请求,并将所述LUN分配请求发送给所述存储设备;所述LUN分配请求用于指示所述存储设备为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系;The interface module acquires a logical unit number LUN allocation request sent by the application module, and sends the LUN allocation request to the storage device; the LUN allocation request is used to instruct the storage device to allocate a LUN for the host And establishing a mapping relationship between the identifier of the LUN and the host;
所述接口模块接收所述存储设备发送的所述映射关系和所述LUN的信息;其中,所述LUN的信息包括所述LUN的标识;所述LUN的信息用于指示所述主机根据所述映射关系和所述LUN的信息,访问所述存储设备上与所述LUN的标识对应的存储空间。The interface module receives the mapping relationship and the LUN information sent by the storage device, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate that the host is configured according to the Mapping the relationship and the information of the LUN, and accessing a storage space corresponding to the identifier of the LUN on the storage device.
结合第一方面,在第一方面的第一种可能的实现方式中,所述LUN分配请求包括以下信息中的至少一项:存储空间大小、存储空间类型、性能需求、可靠性需求。With reference to the first aspect, in a first possible implementation manner of the first aspect, the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
结合第一方面、或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述LUN的信息还包括:主机的端口信息,用于所述主机建立所述主机与所述存储设备之间的数据链路,所述主机的接口模块通过所述数据链路将所述LUN分配请求发送给所述存储设备。 With reference to the first aspect, or the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, the information about the LUN further includes: port information of the host, where the host is used Establishing a data link between the host and the storage device, and the interface module of the host sends the LUN allocation request to the storage device by using the data link.
第二方面,本发明实施例提供一种数据访问方法,应用于存储***,所述存储***包括主机与存储设备,所述存储设备包括存储管理接口模块,所述方法包括:In a second aspect, an embodiment of the present invention provides a data access method, which is applied to a storage system, where the storage system includes a host and a storage device, and the storage device includes a storage management interface module, and the method includes:
所述存储管理接口模块接收所述主机发送的逻辑单元号LUN分配请求,根据所述LUN分配请求为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系;The storage management interface module receives a logical unit number LUN allocation request sent by the host, allocates a LUN to the host according to the LUN allocation request, and establishes a mapping relationship between the identifier of the LUN and the host;
所述存储管理接口模块将所述映射关系和所述LUN的信息发送给所述主机,其中,所述LUN的信息包括所述LUN的标识,所述LUN的信息用于指示所述主机根据所述映射关系和所述LUN的信息访问所述存储设备上与所述LUN的标识对应的存储空间。The storage management interface module sends the information about the mapping relationship and the LUN to the host, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate that the host is configured according to the The mapping relationship and the information of the LUN access the storage space corresponding to the identifier of the LUN on the storage device.
结合第二方面,在第二方面的第一种可能的实现方式中,所述LUN分配请求包括以下信息中的至少一项:存储空间大小、存储空间类型、性能需求、可靠性需求。With reference to the second aspect, in a first possible implementation manner of the second aspect, the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
结合第二方面、或第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述LUN的信息还包括:主机的端口信息,用于所述主机建立所述主机与所述存储设备之间的数据链路,所述存储设备接收所述主机通过所述数据链路发送的所述LUN分配请求。With reference to the second aspect, or the first possible implementation manner of the second aspect, in the second possible implementation manner of the second aspect, the information about the LUN further includes: port information of the host, where the host is used Establishing a data link between the host and the storage device, where the storage device receives the LUN allocation request sent by the host through the data link.
第三方面,本发明实施例提供一种主机,包括应用模块和接口模块;In a third aspect, an embodiment of the present invention provides a host, including an application module and an interface module.
其中,所述应用模块,用于向所述接口模块发送逻辑单元号LUN分配请求;所述接口模块,用于获取所述应用模块发送的所述LUN分配请求,并将所述LUN分配请求发送给存储设备;所述LUN分配请求用于指示所述存储设备为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系;The application module is configured to send a LUN allocation request to the interface module, where the interface module is configured to obtain the LUN allocation request sent by the application module, and send the LUN allocation request a storage device; the LUN allocation request is used to instruct the storage device to allocate a LUN to the host, and establish a mapping relationship between the identifier of the LUN and the host;
所述接口模块,还用于接收所述存储设备发送的所述映射关系和所述LUN的信息;其中,所述LUN的信息包括所述LUN的标识;所述LUN的信息用于指示所述主机根据所述映射关系和所述LUN的信息,访问所述存储设备上与所述LUN的标识对应的存储空间。 The interface module is further configured to receive the mapping relationship and the LUN information sent by the storage device, where the information about the LUN includes an identifier of the LUN, and the information about the LUN is used to indicate the The host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping relationship and the information of the LUN.
结合第三方面,在第三方面的第一种可能的实现方式中,所述LUN分配请求包括以下信息中的至少一项:存储空间大小、存储空间类型、性能需求、可靠性需求。With reference to the third aspect, in a first possible implementation manner of the third aspect, the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
结合第三方面、或第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,所述LUN的信息还包括:主机的端口信息,用于所述主机建立所述主机与所述存储设备之间的数据链路,所述主机的接口模块通过所述数据链路将所述LUN分配请求发送给所述存储设备。With reference to the third aspect, or the first possible implementation manner of the third aspect, in the second possible implementation manner of the third aspect, the information about the LUN further includes: port information of the host, where the host is configured Establishing a data link between the host and the storage device, and the interface module of the host sends the LUN allocation request to the storage device by using the data link.
第四方面,本发明实施例提供一种存储设备,包括:In a fourth aspect, an embodiment of the present invention provides a storage device, including:
存储管理接口模块,用于接收主机发送的逻辑单元号LUN分配请求,根据所述LUN分配请求为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系;a storage management interface module, configured to receive a logical unit number LUN allocation request sent by the host, allocate a LUN to the host according to the LUN allocation request, and establish a mapping relationship between the identifier of the LUN and the host;
所述存储管理接口模块,还用于将所述映射关系和所述LUN的信息发送给所述主机,其中,所述LUN的信息包括所述LUN的标识,所述LUN的信息用于指示所述主机根据所述映射关系和所述LUN的信息访问所述存储设备上与所述LUN的标识对应的存储空间。The storage management interface module is further configured to send the mapping relationship and the information about the LUN to the host, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate the location The host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping relationship and the information of the LUN.
结合第四方面,在第四方面的第一种可能的实现方式中,所述LUN分配请求包括以下信息中的至少一项:存储空间大小、存储空间类型、性能需求、可靠性需求。With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
结合第四方面、或第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,所述LUN的信息还包括:主机的端口信息,用于所述主机建立所述主机与所述存储设备之间的数据链路,所述存储设备接收所述主机通过所述数据链路发送的所述LUN分配请求。With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, in the second possible implementation manner of the fourth aspect, the information about the LUN further includes: port information of the host, where the host is used Establishing a data link between the host and the storage device, where the storage device receives the LUN allocation request sent by the host through the data link.
本发明实施例数据访问方法及装置,通过接口模块获取应用模块发送的逻辑单元号LUN分配请求,并将所述LUN分配请求发送给所述存储设备;所述LUN分配请求用于指示所述存储设备为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系;所述接口模块接收所述存储设备发送的所述映射关系和所述LUN的信息; 其中,所述LUN的信息包括所述LUN的标识;所述LUN的信息用于指示所述主机根据所述映射关系和所述LUN的信息,访问所述存储设备上与所述LUN的标识对应的存储空间,可以应用于大规模的集群网络中,动态分配存储资源,主机不需要扫描LUN,简化了主机发现LUN的流程,且不需更改现有存储协议,不影响IO性能。The data access method and device of the embodiment of the present invention obtains a logical unit number LUN allocation request sent by the application module, and sends the LUN allocation request to the storage device; the LUN allocation request is used to indicate the storage. The device allocates a LUN to the host, and establishes a mapping relationship between the identifier of the LUN and the host; the interface module receives the mapping relationship and the information about the LUN sent by the storage device; The information about the LUN includes the identifier of the LUN, and the information about the LUN is used to indicate that the host accesses the identifier of the LUN according to the mapping relationship and the information of the LUN. The storage space can be applied to a large-scale cluster network to dynamically allocate storage resources. The host does not need to scan the LUNs, which simplifies the process of discovering LUNs by the host and does not need to change existing storage protocols and does not affect IO performance.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为本发明数据访问方法实施例的***架构图一;1 is a system architecture diagram 1 of an embodiment of a data access method according to the present invention;
图2为本发明数据访问方法实施例一的流程图;2 is a flowchart of Embodiment 1 of a data access method according to the present invention;
图3为本发明数据访问方法实施例的***架构图二;3 is a system architecture diagram 2 of an embodiment of a data access method according to the present invention;
图4为本发明数据访问方法实施例的***架构图三;4 is a system architecture diagram 3 of an embodiment of a data access method according to the present invention;
图5为本发明数据访问方法实施例二的流程图;FIG. 5 is a flowchart of Embodiment 2 of a data access method according to the present invention;
图6为本发明主机实施例一的结构示意图;6 is a schematic structural diagram of Embodiment 1 of a host according to the present invention;
图7为本发明存储设备实施例一的结构示意图;FIG. 7 is a schematic structural diagram of Embodiment 1 of a storage device according to the present invention;
图8为本发明主机实施例二的结构示意图;8 is a schematic structural diagram of Embodiment 2 of a host according to the present invention;
图9为本发明存储设备实施例二的结构示意图。FIG. 9 is a schematic structural diagram of Embodiment 2 of a storage device according to the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护 的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts are protected by the present invention. The scope.
图1为本发明数据访问方法实施例的***架构图一,本发明实施例应用于存储***中,如图1所示,所述存储***包括主机与存储设备,还可包括集群管理中心,在图1中存储***包括主机210、主机220、主机230,通过各自的主机总线适配器(Host Bus Adapter,简称HBA)连接到企业级存储设备240,集群管理中心250能够管理主机。FIG. 1 is a system architecture diagram of an embodiment of a data access method according to the present invention. The embodiment of the present invention is applied to a storage system. As shown in FIG. 1 , the storage system includes a host and a storage device, and may also include a cluster management center. The storage system in FIG. 1 includes a host 210, a host 220, and a host 230. The host bus Adapter (HBA) is connected to the enterprise storage device 240, and the cluster management center 250 can manage the host.
图2为本发明数据访问方法实施例一的流程图,图3为本发明数据访问方法实施例的***架构图二,图4为本发明数据访问方法实施例的***架构图三。如图2所示,本实施例的方法,应用于存储***,所述存储***包括主机与存储设备,主机包括应用模块和接口模块,所述方法包括:2 is a flowchart of a first embodiment of a data access method according to an embodiment of the present invention. FIG. 3 is a system architecture diagram of an embodiment of a data access method according to the present invention. FIG. As shown in FIG. 2, the method in this embodiment is applied to a storage system, where the storage system includes a host and a storage device, and the host includes an application module and an interface module, and the method includes:
步骤201、所述接口模块获取所述应用模块发送的逻辑单元号LUN分配请求,并将所述LUN分配请求发送给所述存储设备;所述LUN分配请求用于指示所述存储设备为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系。Step 201: The interface module acquires a logical unit number LUN allocation request sent by the application module, and sends the LUN allocation request to the storage device. The LUN allocation request is used to indicate that the storage device is the The host allocates a LUN and establishes a mapping relationship between the identifier of the LUN and the host.
步骤202、所述接口模块接收所述存储设备发送的所述映射关系和所述LUN的信息;其中,所述LUN的信息包括所述LUN的标识;所述LUN的信息用于指示所述主机根据所述映射关系和所述LUN的信息,访问所述存储设备上与所述LUN的标识对应的存储空间。Step 202: The interface module receives the mapping relationship and the LUN information sent by the storage device, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate the host The storage space corresponding to the identifier of the LUN on the storage device is accessed according to the mapping relationship and the information about the LUN.
具体来说,如图1、图2所示,主机通过接口模块管理主机与存储设备的LUN的映射关系,主机的驱动层不需要对HBA进行扫描,而是通过接口模块将LUN的信息,如LUN的标识等,传递给应用模块中的应用程序。每一个主机上运行的应用程序可以通过LUN的信息对存储设备上LUN的标识对应的存储空间进行访问。Specifically, as shown in FIG. 1 and FIG. 2, the host manages the mapping relationship between the host and the LUN of the storage device through the interface module. The driver layer of the host does not need to scan the HBA, but the information about the LUN through the interface module. The identification of the LUN, etc., is passed to the application in the application module. The application running on each host can access the storage space corresponding to the identifier of the LUN on the storage device through the information of the LUN.
可选地,所述LUN分配请求包括以下信息中的至少一项:存储空间大小、存储空间类型、性能需求、可靠性需求。Optionally, the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
上述LUN分配请求,是从应用模块的应用程序角度发送的空间分配命令,主要包括存储空间大小、存储空间类型(如精简配置、完 全配置)、性能需求、可靠性需求等。需要根据存储设备的具体规格来确定具体包含哪些内容。The LUN allocation request is a space allocation command sent from the application program of the application module, and mainly includes a storage space size and a storage space type (such as thin configuration and completion). Full configuration), performance requirements, reliability requirements, etc. It is necessary to determine what is specifically included according to the specific specifications of the storage device.
LUN分配请求发送给存储设备时需要转换成存储设备可识别的管理请求,所述管理请求,是从存储设备的角度所能理解的存储配置命令及管理命令。企业级存储设备会在存储设备内部提供可由外部应用程序访问的可编程管理接口,如图3所示的存储管理接口模块。数据中心管理员可根据接口规范,编写应用程序灵活配置及管理存储设备。When the LUN allocation request is sent to the storage device, it needs to be converted into a management request recognizable by the storage device, and the management request is a storage configuration command and a management command that can be understood from the perspective of the storage device. Enterprise storage devices provide a programmable management interface accessible by external applications within the storage device, such as the storage management interface module shown in Figure 3. Data center administrators can write applications to flexibly configure and manage storage devices based on interface specifications.
如图3所示,主机210中的应用模块的应用程序要使用存储设备240中的存储空间,则发送LUN分配请求给接口模块,接口模块将所述LUN分配请求转换成存储设备的管理请求,发送给所述存储设备240,存储设备240分配所述LUN分配请求对应的LUN,如LUN 1,并建立LUN 1与主机210的映射关系,并将该映射关系以及LUN 1的信息返回给接口模块。接口模块将获取到的LUN 1的信息,并返回给应用模块,应用模块的应用程序使用LUN 1的信息对所述LUN 1对应的存储空间进行访问。As shown in FIG. 3, the application module of the application module in the host 210 uses the storage space in the storage device 240 to send a LUN allocation request to the interface module, and the interface module converts the LUN allocation request into a management request of the storage device. The information is sent to the storage device 240. The storage device 240 allocates the LUN corresponding to the LUN allocation request, such as LUN 1, and establishes a mapping relationship between the LUN 1 and the host 210, and returns the mapping relationship and the information of the LUN 1 to the interface module. . The interface module obtains the information of the LUN 1 and returns the information to the application module. The application module of the application module uses the information of the LUN 1 to access the storage space corresponding to the LUN 1.
可选地,如图4所示,所述接口模块包括应用适配单元300和存储适配单元310,所述接口模块获取逻辑单元号LUN分配请求,包括:Optionally, as shown in FIG. 4, the interface module includes an application adaptation unit 300 and a storage adaptation unit 310, where the interface module obtains a logical unit number LUN allocation request, including:
所述应用适配单元获取所述LUN分配请求,并将所述LUN分配请求转发给所述存储适配单元;The application adaptation unit acquires the LUN allocation request, and forwards the LUN allocation request to the storage adaptation unit;
所述将所述LUN分配请求发送给所述存储设备,包括:The sending the LUN allocation request to the storage device includes:
所述存储适配单元将所述LUN分配请求转换成存储设备的管理请求,发送给所述存储设备;The storage adaptation unit converts the LUN allocation request into a management request of the storage device, and sends the request to the storage device;
所述接口单元接收所述存储设备发送的所述映射关系和所述LUN的信息,包括:Receiving, by the interface unit, the mapping relationship and the information about the LUN that are sent by the storage device, including:
所述存储适配单元接收所述映射关系和所述LUN的信息,并将所述映射关系和所述LUN的信息发送给所述应用适配单元,由所述应用适配单元发送给应用模块。 The storage adaptation unit receives the mapping relationship and the information about the LUN, and sends the mapping relationship and the information about the LUN to the application adaptation unit, where the application adaptation unit sends the information to the application module. .
具体来说,如图4所示,主机210中的应用模块的应用程序要使用存储设备240中的存储空间,则发送LUN分配请求给接口模块应用适配单元,应用适配单元将所述LUN分配请求转发给存储适配单元,存储适配单元将所述LUN分配请求转换成存储设备的管理请求,发送给所述存储设备240,存储设备240分配所述LUN分配请求对应的LUN,如LUN 1,并建立LUN 1与主机210的映射关系,并将该映射关系以及LUN 1的信息返回给接口模块的存储适配单元,并转发给应用适配单元。应用适配单元将获取到的LUN 1的信息返回给应用模块的应用程序,应用模块的应用程序使用LUN 1的信息对所述LUN 1对应的存储空间进行访问。Specifically, as shown in FIG. 4, the application module of the application module in the host 210 uses the storage space in the storage device 240, and sends a LUN allocation request to the interface module application adaptation unit, and the application adaptation unit uses the LUN. The allocation request is forwarded to the storage adaptation unit, and the storage adaptation unit converts the LUN allocation request into a management request of the storage device, and sends the LUN to the storage device 240, and the storage device 240 allocates the LUN corresponding to the LUN allocation request, such as a LUN. 1. The mapping relationship between the LUN 1 and the host 210 is established, and the mapping relationship and the information of the LUN 1 are returned to the storage adaptation unit of the interface module, and forwarded to the application adaptation unit. The application adapting unit returns the obtained information of the LUN 1 to the application of the application module, and the application of the application module accesses the storage space corresponding to the LUN 1 by using the information of the LUN 1.
可选地,所述LUN的信息还包括:主机的端口信息,用于所述主机建立所述主机与所述存储设备之间的数据链路,所述主机的接口模块通过所述数据链路将所述LUN分配请求发送给所述存储设备。Optionally, the information about the LUN further includes: port information of the host, where the host establishes a data link between the host and the storage device, and the interface module of the host passes the data link. Sending the LUN allocation request to the storage device.
具体来说,主机的端口信息用于所述主机建立所述主机与所述存储之间的数据链路。主机侧在获取到LUN的信息后,需要将该LUN配置在正确的主机端口上,才能发送IO请求。Specifically, the port information of the host is used by the host to establish a data link between the host and the storage. After obtaining the information about the LUN, the host needs to configure the LUN on the correct host port to send IO requests.
本实施例,通过接口模块获取应用模块发送的逻辑单元号LUN分配请求,并将所述LUN分配请求发送给所述存储设备;所述LUN分配请求用于指示所述存储设备为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系;所述接口模块接收所述存储设备发送的所述映射关系和所述LUN的信息;其中,所述LUN的信息包括所述LUN的标识;所述LUN的信息用于指示所述主机根据所述映射关系和所述LUN的信息,访问所述存储设备上与所述LUN的标识对应的存储空间,可以应用于大规模的集群网络中,动态分配存储资源,主机不需要扫描LUN,简化了主机发现LUN的流程,且不需更改现有存储协议,不影响IO性能。In this embodiment, the LUN allocation request sent by the application module is obtained by the interface module, and the LUN allocation request is sent to the storage device; the LUN allocation request is used to indicate that the storage device is allocated to the host a LUN, and establishing a mapping relationship between the identifier of the LUN and the host; the interface module receives the mapping relationship and the information about the LUN sent by the storage device, where the information about the LUN includes the LUN The information of the LUN is used to indicate that the host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping relationship and the information about the LUN, and can be applied to a large-scale cluster. On the network, the storage resources are dynamically allocated. The host does not need to scan the LUNs. This simplifies the process of discovering LUNs by the host and does not need to change the existing storage protocols.
图5为本发明数据访问方法实施例二的流程图。如图5所示,本实施例的方法,应用于存储***,所述存储***包括主机与存储设备,所述存储设备包括存储管理接口模块,所述方法包括: FIG. 5 is a flowchart of Embodiment 2 of a data access method according to the present invention. As shown in FIG. 5, the method in this embodiment is applied to a storage system, where the storage system includes a host and a storage device, and the storage device includes a storage management interface module, and the method includes:
步骤501、所述存储管理接口模块接收所述主机发送的逻辑单元号LUN分配请求,根据所述LUN分配请求为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系。Step 501: The storage management interface module receives a logical unit number LUN allocation request sent by the host, allocates a LUN to the host according to the LUN allocation request, and establishes a mapping relationship between the identifier of the LUN and the host.
步骤502、所述存储管理接口模块将所述映射关系和所述LUN的信息发送给所述主机,其中,所述LUN的信息包括所述LUN的标识,所述LUN的信息用于指示所述主机根据所述映射关系所述LUN的信息访问所述存储设备上与所述LUN的标识对应的存储空间。Step 502: The storage management interface module sends the mapping relationship and the information about the LUN to the host, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate the The host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping information of the LUN.
具体来说,如图3所示,主机210中的应用模块的应用程序要使用存储设备240中的存储空间,则发送LUN分配请求给主机的接口模块,主机的接口模块将所述LUN分配请求转换成存储设备的管理请求,发送给所述存储设备240的存储管理接口模块,存储设备240的存储管理接口模块分配所述LUN分配请求对应的LUN,如LUN 1,并建立LUN 1与主机210的映射关系,并将该映射关系以及LUN 1的信息返回给主机的接口模块。主机的接口模块将获取到的LUN 1的信息,并返回给应用模块的应用程序,应用模块的应用程序使用LUN 1的信息对所述LUN 1对应的存储空间进行访问。Specifically, as shown in FIG. 3, the application module of the application module in the host 210 uses the storage space in the storage device 240, and sends a LUN allocation request to the interface module of the host, and the interface module of the host allocates the LUN. The storage management interface module of the storage device 240 is allocated to the storage management interface module of the storage device 240. The storage management interface module of the storage device 240 allocates a LUN corresponding to the LUN allocation request, such as LUN 1, and establishes LUN 1 and host 210. The mapping relationship and return the mapping relationship and the information of LUN 1 to the interface module of the host. The interface module of the host obtains the information of the LUN 1 and returns the information to the application module of the application module. The application module of the application module uses the information of the LUN 1 to access the storage space corresponding to the LUN 1.
可选地,所述LUN分配请求包括以下信息中的至少一项:存储空间大小、存储空间类型、性能需求、可靠性需求。Optionally, the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
上述LUN分配请求,是从应用模块的应用程序角度发送的空间分配命令,主要包括存储空间大小、存储空间类型(如精简配置、完全配置)、性能需求、可靠性需求等。需要根据存储设备的具体规格来确定具体包含哪些内容。The LUN allocation request is a space allocation command sent from the application program of the application module, and mainly includes a storage space size, a storage space type (such as thin configuration, full configuration), performance requirements, and reliability requirements. It is necessary to determine what is specifically included according to the specific specifications of the storage device.
LUN分配请求发送给存储设备时需要转换成存储设备可识别的管理请求,所述管理请求,是从存储设备的角度所能理解的存储配置命令及管理命令。企业级存储设备会在存储设备内部提供可由外部应用程序访问的可编程管理接口,如图3所示的存储管理接口模块。数据中心管理员可根据接口规范,编写应用程序灵活配置及管理存储设备。When the LUN allocation request is sent to the storage device, it needs to be converted into a management request recognizable by the storage device, and the management request is a storage configuration command and a management command that can be understood from the perspective of the storage device. Enterprise storage devices provide a programmable management interface accessible by external applications within the storage device, such as the storage management interface module shown in Figure 3. Data center administrators can write applications to flexibly configure and manage storage devices based on interface specifications.
可选地,所述LUN的信息还包括:主机的端口信息,用于所述 主机建立所述主机与所述存储设备之间的数据链路,所述存储设备接收所述主机通过所述数据链路发送的所述LUN分配请求。Optionally, the information about the LUN further includes: port information of the host, where The host establishes a data link between the host and the storage device, and the storage device receives the LUN allocation request sent by the host through the data link.
本实施例,通过存储管理接口模块接收所述主机发送的逻辑单元号LUN分配请求,根据所述LUN分配请求为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系;所述存储管理接口模块将所述映射关系和所述LUN的信息发送给所述主机,其中,所述LUN的信息包括所述LUN的标识,所述LUN的信息用于指示所述主机根据所述映射关系和所述LUN的信息访问所述存储设备上与所述LUN的标识对应的存储空间,可以应用于大规模的集群网络中,动态分配存储资源,主机不需要扫描LUN,简化了主机发现LUN的流程,且不需更改现有存储协议,不影响IO性能。In this embodiment, the storage management interface module receives the logical unit number LUN allocation request sent by the host, allocates a LUN to the host according to the LUN allocation request, and establishes a mapping relationship between the identifier of the LUN and the host. The storage management interface module sends the information about the mapping relationship and the LUN to the host, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate that the host is configured according to the The mapping relationship and the information about the LUN access the storage space corresponding to the identifier of the LUN on the storage device, and can be applied to a large-scale cluster network, dynamically allocate storage resources, and the host does not need to scan the LUN, thereby simplifying the host. Discover the process of the LUN without changing the existing storage protocol and without affecting IO performance.
图6为本发明主机实施例一的结构示意图。如图6所示,本实施例的主机,包括应用模块601和接口模块602;FIG. 6 is a schematic structural diagram of Embodiment 1 of a host according to the present invention. As shown in Figure 6, the host of this embodiment includes an application module 601 and an interface module 602;
其中,所述应用模块601,用于向所述接口模块602发送逻辑单元号LUN分配请求;所述接口模块602,用于获取所述应用模块601发送的所述LUN分配请求,并将所述LUN分配请求发送给存储设备;所述LUN分配请求用于指示所述存储设备为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系;The application module 601 is configured to send a logical unit number LUN allocation request to the interface module 602. The interface module 602 is configured to obtain the LUN allocation request sent by the application module 601, and the The LUN allocation request is sent to the storage device; the LUN allocation request is used to instruct the storage device to allocate a LUN to the host, and establish a mapping relationship between the identifier of the LUN and the host;
所述接口模块602,还用于接收所述存储设备发送的所述映射关系和所述LUN的信息;其中,所述LUN的信息包括所述LUN的标识;所述LUN的信息用于指示所述主机根据所述映射关系和所述LUN的信息,访问所述存储设备上与所述LUN的标识对应的存储空间。The interface module 602 is further configured to receive the mapping relationship and the LUN information sent by the storage device, where the information about the LUN includes an identifier of the LUN, and the information about the LUN is used to indicate The host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping relationship and the information about the LUN.
可选地,所述接口模块602包括应用适配单元和存储适配单元,所述应用适配单元,用于获取所述LUN分配请求,并将所述LUN分配请求转发给所述存储适配单元;Optionally, the interface module 602 includes an application adaptation unit and a storage adaptation unit, where the application adaptation unit is configured to acquire the LUN allocation request, and forward the LUN allocation request to the storage adaptation. unit;
所述存储适配单元,用于将所述LUN分配请求转换成存储设备的管理请求,发送给所述存储设备;The storage adaptation unit is configured to convert the LUN allocation request into a management request of the storage device, and send the request to the storage device.
所述存储适配单元,还用于接收所述映射关系和所述LUN的信 息,并将所述映射关系和所述LUN的信息发送给所述应用适配单元,由所述应用适配单元发送给应用模块。The storage adaptation unit is further configured to receive the mapping relationship and the LUN Sending the mapping relationship and the information about the LUN to the application adaptation unit, and sending the information to the application module by the application adaptation unit.
可选地,所述LUN分配请求包括以下信息中的至少一项:存储空间大小、存储空间类型、性能需求、可靠性需求。Optionally, the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
可选地,所述LUN的信息还包括:主机的端口信息,用于所述主机建立所述主机与所述存储设备之间的数据链路,所述主机的接口模块通过所述数据链路将所述LUN分配请求发送给所述存储设备。Optionally, the information about the LUN further includes: port information of the host, where the host establishes a data link between the host and the storage device, and the interface module of the host passes the data link. Sending the LUN allocation request to the storage device.
本实施例的主机,可以用于执行图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The host of the embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
图7为本发明存储设备实施例一的结构示意图。如图7所示,本实施例的存储设备,包括:FIG. 7 is a schematic structural diagram of Embodiment 1 of a storage device according to the present invention. As shown in FIG. 7, the storage device of this embodiment includes:
存储管理接口模块701,用于接收主机发送的逻辑单元号LUN分配请求,根据所述LUN分配请求为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系;The storage management interface module 701 is configured to receive a logical unit number LUN allocation request sent by the host, allocate a LUN to the host according to the LUN allocation request, and establish a mapping relationship between the identifier of the LUN and the host.
所述存储管理接口模块701,还用于将所述映射关系和所述LUN的信息发送给所述主机,其中,所述LUN的信息包括所述LUN的标识,所述LUN的信息用于指示所述主机根据所述映射关系和所述LUN的信息访问所述存储设备上与所述LUN的标识对应的存储空间。The storage management interface module 701 is further configured to send the information about the mapping relationship and the LUN to the host, where the information about the LUN includes an identifier of the LUN, and the information about the LUN is used to indicate The host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping relationship and the information about the LUN.
可选地,所述LUN分配请求包括以下信息中的至少一项:存储空间大小、存储空间类型、性能需求、可靠性需求。Optionally, the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
可选地,所述LUN的信息还包括:主机的端口信息,用于所述主机建立所述主机与所述存储设备之间的数据链路,所述存储设备接收所述主机通过所述数据链路发送的所述LUN分配请求。Optionally, the information about the LUN further includes: port information of the host, where the host establishes a data link between the host and the storage device, and the storage device receives the data by using the host The LUN allocation request sent by the link.
本实施例的存储设备,可以用于执行图5所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The storage device of this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 5, and the implementation principle and technical effects are similar, and details are not described herein again.
图8为本发明主机实施例二的结构示意图。如图8所示,本实施例的主机,包括通信接口801、处理器802和存储器803;所述处理器分别与所述通信接口和所述存储器连接;所述存储器,用于存储数 据或信息;FIG. 8 is a schematic structural diagram of Embodiment 2 of a host according to the present invention. As shown in FIG. 8, the host of this embodiment includes a communication interface 801, a processor 802, and a memory 803; the processor is respectively connected to the communication interface and the memory; and the memory is used to store the number. According to or information;
其中,所述通信接口801,用于获取所述处理器802发送的所述LUN分配请求,并将所述LUN分配请求发送给存储设备;所述LUN分配请求用于指示所述存储设备为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系;The communication interface 801 is configured to acquire the LUN allocation request sent by the processor 802, and send the LUN allocation request to the storage device; the LUN allocation request is used to indicate that the storage device is The host allocates a LUN, and establishes a mapping relationship between the identifier of the LUN and the host.
所述通信接口801,还用于接收所述存储设备发送的所述映射关系和所述LUN的信息;其中,所述LUN的信息包括所述LUN的标识;所述LUN的信息用于指示所述主机根据所述映射关系和所述LUN的信息,访问所述存储设备上与所述LUN的标识对应的存储空间。The communication interface 801 is further configured to receive the mapping relationship and the information about the LUN that are sent by the storage device, where the information about the LUN includes an identifier of the LUN, and the information about the LUN is used to indicate The host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping relationship and the information about the LUN.
可选地,所述LUN分配请求包括以下信息中的至少一项:存储空间大小、存储空间类型、性能需求、可靠性需求。Optionally, the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
可选地,所述LUN的信息还包括:主机的端口信息,用于所述处理器建立所述主机与所述存储设备之间的数据链路,所述主机的通信接口通过所述数据链路将所述LUN分配请求发送给所述存储设备。Optionally, the information about the LUN further includes: port information of the host, where the processor establishes a data link between the host and the storage device, and the communication interface of the host passes the data link. The road sends the LUN allocation request to the storage device.
本实施例的主机,可以用于执行图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The host of the embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
图9为本发明存储设备实施例二的结构示意图。如图9所示,本实施例的存储设备,包括:通信接口901、处理器902和存储器903;所述处理器902分别与所述通信接口901和所述存储器903连接;所述存储器903,用于存储数据或信息;FIG. 9 is a schematic structural diagram of Embodiment 2 of a storage device according to the present invention. As shown in FIG. 9, the storage device of this embodiment includes: a communication interface 901, a processor 902, and a memory 903; the processor 902 is respectively connected to the communication interface 901 and the memory 903; the memory 903, Used to store data or information;
所述通信接口901,用于接收主机发送的逻辑单元号LUN分配请求,所述处理器902,用于根据所述LUN分配请求为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系;The communication interface 901 is configured to receive a logical unit number LUN allocation request sent by the host, where the processor 902 is configured to allocate a LUN to the host according to the LUN allocation request, and establish an identifier of the LUN and the The mapping relationship of the host;
所述通信接口901,还用于将所述映射关系和所述LUN的信息发送给所述主机,其中,所述LUN的信息包括所述LUN的标识,所述LUN的信息用于指示所述主机根据所述映射关系和所述LUN的信息访问所述存储设备上与所述LUN的标识对应的存储空间。 The communication interface 901 is further configured to send the information about the mapping relationship and the LUN to the host, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate the The host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping relationship and the information about the LUN.
可选地,所述LUN分配请求包括以下信息中的至少一项:存储空间大小、存储空间类型、性能需求、可靠性需求。Optionally, the LUN allocation request includes at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
可选地,所述LUN的信息还包括:主机的端口信息,用于所述主机建立所述主机与所述存储设备之间的数据链路,所述存储设备接收所述主机通过所述数据链路发送的所述LUN分配请求。Optionally, the information about the LUN further includes: port information of the host, where the host establishes a data link between the host and the storage device, and the storage device receives the data by using the host The LUN allocation request sent by the link.
本实施例的存储设备,可以用于执行图5所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The storage device of this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 5, and the implementation principle and technical effects are similar, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述单元或模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或模块可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,设备或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit or module is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or modules may be used. Combinations can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated. The components displayed as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各 实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the essence of the corresponding technical solutions. The scope of the technical solutions of the embodiments.

Claims (12)

  1. 一种数据访问方法,应用于存储***,所述存储***包括主机与存储设备,其特征在于,所述主机包括应用模块和接口模块,所述方法包括:A data access method is applied to a storage system, where the storage system includes a host and a storage device, and the host includes an application module and an interface module, and the method includes:
    所述接口模块获取所述应用模块发送的逻辑单元号LUN分配请求,并将所述LUN分配请求发送给所述存储设备;所述LUN分配请求用于指示所述存储设备为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系;The interface module acquires a logical unit number LUN allocation request sent by the application module, and sends the LUN allocation request to the storage device; the LUN allocation request is used to instruct the storage device to allocate a LUN for the host And establishing a mapping relationship between the identifier of the LUN and the host;
    所述接口模块接收所述存储设备发送的所述映射关系和所述LUN的信息;其中,所述LUN的信息包括所述LUN的标识;所述LUN的信息用于指示所述主机根据所述映射关系和所述LUN的信息,访问所述存储设备上与所述LUN的标识对应的存储空间。The interface module receives the mapping relationship and the LUN information sent by the storage device, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate that the host is configured according to the Mapping the relationship and the information of the LUN, and accessing a storage space corresponding to the identifier of the LUN on the storage device.
  2. 根据权利要求1所述的方法,其特征在于,所述LUN分配请求包括以下信息中的至少一项:存储空间大小、存储空间类型、性能需求、可靠性需求。The method according to claim 1, wherein the LUN allocation request comprises at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
  3. 根据权利要求1或2所述的方法,其特征在于,所述LUN的信息还包括:主机的端口信息,用于所述主机建立所述主机与所述存储设备之间的数据链路,所述主机的接口模块通过所述数据链路将所述LUN分配请求发送给所述存储设备。The method according to claim 1 or 2, wherein the information of the LUN further includes: port information of the host, where the host establishes a data link between the host and the storage device, where The interface module of the host sends the LUN allocation request to the storage device through the data link.
  4. 一种数据访问方法,应用于存储***,所述存储***包括主机与存储设备,其特征在于,所述存储设备包括存储管理接口模块,所述方法包括:A data access method is applied to a storage system, where the storage system includes a host and a storage device, and the storage device includes a storage management interface module, and the method includes:
    所述存储管理接口模块接收所述主机发送的逻辑单元号LUN分配请求,根据所述LUN分配请求为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系;The storage management interface module receives a logical unit number LUN allocation request sent by the host, allocates a LUN to the host according to the LUN allocation request, and establishes a mapping relationship between the identifier of the LUN and the host;
    所述存储管理接口模块将所述映射关系和所述LUN的信息发送给所述主机,其中,所述LUN的信息包括所述LUN的标识,所述LUN的信息用于指示所述主机根据所述映射关系和所述LUN的信息 访问所述存储设备上与所述LUN的标识对应的存储空间。The storage management interface module sends the information about the mapping relationship and the LUN to the host, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate that the host is configured according to the Mapping relationship and information about the LUN Accessing a storage space corresponding to the identifier of the LUN on the storage device.
  5. 根据权利要求4所述的方法,其特征在于,所述LUN分配请求包括以下信息中的至少一项:存储空间大小、存储空间类型、性能需求、可靠性需求。The method according to claim 4, wherein the LUN allocation request comprises at least one of the following: storage space size, storage space type, performance requirement, and reliability requirement.
  6. 根据权利要求4或5所述的方法,其特征在于,所述LUN的信息还包括:主机的端口信息,用于所述主机建立所述主机与所述存储设备之间的数据链路,所述存储设备接收所述主机通过所述数据链路发送的所述LUN分配请求。The method according to claim 4 or 5, wherein the information of the LUN further includes: port information of the host, where the host establishes a data link between the host and the storage device, where The storage device receives the LUN allocation request sent by the host through the data link.
  7. 一种主机,其特征在于,包括应用模块和接口模块;A host, comprising: an application module and an interface module;
    其中,所述应用模块,用于向所述接口模块发送逻辑单元号LUN分配请求;所述接口模块,用于获取所述应用模块发送的所述LUN分配请求,并将所述LUN分配请求发送给存储设备;所述LUN分配请求用于指示所述存储设备为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系;The application module is configured to send a LUN allocation request to the interface module, where the interface module is configured to obtain the LUN allocation request sent by the application module, and send the LUN allocation request a storage device; the LUN allocation request is used to instruct the storage device to allocate a LUN to the host, and establish a mapping relationship between the identifier of the LUN and the host;
    所述接口模块,还用于接收所述存储设备发送的所述映射关系和所述LUN的信息;其中,所述LUN的信息包括所述LUN的标识;所述LUN的信息用于指示所述主机根据所述映射关系和所述LUN的信息,访问所述存储设备上与所述LUN的标识对应的存储空间。The interface module is further configured to receive the mapping relationship and the LUN information sent by the storage device, where the information about the LUN includes an identifier of the LUN, and the information about the LUN is used to indicate the The host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping relationship and the information of the LUN.
  8. 根据权利要求7所述的主机,其特征在于,所述LUN分配请求包括以下信息中的至少一项:存储空间大小、存储空间类型、性能需求、可靠性需求。The host according to claim 7, wherein the LUN allocation request comprises at least one of the following information: a storage space size, a storage space type, a performance requirement, and a reliability requirement.
  9. 根据权利要求7或8所述的主机,其特征在于,所述LUN的信息还包括:主机的端口信息,用于所述主机建立所述主机与所述存储设备之间的数据链路,所述主机的接口模块通过所述数据链路将所述LUN分配请求发送给所述存储设备。The host according to claim 7 or 8, wherein the information of the LUN further includes: port information of the host, where the host establishes a data link between the host and the storage device. The interface module of the host sends the LUN allocation request to the storage device through the data link.
  10. 一种存储设备,其特征在于,包括:A storage device, comprising:
    存储管理接口模块,用于接收主机发送的逻辑单元号LUN分配请求,根据所述LUN分配请求为所述主机分配LUN,并建立所述LUN的标识与所述主机的映射关系; a storage management interface module, configured to receive a logical unit number LUN allocation request sent by the host, allocate a LUN to the host according to the LUN allocation request, and establish a mapping relationship between the identifier of the LUN and the host;
    所述存储管理接口模块,还用于将所述映射关系和所述LUN的信息发送给所述主机,其中,所述LUN的信息包括所述LUN的标识,所述LUN的信息用于指示所述主机根据所述映射关系和所述LUN的信息访问所述存储设备上与所述LUN的标识对应的存储空间。The storage management interface module is further configured to send the mapping relationship and the information about the LUN to the host, where the information of the LUN includes an identifier of the LUN, and the information of the LUN is used to indicate the location The host accesses the storage space corresponding to the identifier of the LUN on the storage device according to the mapping relationship and the information of the LUN.
  11. 根据权利要求10所述的存储设备,其特征在于,所述LUN分配请求包括以下信息中的至少一项:存储空间大小、存储空间类型、性能需求、可靠性需求。The storage device according to claim 10, wherein the LUN allocation request comprises at least one of the following: storage space size, storage space type, performance requirement, and reliability requirement.
  12. 根据权利要求10或11所述的存储设备,其特征在于,所述LUN的信息还包括:主机的端口信息,用于所述主机建立所述主机与所述存储设备之间的数据链路,所述存储设备接收所述主机通过所述数据链路发送的所述LUN分配请求。 The storage device according to claim 10 or 11, wherein the information about the LUN further includes: port information of the host, where the host establishes a data link between the host and the storage device, The storage device receives the LUN allocation request sent by the host through the data link.
PCT/CN2015/098105 2014-12-26 2015-12-21 Data access method and apparatus WO2016101856A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410834707.2A CN105786732B (en) 2014-12-26 2014-12-26 Data access method and device
CN201410834707.2 2014-12-26

Publications (1)

Publication Number Publication Date
WO2016101856A1 true WO2016101856A1 (en) 2016-06-30

Family

ID=56149266

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/098105 WO2016101856A1 (en) 2014-12-26 2015-12-21 Data access method and apparatus

Country Status (2)

Country Link
CN (2) CN105786732B (en)
WO (1) WO2016101856A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325777A (en) * 2016-08-24 2017-01-11 浪潮(北京)电子信息产业有限公司 Logical unit management method and system
CN107506283B (en) * 2017-08-25 2021-06-29 郑州云海信息技术有限公司 Method and system for host to push information to SAN storage
CN109597565B (en) * 2017-09-30 2024-04-05 北京忆恒创源科技股份有限公司 Virtual Plane management
CN109992536A (en) * 2018-01-03 2019-07-09 华为技术有限公司 Data processing method, solid state hard disk and computer equipment
US10732903B2 (en) * 2018-04-27 2020-08-04 Hewlett Packard Enterprise Development Lp Storage controller sub-LUN ownership mapping and alignment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206581A (en) * 2006-12-20 2008-06-25 国际商业机器公司 Apparatus, system, and method for booting using an external disk through a virtual scsi connection
US20090158002A1 (en) * 2007-12-12 2009-06-18 Huawei Technologies Co., Ltd. Network storage device and data read-write control method
CN101815036A (en) * 2010-04-21 2010-08-25 中兴通讯股份有限公司 Method and device for realizing access control
CN103838515A (en) * 2012-11-23 2014-06-04 中国科学院声学研究所 Method and system for allowing server cluster to have access to and dispatch multi-controller disk array
CN103970486A (en) * 2014-05-22 2014-08-06 浪潮(北京)电子信息产业有限公司 Method and system for data storage

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0401246D0 (en) * 2004-01-21 2004-02-25 Ibm Method and apparatus for controlling access to logical units
US20060265566A1 (en) * 2005-05-17 2006-11-23 Sreerupa Sen Method and apparatus for verifying logical bindings between provisionable servers and provisionable storage array volumes
CN100347692C (en) * 2005-05-31 2007-11-07 清华大学 Implementing method of virtual intelligent controller in SAN system
JP5020601B2 (en) * 2006-11-10 2012-09-05 株式会社日立製作所 Access environment construction system and method
CN101471830B (en) * 2007-12-25 2011-02-02 英业达股份有限公司 Method for accessing remote logic equipment through multiple routes in Linux system
CN102622189B (en) * 2011-12-31 2015-11-25 华为数字技术(成都)有限公司 The device of Storage Virtualization, date storage method and system
CN103902225B (en) * 2012-12-26 2017-04-12 中国电信股份有限公司 Method and system for centralized management of storage resources

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206581A (en) * 2006-12-20 2008-06-25 国际商业机器公司 Apparatus, system, and method for booting using an external disk through a virtual scsi connection
US20090158002A1 (en) * 2007-12-12 2009-06-18 Huawei Technologies Co., Ltd. Network storage device and data read-write control method
CN101815036A (en) * 2010-04-21 2010-08-25 中兴通讯股份有限公司 Method and device for realizing access control
CN103838515A (en) * 2012-11-23 2014-06-04 中国科学院声学研究所 Method and system for allowing server cluster to have access to and dispatch multi-controller disk array
CN103970486A (en) * 2014-05-22 2014-08-06 浪潮(北京)电子信息产业有限公司 Method and system for data storage

Also Published As

Publication number Publication date
CN105786732B (en) 2019-02-12
CN105786732A (en) 2016-07-20
CN109947676A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
US11042311B2 (en) Cluster system with calculation and storage converged
US20200278880A1 (en) Method, apparatus, and system for accessing storage device
US9678918B2 (en) Data processing system and data processing method
JP2019153297A (en) New SSD basic structure for FPGA-based acceleration
US11734137B2 (en) System, and control method and program for input/output requests for storage systems
US11960430B2 (en) Remote mapping method, apparatus and device for computing resources, and storage medium
CN109445905B (en) Virtual machine data communication method and system and virtual machine configuration method and device
US8495255B2 (en) Discovery and configuration of device configurations
WO2016101856A1 (en) Data access method and apparatus
US20140195634A1 (en) System and Method for Multiservice Input/Output
CN112130748B (en) Data access method, network card and server
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
CN113253919A (en) Multifunctional storage device and method for processing message
TWI439871B (en) Maintaining storage area network (''san") access rights during migration of operating systems
US11940933B2 (en) Cross address-space bridging
US20220116454A1 (en) Direct response to io request in storage system having an intermediary target apparatus
CN110798541B (en) Interface sharing method, message forwarding method, interface sharing device, message forwarding device, electronic equipment and storage medium
WO2023072048A1 (en) Network storage method, storage system, data processing unit, and computer system
US20110246600A1 (en) Memory sharing apparatus
US20200220812A1 (en) Smart Network Interface Peripheral Cards
WO2020259269A1 (en) Message forwarding method, intermediate device and computer device
US10353585B2 (en) Methods for managing array LUNs in a storage network with a multi-path configuration and devices thereof
CN104954392A (en) Cloud disk as well as realization method and realization device thereof
US20180181440A1 (en) Resource allocation system, apparatus allocation controller and apparatus recognizing method
US20130179601A1 (en) Node provisioning of i/o module having one or more i/o devices

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15871924

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15871924

Country of ref document: EP

Kind code of ref document: A1