CN103858091B - Management method and a device for storage devices - Google Patents

Management method and a device for storage devices Download PDF

Info

Publication number
CN103858091B
CN103858091B CN 201380002330 CN201380002330A CN103858091B CN 103858091 B CN103858091 B CN 103858091B CN 201380002330 CN201380002330 CN 201380002330 CN 201380002330 A CN201380002330 A CN 201380002330A CN 103858091 B CN103858091 B CN 103858091B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
management
request
host
scsi
storage device
Prior art date
Application number
CN 201380002330
Other languages
Chinese (zh)
Other versions
CN103858091A (en )
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
Grant date

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from or digital output to record carriers, e.g. RAID, emulated record carriers, networked record carriers
    • G06F3/0601Dedicated interfaces to storage systems
    • G06F3/0668Dedicated interfaces to storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from or digital output to record carriers, e.g. RAID, emulated record carriers, networked record carriers
    • G06F3/0601Dedicated interfaces to storage systems
    • G06F3/0602Dedicated interfaces to storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0605Improving or facilitating administration, e.g. storage management by facilitating the interaction with a user or administrator
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from or digital output to record carriers, e.g. RAID, emulated record carriers, networked record carriers
    • G06F3/0601Dedicated interfaces to storage systems
    • G06F3/0628Dedicated interfaces to storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0659Command handling arrangements, e.g. command buffers, queues, command scheduling

Abstract

本发明实施例公开了一种存储设备的管理方法及设备,涉及通信领域,采用数据通道实现了对存储设备的管理。 Embodiment of the present invention discloses a method and apparatus for managing storage devices, relates to the field of communications, using a data channel to achieve the management of the storage device. 具体方案为:通过数据通道向存储设备发送第一SCSI请求命令;接收存储设备根据第一SCSI请求命令通过数据通道发送的管理请求,管理请求用于请求主机对存储设备进行管理;根据管理请求对存储设备进行管理。 Specific programs: a first SCSI transmission through the data channel request command to the storage device; receiving a data storage device management request through the transmission channel according to a first SCSI request command management request for requesting the host device to the storage management; management request according to the storage device management. 本发明用于对存储设备的管理过程中。 The present invention is a process for managing storage devices.

Description

_种存储设备的管理方法及设备 Management method and apparatus _ kinds of storage devices

技术领域 FIELD

[0001] 本发明涉及通信领域,尤其涉及一种存储设备的管理方法及设备。 [0001] The present invention relates to communication field, and particularly relates to a method and apparatus for managing storage devices. 背景技术 Background technique

[0002] 随着科技的不断发展,在电信网络、互联网和云存储等应用中需要存储大量的数据,并且还需要对存储的这些数据进行不断的访问。 [0002] With the continuous development of science and technology, in telecommunications networks, Internet and cloud storage applications need to store large amounts of data, and these data need to be stored continues to visit. 在这种情况下,可以使用采用小型计算机系统接口(Small Computer System Interface,SCSI)协议的存储设备来进行数据的存储。 In this case, it is possible to use a small computer system interface (Small Computer System Interface, SCSI) protocol storage device for storing data.

[0003] 在由主机和采用SCSI协议的存储设备组成的存储系统中,主机可以通过数据通道(如,光纤通道)与存储设备进行通信。 [0003] In the storage system by the host and the storage device using the SCSI protocol consisting host may (e.g., Fiber Channel) communicates with the storage device through the data channel. 由于SCSI协议的限制,在主机与存储设备采用数据通道进行通信时,主机只能作为请求的发起端,存储设备只能作为请求的执行端。 Due to limitations of the SCSI protocol, when the host and the storage device using a data communication channel, only as a host terminal originating the request, a storage device can execute the client request. 也就是说, 只可以是由主机主动发起请求,采用数据通道与存储设备进行通信。 That is, only may initiate a request by the host, using the data channel to communicate with the storage device. 但是,若需要对存储设备进行管理,那么不仅需要主机可以作为请求的发起端,也需要存储设备可以作为请求的发起端。 However, if you need to manage the storage device, then not only requires the host as the initiator of the request, but also need storage devices can be used as the initiator of the request. 也就是说在对存储设备进行管理的过程中,需要实现主机和存储设备之前的双向通信,但是由于数据通道只能进行单向的数据交互,即存储设备只能作为请求的执行端,不能主动向主机发送消息,这样便不能采用数据通道对存储设备进行管理。 That is in the process of managing the storage device, the need for two-way communication and storage device before the host, but since the data channel for data exchange only one-way, i.e., as the storage device can execute the client request can not be active sending a message to the host, this will not be managed on the storage device using a data channel. 发明内容 SUMMARY

[0004] 本发明的实施例提供一种存储设备的管理方法及设备,采用数据通道实现了对存储设备的管理。 Example [0004] The present invention provides a storage device management method and apparatus, using a data channel to achieve the management of the storage device.

[0005] 为达到上述目的,本发明的实施例采用如下技术方案: [0005] To achieve the above object, embodiments of the present invention adopts the following technical solutions:

[0006] 本发明的第一方面,提供一种存储设备的管理方法,应用于主机,所述主机和所述存储设备组成存储系统,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备,所述方法包括: [0006] The first aspect of the present invention, there is provided a method of managing storage devices, has been applied to the establishment of data channel between a host, the host and the storage device consisting of a storage system, the host and the storage device, but did not create the management channel, a host query through the data channel to the virtual SCSI small computer system interface device, the method comprising:

[0007] 通过所述数据通道向所述存储设备发送第一SCSI请求命令; [0007] The first SCSI request command transmitted through the data channel to the storage device;

[0008] 接收所述存储设备根据所述第一SCSI请求命令通过所述数据通道发送的管理请求;所述管理请求用于请求所述主机对所述存储设备进行管理; [0008] received by the storage device management request command requesting the transmission of data according to the first channel the SCSI; the management request for requesting the host device to manage the memory;

[0009] 根据所述管理请求对所述存储设备进行管理。 [0009] management of the storage device according to the management request.

[0010] 结合第一方面,在一种可能的实现方式中, [0010] with the first aspect, in one possible implementation manner,

[0011] 在所述通过所述数据通道向所述存储设备发送第一SCSI请求命令之前,还包括: [0011] Before storage request command to the SCSI device a first transmission through the data channel, the method further comprising:

[0012] 检测到所述存储设备触发了请求事件;其中,所述请求事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 [0012] The storage device detecting the triggering event request; wherein triggered when the event is a request to the storage management device needs to send the request to the host.

[0013] 结合第一方面和上述可能的实现方式,在另一种可能的实现方式中, [0013] The binding of the first aspect and the possible implementation manner, in another possible implementation manner,

[0014] 所述根据所述管理请求对所述存储设备进行管理,包括: [0014] The request for the management of the storage management device, comprising the:

[0015] 根据所述管理请求获取管理数据,并将所述管理数据封装在第二SCSI请求命令中;其中,所述管理数据用于对所述存储设备进行管理; [0015] According to the management request acquiring management data, and said management data is encapsulated in a second SCSI request command; wherein the management data for the management of the storage device;

[0016] 通过所述数据通道向所述存储设备发送所述第二SCSI请求命令,以便所述存储设备根据所述第二SCSI请求命令中的管理数据进行管理。 [0016] transmitted to the storage device through the second channel of the SCSI data request command to request the management data storage device management command according to the second SCSI.

[0017] 结合第一方面和上述可能的实现方式,在另一种可能的实现方式中, [0017] The binding of the first aspect and the possible implementation manner, in another possible implementation manner,

[0018] 在所述通过所述数据通道向所述存储设备发送所述第二SCSI请求命令之后,还包括: [0018] After transmitting the request command to the second SCSI storage device through the data channel, the method further comprising:

[0019] 接收所述存储设备通过所述数据通道发送的SCSI响应命令,所述SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。 [0019] The SCSI storage device receiving the data transmitted through the channel in response to the command, the SCSI command for notifying the host in response to the management of the storage device has been completed.

[0020] 本发明的第二方面,提供一种存储设备的管理方法,应用于主机,所述主机和所述存储设备组成存储系统,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备,所述方法包括: [0020] The second aspect of the present invention, a data path has been established between the devices to provide a storage management method applied to a host, the host and the storage device consisting of a storage system, the host and the storage device, but did not create the management channel, a host query through the data channel to the virtual SCSI small computer system interface device, the method comprising:

[0021] 生成管理请求,并将所述管理请求封装在SCSI请求命令中;其中,所述管理请求用于请求所述存储设备对所述存储设备进行管理; [0021] generation management request, and the package management request in the SCSI request command; wherein, the device management request for requesting the storage of the storage management device;

[0022] 通过所述数据通道向所述存储设备发送所述SCSI请求命令,以便所述存储设备根据所述SCSI请求命令中的管理请求对所述存储设备进行管理。 [0022] transmitted through the data channel to the SCSI storage devices to the request command to the storage device according to the SCSI request command requests the management of the management storage device. [〇〇23]结合第二方面,在一种可能的实现方式中, [〇〇23] combination with the second aspect, in one possible implementation manner,

[0024] 在所述通过所述数据通道向所述存储设备发送所述SCSI请求命令之后,还包括:[〇〇25] 接收所述存储设备通过所述数据通道发送的管理响应,所述管理响应中包含所述存储设备根据所述管理请求对所述存储设备进行管理后得到的需要向所述主机返回的数据。 [0024] After transmitting the request command to the SCSI storage device through the data channel, the method further comprising: [〇〇25] storage management device in response to receiving the data transmitted through said channel, said management the response contains the data to be returned to said host storage device management request in accordance with the obtained after the management of the storage device. [〇〇26] 本发明的第三方面,提供一种存储设备的管理方法,应用于所述存储设备,所述存储设备和主机组成存储系统,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备,所述方法包括: [〇〇26] The third aspect of the present invention, there is provided a method of managing a storage device, has been established between the storage device is applied to the storage device and a storage system composed of a host, the host and the storage device data channels, but did not create the management channel, a host query through the data channel to the virtual SCSI small computer system interface device, the method comprising:

[0027] 接收所述主机通过所述数据通道发送的第一SCSI请求命令;[〇〇28] 根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机,以便所述主机根据所述管理请求对所述存储设备进行管理;其中,所述管理请求用于请求所述主机对所述存储设备进行管理。 [0027] received by the host SCSI said first channel data transmission request command; [〇〇28] according to the first SCSI request command through the data channel to send management request to the host, so that the the management request to the host to manage the storage device; wherein the management request for requesting the host to manage the storage device.

[0029] 结合第三方面,在一种可能的实现方式中, [0029] reference to the third aspect, in one possible implementation manner,

[0030] 在所述接收所述主机通过所述数据通道发送的第一SCSI请求命令之前,还包括: [0030] before the receiving request command through the host SCSI said first data transmission channel, further comprising:

[0031] 触发请求事件;其中,所述请求事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 [0031] triggering event request; wherein the event is a request to be transmitted to the storage device to trigger said administration request to the host.

[0032] 结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,[〇〇33] 在所述根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机之后,还包括: [0032] reference to the third aspect and the possible implementation manner, in another possible implementation, the [〇〇33] request command through the data channel in accordance with the first SCSI request to the manager to after the host, further comprising:

[0034] 接收所述主机通过所述数据通道发送的第二SCSI请求命令;其中,所述第二SCSI请求命令中包含管理数据,所述管理数据用于对所述存储设备进行管理;[〇〇35] 解析所述第二SCSI请求命令得到所述管理数据; [0034] request command received by the host SCSI said second data transmission channel; wherein said second SCSI request command included in the management data, the management data for the management of the storage apparatus; [square 〇35] parsing the second SCSI request command to obtain the management data;

[0036] 根据所述管理数据对所述存储设备进行管理。 [0036] managing the storage apparatus based on said management data. [〇〇37]结合第三方面和上述可能的实现方式,在另一种可能的实现方式中,[〇〇38] 在所述根据所述管理数据对所述存储设备进行管理之后,还包括: After [〇〇37] combination with the third aspect and the possible implementation manner, in another possible implementation, the [〇〇38] for the management of the storage apparatus according to the management data, the method further comprising :

[0039] 通过所述数据通道向所述主机发送SCSI响应命令;其中,所述SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。 [0039] transmitted through the data channel in response to the host SCSI command; wherein, in response to the SCSI command for notifying the host of the storage management device has been completed.

[0040] 本发明的第四方面,提供一种主机,所述主机和存储设备组成存储系统,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备,所述主机包括: [0040] The fourth aspect of the present invention, there is provided a host, the data path has been established between the host and the storage devices storage system, the host and the storage device, but did not create the management channel, by the host data query to the virtual channel small computer system interface SCSI devices, said host comprising:

[0041] 总线适配卡HBA驱动,用于通过所述数据通道向所述存储设备发送第一SCSI请求命令;[〇〇42] 所述HBA驱动,还用于接收所述存储设备根据所述第一SCSI请求命令通过所述数据通道发送的管理请求;所述管理请求用于请求所述主机对所述存储设备进行管理;[〇〇43] 管理单元,用于根据所述HBA驱动得到的所述管理请求对所述存储设备进行管理。 [0041] Bus Adapter HBA driver for requesting command to the SCSI storage device a first transmission through the data channel; [〇〇42] The HBA driver is further configured to receive the storage device according to the the first SCSI request command requesting the management data sent over the channel; the management request for requesting the host device to manage the memory; [〇〇43] management unit, for obtaining, according to the HBA driver the management request for the management of the storage device.

[0044]结合第四方面,在一种可能的实现方式中,[〇〇45] 所述管理单元,还用于在所述HBA驱动通过所述数据通道向所述存储设备发送第一SCSI请求命令之前,检测到所述存储设备触发了请求事件;其中,所述请求事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 [0044] The binding fourth aspect, in one possible implementation, the [〇〇45] The management unit is further configured to HBA driver in the request sent to the first storage device through the data channel SCSI before the command, the storage device is detected triggering event request; wherein the event is a request to be transmitted to the storage device to trigger said administration request to the host.

[0046]结合第四方面和上述可能的实现方式,在另一种可能的实现方式中,[〇〇47] 所述管理单元,还用于根据所述HBA驱动得到的所述管理请求获取管理数据;[〇〇48] 所述主机,还包括:[〇〇49] SCSI驱动,用于并将所述管理单元得到的所述管理数据封装在第二SCSI请求命令中;其中,所述管理数据用于对所述存储设备进行管理; [0046] The binding of the fourth aspect and the possible implementation manner, in another possible implementation, the [〇〇47] The management unit is further configured to obtain, according to the management of the HBA driver management request obtained transactions; [〇〇48] the host, further comprising: [〇〇49] SCSI drive, and for the management data to the management unit package obtained in the second SCSI request command; wherein said management data for managing the storage device;

[0050] 所述HBA驱动,还用于通过所述数据通道向所述存储设备发送所述SCSI驱动得到的所述第二SCSI请求命令,以便所述存储设备根据所述第二SCSI请求命令中的管理数据进行管理。 [0050] The HBA driver is further configured to transmit the obtained driving the SCSI storage device through the second channel of the SCSI data request command, the request command to the storage device according to the second SCSI the management data is managed.

[0051] 结合第四方面和上述可能的实现方式,在另一种可能的实现方式中, [0051] The binding of the fourth aspect and the possible implementation manner, in another possible implementation manner,

[0052] 所述HBA驱动,还用于在所述通过所述数据通道向所述存储设备发送所述第二SCSI请求命令之后,接收所述存储设备通过所述数据通道发送的SCSI响应命令,所述SCSI 响应命令用于通知所述主机对所述存储设备的管理已完成。 [0052] The HBA driver is further configured to, after the sending the second request command to the SCSI storage device through the data channel, receiving the SCSI storage devices sent through the data channel in response to the command, the SCSI host response command for notifying the manager of the storage device has been completed.

[0053] 结合第四方面和上述可能的实现方式,在另一种可能的实现方式中, [0053] The binding of the fourth aspect and the possible implementation manner, in another possible implementation manner,

[0054] 所述管理单元,还用于生成管理请求; [0054] The management unit is further configured to generate management request;

[0055] 所述SCSI驱动,还用于将所述管理单元得到的所述管理请求封装在SCSI请求命令中;其中,所述管理请求用于请求所述存储设备对所述存储设备进行管理;[〇〇56] 所述HBA驱动,还用于通过所述数据通道向所述存储设备发送所述SCSI驱动得到的所述SCSI请求命令,以便所述存储设备根据所述SCSI请求命令中的管理请求对所述存储设备进行管理。 [0055] The SCSI driver, said further means for managing the request management unit obtained encapsulated SCSI command request; wherein the management request for requesting the storage device to manage the storage device; [〇〇56] the HBA driver is further configured to send the SCSI obtained the SCSI drive the storage device through the data channel request command to the storage device according to the SCSI command management request request for the storage device management.

[0057]结合第四方面和上述可能的实现方式,在另一种可能的实现方式中,[〇〇58] 所述HBA驱动,还用于在所述通过所述数据通道向所述存储设备发送所述SCSI请求命令之后,接收所述存储设备通过所述数据通道发送的管理响应,所述管理响应中包含所述存储设备根据所述管理请求对所述存储设备进行管理后得到的需要向所述主机返回的数据。 [0057] The binding of the fourth aspect and the possible implementation manner, in another possible implementation, the [〇〇58] The HBA driver, for the further apparatus to the storage via the data channel after sending the SCSI request command, the storage management device in response to receiving the data transmitted through the channel, said management response includes the required storage device management request according to the obtained post-storage device to the management of the the host data is returned.

[0059] 本发明的第五方面,提供一种存储设备,所述存储设备和主机组成存储系统,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备,所述存储设备包括: [0059] The fifth aspect of the present invention, there is provided a storage apparatus, a data path has been established between the storage device and a storage system composed of a host, the host and the storage device, but did not create the management channel, the host query through the data channel to the virtual SCSI small computer system interface device, said storage device comprising:

[0060] 总线适配卡HBA驱动,用于接收所述主机通过所述数据通道发送的第一SCSI请求命令; [0060] Bus Adapter HBA driver, for receiving said first SCSI host sends a request command through the data channel;

[0061] 所述HBA驱动,还用于根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机,以便所述主机根据所述管理请求对所述存储设备进行管理;其中,所述管理请求用于请求所述主机对所述存储设备进行管理。 [0061] The HBA driver is further configured according to the first SCSI request command through the data channel to send management request to the host, the host for the storage management apparatus according to the management request; wherein the management request for requesting the host device to the storage management.

[0062] 结合第五方面,在一种可能的实现方式中,还包括:[〇〇63] 管理单元,用于在所述HBA驱动接收所述主机通过所述数据通道发送的第一SCSI 请求命令之前,触发请求事件;其中,所述请求事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 [0062] reference to the fifth aspect, in one possible implementation, further comprising: [〇〇63] management unit for driving the first HBA received by the host SCSI request sent by the data path before the command, an event trigger request; wherein the event is a request to be transmitted to the storage device to trigger said administration request to the host.

[0064]结合第五方面和上述可能的实现方式,在另一种可能的实现方式中,[〇〇65] 所述HBA驱动,还用于在所述根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机之后,接收所述主机通过所述数据通道发送的第二SCSI请求命令; 其中,所述第二SCSI请求命令中包含管理数据,所述管理数据用于对所述存储设备进行管理; [0064] The binding fifth aspect and the possible implementation manner, in another possible implementation, the [〇〇65] The HBA driver is further configured to request, according to the first command is the SCSI after the passage of said data management request to the host, the host transmitting a second SCSI receiving the request command through the data channel; wherein said second SCSI request command included in the management data, the management data for for the management of the storage device;

[0066] 所述存储设备,还包括:[〇〇67] SCSI驱动,用于解析所述HBA驱动得到的所述第二SCSI请求命令得到所述管理数据;[〇〇68] 所述管理单元,还用于根据所述SCSI驱动得到的所述管理数据对所述存储设备进行管理。 [0066] The storage device further comprising: [〇〇67] SCSI drive, for the analysis of the obtained second SCSI HBA driver request command to obtain the management data; [〇〇68] said management unit , but also for the management of the storage apparatus based on said management data obtained the SCSI drive.

[0069] 结合第五方面和上述可能的实现方式,在另一种可能的实现方式中, [0069] The binding fifth aspect and the possible implementation manner, in another possible implementation manner,

[0070] 所述HBA驱动,还用于在所述管理单元根据所述所述管理数据对所述存储设备进行管理之后,通过所述数据通道向所述主机发送SCSI响应命令;其中,所述SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。 [0070] The HBA driver, further, after the managing unit for managing the storage apparatus based on said management data, in response to the SCSI host sends a command through the data channel; wherein said SCSI command for notifying the host in response to the management of the storage device has been completed.

[0071] 本发明的第六方面,提供一种主机,所述主机和存储设备组成存储系统,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备; [0071] A sixth aspect of the present invention, there is provided a host, the data path has been established between the host and the storage devices storage system, the host and the storage device, but did not create the management channel, by the host data query to the virtual channel small computer system interface SCSI devices;

[0072] 所述主机包括:至少一个处理器、存储器、通信接口和总线,所述至少一个处理器、 所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;所述处理器,用于执行所述存储器中存储的可执行程序代码,具体的用于执行以下操作:[〇〇73] 所述处理器,用于通过所述数据通道向所述存储设备发送第一SCSI请求命令;接收所述存储设备根据所述第一SCSI请求命令通过所述数据通道发送的管理请求,所述管理请求用于请求所述主机对所述存储设备进行管理;根据所述管理请求对所述存储设备进行管理。 [0072] The host includes: at least one processor, a memory, a communication interface, and a bus, the at least one processor, the memory and the communication interface and communicate with one another via the bus; said process device for executing said executable program code stored in the memory, particularly for performing the following operations: [〇〇73] the processor, for transmitting to the storage device through the data channel of the first SCSI request command; receiving the storage device according to the first SCSI request command via the management request data sent over the channel, the management request for requesting the host to manage the storage device; according to the request for management the storage management device.

[0074]结合第六方面,在一种可能的实现方式中, [0074] conjunction with the sixth aspect, in one possible implementation manner,

[0075] 所述处理器,还用于在所述通过所述数据通道向所述存储设备发送第一SCSI请求命令之前,检测到所述存储设备触发了请求事件;其中,所述请求事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 [0075] The processor is further configured to prior to the data path to the storage device transmits the first SCSI request command, to the memory device detects a triggering event of the request by; wherein the event is a request the storage device needs to send a trigger when the request to the management host.

[0076] 结合第六方面和上述可能的实现方式,在另一种可能的实现方式中,[〇〇77] 所述处理器,具体用于根据所述管理请求获取管理数据,并将所述管理数据封装在第二SCSI请求命令中;其中,所述管理数据用于对所述存储设备进行管理;通过所述数据通道向所述存储设备发送所述第二SCSI请求命令,以便所述存储设备根据所述第二SCSI请求命令中的管理数据进行管理。 [0076] conjunction with the sixth aspect and the possible implementation manner, in another possible implementation, the [〇〇77] the processor is configured to obtain management data according to the management request, and the in the second management data is encapsulated SCSI command request; wherein the management data for the management of the storage device; sending a request command to the second SCSI storage device through the data channel, so that the storage management device according to the second SCSI request command management data.

[0078] 结合第六方面和上述可能的实现方式,在另一种可能的实现方式中, [0078] conjunction with the sixth aspect and the possible implementation manner, in another possible implementation manner,

[0079] 所述处理器,还用于在所述通过所述数据通道向所述存储设备发送所述第二SCSI 请求命令之后,接收所述存储设备通过所述数据通道发送的SCSI响应命令,所述SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。 [0079] The processor is further configured to, after the sending the second request command to the SCSI storage device through the data channel, receiving the SCSI storage devices sent through the data channel in response to the command, the SCSI host response command for notifying the manager of the storage device has been completed.

[0080] 结合第六方面和上述可能的实现方式,在另一种可能的实现方式中, [0080] conjunction with the sixth aspect and the possible implementation manner, in another possible implementation manner,

[0081] 所述处理器,还用于生成管理请求,并将所述管理请求封装在SCSI请求命令中;其中,所述管理请求用于请求所述存储设备对所述存储设备进行管理;通过所述数据通道向所述存储设备发送所述SCSI请求命令,以便所述存储设备根据所述SCSI请求命令中的管理请求对所述存储设备进行管理。 [0081] The processor is further configured to generate management request, and the package management request in the SCSI request command; wherein, the device management request for requesting the storage to manage the storage device; by the data channel is transmitted to the storage device requesting the SCSI command to the storage device according to the SCSI request command requests the management of the management storage device.

[0082] 结合第六方面和上述可能的实现方式,在另一种可能的实现方式中, [0082] conjunction with the sixth aspect and the possible implementation manner, in another possible implementation manner,

[0083] 所述处理器,还用于在所述通过所述数据通道向所述存储设备发送所述SCSI请求命令之后,接收所述存储设备通过所述数据通道发送的管理响应,所述管理响应中包含所述存储设备根据所述管理请求对所述存储设备进行管理后得到的需要向所述主机返回的数据。 [0083] The processor is further configured to, after the transmission of the request command to the SCSI storage device, said storage device in response to reception management transmitted through the data path through the data channel, said management the response contains the data to be returned to said host storage device management request in accordance with the obtained after the management of the storage device.

[0084] 本发明的第七方面,提供一种存储设备,所述存储设备和主机组成存储系统,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备;[〇〇85] 所述存储设备包括:至少一个处理器、存储器、通信接口和总线,所述至少一个处理器、所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;所述处理器,用于执行所述存储器中存储的可执行程序代码,具体的用于执行以下操作: A seventh aspect of the [0084] present invention, there is provided a storage apparatus, a data path has been established between the storage device and a storage system composed of a host, the host and the storage device, but did not create the management channel, the host queried virtual small computer system interface SCSI device through the data channel; [〇〇85] the storage apparatus comprising: at least one processor, a memory, a communication interface, and a bus, the at least one processor, the memory and the communication interface is connected through the bus and communicate with one another; said processor for executing said executable program code stored in the memory, particularly for performing the following operations:

[0086] 所述处理器,用于接收所述主机通过所述数据通道发送的第一SCSI请求命令;根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机,以便所述主机根据所述管理请求对所述存储设备进行管理;其中,所述管理请求用于请求所述主机对所述存储设备进行管理。 [0086] The processor for receiving the first host through the SCSI data request command transmission channel; SCSI request command according to the first through the data channel to send management request to the host, so as to the host according to the management request the management of the storage device; wherein the management request for requesting the host to manage the storage device.

[0087] 结合第七方面,在一种可能的实现方式中,[〇〇88] 所述处理器,还用于在所述接收所述主机通过所述数据通道发送的第一SCSI请求命令之前,触发请求事件;其中,所述请求事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 [0087] reference to the seventh aspect, in one possible implementation, the [〇〇88] The processor is further for receiving said host prior to said transmission of said data through a first channel SCSI request command , event trigger request; wherein the event is a request to be transmitted to the storage device to trigger said administration request to the host.

[0089] 结合第七方面和上述可能的实现方式,在另一种可能的实现方式中, [0089] reference to the seventh aspect and the possible implementation manner, in another possible implementation manner,

[0090] 所述处理器,还用于在所述根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机之后,接收所述主机通过所述数据通道发送的第二SCSI请求命令;其中,所述第二SCSI请求命令中包含管理数据,所述管理数据用于对所述存储设备进行管理; 解析所述第二SCSI请求命令得到所述管理数据;根据所述管理数据对所述存储设备进行管理。 The second [0090] The processor is further configured to, after the first, according to the SCSI request command through the data channel to send management request to the host, the host receives transmitted through the data channel SCSI request command; wherein said second SCSI request command included in the management data, the management data for the management of the storage device; parsing the second SCSI request command to obtain the management data; according to the management the data storage device management.

[0091]结合第七方面和上述可能的实现方式,在另一种可能的实现方式中,[〇〇92] 所述处理器,还用于在所述根据所述管理数据对所述存储设备进行管理之后,通过所述数据通道向所述主机发送SCSI响应命令;其中,所述SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。 [0091] reference to the seventh aspect and the possible implementation manner, in another possible implementation, the [〇〇92] The processor is further configured in the device according to the management of the data storage after administration, the transmission through the data channel in response to the host SCSI command; wherein, in response to the SCSI command for notifying the host of the storage management device has been completed.

[0093] 本发明实施例提供的存储设备的管理方法及设备,主机通过数据通道向存储设备发送第一SCSI请求命令,以便存储设备在接收到第一SCSI请求命令之后,在存储设备有管理请求需要主机进行处理时,根据第一SCSI请求命令通过数据通道向主机发送管理请求, 进而主机根据接收到的管理请求对存储设备进行管理,在主机和存储设备之间仅建立了数据通道且尚未配置SCSI设备给主机的情况下,通过数据通道实现了对存储设备的管理。 [0093] The storage management method and apparatus according to an embodiment of the present invention, the host transmits a request command to the storage device via a first data channel SCSI, to the storage device after receiving the first SCSI request command in a storage device with a management request when the host needs to be processed, according to the first SCSI request command through the data channel request to send the management host, and thus the host requests the storage device to be managed according to the received management between hosts and storage devices and the data channel is established only not configured the case where the SCSI device to the host, through the data channel to achieve the management of the storage device. 附图说明 BRIEF DESCRIPTION

[0094] 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。 [0094] In order to more clearly illustrate the technical solutions in the embodiments or the prior art embodiment of the present invention, the accompanying drawings for illustrating the prior art or the need to use the description will be briefly described embodiment. [〇〇95]图1为本发明实施例1提供的一种存储设备的管理方法流程图; [〇〇95] FIG. 1 is a flowchart of a method for managing a storage device provided in Example 1 of the present embodiment of the invention;

[0096]图2为本发明实施例2提供的一种存储设备的管理方法流程图;[〇〇97]图3为本发明实施例3提供的一种存储设备的管理方法流程图;[〇〇98]图4为本发明实施例4提供的一种存储设备的管理方法流程图; [0096] FIG 2 is a flowchart of a method for managing the storage apparatus 2 according to an embodiment of the invention; [〇〇97] FIG 3 a flow diagram of a method for managing a storage device provided in Example 3 of the present embodiment of the invention; [square 〇98] FIG 4 is a flowchart of a method for managing a storage device provided in Example 4 of the present embodiment of the invention;

[0099] 图5为本发明实施例4提供的另一种存储设备的管理方法流程图; [0099] FIG 5 is a flowchart of another storage device management method according to an embodiment 4 of the present invention;

[0100] 图6为本发明实施例5提供的一种主机的组成示意图; [0100] FIG. 6 is a schematic view of the composition of one embodiment of the host 5 provides the embodiment of the invention;

[0101] 图7为本发明实施例5提供的另一种主机的组成示意图; [0101] FIG. 7 is a schematic diagram illustrating another embodiment of the host 5 provides the embodiment of the invention;

[0102] 图8为本发明实施例6提供的一种主机的组成示意图; [0102] FIG. 8 is a schematic view of the composition of one embodiment of a host to an embodiment 6 of the present invention;

[0103] 图9为本发明实施例7提供的一种存储设备的组成示意图; [0103] FIG. 9 is a schematic diagram of apparatus constituting a memory provided in Example 7 of the present invention;

[0104] 图10为本发明实施例7提供的另一种存储设备的组成示意图; [0104] FIG. 10 is a schematic composition of another embodiment of a storage device provided by the embodiment of the present invention 7;

[0105] 图11为本发明实施例8提供的一种主机的组成示意图; [0105] FIG. 11 is a schematic view of the composition of one embodiment of host 8 provides the embodiment of the invention;

[0106] 图12为本发明实施例9提供的一种主机的组成示意图; [0106] FIG. 12 is a schematic view of the composition of one embodiment of a host to an embodiment 9 of the present invention;

[0107] 图13为本发明实施例10提供的一种存储设备的组成示意图; [0107] FIG 13 a schematic view of the composition of one storage device provided in Example 10 of the present invention;

[0108] 图14为本发明实施例11提供的一种存储系统的组成示意图。 [0108] FIG. 14 is schematic diagram illustrating a storage system provided in Example 11 of the present invention. 具体实施方式 detailed description

[0109] 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 [0109] below in conjunction with the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described embodiments are merely part of embodiments of the present invention, but not all embodiments example.

[0110] 另外,本文中术语“系统”和“网络”在本文中常被可互换使用。 [0110] Further, the terms "system" and "network" are often used interchangeably herein. 本文中术语“和/ 或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。 The term "and / or" merely describe a relationship of associated objects representing three relationships may exist. 例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。 For example, A and / or B, may be expressed: A exists alone, A and B are present at the same time, B exists three cases. 另外,本文中字符7”,一般表示前后关联对象是一种“或”的关系。 Further, the character 7 'generally indicates a context-target "or" relationship.

[0111] 实施例1 [0111] Example 1

[0112] 本发明实施例1提供一种存储设备的管理方法,应用于主机,该主机和存储设备组成存储系统。 It provided a storage device management method Example 1 [0112] The present invention, applied to the host, the host and the storage system storage devices. 主机和存储设备之间已建立数据通道,但尚未建立管理通道,且尚未配置SCSI 设备给主机。 It has been established between the host and storage device data channel, but the channel management has not been established, and has not been configured SCSI devices to the host. 在主机与存储设备之间的数据通道建立完成之后,主机针对存储设备启动扫描逻辑单元号(Logical Unit Number,LUN)动作,该扫描LUN动作用于查询是否有可用的SCSI设备。 After the data path between the host and the storage device is created, the storage device for the host to start the scanning logic unit number (Logical Unit Number, LUN) operation, the scanning operation is used to query whether a LUN SCSI devices available. 当存储设备检测到主机的扫描LUN动作时,可以通过建立的数据通道上报一个虚拟的SCSI设备给主机,主机便可以查询到该虚拟的SCSI设备,即主机查询到有可用的SCSI 设备,此时主机便可以对存储设备进行访问。 When the memory device detects the scanning operation of the host LUN and to be reported by establishing a virtual data channel SCSI device to the host, the host will be able to query the virtual SCSI devices, i.e., the query to the host SCSI device is available, then the host can access the storage device. 其中,本发明实施例中所述的虚拟的SCSI设备为一个未分配物理空间,不支持读写,支持少数私有命令,支持数据通道连接时的扫描LUN 动作(即主机可以扫描到该虚拟的SCSI设备)的特殊的SCSI设备。 Wherein the virtual SCSI device described in the embodiment of the present invention is not assigned to a physical space, does not support the read and write commands to support a small number of private support LUN scanning operation when a data channel connection (i.e., the host can be scanned into the virtual SCSI equipment) special SCSI devices. [〇113] 需要说明的是,本发明实施例中主要是存储设备通过已建立的数据通道主动向主机发送管理请求,以便主机可以根据管理请求对存储设备进行管理。 [〇113] Incidentally, in the embodiment of the present invention it is mainly active storage device management request sent to the host through the established data channel, so that the host can manage the storage apparatus according to the management request. 如图1所示,该方法可以包括: As shown in FIG 1, the method may comprise:

[0114] 101、主机通过已建立的数据通道向存储设备发送第一SCSI请求命令。 [0114] 101, the host request command through the established data channel to send a first SCSI storage devices. [〇115] 第一SCSI请求命令用于读取存储设备的需要主机处理的管理请求,例如第一SCSI 请求命令可以为mode sense命令。 [〇115] request command for managing the first SCSI host processing read requests require the storage device, for example the first command request may be a SCSI mode sense command. 主机可以通过与存储设备之间已建立的数据通道将用于读取存储设备的需要主机处理的管理请求的第一SCSI请求命令发送至存储设备。 Can be established between the host and the storage device through the data channel needs to be used for the first SCSI Manager host processing apparatus reads the stored request command to the storage device. 这样,当存储设备接收到主机通过数据通道发送的第一SCSI请求命令之后,若存储设备有管理请求需要主机进行处理,此时存储设备便可以根据接收到的第一SCSI请求命令通过数据通道将管理请求发送至主机。 Thus, when the first SCSI storage devices to the host receives the transmission request command through the data channel, if the memory device has a host management request needs to be treated, and the storage device may request a SCSI command according to the first received through the data channel management request sent to the host.

[0116] 102、主机接收存储设备根据第一SCSI请求命令通过数据通道发送的管理请求。 [0116] 102, the host device receives a storage management request through the request command transmitted in accordance with a first data channel SCSI. 管理请求用于请求主机对存储设备进行管理。 Management request for requesting the host device to the storage management. [〇117] 103、主机根据管理请求对存储设备进行管理。 [〇117] 103, the host apparatus according to the management of the storage management request. [〇118] 例如,管理请求中指示了需要进行管理的类型、管理的对象等信息,主机可以根据管理请求中的指示信息进行对应的管理动作。 [〇118] For example, management information indicating the type of the request need to be managed, the management of objects, etc., the host can manage the operation according to the instruction corresponding to the management information request.

[0119] 需要说明的是,在本发明实施例中,主机可以定时的向存储设备发送第一SCSI请求命令。 [0119] Incidentally, in the embodiment, the host may send a first timing SCSI request command to the storage device in the embodiment of the present invention. 这样当存储设备有管理请求需要主机进行处理时,主机便可以通过定时发送的第一SCSI请求命令来获取存储设备的管理请求。 So that when there is a storage device management request processing requires a host, the host can be a storage device management request acquiring request command transmitted by the timing of the first SCSI. 也就是说,在本发明实施例中,可以重复执行步骤101,以便主机可以立即获取到存储设备的管理请求,进而根据管理请求及时的对存储设备进行管理。 That is, in the embodiment of the present invention, step 101 may be repeatedly performed, so that the host can immediately obtain management request to the storage device, and thus on the storage device managed according to the management request timely.

[0120] 本发明实施例提供的存储设备的管理方法,主机通过数据通道向存储设备发送第一SCSI请求命令,以便存储设备在接收到第一SCSI请求命令之后,在存储设备有管理请求需要主机进行处理时,根据第一SCSI请求命令通过数据通道向主机发送管理请求,进而主机根据接收到的管理请求对存储设备进行管理,在主机和存储设备之间仅建立了数据通道且尚未配置SCSI设备给主机的情况下,通过数据通道实现了对存储设备的管理。 Storage management method according to an embodiment of the [0120] present invention, the host transmits a request command to the storage device via a first data channel SCSI, to the storage device after receiving the first SCSI request command, the host needs to have a management request in a storage device when processing request according to a first SCSI commands through the data channel send management request to the host, and then the host requests the storage device to be managed according to the received management between hosts and storage devices and only the data channel is established SCSI device is not configured in the case of the host, through the data channel to achieve the management of the storage device.

[0121] 实施例2 [0121] Example 2

[0122] 本发明实施例2提供一种存储设备的管理方法,应用于主机,该主机和存储设备组成存储系统。 Provided a storage device management method in Example 2 [0122] The present invention, applied to the host, the host and the storage system storage devices. 并且,主机和存储设备之间已建立数据通道,但尚未建立管理通道,且尚未配置SCSI设备给主机。 And it has been established between the host and the storage device data channels, but did not create the management channel, and is not configured to the host SCSI device. 在主机与存储设备之间数据通道建立完成之后,主机针对存储设备启动扫描LUN动作,该扫描LUN动作用于查询是否有可用的SCSI设备,当存储设备检测到主机的扫描LUN动作时,可以通过建立的数据通道上报一个虚拟的SCSI设备给主机,主机便可以查询到该虚拟的SCSI设备,即主机查询到有可用的SCSI设备,此时主机便可以对存储设备进行访问。 After the completion of the establishment of data channel between the host and the storage device, the storage device for the host to start a scanning operation LUN, the LUN scanning operation for queries whether SCSI devices are available when the memory device detects the scanning operation of the host LUN can be produced by established data channel reported a virtual SCSI devices to the host, the host will be able to query the virtual SCSI devices that are available to query the host SCSI device that the host can access the storage device. 其中,本发明实施例中所述的虚拟的SCSI设备为一个未分配物理空间,不支持读写,支持少数私有命令,支持数据通道连接时的扫描LUN动作(即主机可以扫描到该虚拟的SCSI设备)的特殊的SCSI设备。 Wherein the virtual SCSI device described in the embodiment of the present invention is not assigned to a physical space, does not support the read and write commands to support a small number of private support LUN scanning operation when a data channel connection (i.e., the host can be scanned into the virtual SCSI equipment) special SCSI devices.

[0123] 需要说明的是,本发明实施例中主要是主机通过已建立的数据通道向存储设备发送管理请求,以便存储设备可以根据管理请求对存储设备进行管理。 [0123] Incidentally, in the embodiment of the present invention it is primarily the host sends a management request to the storage device through the established data channel to the storage device of the storage device can be managed according to the management request. 如图2所示,该方法可以包括: As shown, the method may include:

[0124] 201、主机生成管理请求,并将管理请求封装在SCSI请求命令中。 [0124] 201, the host generates a management request, and the request management request encapsulated SCSI command.

[0125] 其中,管理请求用于请求存储设备对存储设备进行管理。 [0125] wherein the storage device management request for requesting the storage device management. 当主机需要对存储设备进行管理时,可以生成管理请求,并将管理请求封装在SCSI请求命令中。 When the host needs to manage the storage device, management request may be generated, and the package management request in the SCSI request command.

[0126] 202、主机通过数据通道向存储设备发送SCSI请求命令,以使存储设备根据SCSI请求命令中的管理请求对存储设备进行管理。 [0126] 202, the host transmits a request command to the SCSI storage device through the data channel, so that the storage device according to the SCSI request command device management request to the memory management.

[0127] 主机生成管理请求,并将管理请求封装在SCSI请求命令中,通过数据通道将该SCSI请求命令发送至存储设备。 [0127] The host generates a management request, and the request management request encapsulated SCSI command by the SCSI data channel request command to the storage device. 这样,当存储设备接收到主机通过数据通道发送的SCSI请求命令之后,存储设备对接收到的SCSI请求命令进行解析获得封装在该SCSI请求命令中的管理请求,存储设备根据管理请求对存储设备进行管理。 Thus, when the SCSI storage devices to the host receives the transmission request command through the data channel, the received SCSI storage devices request command parsing obtained packaged in the SCSI request management request command, the storage device of the storage device management request in accordance with management.

[0128] 本发明实施例提供的存储设备的管理方法,主机通过数据通道向存储设备发送封装了管理请求的SCSI请求命令,以便存储设备在接收到SCSI请求命令之后,根据SCSI请求命令中封装的管理请求对存储设备进行管理,在主机和存储设备之间仅建立了数据通道且尚未配置SCSI设备给主机的情况下,通过数据通道实现了对存储设备的管理。 [0128] management method of a storage apparatus according to an embodiment of the present invention, the host transmits encapsulate the storage device through the data channel management request SCSI request command to the storage device after receiving the SCSI request command according to the SCSI request command encapsulated management request to the memory management device, between the host and the storage device only the data channel is established and is not configured to a case where the host SCSI device, to achieve the management of the storage device through the data channel.

[0129] 实施例3[〇13〇] 本发明实施例3提供一种存储设备的管理方法,应用于存储设备,存储设备和主机组成存储系统。 [0129] Example 3 [〇13〇] Example 3 provides a storage device management method of the present invention, it applied to a memory device, a storage device and a storage system composed of a host embodiment. 其中,主机和存储设备之间已建立数据通道,但尚未建立管理通道,且尚未配置SCSI设备给主机,在主机与存储设备之间数据通道建立完成之后,主机针对存储设备启动扫描LUN动作,该扫描LUN动作用于查询是否有可用的SCSI设备,当存储设备检测到主机的扫描LUN动作时,可以通过建立的数据通道上报一个虚拟的SCSI设备给主机,主机便可以查询到该虚拟的SCSI设备,即主机查询到有可用的SCSI设备,此时主机便可以对存储设备进行访问。 Wherein a connection between the host and the storage device data channels, but did not create the management channel, and a SCSI device is not configured to the host, after the completion of the establishment of a data path between the host and the storage device, the storage device for the host LUN scanning operation starts, the LUN scanning operation is used to query whether the SCSI device is available, when the storage device detection of the scanning operation of the host LUN, may report a virtual SCSI device through the established data channel to the host, the host will be able to query the virtual SCSI device That is, hosts inquiry to SCSI devices are available when the host can access the storage device. 其中,本发明实施例中所述的虚拟的SCSI设备为一个未分配物理空间,不支持读写,支持少数私有命令,支持数据通道连接时的扫描LUN动作(即主机可以扫描到该虚拟的SCSI设备)的特殊的SCSI设备。 Wherein the virtual SCSI device described in the embodiment of the present invention is not assigned to a physical space, does not support the read and write commands to support a small number of private support LUN scanning operation when a data channel connection (i.e., the host can be scanned into the virtual SCSI equipment) special SCSI devices. [〇131] 需要说明的是,本发明实施例中主要是存储设备通过已建立的数据通道主动向主机发送管理请求,以便主机可以根据管理请求对存储设备进行管理。 [〇131] Incidentally, in the embodiment of the present invention it is mainly active storage device management request sent to the host through the established data channel, so that the host can manage the storage apparatus according to the management request. 如图3所示,该方法可以包括: As shown in FIG. 3, the method may comprise:

[0132] 301、存储设备接收主机通过数据通道发送的第一SCSI请求命令。 [0132] 301, a first receiving host SCSI storage devices is transmitted through the data channel request command.

[0133] 其中,第一SCSI请求命令用于读取存储设备的需要主机处理的管理请求,例如第一SCSI请求命令可以为mode sense命令。 [0133] wherein the first request command for managing a SCSI host processing request requires reading the storage device, for example the first command request may be a SCSI mode sense command.

[0134] 302、存储设备根据第一SCSI请求命令通过数据通道将管理请求发送至主机,以便主机根据管理请求对存储设备进行管理。 [0134] 302, the storage device transmits the request command to the host management request through the data channel according to a first SCSI, to the host apparatus according to the management of the storage management request. 其中,管理请求用于请求主机对存储设备进行管理。 Wherein the management request for requesting the host device to the storage management.

[0135] 在存储设备接收到主机通过数据通道发送的第一SCSI请求命令后,存储设备可以先判断是否有管理请求需要主机进行处理,并在确定有管理请求需要主机进行处理时,存储设备可以根据接收到的第一SCSI请求命令将管理请求通过数据通道发送至主机。 When [0135] After receiving the first storage device host SCSI request command transmitted through the data channel, the storage device may first need to determine whether there is a host management request is processed, and determine the need host management request processing, the storage device may according to a first SCSI command received request management request to the host computer through the data channel. 这样, 当主机接收到存储设备通过数据通道发送的管理请求之后,便可以根据该管理请求对存储设备进行管理。 Thus, when the host receives the storage device management request sent through the data channel, then the storage device can be managed according to the management request.

[0136] 本发明实施例提供的存储设备的管理方法,存储设备接收到主机通过数据通道发送的第一SCSI请求命令之后,可以根据接收到的第一SCSI请求命令通过数据通道向主机发送管理请求,以便主机根据接收到的管理请求对存储设备进行管理,在主机和存储设备之间仅建立了数据通道且尚未配置SCSI设备给主机的情况下,通过数据通道实现了对存储设备的管理。 [0136] management method, a storage device the storage device provided in embodiments of the present invention, after receiving a request command through the host SCSI data channel transmitted first, according to the first SCSI request command can be received through the data channel to send a request to the host management , so that the host receives a management request to the storage management devices, between the host and the storage device only and the data channel has not been established SCSI devices are configured according to a case where the host, through the data channel to achieve the management of the storage device.

[0137] 实施例4 [0137] Example 4

[0138] 本发明实施例4提供一种存储设备的管理方法,应用于由主机和存储设备组成的存储系统中,且主机与存储设备之间已建立数据通道,但尚未建立管理通道,且尚未配置SCSI设备给主机。 [0138] to provide a storage device management method of the present invention, Example 4, and by the host to the storage system consisting of storage device, and a data channel has been established between the host and the storage device, but did not create the management channel, and yet Configuring SCSI devices to the host. 在主机与存储设备之间数据通道建立完成之后,主机针对存储设备启动扫描LUN动作,该扫描LUN动作用于查询是否有可用的SCSI设备,当存储设备检测到主机的扫描LUN动作时,可以通过建立的数据通道上报一个虚拟的SCSI设备给主机,主机便可以查询到该虚拟的SCSI设备,即主机查询到有可用的SCSI设备,此时主机便可以对存储设备进行访问。 After the completion of the establishment of data channel between the host and the storage device, the storage device for the host to start a scanning operation LUN, the LUN scanning operation for queries whether SCSI devices are available when the memory device detects the scanning operation of the host LUN can be produced by established data channel reported a virtual SCSI devices to the host, the host will be able to query the virtual SCSI devices that are available to query the host SCSI device that the host can access the storage device. 其中,本发明实施例中所述的虚拟的SCSI设备为一个未分配物理空间,不支持读写,支持少数私有命令,支持数据通道连接时的扫描LUN动作(即主机可以扫描到该虚拟的SCSI设备)的特殊的SCSI设备。 Wherein the virtual SCSI device described in the embodiment of the present invention is not assigned to a physical space, does not support the read and write commands to support a small number of private support LUN scanning operation when a data channel connection (i.e., the host can be scanned into the virtual SCSI equipment) special SCSI devices.

[0139] 在本发明实施例的一种应用场景中,存储设备通过已建立的数据通道主动向主机发送管理请求,以便主机可以根据管理请求对存储设备进行管理,如图4所示,该方法可以包括:[〇14〇] 401、存储设备的管理单元触发请求事件。 [0139] In one embodiment of the application scenario of the present invention, the storage device actively request through the established data channel to send the management host so that the host can manage the storage apparatus according to the management request, as shown in FIG. 4, the method It may include: [〇14〇] 401, the storage device management unit triggering event requests. [〇141] 其中,请求事件为存储设备需要向主机发送管理请求时触发的,该请求事件用于通知主机有管理请求需要其进行处理。 [〇141] wherein, when the request event to the host needs to send a request to the storage management device trigger, the request for an event notification request a managed host in need thereof for treatment. 当存储设备需要向主机发送管理请求时,也就是说, 存储设备有管理请求需要主机进行处理时,存储设备的管理单元可以触发请求事件,以便主机可以获知存储设备有管理请求需要处理。 When a storage device needs to send management request to the host, i.e., the storage device managed host requests require processing, storage device management unit may request trigger event, so that the host can know the storage device with a management request to process.

[0142] 402、主机的管理单元检测到存储设备的管理单元触发了请求事件。 [0142] 402, the host device to the storage management unit detects the request management unit triggering event.

[0143] 其中,主机为了可以及时获知存储设备是否有管理请求需要处理,主机的管理单元可以检测存储设备的管理单元是否触发了请求事件。 [0143] wherein, in order to be informed of whether the host device has a storage management request to process, the host management unit may detect whether or not the storage apparatus management unit requests triggered event. 示例性的,对于主机检测存储设备是否有管理请求需要处理的过程,可以采用SCSI协议中的Unit Attent1n方式来实现。 Exemplary, the process for detecting whether or not the host device has a storage management request to be processed, may be implemented in Unit Attent1n the SCSI protocol. 具体的,主机的管理单元可以向存储设备的管理单元注册事件捕捉器,当存储设备有管理请求需要主机进行处理时,存储设备的管理单元可以触发Unit Attent1n事件,这样主机的管理单元便可以检测到存储设备的管理单元触发了Unit Attent1n事件,此时主机便可获知存储设备有管理请求需要处理。 Specifically, the host management unit may snap-register event trap to the storage device when the storage device has a management request requires a host processing, storage device management unit may trigger Unit Attent1n event, so the host management unit will be able to detect to the storage device management unit triggers unit Attent1n event that the host can learn a managed storage devices need to process the request.

[0144] 403、主机的总线适配卡(Host Bus Adapter,HBA)驱动通过数据通道向存储设备的HBA驱动发送第一SCSI请求命令。 [0144] 403, the host bus adapter (Host Bus Adapter, HBA) is driven by a data driver transmits a first channel to a SCSI HBA store request command device.

[0145] 主机的管理单元检测到存储设备的管理单元触发了请求事件之后,主机的HBA驱动通过与存储设备已建立的数据通道向存储设备的HBA驱动发送第一SCSI请求命令。 After [0145] the host device to the storage management unit detects the request management unit triggering event, HBA drivers, the host SCSI drive transmission request command through the first storage device has been established for the HBA data path in the storage device. 其中, 第一SCSI请求命令用于读取存储设备的需要主机处理的管理请求,例如第一SCSI请求命令可以为mode sense命令。 Wherein the first request command is used to manage the SCSI host processing read requests require the storage device, for example the first command request may be a SCSI mode sense command.

[0146] 示例性的,主机的HBA驱动向存储设备发送的第一SCSI请求命令中可以包含SCSI 命令描述块(Command Descript1n Block,CDB)和数据传输方向等参数。 [0146] Exemplary, first SCSI HBA driver of the host to the storage device transmits the request command may be contained in the SCSI command descriptor block parameters (Command Descript1n Block, CDB) and the direction of data transmission. 其中,SCSI CDB对该第一SCSI请求命令进行了描述,其第一个字节代表操作码,用于表示该第一SCSI请求命令用于读取存储设备的需要主机处理的管理请求,SCSI CDB的其他字节为可选参数,可以根据操作码的不同以及应用场景的实际需求进行选择,本发明实施例在此不做限制。 Wherein, the first SCSI the CDB SCSI request command has been described, its operation first byte represents a code for indicating the first request command for managing a SCSI host processing request requires reading the storage device, the CDB SCSI other optional parameter bytes, and can be selected according to the actual needs of different application scenarios of the operation code, embodiments of the present invention is not limited in this embodiment. 数据传输方向用于指示该第一SCSI请求命令的传输方向为由存储设备向主机反馈信息。 Data transmission direction for indicating the direction of the first transmission request command of SCSI storage device by the feedback information to the host. 在主机的HBA驱动通过数据通道向存储设备发送第一SCSI请求命令之前,主机的SCSI驱动可以根据SCSI协议的要求将SCSI CDB、数据传输方向以及其他输入输出(Input Output,10)属性等参数填充到第一SCSI请求命令中,然后将填充了SCSI CDB、数据传输方向以及其他输入输出(Input Output,10)属性等参数的第一SCSI请求命令发送至主机的HBA驱动,主机的HBA驱动将第一SCSI请求命令的格式转换为可以在以光纤通道等方式承载的数据通道上传输的格式,最后再通过与存储设备已建立的数据通道将第一SCSI请求命令发送至存储设备。 Before sending a request command to the storage device via a first data channel SCSI HBA driver in the host, the host SCSI drives SCSI protocol according to the requirements of the SCSI the CDB, the data transmission direction and other input-output (Input Output, 10) filling property parameters SCSI request to the first command, and then filled with the CDB SCSI, SCSI parameter of the first transmission direction and other data input and output (input output, 10) attributes command to the HBA driver request host, the host drives the first HBA a SCSI command format of the request into a format that can be transmitted on the data channel to carry the fiber channel, etc., and finally by the data storage device has been established the first channel request command to the SCSI storage device.

[0147] 需要说明的是,在本发明实施例中,主机的HBA驱动可以定时的向存储设备发送第一SCSI请求命令。 [0147] Incidentally, in this embodiment, HBA drivers, the host may send a first timing SCSI request command to the storage device in the embodiment of the present invention. 这样,当存储设备有管理请求需要主机处理,并在接收到主机的HBA驱动发送的第一SCSI请求命令时,存储设备的HBA驱动便可以通过数据通道根据的第一SCSI请求命令将管理请求发送至主机,也就是说本发明实施例中当存储设备有管理请求需要进行处理的,可以不触发请求事件,而是等待主机的HBA驱动发送用于读取存储设备的需要主机处理的管理请求的第一SCSI请求命令,并在接收到第一SCSI请求命令之后,根据第一SCSI 请求命令将管理请求发送至主机,即本发明实施例中的步骤401和步骤402为可选的步骤。 Thus, when the storage device has required host processing management request, and receives the first host SCSI HBA driver transmission request command, the HBA driver can storage device through the data channel according to a first SCSI command request management request to the host, that embodiments of the present invention has a management request when the storage device need to be processed, the request event may not be triggered, but waits for the host transmits a HBA driver management requires host processing read request to the storage device the first SCSI request command, and after receiving the first request command SCSI, SCSI request command according to a first management request to the host, the procedure of Example 401 and step 402 of embodiment that is an optional step of the present invention. 但是,为了使得在存储设备有管理请求需要处理时,可以及时的获取到存储设备的管理请求,优选的,可以通过执行步骤401和步骤402,当存储设备有管理请求需要处理时触发请求事件,在检测到存储设备触发了请求事件时,主机的HBA驱动便可以向存储设备发送用于读取存储设备的需要主机处理的管理请求的第一SCSI请求命令,以便及时获取到存储设备的管理请求。 However, in order that the storage device managed request needs treatment can timely obtain the management request storage device, preferably to be 402, triggering request event when the storage device has a management request requires processing by executing step 401 and step upon detecting a storage device triggers a request event, HBA drivers, the host can send to the storage device management needs for the first SCSI host processing storage devices read request command, so that timely access to the storage device management request .

[0148] 404、存储设备的HBA驱动接收主机的HBA驱动通过数据通道发送的第一SCSI请求命令。 [0148] 404, HBA device driver storage HBA driver of the receiving host via a first channel to send the SCSI data request command.

[0149] 示例性的,存储设备的HBA驱动接收到主机的HBA驱动发送的第一SCSI请求命令后,存储设备的JfflA驱动将第一SCSI请求命令的在以光纤通道等方式承载的数据通道上传输的格式转换为SCSI协议要求的格式,然后将经格式转换后的第一SCSI请求命令发送至存储设备的SCSI驱动,以便存储设备的SCSI驱动可以对第一SCSI请求命令进行解析。 In the data path to Fiber Channel SCSI first embodiment of the carrier [0149] Exemplary HBA, the storage device driver to the host HBA driver received after transmission request command, JfflA drive storage device of the first SCSI request command SCSI transmission format conversion to the format required by the protocol, then the first request command via the SCSI format conversion to the storage device SCSI drive, a SCSI drive to the storage device may request the first SCSI command parsing.

[0150] 405、存储设备的HBA驱动根据第一SCSI请求命令通过数据通道将管理请求发送至主机的HBA驱动。 [0150] 405, HBA drive storage request command to the HBA driver management data channel request to the host according to the first SCSI. 该管理请求用于请求主机对存储设备进行管理。 The management request for requesting the host device to the storage management.

[0151] 其中,在存储设备的HBA驱动将第一SCSI请求命令进行格式转换后发送至存储设备的SCSI驱动之后,存储设备的SCSI驱动可以对第一SCSI请求命令进行解析得到的第一SCSI请求命令中包含的用于表示该第一SCSI请求命令用于读取存储设备的需要主机处理的管理请求的SCSI⑶B,并将该SCSI CDB发送至存储设备的HBA驱动,存储设备的HBA驱动根据得到的SCSI⑶B通过数据通道将管理请求发送至主机的HBA驱动。 After transmission [0151] wherein, in the HBA device driver of the first storage request SCSI command format conversion to the storage device after a SCSI drive, a SCSI drive storage device for the first SCSI request command can be obtained by parsing a first SCSI Request included in the command for indicating the request command for the first SCSI SCSI⑶B management requires host processing device reads the stored request, and transmitted to the SCSI CDB HBA store device drivers, drive storage device according to the HBA obtained SCSI⑶B through the data channel request to the management host HBA driver. 具体的,存储设备的SCSI驱动可以根据第一SCSI请求命令中的SCSI CDB确定该第一SCSI请求命令用于读取需要主机处理的管理请求,此时存储设备的管理单元可以分配缓存空间,并将需要主机处理的管理请求存储在已分配的缓存空间中,然后存储设备的HBA驱动将存储在缓存空间中的管理请求通过数据通道发送至主机的HBA驱动。 In particular SCSI drive, the storage device may be a first SCSI request command determines that the SCSI CDB SCSI request command for reading a first host processing required in accordance with the management request, then the storage device management unit may allocate cache space, and the need to manage host processing request is stored in the cache space allocated, the HBA and the storage device driver will be stored in the cache management space HBA driver request to the host through the data channel.

[0152] 406、主机的HBA驱动接收存储设备的HBA驱动通过数据通道发送的管理请求。 [0152] 406, the management request receiving HBA HBA driver driving the storage device of the host transmitted through the data channel. [〇153] 407、主机的管理单元根据接收的存储设备的HBA驱动通过数据通道发送的管理请求获取管理数据,然后主机的SCSI驱动将管理数据封装在第二SCSI请求命令中。 [〇153] 407, the host requests the management unit according to the management storage HBA device driver receives the data transmitted by the management data acquisition channel, then the host SCSI driver management data is encapsulated in a second SCSI request command. 所述管理数据用于对所述存储设备进行管理。 The management data for the management of the storage device.

[0154] 其中,在主机的HBA驱动接收到存储设备的HBA驱动通过数据通道发送的管理请求之后,主机的HBA驱动将接收到的管理请求发送给主机的的管理单元。 After [0154] wherein, in the HBA host drivers HBA driver receives storage device management request sent through the data channel, the host will receive the HBA driver management request to the management unit is sent to the host. 主机的管理单元便根据接收到的管理请求获取管理数据,并且,主机的SCSI驱动将主机的管理单元获取到的管理数据封装在第二SCSI请求命令中,该第二SCSI请求命令用于指示存储设备接收主机发送的管理数据,例如第二SCSI请求命令可以为mode select命令。 Then the host management unit according to the received management request acquiring management data, and the host SCSI drive management unit of the host acquired management data is encapsulated in a second SCSI request command, the request command for instructing the second SCSI storage device receives management data transmitted by the host, for example, it may be the second SCSI request command mode select command. 示例性的,第二SCSI请求命令中可以包含管理数据,SCSICDB,数据传输方向以及其他10属性等参数。 Exemplary, the second SCSI request command can be included in the management data, SCSICDB, data transmission direction 10 and other parameters attributes. 其中,管理数据用于对存储设备进行管理;SCSI CDB对第二SCSI请求命令进行了描述,其第一个字节代表操作码,用于表示该第二SCSI请求命令用于将管理数据写入存储设备。 Wherein the management data for managing storage devices; SCSI the CDB second SCSI request command has been described, its operation code representative of the first byte, used to indicate that a second SCSI request command for writing data to manage storage devices. SCSI CDB的其他字节为可选参数,可以根据操作码的不同以及应用场景的实际需求进行选择,本发明实施例在此不做限制。 Other SCSI CDB bytes are optional parameters, and may be selected according to the actual needs of different application scenarios of the operation code, embodiments of the present invention is not limited in this embodiment. 数据传输方向用于指示该第二SCSI请求命令的传输方向为由主机向存储设备发送数据。 Data indicating that the second transmission direction for the direction of transmission request SCSI command by the host sends data to the storage device.

[0155] 408、主机的HBA驱动通过数据通道向存储设备的HBA驱动发送第二SCSI请求命令。 [0155] 408, HBA driver HBA to the host driving the storage device through the data channel transmitting a second SCSI request command. [〇156] 其中,在主机的管理单元根据管理请求获取管理数据,然后主机的SCSI驱动将管理数据封装在第二SCSI请求命令中之后,主机的SCSI驱动将第二SCSI请求命令发送至主机的HBA驱动,主机的HBA驱动将第二SCSI请求命令的格式转换为可以在以光纤通道等方式承载的数据通道上传输的格式,最后便可以通过与存储设备已建立的数据通道将第二SCSI请求命令发送至存储设备的HBA驱动。 [〇156] wherein, according to the management request acquiring management data management unit in the host, then the host SCSI driver after management data is encapsulated in a second SCSI request command, the host SCSI drives a second request command to the SCSI host HBA driver, HBA host SCSI drive a second format conversion request command into a format that can be transmitted on the data channel to carry the fiber channel, etc., can be the last request by the second SCSI storage device has been established data channel HBA driver command to the storage device.

[0157] 409、存储设备的HBA驱动接收主机的HBA驱动通过数据通道发送的第二SCSI请求命令。 [0157] 409, a second storage device a SCSI HBA driver HBA driver receiving host transmitted through the data channel request command.

[0158] 其中,存储设备的HBA驱动接收到主机的HBA驱动发送的第二SCSI请求命令后,存储设备的HBA驱动将第二SCSI请求命令的格式转换为SCSI协议要求的格式,以便存储设备的SCSI驱动可以对第二SCSI请求命令进行解析。 [0158] wherein, HBA drives the second storage device to the host SCSI HBA driver is received after the transmission request command, the HBA device driver converts the stored second SCSI format request command to the SCSI protocol format required for storage device SCSI driver can request a second SCSI command parsing. [〇159] 410、存储设备的SCSI驱动对第二SCSI请求命令进行解析得到管理数据。 [〇159] 410, SCSI drive storage device for a second SCSI request command parse the management data obtained.

[0160] 存储设备的SCSI驱动对第二SCSI请求命令进行解析得到第二SCSI请求命令中包含的用于表示该第二SCSI请求命令用于将管理数据写入存储设备的SCSI CDB以及管理数据。 SCSI drive [0160] the second storage device to obtain a SCSI Request command analyzing a second SCSI request command included in a request indicating that the SCSI command to the second management data written to the storage device SCSI CDB and management data. [〇161] 411、存储设备的管理单元根据管理数据对存储设备进行管理。 [〇161] 411, the storage device management unit for management of the storage apparatus according to the management data.

[0162] 其中,存储设备的管理单元根据管理数据启动与管理数据相应的管理流程,进而实现对存储设备的管理。 [0162] wherein the storage device management unit in accordance with the management data and the management data corresponding to the start management processes, so as to realize management of the storage device.

[0163] 412、存储设备的HBA驱动通过数据通道向主机HBA驱动发送SCSI响应命令。 [0163] 412, HBA device driver transmits drive storage SCSI commands through the data channel in response to the host HBA.

[0164] 其中,SCSI响应命令用于通知主机对存储设备的管理已完成。 [0164] wherein, SCSI host response to a command for notifying the management of the storage device has been completed. 在存储设备的管理单元根据管理数据完成对存储设备进行相应的管理操作之后,可以通过数据通道向主机的HBA驱动发送SCSI响应命令。 After the storage device according to the management data management unit of the storage device to complete corresponding management operation, can drive a response command transmitted through the data channel SCSI HBA to the host.

[0165] 413、主机的HBA驱动接收存储设备的HBA驱动通过数据通道发送的SCSI响应命令。 [0165] 413, SCSI HBA driver HBA the storage device host drive receiving transmitted through the data channel in response to the command.

[0166] 主机的HBA驱动将SCSI响应命令发送至主机的管理单元,进而主机的管理单元获知对存储设备的管理已完成。 HBA [0166] Host SCSI driver sends the response command to the host management unit, and then the management host cells learn management of the storage device has been completed.

[0167] 为了便于本领域技术人员的理解,本发明实施例在此对本发明的实施过程进行举例说明。 [0167] In order to facilitate understanding of the skilled in the art, embodiments of the present invention, this embodiment of the process of the present invention will be illustrated.

[0168] 例如,在存储设备检测到某个硬盘即将失效时,存储设备需要立即主动通知主机该硬盘即将失效。 [0168] For example, in the storage device is a hard disk is about to fail, the storage device needs to take the initiative to inform the host that the hard disk is about to fail is detected immediately. 具体的,存储设备向主机主动发送管理请求,主机根据管理请求对存储设备进行管理的具体过程可以是,存储设备的管理软件检测到某硬盘即将失效,即有管理请求需要主机进行处理,此时存储设备的管理单元可以触发请求事件。 Specifically, the storage management device sends a request to the host, the host according to the request to the memory management device may be a specific process management, storage device management software detects that a hard disk is about to fail, i.e., there is a host management request needs to be treated, and storage device management unit may request trigger event. 当主机的管理单元检测到存储设备的管理单元触发了请求事件之后,主机的JBA驱动可以通过数据通道向存储设备的rnA驱动发送用于读取存储设备的需要主机处理的管理请求的第一SCSI请求命令, 当存储设备的JfflA驱动接收到第一SCSI请求命令之后,将第一SCSI请求命令转发至存储设备的SCSI驱动,存储设备的SCSI驱动对第一SCSI请求命令进行解析得到第一SCSI请求命令中包含的用于表示该第一SCSI请求命令用于读取存储设备的需要主机处理的管理请求的SCSI⑶B,然后存储设备的HBA驱动便根据第一SCSI请求命令中包含的SCSI CDB通过数据通道将管理请求(管理请求中可以包含各类参数,如事件标识,硬盘容量,硬盘类型,硬盘位置等)发送至主机的HBA驱动(其中,当存储设备的管理软件检测到某硬盘即将失效,也可以不触发请求事件,而是等待主机发送的用于读取存储设 When a host is detected by the storage management unit of the device management unit triggers a request event, JBA driver may drive to the host rnA storage device through the data channel for transmitting a first management needs SCSI host processing apparatus reads the stored request request command, the storage device driver when JfflA received after the first SCSI request command, the request command is forwarded to the first SCSI storage devices SCSI drive, a SCSI drive storage device for the first SCSI command request is resolved to a first SCSI request included in the command for indicating the request command for the first SCSI host processing SCSI⑶B management needs to read storage request, and the storage device will HBA driver SCSI CDB requests included in the command through the data channel according to a first SCSI the management request (the management request may include various parameters, such as event identifier, hard drive capacity, hard disk type, a hard disk location, etc.) is sent to the host HBA driver (wherein, when the storage device management software detects that a hard disk is about to fail, but also request may not trigger an event, but rather wait for the host to send a storage device for reading 备的需要主机处理的管理请求的第一SCSI请求命令,当接收到第一SCSI请求命令之后,再将管理请求发送至主机)。 The first SCSI host processing apparatus needs to manage the request command, after receiving the first request command is SCSI, then the management request to the host). 主机的HBA 驱动接收存储设备的HBA驱动通过数据通道发送的管理请求后,可以将该管理请求转换为告警显示在告警列表中,并且可以通知给维护人员。 After the drive receiving HBA host HBA device driver storage management request through the data transmission channel to be converted into the management request alarm display in the alarm list, and you may notify the maintenance personnel. 维护人员得知后需要启动换盘流程,换盘流程启动时,主机的管理单元便可以获取管理数据(如,新硬盘位置,新硬盘类型,待更换盘的位置,待更换盘的类型等信息),然后主机的SCSI驱动将获取到的管理数据封装到第二SCSI请求命令中,并传输至主机的HBA驱动,此时主机的HBA驱动便可以通过数据通道将第二SCSI请求命令发送至存储设备的HBA驱动,存储设备的HBA驱动接收到第二SCSI请求命令之后,将第二SCSI请求命令转发至存储设备的SCSI驱动,存储设备的SCSI驱动对第二SCSI 请求命令进行解析获得封装在第二SCSI请求命令中的管理数据。 Flow needs to be started after the maintenance personnel disc changer that, when the disc changer process starts, the host management unit can acquire the management data (e.g., a hard disk new location, a new type of hard disk, the disk exchange position to be, to be replaced the disc type information ), then the host SCSI drives the acquired management data is encapsulated into a second SCSI request command, the host and transmitted to the HBA driver, this time a host HBA driver can be the second SCSI request command through the data channel sent to a storage HBA device driver, HBA device driver storage SCSI after receiving the second request command, the request command is forwarded to the second SCSI storage devices SCSI drive, a SCSI drive storage device for a second SCSI request command parsing obtained packaged in a first two SCSI request command management data. 存储设备的管理单元。 A storage device management unit. 根据管理数据启动硬盘重构流程,进而实现对存储设备的管理。 The hard disk management data reconstruction process starts, so as to realize management of the storage device. 进一步可选的,存储设备的HBA驱动还可以通过数据通道向主机HBA驱动发送用于通知主机已开始重构的SCSI响应命令。 Further, optionally, HBA drivers, the storage device may also be driven by the host HBA data path for notifying the host has already begun sending the reconstructed SCSI response command.

[0169] 在本发明实施例的另一种应用场景中,主机通过已建立的数据通道向存储设备发送管理请求,以便存储设备可以根据管理请求对存储设备进行管理,如图5所示,该方法可以包括: [0169] In another application scenario of the embodiment of the present invention, the host sends a management request through the established data channel to the storage device, the storage device can be managed so that the storage apparatus according to the management request, shown in Figure 5, the The method may include:

[0170] 501、主机的管理单元生成管理请求,然后主机的SCSI驱动将管理请求封装在SCSI请求命令中。 [0170] 501, the host generates a management request management unit, and then the management host SCSI driver request encapsulated SCSI command request.

[0171] 其中,管理请求用于请求存储设备对存储设备进行管理。 [0171] wherein the storage device management request for requesting the storage device management. 当主机有管理请求需要存储设备进行处理时,主机的管理单元可以生成管理请求,然后将生成的管理请求传输至主机的SCSI驱动,并由主机的SCSI驱动将管理请求封装在SCSI请求命令中。 When the host needs to have a storage device management request processing, the host may generate a management request management unit, and then the resultant management request to the host SCSI drive, a SCSI drive by a host management request encapsulated SCSI command request.

[0172] 502、主机的HBA驱动通过数据通道向存储设备的HBA驱动发送SCSI请求命令。 [0172] 502, HBA driver drives the host transmits a request command through the SCSI HBA data path to the storage device. [〇173] 其中,主机的SCSI驱动根据SCSI协议的要求将管理请求,SCSICDB,数据传输方向以及其他10属性等参数填充到SCSI请求命令中,然后将SCSI请求命令发送至主机的HBA驱动,主机的HBA驱动将SCSI请求命令的格式转换为可以在以光纤通道等方式承载的数据通道上传输的格式,最后主机的JfflA驱动便可以通过数据通道向存储设备的HBA驱动发送该SCSI请求命令。 [〇173] wherein the host SCSI driver request management request to the SCSI protocol, SCSICDB, data transmission direction and other parameters attributes 10 filled SCSI request command, and transmits the request command to the SCSI HBA driver of the host, the host HBA driver converts the format of the SCSI request command into a format that can be transmitted on the data channel to carry the fiber channel, etc., JfflA host can drive the final drive of the transmission request command to the SCSI HBA the storage device through the data channel.

[0174] 503、存储设备的HBA驱动接收主机的HBA驱动通过数据通道发送的SCSI请求命令。 [0174] 503, SCSI HBA device driver storage HBA driver receiving host transmitted through the data channel request command.

[0175] 其中,存储设备的HBA驱动接收到主机的HBA驱动发送的SCSI请求命令后,将第二SCSI请求命令的格式转换为SCSI协议要求的格式,以便存储设备的SCSI驱动可以对SCSI请求命令进行解析。 [0175] wherein, the storage device driver HBA HBA received SCSI host driver after the transmission request command, the second SCSI request command format conversion to the format required by SCSI protocol to SCSI storage devices can be driven to the SCSI request command for resolution.

[0176] 504、存储设备的SCSI驱动解析SCSI请求命令得到管理请求。 [0176] 504, SCSI storage device driver request command parse SCSI requests are managed.

[0177] 505、存储设备的管理单元根据管理请求对存储设备进行管理。 [0177] 505, the storage device management unit for management of the storage apparatus according to the management request. [〇178] 其中,当存储设备的SCSI驱动对SCSI请求命令进行解析得到管理请求之后,存储设备的管理单元便可以根据解析得到的管理请求对存储设备进行管理。 [〇178] wherein, when the SCSI storage devices on SCSI drive request command is resolved management request, the storage device may request a management unit for managing the storage device according to the management parsed. 示例性的,管理请求可以是配置信息,这样主机可以通过向存储设备发送管理请求,来完成对存储设备的配置。 Exemplary management information request may be configured so that the host can send a management request to the storage device, to complete the configuration of the storage device.

[0179] 506、存储设备的HBA驱动通过数据通道向主机的HBA驱动发送管理响应。 [0179] 506, HBA drive storage device driver in response to the transmission management HBA host through the data channel. [〇18〇] 存储设备的管理单元根据管理请求完成对存储设备的管理之后,存储设备的HBA 驱动通过数据通道向主机的HBA驱动发送管理响应。 After [〇18〇] storage device management unit complete management of the storage device according to the management request, HBA the storage management device transmits in response to the driving of the HBA host through the data channel. 其中,管理响应中包含存储设备根据管理请求对存储设备进行管理后得到的需要向主机返回的数据。 Wherein the management response comprises a data storage device returns to the host management request according to the need to manage the storage devices obtained.

[0181] 507、主机的HBA驱动接收存储设备的HBA驱动通过数据通道发送的管理响应。 [0181] 507, the response management storage HBA driver HBA device drive receiving host through a data transmission channel.

[0182] 当存储设备的管理单元根据管理请求对存储设备进行管理后,若有数据需要返回至主机,此时存储设备的HBA驱动便可以通过数据通道向主机发送包含需要向主机返回的数据的管理响应,这样主机的HBA驱动便可以接收存储设备通过数据通道发送的管理响应, 进行得到自身需要的数据。 [0182] When the storage device management unit for managing the storage device, if the data needs to be returned to the host according to the management request, this time HBA driver storage device can send to the host comprises to the host needs to be returned through the data channel data management response, HBA drivers, so that the host can receive a storage device management response sent through the data channel, the data obtained for its own needs.

[0183] 需要说明的是,在本发明实施例中,主机向存储设备发送的管理请求,可以是用来管理主机可见的SCSI设备的,也可以是用来管理该主机不可见的SCSI设备的,本发明实施例在此不做限制。 [0183] Incidentally, in the embodiment SCSI device, the management host sends a request to the storage apparatus according to the present invention, may be used to manage the SCSI devices visible to the host, may also be used to manage the host is not visible embodiment, the present invention is not restricted herein.

[0184] 为了便于本领域技术人员的理解,本发明实施例在此对本发明的实施过程进行举例说明。 [0184] In order to facilitate understanding of the skilled in the art, embodiments of the present invention, this embodiment of the process of the present invention will be illustrated.

[0185] 例如,主机需要对存储设备中的控制器进行升级,主机的管理单元可以生成管理请求,此时的管理请求用于请求存储设备对存储设备中的控制器进行升级。 [0185] For example, the host needs to be upgraded in the storage device controller, the host may generate a management request management unit, when the storage device management request for requesting the storage device controller will be promoted. 主机的SCSI驱动可以将生成的管理请求封装在SCSI请求命令中,并将封装了管理请求的SCSI请求命令传输至主机的HBA驱动。 Host SCSI driver management request can be generated in the SCSI request command package, and encapsulate the HBA driver management request to the host SCSI request command transmission. 主机的HBA驱动通过数据通道向存储设备的HBA驱动发送该SCSI请求命令。 HBA driver HBA to the host drive storage device through the data channel transmitting the SCSI request command. 存储设备的HBA驱动接收到主机的HBA驱动发送的SCSI请求命令之后,将SCSI请求命令传输至存储设备的SCSI驱动,存储设备的SCSI驱动对接收到的SCSI请求命令进行解析的到管理请求,并将管理请求转发至存储设备的管理单元。 HBA device driver HBA store the received SCSI host driver after the transmission request command, the request command to the SCSI devices SCSI storage drives, SCSI storage device management request to the SCSI driver received request command parsing, and the management request forwarded to the storage device management unit. 存储设备的管理单元根据用于请求对存储设备中的控制器进行升级的管理请求任意选择一个控制器执行升级动作。 The storage device management unit for requesting a storage device controller will be promoted arbitrarily selected a management request to perform an upgrade action controller. 可选的,在存储设备的管理单元执行完升级动作之后,存储设备的JfflA驱动可以把执行结果(如是否升级成功,升级所用时间,执行升级的控制器的标识,升级的控制器的原始版本,升级的控制器升级后的版本,业务运行状况等等)携带在管理响应中通过数据返回给主机的的HBA驱动,以便主机可以得到执行结果。 Original version identification Alternatively, after completion of the storage device management unit to perform the upgrade operation, JfflA drive storage device may be the execution result (e.g., whether the upgrade was successful, the upgrade used time, the controller performing the upgrade, the upgrade of the controller , the upgraded version of controller upgrades, health services, etc.) carried in the management of the response data back to the host via the HBA driver, so that the host can get the results. 进一步可选的,主机可以继续根据接收到的执行结果发起用于请求存储设备进行业务切换的管理请求给存储设备。 Further alternatively, the host may continue to initiate storage device management request for service handover request to the storage apparatus based on the received execution result. 同样的,存储设备的管理单元可以根据用于请求进行业务切换的管理请求执行相应的业务切换动作,以便完成对存储设备的管理,并可以进一步的将相应的执行结果返回至主机。 The same management, storage device management unit may be switched according to the service request to perform the corresponding service requests the switching operation to complete the management of the storage device, and may further result of execution of a corresponding return to the host.

[0186] 本发明实施例提供的存储设备的管理方法,主机通过数据通道向存储设备发送第一SCSI请求命令,以便存储设备在接收到第一SCSI请求命令之后,在存储设备有管理请求需要主机进行处理时,根据第一SCSI请求命令通过数据通道向主机发送管理请求,进而主机根据接收到的管理请求对存储设备进行管理;且主机可以通过数据通道向存储设备发送封装了管理请求的SCSI请求命令,以便存储设备在接收到SCSI请求命令之后,根据SCSI请求命令中封装的管理请求对存储设备进行管理。 Storage management method according to an embodiment of the [0186] present invention, the host transmits a request command to the storage device via a first data channel SCSI, to the storage device after receiving the first SCSI request command, the host needs to have a management request in a storage device when processing request according to a first SCSI commands through the data channel send management request to the host, the host further management of the storage device management request according to the received; and the host may send a request to the package managing storage devices through SCSI data request channel command to the storage device after receiving the SCSI request command, the request command according to the SCSI encapsulated request to the memory management device management. 这样在主机和存储设备之间仅建立了数据通道且尚未配置SCSI设备给主机的情况下,通过数据通道实现了主机和存储设备的双向通信,并且通过数据通道实现了对存储设备的管理。 Thus in the case between the host and the storage device only the data channel is established and is not configured to the host SCSI device, through the data channel to achieve a two-way communication hosts and storage devices, and to achieve the management of the storage device through the data channel.

[0187] 并且,当存储设备有管理请求需要主机处理时,通过触发请求事件,使得主机可以及时的获取到存储设备的管理请求,进而及时的对管理请求进行响应,提高了工作效率。 [0187] Further, when the storage device has required host processing management request, the request is triggered by an event, so that the host can acquire a management request to the storage device, and thus to promptly respond to the request management, improve work efficiency.

[0188] 实施例5 [0188] Example 5

[0189] 本发明实施例5提供一种主机,所述主机和存储设备组成存储系统,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备,如图6所示,所述主机可以包括:HBA驱动61、管理单元62。 [0189] Embodiment 5 of the present invention to provide a host, has been established between the host and the storage system storage devices, the storage device and the host data channel, but did not create the management channel, through which the host data query to the virtual channel of the small computer system interface SCSI devices, as shown in Figure 6, the host may comprise: HBA driver 61, the management unit 62. [〇19〇] HBA驱动61,用于通过所述数据通道向所述存储设备发送第一SCSI请求命令。 [〇19〇] driving the HBA 61, for transmitting a first request SCSI command to the storage device through the data channel.

[0191] 所述HBA驱动61,还用于接收所述存储设备根据所述第一SCSI请求命令通过所述数据通道发送的管理请求,所述管理请求用于请求所述主机对所述存储设备进行管理。 [0191] The HBA driver 61, the storage device further configured to receive the first request command according to the SCSI data management request through the transmission path, the management request to said host request to the storage device management.

[0192] 管理单元62,用于根据所述HBA驱动61得到的所述管理请求对所述存储设备进行管理。 [0192] management unit 62 for managing the storage device to get the HBA driver 61 according to the management request.

[0193] 本发明实施例中进一步可选的, In a further alternative embodiment of the embodiment [0193] of the present invention,

[0194] 所述管理单元62,还用于在所述HBA驱动61通过所述数据通道向所述存储设备发送第一SCSI请求命令之前,检测到所述存储设备触发了请求事件;其中,所述请求事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 [0194] The management unit 62 is further configured to transmit the driving device 61 by storing the data in the channel to a first SCSI HBA prior request command, the storage device is detected triggering event request; wherein the storing said request for said event trigger when the device needs to send management request to the host.

[0195] 本发明实施例中进一步可选的, In a further alternative embodiment of the embodiment [0195] of the present invention,

[0196] 所述管理单元62,还用于根据所述HBA驱动61得到的所述管理请求获取管理数据。 [0196] The management unit 62 is further configured to acquire the management data obtained HBA driver 61 according to the management request.

[0197] 如图7所示,所述主机,还包括:SCSI驱动63。 [0197] As shown in FIG 7, the host, further comprising: SCSI Driver 63.

[0198] SCSI驱动63,用于并将所述管理单元62得到的所述管理数据封装在第二SCSI请求命令中;其中,所述管理数据用于对所述存储设备进行管理。 [0198] SCSI drive 63, the management data for the management unit 62 and the package obtained in the second SCSI request command; wherein the management data for the management of the storage device.

[0199] 所述HBA驱动61,还用于通过所述数据通道向所述存储设备发送所述SCSI驱动63 得到的所述第二SCSI请求命令,以便所述存储设备根据所述第二SCSI请求命令中的管理数据进行管理。 [0199] The HBA driver 61, for the further SCSI driver obtained through the data channel 63 to the storage device transmitting the second request SCSI command to the storage device according to the second SCSI request management data in order to manage.

[0200] 本发明实施例中进一步可选的,所述HBA驱动61,还用于在通过所述数据通道向所述存储设备发送所述第二SCSI请求命令之后,接收所述存储设备通过所述数据通道发送的SCSI响应命令,所述SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。 [0200] In a further alternative embodiment of the embodiment of the present invention, the HBA driver 61, following a request for further commands through the data channel to the storage device transmitting the second SCSI, receiving the storage device by the SCSI data path transmits said response command, the SCSI command for notifying the host in response to the management of the storage device has been completed. [〇2〇1]需要说明的是,本发明实施例提供的主机中各功能模块的具体描述可以参考方法实施例中对应内容的具体描述,本发明实施例在此不再详细赘述。 [〇2〇1] Incidentally, detailed description provided by the host functional module of each embodiment of the present invention may be described with reference to specific embodiments in a method embodiment corresponding content, embodiments of the present invention which is not detailed herein.

[0202] 本发明实施例提供的主机,通过数据通道向存储设备发送第一SCSI请求命令,以便存储设备在接收到第一SCSI请求命令之后,在存储设备有管理请求需要主机进行处理时,根据第一SCSI请求命令通过数据通道向主机发送管理请求,进而主机根据接收到的管理请求对存储设备进行管理;且主机可以通过数据通道向存储设备发送封装了管理请求的SCSI请求命令,以便存储设备在接收到SCSI请求命令之后,根据SCSI请求命令中封装的管理请求对存储设备进行管理,在主机和存储设备之间仅建立了数据通道且尚未配置SCSI设备给主机的情况下,通过数据通道实现了主机和存储设备的双向通信,并且通过数据通道实现了对存储设备的管理。 [0202] When the host according to an embodiment of the present invention, the transmission request command to a first SCSI storage device through the data channel to the storage device after receiving the first SCSI request command, there are a host management request needs to be processed in the memory device, in accordance with the first SCSI request command through the data channel request to send the management host, host further management of the storage device management request according to the received; and package management host can send a request to the storage device through the SCSI data channel request command to the storage device in the case where, after receiving a request command to the SCSI, SCSI request command encapsulated request to the memory management device according to management, between the host and the storage device only and the data channel is established SCSI device is not configured to the host, the data path is achieved by bidirectional communication and a host storage device, and implements the management of the storage device through the data channel.

[0203] 并且,当存储设备有管理请求需要主机处理时,通过触发请求事件,使得主机可以及时的获取到存储设备的管理请求,进而及时的对管理请求进行响应,提高了工作效率。 [0203] Further, when the storage device has required host processing management request, the request is triggered by an event, so that the host can acquire a management request to the storage device, and thus to promptly respond to the request management, improve work efficiency.

[0204] 实施例6 [0204] Example 6

[0205] 本发明实施例6提供一种主机,所述主机和存储设备组成存储系统,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备,如图8所示,所述主机可以包括:管理单元71、SCSI 驱动72、HBA驱动73。 Example [0205] The present invention provides a host 6, data channel has been established between the host and the storage devices storage system, the host and the storage device, but did not create the management channel, through which the host data query to the virtual channel of the small computer system interface SCSI device 8, the host may comprise: a management unit 71 is, SCSI drives 72, HBA driver 73. [〇2〇6] 管理单元71,用于生成管理请求。 [〇2〇6] management unit 71, for generating a management request. [〇2〇7] SCSI驱动72,用于将所述管理单元71得到的所述管理请求封装在SCSI请求命令中;其中,所述管理请求用于请求所述存储设备对所述存储设备进行管理。 [〇2〇7] SCSI drives 72, for the management unit 71 managing the package obtained in the SCSI request command request; wherein the management request for requesting the storage device to said storage device management. [〇2〇8] HBA驱动73,用于通过所述数据通道向所述存储设备发送所述SCSI驱动72得到的所述SCSI请求命令,以便所述存储设备根据所述SCSI请求命令中的管理请求对所述存储设备进行管理。 [〇2〇8] 73 driving the HBA, the SCSI for the SCSI driver obtained through the data channel 72 to the storage device transmits the request command to the storage device management command according to the SCSI request of request for the storage device management.

[0209] 本发明实施例中进一步可选的,[〇21〇] 所述HBA驱动73,还用于在所述通过所述数据通道向所述存储设备发送所述SCSI请求命令之后,接收所述存储设备通过所述数据通道发送的管理响应,所述管理响应中包含所述存储设备根据所述管理请求对所述存储设备进行管理后得到的需要向所述主机返回的数据。 In a further alternative embodiment of the embodiment [0209] of the present invention, [〇21〇] The HBA driver 73, further configured to, after the transmission through the data channel to the SCSI request command to the storage device, receiving said storage management device in response to the data transmitted through the channel, said management data comprising a response needs to be returned to the host to the storage device management request in accordance with the obtained after the management of the storage device. [〇211]需要说明的是,本发明实施例提供的主机中各功能模块的具体描述可以参考方法实施例中对应内容的具体描述,本发明实施例在此不再详细赘述。 [〇211] Incidentally, detailed description provided by the host functional module of each embodiment of the present invention may be described with reference to specific embodiments in a method embodiment corresponding content, embodiments of the present invention which is not detailed herein.

[0212] 本发明实施例提供的主机,通过数据通道向存储设备发送第一SCSI请求命令,以便存储设备在接收到第一SCSI请求命令之后,在存储设备有管理请求需要主机进行处理时,根据第一SCSI请求命令通过数据通道向主机发送管理请求,进而主机根据接收到的管理请求对存储设备进行管理;且主机可以通过数据通道向存储设备发送封装了管理请求的SCSI请求命令,以便存储设备在接收到SCSI请求命令之后,根据SCSI请求命令中封装的管理请求对存储设备进行管理,在主机和存储设备之间仅建立了数据通道且尚未配置SCSI设备给主机的情况下,通过数据通道实现了主机和存储设备的双向通信,并且通过数据通道实现了对存储设备的管理。 [0212] When the host according to an embodiment of the present invention, the transmission request command to a first SCSI storage device through the data channel to the storage device after receiving the first SCSI request command, there are a host management request needs to be processed in the memory device, in accordance with the first SCSI request command through the data channel request to send the management host, host further management of the storage device management request according to the received; and package management host can send a request to the storage device through the SCSI data channel request command to the storage device in the case where, after receiving a request command to the SCSI, SCSI request command encapsulated request to the memory management device according to management, between the host and the storage device only and the data channel is established SCSI device is not configured to the host, the data path is achieved by bidirectional communication and a host storage device, and implements the management of the storage device through the data channel.

[0213] 并且,当存储设备有管理请求需要主机处理时,通过触发请求事件,使得主机可以及时的获取到存储设备的管理请求,进而及时的对管理请求进行响应,提高了工作效率。 [0213] Further, when the storage device has required host processing management request, the request is triggered by an event, so that the host can acquire a management request to the storage device, and thus to promptly respond to the request management, improve work efficiency.

[0214] 实施例7 [0214] Example 7

[0215] 本发明实施例7提供一种存储设备,所述存储设备和主机组成存储系统,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接OSCSI设备,如图9所示,所述存储设备可以包括:HBA驱动81〇 Example [0215] The present invention provides a memory device 7, a data path has been established between the storage device and a storage system composed of a host, the host and the storage device, but did not create the management channel, the host through the said query data to the virtual channel small computer system connected OSCSI device 9, the storage device may include: HBA driver 81〇

[0216] HBA驱动81,用于接收所述主机通过所述数据通道发送的第一SCSI请求命令。 [0216] HBA driver 81, for receiving a request command through the host SCSI said first data channel is transmitted.

[0217] HBA驱动81,还用于根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机,以便所述主机根据所述管理请求对所述存储设备进行管理;其中,所述管理请求用于请求所述主机对所述存储设备进行管理。 [0217] HBA driver 81 is further configured to request command through the data channel to send management request to the host, the host for the storage management apparatus according to the first management request according to the SCSI; wherein the management request for requesting the host device to the storage management.

[0218] 本发明实施例中进一步可选的,如图10所示,所述存储设备还可以包括:管理单元82〇 [0218] In a further alternative embodiment of the embodiment of the present invention, shown in the storage device 10 may further comprise: a management unit 82〇

[0219] 管理单元82,用于在所述HBA驱动81接收所述主机通过所述数据通道发送的第一SCSI请求命令之前,触发请求事件;其中,所述请求事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 [0219] management unit 82, 81 receives the drive for the host SCSI HBA through said first channel data previously transmitted request command, event trigger request; wherein the event is a request to the storage device requires It triggered when the management request transmitting said host.

[0220] 在本发明实施例中进一步可选的,所述HBA驱动81,还用于在所述根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机之后,接收所述主机通过所述数据通道发送的第二SCSI请求命令;其中,所述第二SCSI请求命令中包含管理数据,所述管理数据用于对所述存储设备进行管理。 [0220] In a further alternative embodiment of the embodiment of the present invention, the HBA driver 81, then a further request command through the data channel to send management request to the host in the SCSI according to the first receiving the second host through the SCSI data request command transmission channel; wherein said second SCSI request command included in the management data, the management data for the management of the storage device.

[0221] 所述存储设备,还包括:SCSI驱动83。 The [0221] storage device, further comprising: SCSI Driver 83.

[0222] SCSI驱动83,用于解析所述HBA驱动81得到的所述第二SCSI请求命令得到所述管理数据。 [0222] SCSI drive 83, configured to parse the HBA driver 81 to obtain the SCSI request command to obtain the second management data. [〇223] 所述管理单元82,还用于根据所述SCSI驱动83得到的所述管理数据对所述存储设备进行管理。 [〇223] The management unit 82 is further configured to manage the storage apparatus 83 according to the SCSI drives the obtained management data. [〇224] 本发明实施例中进一步可选的,所述HBA驱动81,还用于在所述根据所述管理数据对所述存储设备进行管理之后,通过所述数据通道向所述主机发送SCSI响应命令;其中,所述SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。 [〇224] In a further alternative embodiment of the embodiment of the present invention, the HBA driver 81, the following further configured to manage the storage device based on the management data transmitted through the data channel to the host SCSI response command; wherein, in response to the SCSI command for notifying the host of the storage management device has been completed.

[0225] 需要说明的是,本发明实施例提供的存储设备中各功能模块的具体描述可以参考方法实施例中对应内容的具体描述,本发明实施例在此不再详细赘述。 [0225] Incidentally, detailed description of the storage device provided in the embodiment of each functional module of the present invention may be described with reference to specific embodiments in a method embodiment corresponding content, embodiments of the present invention which is not detailed herein.

[0226] 本发明实施例提供的存储设备,接收主机通过数据通道发送的第一SCSI请求命令之后,可以根据接收到的第一SCSI请求命令通过数据通道向主机发送管理请求,以便主机根据接收到的管理请求对存储设备进行管理,在主机和存储设备之间仅建立了数据通道且尚未配置SCSI设备给主机的情况下,通过数据通道实现了对存储设备的管理。 [0226] Example embodiment of the present invention to provide a memory device, a first receiving host SCSI transmitted through the data channel after the request command, according to a first SCSI request command can be received through the management request transmitting data path to the host so that the host based on the received a case where the device management request to the memory management, storage device between the host and establish a data channel only and is not configured SCSI devices to the host, through the data channel to achieve the management of the storage device.

[0227] 并且,当存储设备有管理请求需要主机处理时,通过触发请求事件,使得主机可以及时的获取到存储设备的管理请求,进而及时的对管理请求进行响应,提高了工作效率。 [0227] Further, when the storage device has required host processing management request, the request is triggered by an event, so that the host can acquire a management request to the storage device, and thus to promptly respond to the request management, improve work efficiency.

[0228] 实施例8 [0228] Example 8

[0229] 本发明实施例8提供一种主机,所述主机和存储设备组成存储系统,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的SCSI设备,如图11所示,所述主机包括:至少一个处理器91、存储器92、通信接口93 和总线94,该至少一个处理器91、存储器92和通信接口93通过总线94连接并完成相互间的通f目,其中: Embodiment [0229] Example 8 of the present invention to provide a host, a data channel has been established between the host and the storage devices storage system, the host and the storage device, but did not create the management channel, through which the host query data channel to a virtual SCSI devices, as shown in FIG. 11, the host comprising: at least one processor 91, memory 92, a communication interface 93 and a bus 94, the at least one processor 91, memory 92 and communication interface 93 via bus 94 is connected through f and complete mesh between each other, wherein:

[0230] 所述总线94可以是工业标准体系结构(Industry Standard Architecture,ISA) 总线、外部设备互连(Peripheral Component Interconnect,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。 [0230] The bus 94 may be an industry standard architecture (Industry Standard Architecture, ISA) bus, a Peripheral Component Interconnect (Peripheral Component Interconnect, PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus, etc. . 该总线94可以分为地址总线、数据总线、控制总线等。 The bus 94 may be divided into an address bus, a data bus, a control bus and the like. 为便于表示,图11中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。 For ease of showing, in FIG. 11 only with a thick, but does not mean that only one type of bus or a bus.

[0231] 所述存储器92用于存储可执行程序代码,该程序代码包括计算机操作指令。 The [0231] memory 92 for storing executable program code, which program code includes computer operating instructions. 存储器92可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。 The memory 92 may include a high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), for example, at least one disk memory.

[0232] 所述处理器91可能是一个中央处理器(Central Processing Unit,CPU),或者是特定集成电路(Applicat1n Specific Integrated Circuit,ASIC),或者是被配置成实施本发明实施例的一个或多个集成电路。 [0232] The processor 91 may be a central processing unit (Central Processing Unit, CPU), or a specific integrated circuit (Applicat1n Specific Integrated Circuit, ASIC), or configured to implement the present invention or an embodiment integrated circuit. [〇233] 所述通信接口93,主要用于实现本实施例的设备之间的通信。 [〇233] The communication interface 93, used to realize communication between devices according to the present embodiment. [〇234] 所述处理器91,用于执行所述存储器92中存储的可执行程序代码,具体的用于执行以下操作: [〇234] The processor 91, for performing the executable program code stored in the memory 92, specifically for performing the following operations:

[0235] 所述处理器91,用于通过所述数据通道向所述存储设备发送第一SCSI请求命;接收所述存储设备根据所述第一SCSI请求命令通过所述数据通道发送的管理请求,所述管理请求用于请求所述主机对所述存储设备进行管理;根据所述管理请求对所述存储设备进行管理。 [0235] The processor 91, a request command sent to the storage device through the data channel a first SCSI; receiving the storage apparatus according to the first SCSI request command via the management request data sent over the channel the management request for requesting the host to manage the storage device; manage the storage device according to the management request.

[0236] 在本发明实施例中,进一步可选的,所述处理器91,还用于在所述通过所述数据通道向所述存储设备发送第一SCSI请求命令之前,检测到所述存储设备触发了请求事件;其中,所述请求事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 [0236] In an embodiment of the present invention, further optionally, the processor 91 is further configured to prior to the request command to the SCSI storage device transmitting a first channel through which data, detecting the storage devices triggering event request; wherein the event is a request to be transmitted to the storage device to trigger said administration request to the host.

[0237] 在本发明实施例中,进一步可选的,所述处理器91,具体用于根据所述管理请求获取管理数据,并将所述管理数据封装在第二SCSI请求命令中;其中,所述管理数据用于对所述存储设备进行管理;通过所述数据通道向所述存储设备发送所述第二SCSI请求命令,以便所述存储设备根据所述第二SCSI请求命令中的管理数据进行管理。 [0237] In an embodiment of the present invention, further optionally, the processor 91 is configured to acquire management data according to the management request, and the management data is encapsulated in a second SCSI request command; wherein, the management data for the management of the storage device; sending a request command to the second SCSI storage device through the data channel, so that the data storage device management request command according to the second SCSI management.

[0238] 在本发明实施例中,进一步可选的,所述处理器91,还用于在所述通过所述数据通道向所述存储设备发送所述第二SCSI请求命令之后,接收所述存储设备通过所述数据通道发送的SCSI响应命令,所述SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。 [0238] In an embodiment of the present invention, further optionally, the processor 91 is further configured to, after transmitting the request command to the second SCSI storage device through the data channel, the receiving SCSI storage devices sent through the data channel in response to the command, the SCSI command for notifying the host in response to the management of the storage device has been completed.

[0239] 需要说明的是,本发明实施例提供的主机中各功能模块的具体描述可以参考方法实施例中对应内容的具体描述,本发明实施例在此不再详细赘述。 [0239] Incidentally, detailed description provided by the host functional module of each embodiment of the present invention may be described with reference to specific embodiments in a method embodiment corresponding content, embodiments of the present invention which is not detailed herein.

[0240] 本发明实施例提供的主机,通过数据通道向存储设备发送第一SCSI请求命令,以便存储设备在接收到第一SCSI请求命令之后,在存储设备有管理请求需要主机进行处理时,根据第一SCSI请求命令通过数据通道向主机发送管理请求,进而主机根据接收到的管理请求对存储设备进行管理;且主机可以通过数据通道向存储设备发送封装了管理请求的SCSI请求命令,以便存储设备在接收到SCSI请求命令之后,根据SCSI请求命令中封装的管理请求对存储设备进行管理,在主机和存储设备之间仅建立了数据通道且尚未配置SCSI设备给主机的情况下,通过数据通道实现了主机和存储设备的双向通信,并且通过数据通道实现了对存储设备的管理。 [0240] When the host according to an embodiment of the present invention, the transmission request command to a first SCSI storage device through the data channel to the storage device after receiving the first SCSI request command, there are a host management request needs to be processed in the memory device, in accordance with the first SCSI request command through the data channel request to send the management host, host further management of the storage device management request according to the received; and package management host can send a request to the storage device through the SCSI data channel request command to the storage device in the case where, after receiving a request command to the SCSI, SCSI request command encapsulated request to the memory management device according to management, between the host and the storage device only and the data channel is established SCSI device is not configured to the host, the data path is achieved by bidirectional communication and a host storage device, and implements the management of the storage device through the data channel.

[0241] 并且,当存储设备有管理请求需要主机处理时,通过触发请求事件,使得主机可以及时的获取到存储设备的管理请求,进而及时的对管理请求进行响应,提高了工作效率。 [0241] Further, when the storage device has required host processing management request, the request is triggered by an event, so that the host can acquire a management request to the storage device, and thus to promptly respond to the request management, improve work efficiency.

[0242] 实施例9 [0242] Example 9

[0243] 本发明实施例9提供一种主机,所述主机和存储设备组成存储系统,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备。 Embodiment [0243] Example 9 of the present invention to provide a host, a data channel has been established between the host and the storage devices storage system, the host and the storage device, but did not create the management channel, through which the host query data channel to a virtual small computer system interface SCSI devices. 如图12所示,所述主机包括:至少一个处理器1001、存储器1002、通信接口1003和总线1004,该至少一个处理器1001、存储器1002和通信接口1003通过总线1004连接并完成相互间的通信,其中: As shown, the host 12 comprises: at least one processor 1001, a memory 1002, a communication interface 1003 and a bus 1004, the at least one processor 1001, a memory 1002 and communication interface 1003 connected with each other and perform communication via a bus 1004 ,among them:

[0244] 所述总线1004可以是ISA总线、PCI总线或EISA总线等。 [0244] The bus 1004 may be an ISA bus, PCI bus or an EISA bus and the like. 该总线1004可以分为地址总线、数据总线、控制总线等。 The bus 1004 may be divided into an address bus, a data bus, a control bus and the like. 为便于表示,图12中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。 For ease of showing, in FIG. 12 only with a thick, but does not mean that only one type of bus or a bus.

[0245] 所述存储器1002用于存储可执行程序代码,该程序代码包括计算机操作指令。 The [0245] memory 1002 for storing executable program code, which program code includes computer operating instructions. 存储器1002可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volati le memory),例如至少一个磁盘存储器。 Memory 1002 may include high-speed RAM memory, and may also include non-volatile memory (non-volati le memory), for example, at least one disk memory. [〇246] 所述处理器1001可能是一个CPU,或者是ASIC,或者是被配置成实施本发明实施例的一个或多个集成电路。 [〇246] The processor 1001 may be a CPU, or an ASIC, or configured to implement one or more embodiments of the present invention is an integrated circuit.

[0247] 所述通信接口1003,主要用于实现本实施例的设备之间的通信。 The [0247] a communication interface 1003, it is mainly used to implement communication between devices according to the present embodiment. [〇248] 所述处理器1001,用于执行所述存储器1002中存储的可执行程序代码,具体的用于执行以下操作: [〇248] The processor 1001, a memory for executing the executable program code stored in 1002, particularly for performing the following operations:

[0249] 所述处理器1001,用于生成管理请求,并将所述管理请求封装在SCSI请求命令中; 其中,所述管理请求用于请求所述存储设备对所述存储设备进行管理;通过所述数据通道向所述存储设备发送所述SCSI请求命令,以便所述存储设备根据所述SCSI请求命令中的管理请求对所述存储设备进行管理。 [0249] The processor 1001 for generating a management request, and the package management request in the SCSI request command; wherein the management request for requesting the storage device to manage the storage device; by the data channel is transmitted to the storage device requesting the SCSI command to the storage device according to the SCSI request command requests the management of the management storage device.

[0250] 在本发明实施例中,进一步可选的,所述处理器1001,还用于在所述通过所述数据通道向所述存储设备发送所述SCSI请求命令之后,接收所述存储设备通过所述数据通道发送的管理响应,所述管理响应中包含所述存储设备根据所述管理请求对所述存储设备进行管理后得到的需要向所述主机返回的数据。 After [0250] In the embodiment of the present invention, further optionally, the processor 1001 is further configured to transmit the request command to the SCSI storage device through the data channel in said receiving the storage device by managing data in response to the transmission channel, said management data comprising a response needs to be returned to the host to the storage device management request in accordance with the obtained after the management of the storage device.

[0251] 需要说明的是,本发明实施例提供的主机中各功能模块的具体描述可以参考方法实施例中对应内容的具体描述,本发明实施例在此不再详细赘述。 [0251] Incidentally, detailed description provided by the host functional module of each embodiment of the present invention may be described with reference to specific embodiments in a method embodiment corresponding content, embodiments of the present invention which is not detailed herein.

[0252] 本发明实施例提供的主机,通过数据通道向存储设备发送第一SCSI请求命令,以便存储设备在接收到第一SCSI请求命令之后,在存储设备有管理请求需要主机进行处理时,根据第一SCSI请求命令通过数据通道向主机发送管理请求,进而主机根据接收到的管理请求对存储设备进行管理;且主机可以通过数据通道向存储设备发送封装了管理请求的SCSI请求命令,以便存储设备在接收到SCSI请求命令之后,根据SCSI请求命令中封装的管理请求对存储设备进行管理,在主机和存储设备之间仅建立了数据通道且尚未配置SCSI设备给主机的情况下,通过数据通道实现了主机和存储设备的双向通信,并且通过数据通道实现了对存储设备的管理。 [0252] When the host according to an embodiment of the present invention, the transmission request command to a first SCSI storage device through the data channel to the storage device after receiving the first SCSI request command, there are a host management request needs to be processed in the memory device, in accordance with the first SCSI request command through the data channel request to send the management host, host further management of the storage device management request according to the received; and package management host can send a request to the storage device through the SCSI data channel request command to the storage device in the case where, after receiving a request command to the SCSI, SCSI request command encapsulated request to the memory management device according to management, between the host and the storage device only and the data channel is established SCSI device is not configured to the host, the data path is achieved by bidirectional communication and a host storage device, and implements the management of the storage device through the data channel.

[0253] 并且,当存储设备有管理请求需要主机处理时,通过触发请求事件,使得主机可以及时的获取到存储设备的管理请求,进而及时的对管理请求进行响应,提高了工作效率。 [0253] Further, when the storage device has required host processing management request, the request is triggered by an event, so that the host can acquire a management request to the storage device, and thus to promptly respond to the request management, improve work efficiency.

[0254] 实施例1〇 [0254] Example 1〇

[0255] 本发明实施例10提供一种存储设备,所述存储设备和主机组成存储系统,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备,如图13所示,所述存储设备包括:至少一个处理器1101、存储器1102、通信接口1103和总线1104,该至少一个处理器1101、存储器1102 和通信接口1103通过总线1104连接并完成相互间的通信,其中: Example [0255] The present invention provides a memory device 10, a data path has been established between the storage device and the host component storage system, the host and the storage device, but did not create the management channel, the host through the query said data channel to a virtual SCSI small computer system interface device 13, the storage apparatus comprising: at least one processor 1101, memory 1102, a communication interface 1103 and a bus 1104, the at least one processor 1101, a memory 1102 and communication interface 1103 connected by a bus 1104 and perform communication with each other, wherein:

[0256] 所述总线1104可以是ISA总线、PCI总线或EISA总线等。 [0256] The bus 1104 may be an ISA bus, PCI bus or an EISA bus and the like. 该总线1104可以分为地址总线、数据总线、控制总线等。 The bus 1104 may be divided into an address bus, a data bus, a control bus and the like. 为便于表示,图13中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。 For ease of showing, in FIG. 13 only with a thick, but does not mean that only one type of bus or a bus.

[0257] 所述存储器1102用于存储可执行程序代码,该程序代码包括计算机操作指令。 The [0257] memory 1102 for storing executable program code, which program code includes computer operating instructions. 存储器1102可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volati le memory),例如至少一个磁盘存储器。 Memory 1102 may include high-speed RAM memory, and may also include non-volatile memory (non-volati le memory), for example, at least one disk memory. [〇258] 所述处理器1101可能是一个CPU,或者是ASIC,或者是被配置成实施本发明实施例的一个或多个集成电路。 [〇258] The processor 1101 may be a CPU, or an ASIC, or configured to implement one or more embodiments of the present invention is an integrated circuit.

[0259] 所述通信接口1103,主要用于实现本实施例的设备之间的通信。 [0259] The communication interface 1103, is mainly used to implement communication between devices according to the present embodiment. [〇26〇] 所述处理器1101,用于执行所述存储器1102中存储的可执行程序代码,具体的用于执行以下操作: [〇26〇] The processor 1101, a memory for executing the executable program code stored in 1102, particularly for performing the following operations:

[0261] 所述处理器1101,用于接收所述主机通过所述数据通道发送的第一SCSI请求命令;根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机,以便所述主机根据所述管理请求对所述存储设备进行管理;其中,所述管理请求用于请求所述主机对所述存储设备进行管理。 [0261] The processor 1101 is configured to receive the first host through the SCSI data request command transmission channel; SCSI request command according to the first through the data channel to send management request to the host, the host for the storage management device according to the management request; wherein the management request for requesting the host to manage the storage device.

[0262] 在本发明实施例中,进一步可选的,所述处理器1101,还用于在所述接收所述主机通过所述数据通道发送的第一SCSI请求命令之前,触发请求事件;其中,所述请求事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 [0262] In the embodiment of the present invention, further optionally, the processor 1101 is further configured to prior to the request command received by the host SCSI said first data transmission channel, the event trigger request; wherein , the event is a request to be transmitted to the storage device to trigger said administration request to the host.

[0263] 在本发明实施例中,进一步可选的,所述处理器1101,还用于在所述根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机之后,接收所述主机通过所述数据通道发送的第二SCSI请求命令;其中,所述第二SCSI请求命令中包含管理数据,所述管理数据用于对所述存储设备进行管理;解析所述第二SCSI请求命令得到所述管理数据;根据所述管理数据对所述存储设备进行管理。 [0263] In an embodiment of the present invention, further optionally, the processor 1101 is further configured to request command after passage through the data request to the management host according to the first SCSI, receiving a second host through the SCSI data request command transmission channel; wherein said second SCSI request command included in the management data, the management data for the management of the storage device; parsing the second SCSI request command to obtain the management data; manage the storage apparatus based on said management data.

[0264] 在本发明实施例中,进一步可选的,所述处理器1101,还用于在所述根据所述管理数据对所述存储设备进行管理之后,通过所述数据通道向所述主机发送SCSI响应命令;其中,所述SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。 [0264] In an embodiment of the present invention, further optionally, the processor 1101 is further configured to manage after the said storage equipment according to the management data, through the data channel to the host SCSI response command transmitted; wherein, in response to the SCSI command for notifying the host of the storage management device has been completed.

[0265] 需要说明的是,本发明实施例提供的存储设备中各功能模块的具体描述可以参考方法实施例中对应内容的具体描述,本发明实施例在此不再详细赘述。 [0265] Incidentally, detailed description of the storage device provided in the embodiment of each functional module of the present invention may be described with reference to specific embodiments in a method embodiment corresponding content, embodiments of the present invention which is not detailed herein.

[0266] 本发明实施例提供的存储设备,接收主机通过数据通道发送的第一SCSI请求命令之后,可以根据接收到的第一SCSI请求命令通过数据通道向主机发送管理请求,以便主机根据接收到的管理请求对存储设备进行管理,在主机和存储设备之间仅建立了数据通道且尚未配置SCSI设备给主机的情况下,通过数据通道实现了对存储设备的管理。 [0266] Example embodiment of the present invention to provide a memory device, a first receiving host SCSI transmitted through the data channel after the request command, according to a first SCSI request command can be received through the management request transmitting data path to the host so that the host based on the received a case where the device management request to the memory management, storage device between the host and establish a data channel only and is not configured SCSI devices to the host, through the data channel to achieve the management of the storage device.

[0267] 并且,当存储设备有管理请求需要主机处理时,通过触发请求事件,使得主机可以及时的获取到存储设备的管理请求,进而及时的对管理请求进行响应,提高了工作效率。 [0267] Further, when the storage device has required host processing management request, the request is triggered by an event, so that the host can acquire a management request to the storage device, and thus to promptly respond to the request management, improve work efficiency.

[0268] 实施例11 [0268] Example 11

[0269] 本发明实施例11提供一种存储系统,如图14所示,包括:主机1201和存储设备1202;其中,所述主机1201和所述存储设备1202之间已建立数据通道,但尚未建立管理通道,所述主机1201通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备;[〇27〇] 所述主机1201,用于通过所述数据通道向所述存储设备1202发送第一SCSI请求命令。 [0269] Example embodiments of the present invention provides a memory system 11, shown in Figure 14, comprising: a storage device 1202 and the host 1201; wherein said data channel is established between the host 1201 and the storage device 1202, but not establish a management channel, the host 1201 through the data channel to query a virtual small computer system interface SCSI devices; [〇27〇] the host 1201, a first for sending to the storage device 1202 through the data channel SCSI command request. [〇271] 所述存储设备1202,用于接收所述主机1201通过所述数据通道发送的第一SCSI请求命令;根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机1201。 [〇271] The storage device 1202, the host 1201 to receive a first request command by the SCSI data sent over the channel; SCSI request command according to the first through the data channel to send to the management request host 1201. [〇272] 所述主机1201,还用于接收所述存储设备1202根据所述第一SCSI请求命令通过所述数据通道发送的所述管理请求,所述管理请求用于请求主机1201对所述存储设备1202进行管理;根据所述管理请求对所述存储设备1202进行管理 [〇272] The host 1201 is further configured to receive the storage device 1202 according to the first SCSI request command through the management request transmitting of the data path, the management request for requesting the host 1201 storage management device 1202; the storage management device 1202 according to the management request

[0273] 在本发明实施例中,进一步可选的,所述主机1201,还用于生成管理请求,并将所述管理请求封装在SCSI请求命令中;其中,所述管理请求用于请求存储设备1202对所述存储设备1202进行管理;通过所述数据通道向所述存储设备1202发送所述SCSI请求命令。 [0273] In an embodiment of the present invention, a further alternative, the host 1201 is further configured to generate a management request, and the package management request in the SCSI request command; wherein the storage management request for requesting the device 1202 manages the storage device 1202; the transmission request command to the SCSI storage device 1202 through the data channel.

[0274] 所述存储设备1202,还用于接收所述主机1201通过所述数据通道发送的所述SCSI 请求命令,并根据所述SCSI请求命令中的管理请求对所述存储设备1202进行管理。 The SCSI [0274] The storage device 1202 is further configured to receive the host 1201 through the data channel to send the request command, and according to the SCSI request command request to the storage management device 1202 manages.

[0275] 需要说明的是,本发明实施例提供的存储系统中主机和存储设备的具体描述可以参考方法实施例中对应内容的具体描述,本发明实施例在此不再详细赘述。 [0275] Incidentally, detailed description of the storage system according to an embodiment of the present invention, the host and the storage device may be described with reference to specific embodiments in a method embodiment corresponding content, embodiments of the present invention which is not detailed herein.

[0276] 本发明实施例提供的存储系统,主机通过数据通道向存储设备发送第一SCSI请求命令,以便存储设备在接收到第一SCSI请求命令之后,在存储设备有管理请求需要主机进行处理时,根据第一SCSI请求命令通过数据通道向主机发送管理请求,进而主机根据接收到的管理请求对存储设备进行管理;且主机可以通过数据通道向存储设备发送封装了管理请求的SCSI请求命令,以便存储设备在接收到SCSI请求命令之后,根据SCSI请求命令中封装的管理请求对存储设备进行管理,在主机和存储设备之间仅建立了数据通道且尚未配置SCSI设备给主机的情况下,通过数据通道实现了主机和存储设备的双向通信,并且通过数据通道实现了对存储设备的管理。 When the [0276] storage system according to an embodiment of the present invention, the host transmits a request command to the storage device via a first data channel SCSI, to the storage device after receiving the first SCSI request command in a storage device with a management request processing requires a host the first SCSI request command transmits a data management request to the host channel, and thus the host requests the storage device to be managed according to the received management; and SCSI host may send a management request to package the storage device through the data channel request command, to in the case where the storage device after receiving the request command to the SCSI, SCSI request command encapsulated request to the memory management device according to management, between the host and the storage device only and the data channel is established SCSI device is not configured to the host, through the data implements two-way communication channel hosts and storage devices, and to achieve the management of the storage device through the data channel.

[0277] 并且,当存储设备有管理请求需要主机处理时,通过触发请求事件,使得主机可以及时的获取到存储设备的管理请求,进而及时的对管理请求进行响应,提高了工作效率。 [0277] Further, when the storage device has required host processing management request, the request is triggered by an event, so that the host can acquire a management request to the storage device, and thus to promptly respond to the request management, improve work efficiency.

[0278] 通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。 [0278] By the above described embodiments, those skilled in the art may clearly understand that, for convenience and brevity of description, only the division of the functional modules is illustrated, in practice, according to the necessity to above functions assigned to different functional modules, the internal structure of the apparatus is divided into different functional modules to complete all or part of the functions described above. 上述描述的装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。 Specific working process of the above described apparatus, reference may be the corresponding process in the method embodiment, which is not repeated herein.

[0279] 在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。 [0279] In several embodiments provided herein present embodiment, it should be understood that the apparatus and methods disclosed may be implemented in other manners. 例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。 For example, the described apparatus embodiments are merely illustrative of, e.g., the module or unit division is merely logical function division, there may be other division in actual implementation, a plurality of units or components may e.g. combined or integrated into another device, or some features may be ignored or not performed. 另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。 Another point, displayed or coupling or direct coupling or communication between interconnected in question may be through some interface, device, or indirect coupling or communication connection unit, may be electrical, mechanical, or other forms. [〇28〇] 所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。 [〇28〇] of the unit illustrated as a separate component may be or may not be physically separate, parts displayed as units may be physical unit or a plurality of physical units, i.e. may be located in one place, or may be distributed to many different places. 可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。 You can select some or all of the units according to actual needs to achieve the object of the solutions of the embodiments.

[0281]另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。 [0281] Additionally, functional units may be integrated in various embodiments of the present invention in a processing unit, separate units may be physically present, may be two or more units are integrated into one unit. 上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。 The integrated unit may be implemented in the form of hardware, software functional units may also be implemented. [〇282] 所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。 [〇282] If the integrated unit is realized as an independent product sold or used in the form of a software functional unit may be stored in a readable storage medium. 基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机, 芯片等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。 Based on such understanding, the technical solutions of the present invention essentially, or the part or all of the technical solutions contributing to the prior art may be embodied in part or in the form of a software product, the software product is stored in a storage medium, including several instructions for instructing a device (may be a single-chip, chips, etc.) or (processor) to perform all or part of the steps of the methods of the various embodiments of the present invention. 而前述的存储介质包括:U盘、移动硬盘、只读存储器(R0M,Read-0nly Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。 The storage medium includes: U disk, mobile hard disk, a read-only memory (R0M, Read-0nly Memory), a random access various memories (RAM, Random Access Memory), a magnetic disk, or an optical medium can store program codes . [〇283]以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。 [〇283] The above are only specific embodiments of the present invention, but the scope of the present invention is not limited thereto, any skilled in the art in the art within the technical scope of the present invention is disclosed, variations may readily occur to or alternatively, shall fall within the protection scope of the present invention. 因此,本发明的保护范围应所述以权利要求的保护范围为准。 Accordingly, the scope of the present invention should be in the scope of the claims and their equivalents.

Claims (30)

  1. 1.一种存储设备的管理方法,应用于主机,所述主机和所述存储设备组成存储系统,其特征在于,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备,所述方法包括:通过所述数据通道向所述存储设备发送第一SCSI请求命令;接收所述存储设备根据所述第一SCSI请求命令通过所述数据通道发送的管理请求;所述管理请求用于请求所述主机对所述存储设备进行管理;根据所述管理请求对所述存储设备进行管理。 A storage management device, applied to the host, the host and the storage system storage devices, wherein the data channel has been established between the host and the storage device, but did not create the management channel , the host to query the data path through the small computer system interface SCSI virtual device, the method comprising: a request transmission command to the first storage device through the data channel SCSI; receiving the storage device in accordance with the the first SCSI request command requesting the management data sent over the channel; the management request for requesting the host to manage the storage device; manage the storage device according to the management request.
  2. 2.根据权利要求1所述的方法,其特征在于,在所述通过所述数据通道向所述存储设备发送第一SCSI请求命令之前,还包括:检测到所述存储设备触发了请求事件;其中,所述请求事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 2. The method according to claim 1, characterized in that transmits to the storage device through the data channel in the SCSI request command before the first, further comprising: a storage device detecting the triggering event request; wherein said event is a request to be transmitted to the storage device to trigger said administration request to the host.
  3. 3.根据权利要求1或2所述的方法,其特征在于,所述根据所述管理请求对所述存储设备进行管理,包括:根据所述管理请求获取管理数据,并将所述管理数据封装在第二SCSI请求命令中;其中,所述管理数据用于对所述存储设备进行管理;通过所述数据通道向所述存储设备发送所述第二SCSI请求命令,以便所述存储设备根据所述第二SCSI请求命令中的管理数据进行管理。 3. The method of claim 1 or claim 2, wherein said managed according to the management request to the storage device, comprising: acquiring management data according to the management request, and the management data is encapsulated in a second SCSI request command; wherein the management data for the management of the storage device; the request by sending a command to said data storage apparatus said second SCSI channel, so that the memory device in accordance with the said second SCSI request command management data to manage.
  4. 4.根据权利要求3所述的方法,其特征在于,在所述通过所述数据通道向所述存储设备发送所述第二SCSI请求命令之后,还包括:接收所述存储设备通过所述数据通道发送的SCSI响应命令,所述SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。 4. The method according to claim 3, wherein, after transmitting the request command to the second SCSI storage device through the data channel, the method further comprising: receiving said data storage apparatus by said SCSI transmission channel response command, the SCSI command for notifying the host in response to the management of the storage device has been completed.
  5. 5.—种存储设备的管理方法,应用于主机,所述主机和所述存储设备组成存储系统,其特征在于,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备,所述方法包括:生成管理请求,并将所述管理请求封装在SCSI请求命令中;其中,所述管理请求用于请求所述存储设备对所述存储设备进行管理;通过所述数据通道向所述存储设备发送所述SCSI请求命令,以便所述存储设备根据所述SCSI请求命令中的管理请求对所述存储设备进行管理;通过所述数据通道向所述存储设备发送第一SCSI请求命令;接收所述存储设备根据所述第一SCSI请求命令通过所述数据通道发送的管理请求;所述管理请求用于请求所述主机对所述存储设备进行管理;根据所述管理请求对所述存储设备进行管理。 5.- seed storage management device, applied to the host, the host and the storage system storage devices, wherein the data channel has been established between the host and the storage device, but did not create the management channel , the host to query the data path through the small computer system interface SCSI virtual device, the method comprising: generating a management request, and the package management request in the SCSI request command; wherein, for the management request requesting the storage device to the storage management device; transmitting the request command to the SCSI storage device through the data channel, so that the storage apparatus according to the SCSI request command to said storage device management request management; request command to the SCSI storage device a first transmission through the data channel; receiving the storage apparatus according to the first SCSI request command through the management request transmitting the data path; a request for the management request the host to manage the storage device; manage the storage device according to the management request.
  6. 6.根据权利要求5所述的方法,其特征在于,在所述通过所述数据通道向所述存储设备发送所述SCSI请求命令之后,还包括:接收所述存储设备通过所述数据通道发送的管理响应;所述管理响应中包含所述存储设备根据所述管理请求对所述存储设备进行管理后得到的需要向所述主机返回的数据。 6. The method as claimed in claim 5, wherein, after transmitting the request command to the SCSI storage device through the data channel, the method further comprising: receiving the storage device through the data channel transmission management response; said management data comprising a response needs to be returned to the host to the storage device management request in accordance with the obtained after the management of the storage device.
  7. 7.—种存储设备的管理方法,应用于所述存储设备,所述存储设备和主机组成存储系统,其特征在于,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备,所述方法包括:接收所述主机通过所述数据通道发送的第一SCSI请求命令;根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机,以便所述主机根据所述管理请求对所述存储设备进行管理;其中,所述管理请求用于请求所述主机对所述存储设备进行管理。 7.- seed storage management device, applied to the storage device, the storage device and a storage system composed of a host, wherein the data channel has been established between the host and the storage device, but has not managed to establish channel, the host to query a virtual SCSI small computer system interface device, the method through the data channel system comprises: receiving request command through the host SCSI said first data channel is transmitted; SCSI request according to the first command through the data channel to send management request to the host, the host for the storage management device according to the management request; wherein the management request for requesting said host to said storage device management.
  8. 8.根据权利要求7所述的方法,其特征在于,在所述接收所述主机通过所述数据通道发送的第一SCSI请求命令之前,还包括:触发请求事件;其中,所述请求事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 8. The method according to claim 7, wherein, in said host prior to receiving the first data channel to the SCSI request command sent by, further comprising: triggering an event request; wherein the event is a request the storage device needs to send a trigger when the request to the management host.
  9. 9.根据权利要求7或8所述的方法,其特征在于,在所述根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机之后,还包括:接收所述主机通过所述数据通道发送的第二SCSI请求命令;其中,所述第二SCSI请求命令中包含管理数据,所述管理数据用于对所述存储设备进行管理;解析所述第二SCSI请求命令得到所述管理数据;根据所述管理数据对所述存储设备进行管理。 After 9. The method according to claim 78, wherein the request command through the data channel to send management request to the host in the SCSI according to the first, further comprising: receiving the host a second channel data by the SCSI request command transmitted; wherein the second SCSI request command included in the management data, the management data for the management of the storage device; parsing the second SCSI request command to give the management data; manage the storage apparatus based on said management data.
  10. 10.根据权利要求9所述的方法,其特征在于,在所述根据所述管理数据对所述存储设备进行管理之后,还包括:通过所述数据通道向所述主机发送SCSI响应命令;其中,所述SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。 10. The method according to claim 9, wherein, after the management of the storage device according to the management data, further comprising: in response to said command by sending the SCSI host said data channel; wherein the SCSI host response command for notifying the manager of the storage device has been completed.
  11. 11.一种主机,所述主机和存储设备组成存储系统,其特征在于,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备,所述主机包括:总线适配卡HBA驱动,用于通过所述数据通道向所述存储设备发送第一SCSI请求命令;所述HBA驱动,还用于接收所述存储设备根据所述第一SCSI请求命令通过所述数据通道发送的管理请求;所述管理请求用于请求所述主机对所述存储设备进行管理;管理单元,用于根据所述HBA驱动得到的所述管理请求对所述存储设备进行管理。 A host that the storage system and storage devices, wherein said host has been established between the storage device and the data channel, but did not create the management channel, the host query through the data channel the virtual small computer system interface SCSI devices, the host comprising: a bus adapter HBA driver for requesting command to the SCSI storage device a first transmission through the data channel; the HBA driver further for receiving the storage apparatus according to the first SCSI request command requesting the management data sent over the channel; the management request for requesting the host to manage the storage device; management unit, according to the HBA driver the obtained management requests the management of the storage device.
  12. 12.根据权利要求11所述的主机,其特征在于,所述管理单元,还用于在所述MA驱动通过所述数据通道向所述存储设备发送第一SCSI请求命令之前,检测到所述存储设备触发了请求事件;其中,所述请求事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 12. The host according to claim 11, wherein the management unit is further configured to prior to the MA request command to the drive transmitting a first SCSI storage device through the data channel, detecting the storage device triggering event request; wherein the event is a request to be transmitted to the storage device to trigger said administration request to the host.
  13. 13.根据权利要求11或12所述的主机,其特征在于,所述管理单元,还用于根据所述HBA驱动得到的所述管理请求获取管理数据;所述主机,还包括:SCSI驱动,用于将所述管理单元得到的所述管理数据封装在第二SCSI请求命令中;其中,所述管理数据用于对所述存储设备进行管理;所述HBA驱动,还用于通过所述数据通道向所述存储设备发送所述SCSI驱动得到的所述第二SCSI请求命令,以便所述存储设备根据所述第二SCSI请求命令中的管理数据进行管理。 13. A host according to claim 11 or claim 12, wherein the management unit is further configured to acquire the management data based on said handling HBA driver request obtained; the host, further comprising: SCSI drive, the management unit for managing the data obtained in the second encapsulated SCSI command request; wherein the management data for the management of the storage device; and the HBA driver, through the data for further transmitting said channel to the storage device to get the second SCSI drive SCSI request command to request the management data storage device management command according to the second SCSI.
  14. 14.根据权利要求13所述的主机,其特征在于,所述HBA驱动,还用于在所述通过所述数据通道向所述存储设备发送所述第二SCSI请求命令之后,接收所述存储设备通过所述数据通道发送的SCSI响应命令,所述SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。 14. A host according to claim 13, wherein the HBA driver is further configured to, after transmitting the request command to the SCSI said second storage device through the data channel, receiving the storage SCSI device sent through the data channel in response to the command, the SCSI command for notifying the host in response to the management of the storage device has been completed.
  15. 15.根据权利要求11所述的主机,其特征在于,所述管理单元,还用于生成管理请求;所述SCSI驱动,还用于将所述管理单元得到的所述管理请求封装在SCSI请求命令中; 其中,所述管理请求用于请求所述存储设备对所述存储设备进行管理;所述HBA驱动,还用于通过所述数据通道向所述存储设备发送所述SCSI驱动得到的所述SCSI请求命令,以便所述存储设备根据所述SCSI请求命令中的管理请求对所述存储设备进行管理。 15. A host according to claim 11, wherein the management unit is further configured to generate management request; a SCSI drive, the manager is further configured to request the management unit packages obtained in the SCSI request command; wherein, the device management request for requesting the storage device to the storage management; the HBA driver, but also for the data obtained by the SCSI drive transmission path to said storage device said SCSI request command to the storage device requesting the management of the storage apparatus according to the SCSI request command management.
  16. 16.根据权利要求15所述的主机,其特征在于,所述HBA驱动,还用于在所述通过所述数据通道向所述存储设备发送所述SCSI请求命令之后,接收所述存储设备通过所述数据通道发送的管理响应,所述管理响应中包含所述存储设备根据所述管理请求对所述存储设备进行管理后得到的需要向所述主机返回的数据。 16. A host according to claim 15, wherein the HBA driver is further configured to, after the transmission of the request command to the SCSI storage devices through said data channel, received by the storage device in response to the management of data transmission channel, said management data comprising a response needs to be returned to the host to the storage device management request in accordance with the obtained after the management of the storage device.
  17. 17.—种存储设备,所述存储设备和主机组成存储系统,其特征在于,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备,所述存储设备包括:总线适配卡HBA驱动,用于接收所述主机通过所述数据通道发送的第一SCSI请求命令;所述HBA驱动,还用于根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机,以便所述主机根据所述管理请求对所述存储设备进行管理;其中,所述管理请求用于请求所述主机对所述存储设备进行管理。 17.- seed storage device, the storage device and a storage system composed of a host, wherein the data channel has been established between the host and the storage device, but did not create the management channel, said host computer through the data channel queried virtual small computer system interface SCSI devices, the memory device comprising: a bus adapter HBA driver, for receiving said first SCSI host sends a request command through the data channel; the HBA driver, further with in accordance with the first SCSI request command through the data channel to send management request to the host, the host for the storage management device according to the management request; wherein the request for management request said host managing the storage device.
  18. 18.根据权利要求17所述的存储设备,其特征在于,还包括:管理单元,用于在所述HBA驱动接收所述主机通过所述数据通道发送的第一SCSI请求命令之前,触发请求事件;其中,所述请求事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 18. The storage device according to claim 17, characterized in that, further comprising: a management unit for the SCSI HBA before the first host receives the driving transmitted via the data channel request command, event trigger request ; wherein the event is a request to be transmitted to the storage device to trigger said administration request to the host.
  19. 19.根据权利要求17或18所述的存储设备,其特征在于,所述HBA驱动,还用于在所述根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机之后,接收所述主机通过所述数据通道发送的第二SCSI请求命令;其中, 所述第二SCSI请求命令中包含管理数据,所述管理数据用于对所述存储设备进行管理;所述存储设备,还包括:SCSI驱动,用于解析所述HBA驱动得到的所述第二SCSI请求命令得到所述管理数据;所述管理单元,还用于根据所述SCSI驱动得到的所述管理数据对所述存储设备进行管理。 19. The memory device of claim 17 or 18, characterized in that the HBA driver is further configured to request command in accordance with the first SCSI through the data channel to the management request to the host after receiving the second host through the SCSI data request command transmission channel; wherein said second SCSI request command included in the management data, the management data for the management of the storage device; and the storage apparatus, further comprising: a SCSI drive, for parsing the obtained second SCSI HBA driver request command to obtain the management data; said managing unit, according to said further SCSI driver management data of the obtained the storage management device.
  20. 20.根据权利要求19所述的存储设备,其特征在于,所述HBA驱动,还用于在所述管理单元根据所述管理数据对所述存储设备进行管理之后,通过所述数据通道向所述主机发送SCSI响应命令;其中,所述SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。 20. The storage device according to claim 19, characterized in that the HBA driver is further configured to, after the managing unit manages the storage device based on the management data, through the data channel to the SCSI host sends said response command; wherein, in response to the SCSI command for notifying the host of the storage management device has been completed.
  21. 21.—种主机,所述主机和存储设备组成存储系统,其特征在于,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备;所述主机包括:至少一个处理器、存储器、通信接口和总线,所述至少一个处理器、所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;所述处理器,用于执行所述存储器中存储的可执行程序代码,具体的用于执行以下操作:所述处理器,用于通过所述数据通道向所述存储设备发送第一SCSI请求命令;接收所述存储设备根据所述第一SCSI请求命令通过所述数据通道发送的所述管理请求,所述管理请求用于请求所述主机对所述存储设备进行管理;根据所述管理请求对所述存储设备进行管理。 21.- kinds of hosts, storage devices and the host system memory, wherein said host has been established between the storage device and the data channel, but did not create the management channel, the host query through the data channel the virtual SCSI small computer system interface device; and the host computer comprises: at least one processor, a memory, a communication interface, and a bus, the at least one processor, the memory and the communication interface is connected to each other through the bus and complete communication between; the processor for executing said executable program code stored in the memory, particularly for performing the following operations: the processor for transmitting the first to the storage device through the data channel a SCSI request command; receiving the storage device according to the first request command by the SCSI channel management request sent from the data, the management request for requesting the host device to the storage management; in accordance with the said management request for the management of the storage device.
  22. 22.根据权利要求21所述的主机,其特征在于,所述处理器,还用于在所述通过所述数据通道向所述存储设备发送第一SCSI请求命令之前,检测到所述存储设备触发了请求事件;其中,所述请求事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 22. A host according to claim 21, wherein the processor is further configured to request before the command to the SCSI storage device a first transmission through the data channel in the detecting device to the storage triggering event request; wherein the event is a request to be transmitted to the storage device to trigger said administration request to the host.
  23. 23.根据权利要求21或22所述的主机,其特征在于,所述处理器,具体用于根据所述管理请求获取管理数据,并将所述管理数据封装在第二SCSI请求命令中;其中,所述管理数据用于对所述存储设备进行管理;通过所述数据通道向所述存储设备发送所述第二SCSI请求命令,以便所述存储设备根据所述第二SCSI请求命令中的管理数据进行管理。 21 or 23. A host according to claim 22, wherein the processor is configured to obtain management data according to the management request, and the management data is encapsulated in a second SCSI request command; wherein the management data for the management of the storage device; sending a request command to the second SCSI storage device through the data channel, so that the storage device management request command according to the second SCSI data management.
  24. 24.根据权利要求23所述的主机,其特征在于,所述处理器,还用于在所述通过所述数据通道向所述存储设备发送所述第二SCSI请求命令之后,接收所述存储设备通过所述数据通道发送的SCSI响应命令,所述SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。 24. A host according to claim 23, wherein the processor is further configured to, after transmitting the request command to the SCSI said second storage device through the data channel, receiving the storage SCSI device sent through the data channel in response to the command, the SCSI command for notifying the host in response to the management of the storage device has been completed.
  25. 25.根据权利要求21所述的主机,其特征在于,所述处理器,还用于生成管理请求,并将所述管理请求封装在SCSI请求命令中;其中, 所述管理请求用于请求所述存储设备对所述存储设备进行管理;通过所述数据通道向所述存储设备发送所述SCSI请求命令,以便所述存储设备根据所述SCSI请求命令中的管理请求对所述存储设备进行管理。 25. A host according to claim 21, wherein the processor is further configured to generate management request, and the package management request in the SCSI request command; wherein, the request for management request said storage device the management of the storage device; transmitting the request command to the SCSI storage device through the data channel, so that the storage apparatus according to the SCSI request command requests the management of the management storage device .
  26. 26.根据权利要求25所述的主机,其特征在于,所述处理器,还用于在所述通过所述数据通道向所述存储设备发送所述SCSI请求命令之后,接收所述存储设备通过所述数据通道发送的管理响应,所述管理响应中包含所述存储设备根据所述管理请求对所述存储设备进行管理后得到的需要向所述主机返回的数据。 26. A host according to claim 25, wherein the processor is further configured to, after transmitting the request command to the SCSI storage device through the data channel in the receiving device through the storage in response to the management of data transmission channel, said management data comprising a response needs to be returned to the host to the storage device management request in accordance with the obtained after the management of the storage device.
  27. 27.—种存储设备,所述存储设备和主机组成存储系统,其特征在于,所述主机和所述存储设备之间已建立数据通道,但尚未建立管理通道,所述主机通过所述数据通道查询到虚拟的小型计算机系统接口SCSI设备;所述存储设备包括:至少一个处理器、存储器、通信接口和总线,所述至少一个处理器、 所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;所述处理器,用于执行所述存储器中存储的可执行程序代码,具体的用于执行以下操作:所述处理器,用于接收所述主机通过所述数据通道发送的第一SCSI请求命令;根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机,以便所述主机根据所述管理请求对所述存储设备进行管理;其中,所述管理请求用于请求所述主机对所述存储设备进行管理。 27.- seed storage device, the storage device and a storage system composed of a host, wherein the data channel has been established between the host and the storage device, but did not create the management channel, said host computer through the data channel to query the virtual SCSI small computer system interface device; and the storage apparatus comprising: at least one processor, a memory, a communication interface, and a bus, the at least one processor, the memory and the communication interface is connected through the bus and perform communication with each other; said processor for executing said executable program code stored in the memory, particularly for performing the following operations: sending said processor for receiving said data channel by the host a first request command SCSI; SCSI request command according to the first through the data channel to send management request to the host, the host for the storage management device according to the management request; wherein said management request for requesting the host device to the storage management.
  28. 28.根据权利要求27所述的存储设备,其特征在于,所述处理器,还用于在所述接收所述主机通过所述数据通道发送的第一SCSI请求命令之前,触发请求事件;其中,所述请求事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 28. The storage device according to claim 27, wherein said processor is further for receiving said first through said SCSI host channel previously sent to the data request command, event trigger request; wherein , the event is a request to be transmitted to the storage device to trigger said administration request to the host.
  29. 29.根据权利要求27或28所述的存储设备,其特征在于,所述处理器,还用于在所述根据所述第一SCSI请求命令通过所述数据通道将管理请求发送至所述主机之后,接收所述主机通过所述数据通道发送的第二SCSI请求命令;其中,所述第二SCSI请求命令中包含管理数据,所述管理数据用于对所述存储设备进行管理;解析所述第二SCSI请求命令得到所述管理数据;根据所述管理数据对所述存储设备进行管理。 29. The storage device of claim 27 or claim 28, wherein the processor is further configured to request command through the data channel to be managed according to the first request in the SCSI host after receiving the second host through the SCSI data request command transmission channel; wherein said second SCSI request command included in the management data, the management data for the management of the storage device; parsing the the second SCSI request command to obtain the management data; manage the storage apparatus based on said management data.
  30. 30.根据权利要求29所述的存储设备,其特征在于,所述处理器,还用于在所述根据所述管理数据对所述存储设备进行管理之后,通过所述数据通道向所述主机发送SCSI响应命令;其中,所述SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。 30. The storage device according to claim 29, wherein the processor is further configured to manage after the said storage equipment according to the management data, through the data channel to the host SCSI response command transmitted; wherein, in response to the SCSI command for notifying the host of the storage management device has been completed.
CN 201380002330 2013-12-27 2013-12-27 Management method and a device for storage devices CN103858091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/090762 WO2015096158A1 (en) 2013-12-27 2013-12-27 Storage device management method and device

Publications (2)

Publication Number Publication Date
CN103858091A true CN103858091A (en) 2014-06-11
CN103858091B true CN103858091B (en) 2017-03-29

Family

ID=50864331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201380002330 CN103858091B (en) 2013-12-27 2013-12-27 Management method and a device for storage devices

Country Status (2)

Country Link
CN (1) CN103858091B (en)
WO (1) WO2015096158A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642170A (en) * 2004-01-16 2005-07-20 英业达股份有限公司 Method for accessing logic equipment utilizing ISCSI agreement
US7392336B2 (en) * 2002-12-09 2008-06-24 Hitachi, Ltd. Connecting device of storage device and computer system including the same connecting device
CN101329661A (en) * 2008-07-31 2008-12-24 北京飞天诚信科技有限公司 System and method for implementing PC / SC interface of HID / SCSI apparatus
CN103176751A (en) * 2013-03-04 2013-06-26 浪潮电子信息产业股份有限公司 Unified service system under multiple storage protocols

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9064116B2 (en) * 2010-11-08 2015-06-23 Intel Corporation Techniques for security management provisioning at a data storage device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7392336B2 (en) * 2002-12-09 2008-06-24 Hitachi, Ltd. Connecting device of storage device and computer system including the same connecting device
CN1642170A (en) * 2004-01-16 2005-07-20 英业达股份有限公司 Method for accessing logic equipment utilizing ISCSI agreement
CN101329661A (en) * 2008-07-31 2008-12-24 北京飞天诚信科技有限公司 System and method for implementing PC / SC interface of HID / SCSI apparatus
CN103176751A (en) * 2013-03-04 2013-06-26 浪潮电子信息产业股份有限公司 Unified service system under multiple storage protocols

Also Published As

Publication number Publication date Type
CN103858091A (en) 2014-06-11 application
WO2015096158A1 (en) 2015-07-02 application

Similar Documents

Publication Publication Date Title
US7200641B1 (en) Method and system for encoding SCSI requests for transmission using TCP/IP
US7634760B1 (en) System and method for remote execution of a debugging utility using a remote management module
US20080098321A1 (en) Method and apparatus for in-band discovery of capabilities of managed devices
US20070088917A1 (en) System and method for creating and maintaining a logical serial attached SCSI communication channel among a plurality of storage systems
US7072823B2 (en) Method and apparatus for accessing memory using Ethernet packets
US20040221123A1 (en) Virtual data switch and method of use
CN1633131A (en) A method for implementing iSCSI memory system
US8180855B2 (en) Coordinated shared storage architecture
US7349999B2 (en) Method, system, and program for managing data read operations on network controller with offloading functions
US20120246345A1 (en) Techniques for indicating a passive state for a device
US8190816B2 (en) Embedded scale-out aggregator for storage array controllers
CN102571452A (en) Multi-node management method and system
US20090228649A1 (en) Redundant array of inexpensive disks configuration using simple network management protocol
JP2003044421A (en) Virtual storage system and switching node used for the same system
US20110078490A1 (en) Svc cluster configuration node failover system and method
WO2001006385A1 (en) A communication system for general connection interface machines
US8090908B1 (en) Single nodename cluster system for fibre channel
CN103544027A (en) Method and electronic device for controlling application updating
CN103828332A (en) Data processing method, device, storage controller, and cabinet
JP2007226398A (en) Database connection management method and computer system
CN102045399A (en) Cloud computing mode file system and file reading method
US7428581B2 (en) Architecture for providing block-level storage access over a computer network
Cisco LU Address Mapping
CN102111436A (en) Storage device and method for accessing storage device through internet small computer system interface (iSCSI)
CN102892089A (en) Message pushing method, device and system

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01