WO2015096158A1 - 一种存储设备的管理方法及设备 - Google Patents

一种存储设备的管理方法及设备 Download PDF

Info

Publication number
WO2015096158A1
WO2015096158A1 PCT/CN2013/090762 CN2013090762W WO2015096158A1 WO 2015096158 A1 WO2015096158 A1 WO 2015096158A1 CN 2013090762 W CN2013090762 W CN 2013090762W WO 2015096158 A1 WO2015096158 A1 WO 2015096158A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage device
management
host
scsi
request
Prior art date
Application number
PCT/CN2013/090762
Other languages
English (en)
French (fr)
Inventor
李浪波
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2013/090762 priority Critical patent/WO2015096158A1/zh
Priority to CN201380002330.8A priority patent/CN103858091B/zh
Publication of WO2015096158A1 publication Critical patent/WO2015096158A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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 or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for 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 OR 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 or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for 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 OR 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 or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for 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

Definitions

  • the present invention relates to the field of communications, and in particular, to a storage device management method and device. Background technique
  • the host can communicate with the storage device through a data channel (for example, Fibre Channel).
  • a data channel for example, Fibre Channel
  • the limitation of the SCSI protocol is that when the host communicates with the storage device using the data channel, the host can only act as the initiator of the request, and the storage device can only serve as the execution end of the request. That is to say, only the host can initiate a request and use the data channel to communicate with the storage device.
  • the storage device needs to be managed, not only the host can be used as the initiator of the request, but also the storage device can be used as the initiator of the request. That is to say, in the process of managing the storage device, the two-way communication between the host and the storage device needs to be implemented.
  • the data channel can only perform one-way data interaction, that is, the storage device can only serve as the execution end of the request, and cannot actively take the initiative. Send a message to the host so that the data channel cannot be used to manage the storage device. Summary of the invention
  • Embodiments of the present invention provide a management method and device for a storage device, which implements management of a storage device by using a data channel.
  • a first aspect of the present invention provides a storage device management method, which is applied to a host, where the host and the storage device form a storage system, and a data channel is established between the host and the storage device, but has not been established yet.
  • the management channel the host queries the virtual small computer system interface SCSI device through the data channel, and the method includes:
  • the storage device is managed according to the management request.
  • the method further includes:
  • Detecting that the storage device triggers a request event Detecting that the storage device triggers a request event; wherein the request event is triggered when the storage device needs to send the management request to the host.
  • the managing the storage device according to the management request includes: acquiring management data according to the management request, and encapsulating the management data in a second SCSI request command; wherein the management data is used for The storage device is managed;
  • the method further includes:
  • a second aspect of the present invention provides a storage device management method, which is applied to a host, where the host and the storage device form a storage system, and a data channel is established between the host and the storage device, but has not been established yet.
  • the management channel the host queries the virtual small computer system interface SCSI device through the data channel, and the method includes:
  • the method further includes:
  • a third aspect of the present invention provides a storage device management method, where the storage device and the host constitute a storage system, and a data channel is established between the host and the storage device, but not yet A management channel is established, and the host queries the virtual small computer system interface SCSI device through the data channel, where the method includes:
  • the management request is used to request the host to manage the storage device.
  • the method further includes:
  • the method further includes:
  • the storage device is managed according to the management data.
  • the method further includes:
  • a fourth aspect of the present invention provides a host, where the host and the storage device form a storage system, a data channel is established between the host and the storage device, but a management channel has not been established, and the host passes the data.
  • the channel queries the virtual small computer system interface SCSI device, and the host includes:
  • a bus adapter card HBA driver configured to send a first SCSI request command to the storage device through the data channel;
  • the HBA driver is further configured to receive a management request sent by the storage device by using the data channel according to the first SCSI request command, where the management request is used to request the host to manage the storage device;
  • a management unit configured to manage the storage device according to the management request obtained by the HBA driver.
  • the management unit is further configured to: before the HBA driver sends a first SCSI request command to the storage device by using the data channel, detecting that the storage device triggers a request event; wherein the request event is The storage device needs to be triggered when the management request is sent to the host.
  • the management unit is further configured to acquire management data according to the management request obtained by the HBA driver;
  • the host also includes:
  • a SCSI driver configured to encapsulate the management data obtained by the management unit in a second SCSI request command, where the management data is used to manage the storage device;
  • the HBA driver is further configured to send, by using the data channel, the second SCSI request command obtained by the SCSI driver to the storage device, so that the storage device is configured according to the management data in the second SCSI request command. Manage.
  • the HBA driver is further configured to: after receiving the second SCSI request command to the storage device by using the data channel, receive a SCSI response command sent by the storage device by using the data channel, the SCSI The response command is used to notify the host that management of the storage device has been completed.
  • the management unit is further configured to generate a management request
  • the SCSI driver is further configured to encapsulate the management request obtained by the management unit in a SCSI request command, where the management request is used to request the storage device to manage the storage device;
  • the HBA driver is further configured to send, by using the data channel, the SCSI request command obtained by the SCSI driver to the storage device, so that the storage device accesses the storage according to a management request in the SCSI request command.
  • the device is managed.
  • the HBA driver is further configured to: after the sending the SCSI request command to the storage device by using the data channel, receive a management response sent by the storage device by using the data channel, where the management response includes The data that the storage device needs to return to the host after being managed by the storage device according to the management request.
  • a fifth aspect of the present invention provides a storage device, where the storage device and the host comprise a storage system, a data channel is established between the host and the storage device, but a management channel has not been established, and the host passes the The data channel queries the virtual small computer system interface SCSI device, and the storage device includes:
  • a bus adapter card HBA driver configured to receive a first SCSI request command sent by the host through the data channel
  • the HBA driver is further configured to send, by using the data channel, a management request to the host according to the first SCSI request command, so that the host manages the storage device according to the management request;
  • the management request is used to request the host to manage the storage device.
  • the method further includes:
  • a management unit configured to trigger a request event before the HBA driver receives the first SCSI request command sent by the host through the data channel, where the request event is that the storage device needs to send the host to the host Triggered when managing a request.
  • the HBA driver is further configured to: after the sending the management request to the host by using the data channel according to the first SCSI request command, receiving a second SCSI request command sent by the host through the data channel
  • the second SCSI request command includes management data, where the management data is used to manage the storage device;
  • the storage device further includes:
  • a SCSI driver configured to parse the second SCSI request command obtained by the HBA driver to obtain the management data
  • the management unit is further configured to manage the storage device according to the management data obtained by the SCSI driver.
  • the HBA driver is further configured to: after the management unit manages the storage device according to the management data, send a SCSI response command to the host by using the data channel; wherein the SCSI response command The method for notifying the host that the management of the storage device is completed.
  • a sixth aspect of the present invention provides a host, where the host and the storage device form a storage system, a data channel is established between the host and the storage device, but a management channel has not been established, and the host passes the data. Channel query to virtual small computer system interface SCSI device;
  • the host includes: at least one processor, a memory, a communication interface, and a bus, wherein the at least one processor, the memory, and the communication interface are connected by the bus and complete communication with each other; Executing the executable program code stored in the memory, specifically for performing the following operations:
  • the processor is configured to send a first SCSI request command to the storage device by using the data channel, and receive, by the storage device, a command according to the first SCSI request And a management request sent by the data channel, where the management request is used to request the host to manage the storage device; and the storage device is managed according to the management request.
  • the processor is further configured to: before the sending the first SCSI request command to the storage device by using the data channel, detecting that the storage device triggers a request event; wherein the request event is the storage Triggered when the device needs to send the management request to the host.
  • the processor is specifically configured to acquire management data according to the management request, and encapsulate the management data in a second SCSI request command; wherein the management data is used to manage the storage device;
  • the data channel sends the second SCSI request command to the storage device, so that the storage device manages according to management data in the second SCSI request command.
  • the processor is further configured to: after receiving the second SCSI request command to the storage device by using the data channel, receive a SCSI response command sent by the storage device by using the data channel, the SCSI The response command is used to notify the host that management of the storage device has been completed.
  • the processor is further configured to generate a management request, and encapsulate the management request in
  • the management request is used to request the storage device to manage the storage device; and send the
  • the SCSI requests a command for the storage device to manage the storage device in accordance with a management request in the SCSI request command.
  • the processor is further configured to: after the sending the SCSI request command to the storage device by using the data channel, receive a management response sent by the storage device by using the data channel, where the management response includes The data that the storage device needs to return to the host after being managed by the storage device according to the management request.
  • a seventh aspect of the present invention provides a storage device, where the storage device and the host comprise a storage system, a data channel is established between the host and the storage device, but a management channel has not been established, and the host passes the Data channel query to virtual small computer system interface SCSI device;
  • the storage device includes: at least one processor, a memory, a communication interface, and a bus, wherein the at least one processor, the memory, and the communication interface are connected by the bus and complete communication with each other;
  • the executable program code for executing the storage in the memory is specifically configured to perform the following operations:
  • the processor configured to receive, by the host, the first one sent by using the data channel
  • a SCSI request command sending, by the data channel, a management request to the host according to the first SCSI request command, so that the host manages the storage device according to the management request; wherein, the management request is used by The host is requested to manage the storage device.
  • the processor is further configured to: before the receiving the first SCSI request command sent by the host by using the data channel, triggering a request event; wherein the request event is that the storage device needs to send to the host Triggered when the management request is made.
  • the processor is further configured to: after the sending the management request to the host by using the data channel according to the first SCSI request command, receiving a second SCSI request command sent by the host through the data channel Where the second SCSI please
  • the command includes management data, where the management data is used to manage the storage device; parsing the second SCSI request command to obtain the management data; and managing the storage device according to the management data.
  • the processor is further configured to: after the managing the storage device according to the management data, send a SCSI response command to the host by using the data channel; where the SCSI response command is used to notify the The management of the storage device by the host is completed.
  • the host sends a first SCSI request command to the storage device through the data channel, so that after the storage device receives the first SCSI request command, the storage device has a management request that requires the host to perform the management request.
  • the management request is sent to the host through the data channel according to the first SCSI request command, and the host manages the storage device according to the received management request, and only the data channel is established between the host and the storage device, and the SCSI device is not configured.
  • management of the storage device is implemented through the data channel.
  • FIG. 1 is a flowchart of a method for managing a storage device according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for managing a storage device according to Embodiment 2 of the present invention
  • FIG. 4 is a flowchart of a method for managing a storage device according to Embodiment 4 of the present invention
  • FIG. 5 is a flowchart of another method for managing a storage device according to Embodiment 4 of the present invention; ;
  • FIG. 6 is a schematic structural diagram of a host according to Embodiment 5 of the present invention.
  • FIG. 7 is a schematic structural diagram of another host according to Embodiment 5 of the present invention
  • FIG. 8 is a schematic structural diagram of a host according to Embodiment 6 of the present invention
  • FIG. 9 is a schematic structural diagram of a storage device according to Embodiment 7 of the present invention
  • FIG. 10 is a schematic diagram of another storage device according to Embodiment 7 of the present invention
  • FIG. 12 is a schematic diagram of a composition of a host according to Embodiment 9 of the present invention
  • FIG. 13 is a schematic diagram of a configuration of a storage device according to Embodiment 10 of the present invention
  • a schematic diagram of the composition of a storage system A schematic diagram of the composition of a storage system. detailed description
  • Embodiment 1 of the present invention provides a management method of a storage device, which is applied to a host, and the host and the storage device constitute a storage system.
  • a data channel has been established between the host and the storage device, but the management channel has not been established, and the SCSI device has not been configured for the host.
  • the host initiates a scan logical unit number (LUN) action for the storage device, and the scan LUN action is used to query whether there is an available SCSI device.
  • LUN logical unit number
  • the storage device detects the scan LUN of the host, it can report a virtual SCSI device to the host through the established data channel.
  • the host can query the virtual SCSI device, that is, the host queries the available SCSI device.
  • the host can access the storage device.
  • the virtual SCSI device in the embodiment of the present invention is an unallocated physical space, does not support reading and writing, supports a small number of private commands, and supports scanning LUN actions when the data channel is connected.
  • a special SCSI device that is, the host can scan to the virtual SCSI device.
  • the storage device actively sends a management request to the host through the established data channel, so that the host can manage the storage device according to the management request.
  • the method can include:
  • the host sends a first SCSI request command to the storage device through the established data channel.
  • the first SCSI request command is used to read a management request of the storage device that requires host processing.
  • the first SCSI request command may be a mode sense command.
  • the host may send a first SCSI request command for reading a management request of the storage device that is required by the host to the storage device through an established data channel with the storage device. In this way, after the storage device receives the first SCSI request command sent by the host through the data channel, if the storage device has a management request that requires the host to process, the storage device can pass the data channel according to the received first SCSI request command.
  • the management request is sent to the host.
  • the host receives a management request sent by the storage device according to the first SCSI request command through the data channel.
  • the management request is used to request the host to manage the storage device.
  • the host manages the storage device according to the management request.
  • the management request indicates information such as the type of management, the object to be managed, and the like, and the host can perform corresponding management actions according to the indication information in the management request.
  • the host may periodically send a first SCSI request command to the storage device.
  • the host can obtain the management request of the storage device by using the first SCSI request command sent periodically. That is, in the embodiment of the present invention, step 101 may be repeatedly performed, so that the host can immediately obtain the management request of the storage device, and then manage the storage device in time according to the management request.
  • the host sends a first SCSI request command to the storage device through the data channel, so that after the storage device has a management request and the host needs to perform processing, after the storage device receives the first SCSI request command.
  • the storage device is managed according to the received management request.
  • the management of the storage device is implemented through the data channel.
  • Embodiment 2 of the present invention provides a management method of a storage device, which is applied to a host, where the host and the storage device form a storage system. Also, a data channel has been established between the host and the storage device, but the management channel has not been established, and the SCSI device has not been configured for the host. After the data channel is established between the host and the storage device, the host initiates a scan LUN for the storage device. The scan LUN is used to query whether the SCSI device is available. When the storage device detects the scan LUN of the host, the device can pass the scan. The established data channel reports a virtual SCSI device to the host, and the host can query the virtual SCSI device. That is, the host queries the available SCSI device, and the host can access the storage device.
  • the virtual SCSI device in the embodiment of the present invention is an unallocated physical space, does not support reading and writing, supports a small number of private commands, and supports scanning LUN operations when the data channel is connected (that is, the host can scan the virtual SCSI).
  • Device Special SCSI device.
  • the host sends a management request to the storage device through the established data channel, so that the storage device can manage the storage device according to the management request.
  • the method may include:
  • the host generates a management request, and encapsulates the management request in a SCSI request command.
  • the management request is used to request the storage device to manage the storage device.
  • the host needs to manage the storage device, it can generate a management request and encapsulate the management request in the SCSI request command.
  • the host sends a SCSI request command to the storage device through the data channel, so that the storage device manages the storage device according to the management request in the SCSI request command.
  • the host generates a management request, and encapsulates the management request in a SCSI request command, and sends the SCSI request command to the storage device through the data channel. This way, when the storage is set After receiving the SCSI request command sent by the host through the data channel, the storage device parses the received SCSI request command to obtain a management request encapsulated in the SCSI request command, and the storage device manages the storage device according to the management request.
  • the host sends a SCSI request command encapsulating the management request to the storage device through the data channel, so that after the storage device receives the SCSI request command, the storage device encapsulates the management request according to the SCSI request command.
  • the storage device is managed.
  • the management of the storage device is implemented through the data channel.
  • Embodiment 3 of the present invention provides a management method of a storage device, which is applied to a storage device, a storage device, and a host to form a storage system.
  • a data channel has been established between the host and the storage device, but the management channel has not been established, and the SCSI device has not been configured for the host.
  • the host initiates a scan LUN action for the storage device.
  • the scan LUN action is used to query whether the SCSI device is available.
  • the storage device detects the scan LUN of the host, it can report a virtual SCSI device to the host through the established data channel.
  • the host can query the virtual SCSI device. That is, the host queries the available SCSI device, and the host can access the storage device.
  • the virtual SCSI device in the embodiment of the present invention is an unallocated physical space, does not support reading and writing, supports a small number of private commands, and supports scanning LUN operations when the data channel is connected (that is, the host can scan the virtual SCSI).
  • Device Special SCSI device.
  • the storage device actively sends a management request to the host through the established data channel, so that the host can manage the storage device according to the management request.
  • the method may include:
  • the storage device receives a first SCSI request command sent by the host through the data channel.
  • the first SCSI request command is used to read the storage device and needs host processing.
  • the management request for example the first SCSI request command, can be a mode sense command.
  • the storage device sends the management request to the host through the data channel according to the first SCSI request command, so that the host manages the storage device according to the management request.
  • the management request is used to request the host to manage the storage device.
  • the storage device may first determine whether a management request requires the host to process, and when determining that a management request requires the host to process, the storage device may receive the The first SCSI request command sends a management request to the host through the data channel. In this way, after the host receives the management request sent by the storage device through the data channel, the storage device can be managed according to the management request.
  • the storage device may send a management request to the host through the data channel according to the received first SCSI request command, so that the host The storage device is managed according to the received management request.
  • the management of the storage device is implemented through the data channel.
  • Embodiment 4 of the present invention provides a storage device management method, which is applied to a storage system composed of a host and a storage device, and a data channel is established between the host and the storage device, but a management channel has not been established, and the SCSI device has not been configured yet.
  • the host After the data channel is established between the host and the storage device, the host initiates a scan LUN for the storage device.
  • the scan LUN is used to query whether the SCSI device is available.
  • the storage device detects the scan LUN of the host, the device can pass the scan.
  • a virtual SCSI device is created on the established data channel to the host, and the host can query the virtual SCSI device, that is, the host queries the available SCSI device, and the host can access the storage device.
  • the virtual SCSI device in the embodiment of the present invention is an unallocated physical space, does not support reading and writing, supports a small number of private commands, and supports scanning LUN operations when the data channel is connected (that is, the host can scan the virtual SCSI).
  • Device Special SCSI device.
  • the storage device sends a management request to the host through the established data channel, so that the host can manage the storage device according to the management request.
  • the method may include:
  • the management unit of the storage device triggers the request event.
  • the request event is triggered when the storage device needs to send a management request to the host, and the request event is used to notify the host that the management request needs to be processed.
  • the management unit of the storage device can trigger the request event, so that the host can know that the storage device has a management request to be processed.
  • the management unit of the host detects that the management unit of the storage device triggers the request event.
  • the host management unit can detect whether the management unit of the storage device triggers the request event in order to know in time whether the storage device needs to be processed by the storage device.
  • the process for the host to detect whether the storage device needs to be managed may be implemented by using the Unit Attention method in the SCSI protocol.
  • the management unit of the host may register an event trap with the management unit of the storage device.
  • the management unit of the storage device may trigger a Unit Attention event, so that the management unit of the host can detect
  • the management unit of the storage device triggers the Unit Attention event, and the host can know that the storage device has a management request to process.
  • the host bus adapter (HBA) driver sends a first SCSI request command to the HBA driver of the storage device through the data channel.
  • the HBA driver of the host After the management unit of the host detects that the management unit of the storage device has triggered the request event, the HBA driver of the host sends a first SCSI request command to the HBA driver of the storage device through the data channel established with the storage device.
  • the first SCSI request command is used to read a management request of the storage device that needs to be processed by the host.
  • the first SCSI request command may be a mode sense command.
  • the first SCSI request sent by the host HBA driver to the storage device can include parameters such as SCSI Command Description Block (CDB) and data transfer direction.
  • the SCSI CDB describes the first SCSI request command, and the first byte represents an operation code, which is used to indicate that the first SCSI request command is used to read a management request of the storage device that requires host processing, SCSI CDB.
  • the other bytes are optional parameters, and may be selected according to different opcodes and actual requirements of the application scenario, which is not limited herein.
  • the data transmission direction is used to indicate that the transmission direction of the first SCSI request command is to feed back information to the host by the storage device.
  • the host's SCSI driver Before the host's HBA driver sends the first SCSI request command to the storage device through the data channel, the host's SCSI driver can fill the SCSI CDB, data transfer direction, and other input and output (10) attributes according to the requirements of the SCSI protocol.
  • the first SCSI request command the first SCSI request command filled with parameters such as SCSI CDB, data transfer direction, and other input and output (10) attributes is sent to the host's HBA driver, and the host's HBA driver will be The format of a SCSI request command is converted to a format that can be transmitted on a data channel carried in a Fibre Channel manner, and finally passed through a data channel established with the storage device.
  • the SCSI request command is sent to the storage device.
  • the HBA driver of the host may periodically send a first SCSI request command to the storage device.
  • the HBA driver of the storage device can send the management request through the first SCSI request command according to the data channel.
  • the request event may not be triggered, but wait for the HBA driver of the host to send a management request for reading the storage device that requires host processing.
  • the first SCSI requests the command, and after receiving the first SCSI request command, sends the management request to the host according to the first SCSI request command, that is, steps 401 and 402 in the embodiment of the present invention are optional steps.
  • the management request of the storage device may be obtained in time.
  • step 401 and step 402 may be performed, and the request event is triggered when the storage device has a management request to be processed.
  • the HBA driver of the host can send a first SCSI request command for reading the management request of the storage device that needs to be processed by the host to the storage device, so as to obtain the management request of the storage device in time.
  • the HBA driver of the storage device receives the first SCSI request command sent by the HBA driver of the host through the data channel.
  • the HBA driver of the storage device receives the first SCSI request command sent by the HBA driver of the host, transmits the format of the first SCSI request command on the data channel carried by the Fibre Channel or the like. Convert to the format required by the SCSI protocol, and then send the format converted first SCSI request command to the storage device's SCSI driver so that the storage device's SCSI driver can parse the first SCSI request command.
  • the HBA driver of the storage device sends the management request to the HBA driver of the host through the data channel according to the first SCSI request command.
  • This management request is used to request the host to manage the storage device.
  • the SCSI driver of the storage device may include the first SCSI request command obtained by parsing the first SCSI request command. Used to indicate that the first SCSI request command is used to read the SCSI CDB of the storage device that requires management processing by the host, and send the SCSI CDB to the HBA driver of the storage device, and the HBA driver of the storage device is based on the obtained SCSI CDB. Send management requests to the host's HBA driver through the data channel.
  • the SCSI driver of the storage device may determine, according to the SCSI CDB in the first SCSI request command, that the first SCSI request command is used to read a management request that needs to be processed by the host, and the management unit of the storage device may allocate a cache space, and The management request that needs to be processed by the host is stored in the allocated cache space, and then the HBA driver of the storage device sends the management request stored in the cache space to the HBA driver of the host through the data channel.
  • the HBA driver of the host receives the management request sent by the HBA driver of the storage device through the data channel.
  • the management unit of the host according to the received HBA drive number of the storage device
  • the management data is obtained according to the management request sent by the channel, and then the host's SCSI driver encapsulates the management data in the second SCSI request command.
  • the management data is used to manage the storage device.
  • the host HBA driver After the host HBA driver receives the management request sent by the HBA driver of the storage device through the data channel, the host HBA driver sends the received management request to the management unit of the host.
  • the management unit of the host acquires management data according to the received management request, and the SCSI driver of the host encapsulates the management data acquired by the management unit of the host in a second SCSI request command, where the second SCSI request command is used to indicate storage.
  • the device receives management data sent by the host, for example, the second SCSI request command may be a mode select command.
  • the second SCSI request command may include management data, SCSI CDB, data transmission direction, and other 10 attributes.
  • the management data is used to manage the storage device; the SCSI CDB describes the second SCSI request command, and the first byte thereof represents an operation code for indicating that the second SCSI request command is used to write management data. Storage device.
  • the other bytes of the SCSI CDB are optional parameters, and may be selected according to different opcodes and actual needs of the application scenario, which is not limited herein.
  • the data transmission direction is used to indicate that the transmission direction of the second SCSI request command is to send data to the storage device by the host.
  • the HBA driver of the host sends a second SCSI request command to the HBA driver of the storage device through the data channel.
  • the SCSI driver of the host After the management unit of the host acquires management data according to the management request, and then the SCSI driver of the host encapsulates the management data in the second SCSI request command, the SCSI driver of the host sends the second SCSI request command to the HBA driver of the host, and the host
  • the HBA driver converts the format of the second SCSI request command into a format that can be transmitted over a data channel carried in Fibre Channel, etc., and finally sends the second SCSI request command to the storage through a data channel established with the storage device.
  • HBA driver for the device for the device.
  • the HBA driver of the storage device receives the second SCSI request command sent by the HBA driver of the host through the data channel.
  • the HBA driver of the storage device After the HBA driver of the storage device receives the second SCSI request command sent by the HBA driver of the host, the HBA driver of the storage device sends the second SCSI request command.
  • the format is converted to the format required by the SCSI protocol so that the SCSI driver of the storage device can parse the second SCSI request command.
  • the SCSI driver of the storage device parses the second SCSI request command to obtain management data.
  • the storage device's SCSI driver parses the second SCSI request command to obtain the SCSI CDB and management data contained in the second SCSI request command for indicating that the second SCSI request command is used to write management data to the storage device.
  • the management unit of the storage device manages the storage device according to the management data.
  • the management unit of the storage device starts a management process corresponding to the management data according to the management data, thereby implementing management of the storage device.
  • the HBA driver of the storage device sends a SCSI response command to the host HBA driver through the data channel.
  • the SCSI response command is used to notify the host that the management of the storage device is completed. After the management unit of the storage device performs corresponding management operations on the storage device according to the management data, the SCSI response command can be sent to the HBA driver of the host through the data channel.
  • the HBA driver of the host receives the SCSI response command sent by the HBA driver of the storage device through the data channel.
  • the HBA driver of the host sends the SCSI response command to the management unit of the host, and the management unit of the host knows that the management of the storage device has been completed.
  • the storage device when the storage device detects that a hard disk is about to expire, the storage device needs to immediately notify the host that the hard disk is about to fail.
  • the storage device actively sends a management request to the host, and the specific process for the host to manage the storage device according to the management request may be: the management software of the storage device detects that the hard disk is about to be invalid, that is, the management request requires the host to process, The management unit of the storage device can trigger a request event. After the management unit of the host detects that the management unit of the storage device triggers the request event, the HBA driver of the host can send the HBA driver to the storage device through the data channel.
  • the SCSI driver of the storage device parses the first SCSI request command to obtain a SCSI CDB included in the first SCSI request command for indicating that the first SCSI request command is used to read a storage device requiring management processing by the host, and then storing
  • the HBA driver of the device sends a management request (the management request can include various parameters such as event identifier, hard disk capacity, hard disk type, hard disk location, etc.) to the host through the data channel according to the SCSI CDB included in the first SCSI request command.
  • the HBA driver (wherein, when the management software of the storage device detects that a certain hard disk is about to fail, the request event may not be triggered, but wait for the first SCSI request command sent by the host for reading the management request of the storage device that requires the host to process. After receiving the first SCSI request command, sending the management request to the host . After receiving the management request sent by the HBA driver of the storage device through the data channel, the HBA driver of the host can convert the management request into an alarm and display it in the alarm list, and can notify the maintenance personnel.
  • the management unit of the host can obtain management data (for example, the location of the new hard disk, the type of the new hard disk, the location of the disk to be replaced, the type of the disk to be replaced, etc.) Then, the host's SCSI driver encapsulates the acquired management data into the second SCSI request command and transmits it to the host's HBA driver. At this time, the host's HBA driver can send the second SCSI request command to the storage through the data channel.
  • management data for example, the location of the new hard disk, the type of the new hard disk, the location of the disk to be replaced, the type of the disk to be replaced, etc.
  • the HBA driver of the device after receiving the second SCSI request command, the HBA driver of the storage device forwards the second SCSI request command to the SCSI driver of the storage device, and the SCSI driver of the storage device parses the second SCSI request command to obtain the package. Management data in the second SCSI request command.
  • the management unit of the storage device The hard disk reconfiguration process is started according to the management data, thereby implementing management of the storage device.
  • the HBA driver of the storage device can also send a SCSI response command to the host HBA driver to notify the host that the reconfiguration has started through the data channel.
  • the host sends a management request to the storage device through the established data channel, so that the storage device can perform the management request according to the The storage device is managed.
  • the method may include:
  • the management unit of the host generates a management request, and then the host's SCSI driver encapsulates the management request in the SCSI request command.
  • the management request is used to request the storage device to manage the storage device.
  • the host's management unit can generate a management request, then transfer the generated management request to the host's SCSI driver, and the host's SCSI driver encapsulates the management request in the SCSI request command.
  • the HBA driver of the host sends a SCSI request command to the HBA driver of the storage device through the data channel.
  • the host SCSI driver fills the SCSI request command with the management request, SCSI CDB, data transfer direction, and other 10 attributes according to the requirements of the SCSI protocol, and then sends the SCSI request command to the host HBA driver, the host HBA driver.
  • the format of the SCSI request command is converted to a format that can be transmitted on a data channel carried by Fibre Channel, etc., and finally the HBA driver of the host can send the SCSI request command to the HBA driver of the storage device through the data channel.
  • the HBA driver of the storage device receives the SCSI request command sent by the HBA driver of the host through the data channel.
  • the HBA driver of the storage device After receiving the SCSI request command sent by the HBA driver of the host, the HBA driver of the storage device converts the format of the second SCSI request command into a format required by the SCSI protocol, so that the SCSI driver of the storage device can solve the SCSI request command.
  • the SCSI driver of the storage device resolves the SCSI request command to obtain a management request.
  • the management unit of the storage device manages the storage device according to the management request.
  • the management unit of the storage device can manage the storage device according to the management request obtained by the parsing.
  • the management request can be configuration information such that the host can complete the configuration of the storage device by sending a management request to the storage device.
  • the HBA driver of the storage device sends the HBA driver to the host through the data channel. Send a management response.
  • the HBA driver of the storage device After the management unit of the storage device completes the management of the storage device according to the management request, the HBA driver of the storage device sends a management response to the HBA driver of the host through the data channel.
  • the management response includes data that needs to be returned to the host after the storage device manages the storage device according to the management request.
  • the HBA driver of the host receives the management response sent by the HBA driver of the storage device through the data channel.
  • the HBA driver of the storage device can send a management response including the data that needs to be returned to the host to the host through the data channel. In this way, the HBA driver of the host can receive the management response sent by the storage device through the data channel, and obtain the data required by itself.
  • the management request sent by the host to the storage device may be used to manage the SCSI device visible to the host, or may be used to manage the SCSI device that is invisible to the host.
  • the embodiment is not limited herein.
  • the host needs to upgrade the controller in the storage device, and the management unit of the host can generate a management request, where the management request is used to request the storage device to upgrade the controller in the storage device.
  • the host's SCSI driver can encapsulate the generated management request in a SCSI request command and transfer the SCSI request command that encapsulates the management request to the host's HBA driver.
  • the HBA driver of the host sends the SCSI request command to the HBA driver of the storage device through the data channel.
  • the HBA driver of the storage device After receiving the SCSI request command sent by the HBA driver of the host, the HBA driver of the storage device transmits the SCSI request command to the SCSI driver of the storage device, and the SCSI driver of the storage device parses the received SCSI request command to the management request, and Forward management requests to the snap-in of the storage device.
  • the management unit of the storage device arbitrarily selects one controller to perform an upgrade action according to a management request for requesting an upgrade of the controller in the storage device.
  • the HBA driver of the storage device After the management unit of the storage device performs the upgrade operation, the HBA driver of the storage device
  • the execution result (such as whether the upgrade is successful, the time taken for the upgrade, the identity of the controller performing the upgrade, the original version of the upgraded controller, the upgraded version of the upgraded controller, the business health status, etc.) can be carried in the management response.
  • the data is returned to the HBA driver of the host so that the host can get the execution result.
  • the host may continue to initiate a management request for requesting the storage device to perform service switching according to the received execution result to the storage device.
  • the management unit of the storage device may perform a corresponding service switching action according to the management request for requesting the service switching, so as to complete the management of the storage device, and may further return the corresponding execution result to the host.
  • the host sends a first SCSI request command to the storage device through the data channel, so that after the storage device has a management request and the host needs to perform processing, after the storage device receives the first SCSI request command.
  • the two-way communication between the host and the storage device is realized through the data channel, and the management of the storage device is realized through the data channel.
  • the host can obtain the management request of the storage device in time by triggering the request event, thereby responding to the management request in time, thereby improving work efficiency.
  • the embodiment of the present invention provides a host, where the host and the storage device form a storage system, a data channel is established between the host and the storage device, but a management channel has not been established, and the host queries through the data channel.
  • the host may include: an HBA driver 61, Management unit 62.
  • the HBA driver 61 is configured to send a first SCSI request command to the storage device through the data channel.
  • the HBA driver 61 is further configured to receive a management request sent by the storage device by using the data channel according to the first SCSI request command, where the management request is used to request the host to manage the storage device.
  • the management unit 62 is configured to manage the storage device according to the management request obtained by the HBA driver 61.
  • the management unit 62 is further configured to: before the HBA driver 61 sends the first SCSI request command to the storage device by using the data channel, detecting that the storage device triggers a request event; wherein the request event Triggered when the storage device needs to send the management request to the host.
  • the management unit 62 is further configured to acquire management data according to the management request obtained by the HBA driver 61.
  • the host further includes: a SCSI driver 63.
  • the SCSI driver 63 is configured to encapsulate the management data obtained by the management unit 62 in a second SCSI request command; wherein the management data is used to manage the storage device.
  • the HBA driver 61 is further configured to send, by using the data channel, the second SCSI request command obtained by the SCSI driver 63 to the storage device, so that the storage device is configured according to the second SCSI request command. Manage data for management.
  • the HBA driver 61 is further configured to receive the storage device through the data channel after sending the second SCSI request command to the storage device by using the data channel.
  • the SCSI response command is sent, and the SCSI response command is used to notify the host that management of the storage device has been completed.
  • the host provided by the embodiment of the present invention sends the first to the storage device through the data channel.
  • the SCSI requests the command, after the storage device receives the first SCSI request command, and sends a management request to the host through the data channel according to the first SCSI request command, when the storage device has a management request requiring the host to process, and then the host receives the management request according to the received
  • the management request manages the storage device; and the host can send a SCSI request command encapsulating the management request to the storage device through the data channel, so that after the storage device receives the SCSI request command, the storage device encapsulates the management request according to the SCSI request command.
  • the host can obtain the management request of the storage device in time by triggering the request event, thereby responding to the management request in time, thereby improving work efficiency.
  • the sixth embodiment of the present invention provides a host, where the host and the storage device form a storage system, a data channel is established between the host and the storage device, but a management channel has not been established, and the host queries through the data channel.
  • the host may include: a management unit 71, a SCSI driver 72, and an HBA driver 73.
  • the management unit 71 is configured to generate a management request.
  • the SCSI driver 72 is configured to encapsulate the management request obtained by the management unit 71 in a SCSI request command.
  • the management request is used to request the storage device to manage the storage device.
  • An HBA driver 73 configured to send, by using the data channel, the SCSI request command obtained by the SCSI driver 72 to the storage device, so that the storage device accesses the storage device according to a management request in the SCSI request command. Manage.
  • the HBA driver 73 is further configured to: after the sending the SCSI request command to the storage device by using the data channel, receive a management response sent by the storage device by using the data channel, where the management response is And the data that needs to be returned to the host after the storage device manages the storage device according to the management request.
  • the host provided by the embodiment of the present invention sends a first SCSI request command to the storage device through the data channel, so that after the storage device has a management request and needs to be processed by the host, the storage device according to the first SCSI
  • the request command sends a management request to the host through the data channel, and the host manages the storage device according to the received management request; and the host can send a SCSI request command encapsulating the management request to the storage device through the data channel, so that the storage device receives the After the SCSI request command, the storage device is managed according to the management request encapsulated in the SCSI request command.
  • the host and the data channel are implemented. Two-way communication of the storage device, and management of the storage device through the data channel.
  • the host can obtain the management request of the storage device in time by triggering the request event, thereby responding to the management request in time, thereby improving work efficiency.
  • the seventh embodiment of the present invention provides a storage device, where the storage device and the host comprise a storage system, a data channel is established between the host and the storage device, but a management channel has not been established, and the host passes the data channel.
  • the storage device may include: an HBA driver 81.
  • the HBA driver 81 is configured to receive the first sending by the host by using the data channel. SCSI request command.
  • the HBA driver 81 is further configured to send, by using the data channel, a management request to the host according to the first SCSI request command, so that the host manages the storage device according to the management request;
  • the management request is for requesting the host to manage the storage device.
  • the storage device may further include: a management unit 82.
  • the management unit 82 is configured to trigger a request event before the HBA driver 81 receives the first SCSI request command sent by the host through the data channel, where the request event is that the storage device needs to be sent to the host Triggered when the management request is sent.
  • the HBA driver 81 is further configured to: after the sending, by the data channel, a management request to the host according to the first SCSI request command, receiving the host And a second SCSI request command sent by the data channel, where the second SCSI request command includes management data, where the management data is used to manage the storage device.
  • the storage device further includes: a SCSI drive 83.
  • the SCSI driver 83 is configured to parse the second SCSI request command obtained by the HBA driver 81 to obtain the management data.
  • the management unit 82 is further configured to manage the storage device according to the management data obtained by the SCSI driver 83.
  • the HBA driver 81 is further configured to send a SCSI response command to the host by using the data channel after the storing the storage device according to the management data;
  • the SCSI response command is used to notify the host that management of the storage device has been completed.
  • the storage device receives the host through the data channel.
  • the management request may be sent to the host through the data channel according to the received first SC SI request command, so that the host manages the storage device according to the received management request, only between the host and the storage device.
  • the management of the storage device is implemented through the data channel.
  • the host can obtain the management request of the storage device in time by triggering the request event, thereby responding to the management request in time, thereby improving work efficiency.
  • the embodiment 8 of the present invention provides a host, where the host and the storage device form a storage system, a data channel is established between the host and the storage device, but a management channel has not been established, and the host queries through the data channel.
  • the host includes: at least one processor 91, a memory 92, a communication interface 93, and a bus 94.
  • the at least one processor 91, the memory 92, and the communication interface 93 pass through the bus.
  • 94 connects and completes communication with each other, where:
  • the bus 94 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (ESA) bus.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component Interconnect
  • ESA Extended Industry Standard Architecture
  • the bus 94 can be divided into an address bus, a data bus, a control bus, and the like.
  • Figure 1 shows only one thick line, but does not mean that there is only one bus or one type of bus.
  • the memory 92 is for storing executable program code, the program code including computer operating instructions.
  • the memory 92 may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory.
  • the processor 91 may be a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
  • the communication interface 93 is mainly used to implement communication between devices in this embodiment.
  • the processor 91 is configured to execute executable program code stored in the memory 92, specifically for performing the following operations:
  • the processor 91 is configured to send, by using the data channel, a first SCSI request to the storage device, and receive a management request sent by the storage device by using the data channel according to the first SCSI request command, where The management request is used to request the host to manage the storage device; and manage the storage device according to the management request.
  • the processor 91 is further configured to detect that the storage device is triggered before sending the first SCSI request command to the storage device by using the data channel.
  • the request event is triggered when the storage device needs to send the management request to the host.
  • the processor 91 is specifically configured to acquire management data according to the management request, and encapsulate the management data in a second SCSI request command.
  • the data is used to manage the storage device; the second SCSI request command is sent to the storage device through the data channel, so that the storage device manages according to management data in the second SCSI request command.
  • the processor 91 is further configured to: after the sending, by the data channel, the second SCSI request command to the storage device, receive the storage device
  • the SCSI response command sent by the data channel, the SCSI response command is used to notify the host that management of the storage device is completed.
  • the host provided by the embodiment of the present invention sends the first to the storage device through the data channel.
  • the storage device receives the first SCSI request command, when the storage device has a management request that requires the host to process, according to the first SCSI request Sending a management request to the host through the data channel, and then the host manages the storage device according to the received management request; and the host can send a SCSI request command encapsulating the management request to the storage device through the data channel, so that the storage device receives the SCSI After the command is requested, the storage device is managed according to the management request encapsulated in the SCSI request command.
  • the host and the storage are implemented through the data channel. Two-way communication of the device, and management of the storage device through the data channel.
  • the host can obtain the management request of the storage device in time by triggering the request event, thereby responding to the management request in time, thereby improving work efficiency.
  • the embodiment of the present invention provides a host, where the host and the storage device form a storage system, and a data channel is established between the host and the storage device, but a management channel has not been established, and the host queries through the data channel.
  • the host includes: at least one processor 1001, a memory 1002, a communication interface 1003, and a bus 1004.
  • the at least one processor 1001, the memory 1002, and the communication interface 1003 are connected by a bus 1004 and complete communication with each other. , among them:
  • the bus 1004 can be an ISA bus, a PCI bus, or an EISA bus.
  • the bus 1004 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 12, but it does not mean that there is only one bus or one type of bus.
  • the memory 1002 is for storing executable program code, the program code including computer operation instructions.
  • Memory 1002 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • the processor 1001 may be a CPU, or an ASIC, or one or more integrated circuits configured to implement embodiments of the present invention.
  • the communication interface 1003 is mainly used to implement communication between devices in this embodiment.
  • the processor 1001 is configured to execute executable program code stored in the memory 1002, specifically for performing the following operations:
  • the processor 1001 is configured to generate a management request, and encapsulate the management request in a SCSI request command, where the management request is used to request the storage device to manage the storage device;
  • the channel sends the SCSI request command to the storage device, so that the storage device manages the storage device according to a management request in the SCSI request command.
  • the processor 1001 is further configured to: after the sending the SCSI request command to the storage device by using the data channel, receive the storage device by using the A management response sent by the data channel, where the management response includes data that needs to be returned to the host after the storage device manages the storage device according to the management request.
  • the host provided by the embodiment of the present invention sends the first to the storage device through the data channel.
  • the SCSI requests the command, after the storage device receives the first SCSI request command, and sends a management request to the host through the data channel according to the first SCSI request command, when the storage device has a management request requiring the host to process, and then the host receives the management request according to the received
  • the management request manages the storage device; and the host can send a SCSI request command encapsulating the management request to the storage device through the data channel, so that after the storage device receives the SCSI request command, the storage device encapsulates the management request according to the SCSI request command.
  • Example 10 when the storage device has a management request that requires host processing, by triggering the request event, the host can obtain the management request of the storage device in time, and then timely Respond to management requests and increase productivity.
  • the embodiment 10 of the present invention provides a storage device, where the storage device and the host constitute a storage system, a data channel is established between the host and the storage device, but a management channel has not been established, and the host passes the data channel.
  • the storage device includes: at least one processor 1101, a memory 1102, a communication interface 1103, and a bus 1104, the at least one processor 1101, the memory 1102, and the communication
  • the interfaces 1103 are connected by the bus 1104 and complete communication with each other, wherein:
  • the bus 1104 can be an ISA bus, a PCI bus, or an EISA bus.
  • the bus 1104 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 13, but it does not mean that there is only one bus or one type of bus.
  • the memory 1102 is for storing executable program code, the program code including computer operation instructions.
  • Memory 1102 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • the processor 1101 may be a CPU, or an ASIC, or one or more integrated circuits configured to implement embodiments of the present invention.
  • the communication interface 1103 is mainly used to implement communication between devices in this embodiment.
  • the processor 1101 is configured to execute executable program code stored in the memory 1102, specifically for performing the following operations:
  • the processor 1101 is configured to receive a first SCSI request command sent by the host by using the data channel, and send a management request to the host by using the data channel according to the first SCSI request command, so that the The host manages the storage device according to the management request.
  • the management request is used to request the host to manage the storage device.
  • the processor 1101 is further configured to: before the receiving the first SCSI request command sent by the host by using the data channel, triggering a request event; The request event is triggered when the storage device needs to send the management request to the host.
  • the processor 1 101 is further configured to: after the sending, by the data channel, the management request to the host according to the first SCSI request command, The second host sent by the data channel
  • the second SCSI request command includes management data
  • the management data is used to manage the storage device
  • the second SCSI request command is parsed to obtain the management data
  • the processor 1 101 is further configured to send, by using the data channel, the SCSI to the host after the storage device is managed according to the management data. Responding to the command; wherein the SCSI response command is used to notify the host that management of the storage device has been completed.
  • the storage device provided by the embodiment of the present invention, after receiving the first SCSI request command sent by the host through the data channel, may send a management request to the host through the data channel according to the received first SCSI request command, so that the host according to the received management request
  • the storage device is managed.
  • the management of the storage device is implemented through the data channel.
  • Example 11 The embodiment of the present invention provides a storage system. As shown in FIG. 14, the system includes: a host 1201 and a storage device 1202. The data channel is established between the host 1201 and the storage device 1202, but management has not been established yet. Channel, the host 1201 queries the virtual small computer system interface SCSI device through the data channel;
  • the host 1201 is configured to send a first SCSI request command to the storage device 1202 through the data channel.
  • the storage device 1202 is configured to receive a first SCSI request command sent by the host 1201 through the data channel, and send a management request to the host 1201 through the data channel according to the first SCSI request command.
  • the host 1201 is further configured to receive, by the storage device 1202, the management request that is sent by using the data channel according to the first SCSI request command, where the management request is used to request the host 1201 to perform the storage device 1202. Management; managing the storage device 1202 according to the management request
  • the host 1201 is further configured to generate a management request, and encapsulate the management request in a SCSI request command.
  • the management request is used to request the storage device 1202.
  • the storage device 1202 performs management; and sends the SCSI request command to the storage device 1202 through the data channel.
  • the storage device 1202 is further configured to receive the SCSI request command sent by the host 1201 through the data channel, and manage the storage device 1202 according to a management request in the SCSI request command.
  • the host sends a first SCSI request command to the storage device through the data channel, so that after the storage device has a management request and needs to be processed by the host, the storage device receives the first SCSI request command.
  • a SCSI request command sends a management request to the host through the data channel, and the host manages the storage device according to the received management request; and the host can send a SCSI request command encapsulating the management request to the storage device through the data channel, so that the storage device is received After the SCSI request command, the storage device is managed according to the management request encapsulated in the SCSI request command.
  • the host and the data channel are implemented. Two-way communication of the storage device, and management of the storage device through the data channel.
  • the host can obtain the management request of the storage device in time by triggering the request event, thereby responding to the management request in time, thereby improving work efficiency.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used.
  • the combination may be integrated into another device, or some features may be ignored or not performed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as the unit may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiment of the present embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be in the form of hardware Implementation can also be implemented in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a readable storage medium.
  • the technical solution of the present invention may be embodied in the form of a software product in the form of a software product, or a part of the technical solution, which is stored in a storage medium.
  • a number of instructions are included to cause a device (which may be a microcontroller, chip, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Storage Device Security (AREA)

Abstract

本发明实施例公开了一种存储设备的管理方法及设备,涉及通信领域,釆用数据通道实现了对存储设备的管理。具体方案为:通过数据通道向存储设备发送第一SCSI请求命令;接收存储设备根据第一SCSI请求命令通过数据通道发送的管理请求,管理请求用于请求主机对存储设备进行管理;根据管理请求对存储设备进行管理。本发明用于对存储设备的管理过程中。

Description

一种存储设备的管理方法及设备 技术领域
本发明涉及通信领域, 尤其涉及一种存储设备的管理方法及设 备。 背景技术
随着科技的不断发展, 在电信网络、 互联网和云存储等应用中 需要存储大量的数据, 并且还需要对存储的这些数据进行不断的访 问。 在这种情况下, 可以使用釆用小型计算机系统接口 ( Small Computer System Interface , SCSI ) 协议的存储设备来进行数据的存 储。
在由主机和釆用 SCSI 协议的存储设备组成的存储系统中, 主 机可以通过数据通道 (如, 光纤通道) 与存储设备进行通信。 由于
SCSI协议的限制, 在主机与存储设备釆用数据通道进行通信时, 主 机只能作为请求的发起端, 存储设备只能作为请求的执行端。 也就 是说, 只可以是由主机主动发起请求, 釆用数据通道与存储设备进 行通信。 但是, 若需要对存储设备进行管理, 那么不仅需要主机可 以作为请求的发起端, 也需要存储设备可以作为请求的发起端。 也 就是说在对存储设备进行管理的过程中, 需要实现主机和存储设备 之前的双向通信, 但是由于数据通道只能进行单向的数据交互, 即 存储设备只能作为请求的执行端, 不能主动向主机发送消息, 这样 便不能釆用数据通道对存储设备进行管理。 发明内容
本发明的实施例提供一种存储设备的管理方法及设备, 釆用数 据通道实现了对存储设备的管理。
为达到上述目的, 本发明的实施例釆用如下技术方案: 本发明的第一方面, 提供一种存储设备的管理方法, 应用于主 机, 所述主机和所述存储设备组成存储系统, 所述主机和所述存储 设备之间已建立数据通道, 但尚未建立管理通道, 所述主机通过所 述数据通道查询到虚拟的小型计算机系统接口 SCSI设备,所述方法 包括:
通过所述数据通道向所述存储设备发送第一 SCSI请求命令; 接收所述存储设备根据所述第一 SCSI 请求命令通过所述数据 通道发送的管理请求; 所述管理请求用于请求所述主机对所述存储 设备进行管理;
根据所述管理请求对所述存储设备进行管理。
结合第一方面, 在一种可能的实现方式中,
在所述通过所述数据通道向所述存储设备发送第一 SCSI 请求 命令之前, 还包括:
检测到所述存储设备触发了请求事件; 其中, 所述请求事件为 所述存储设备需要向所述主机发送所述管理请求时触发的。
结合第一方面和上述可能的实现方式, 在另一种可能的实现方 式中,
所述根据所述管理请求对所述存储设备进行管理, 包括: 根据所述管理请求获取管理数据, 并将所述管理数据封装在第 二 SCSI请求命令中; 其中, 所述管理数据用于对所述存储设备进行 管理;
通过所述数据通道向所述存储设备发送所述第二 SCSI 请求命 令,以便所述存储设备根据所述第二 SCSI请求命令中的管理数据进 行管理。
结合第一方面和上述可能的实现方式, 在另一种可能的实现方 式中,
在所述通过所述数据通道向所述存储设备发送所述第二 SCSI 请求命令之后, 还包括:
接收所述存储设备通过所述数据通道发送的 SCSI 响应命令, 所述 SCSI 响应命令用于通知所述主机对所述存储设备的管理已完 成。 本发明的第二方面, 提供一种存储设备的管理方法, 应用于主 机, 所述主机和所述存储设备组成存储系统, 所述主机和所述存储 设备之间已建立数据通道, 但尚未建立管理通道, 所述主机通过所 述数据通道查询到虚拟的小型计算机系统接口 SCSI设备,所述方法 包括:
生成管理请求, 并将所述管理请求封装在 SCSI 请求命令中; 其中, 所述管理请求用于请求所述存储设备对所述存储设备进行管 理;
通过所述数据通道向所述存储设备发送所述 SCSI 请求命令, 以便所述存储设备根据所述 SCSI 请求命令中的管理请求对所述存 储设备进行管理。
结合第二方面, 在一种可能的实现方式中,
在所述通过所述数据通道向所述存储设备发送所述 SCSI 请求 命令之后, 还包括:
接收所述存储设备通过所述数据通道发送的管理响应, 所述管 理响应中包含所述存储设备根据所述管理请求对所述存储设备进行 管理后得到的需要向所述主机返回的数据。 本发明的第三方面, 提供一种存储设备的管理方法, 应用于所 述存储设备, 所述存储设备和主机组成存储系统, 所述主机和所述 存储设备之间已建立数据通道, 但尚未建立管理通道, 所述主机通 过所述数据通道查询到虚拟的小型计算机系统接口 SCSI设备,所述 方法包括:
接收所述主机通过所述数据通道发送的第 ― SCSI请求命令; 根据所述第一 SCSI 请求命令通过所述数据通道将管理请求发 送至所述主机, 以便所述主机根据所述管理请求对所述存储设备进 行管理; 其中, 所述管理请求用于请求所述主机对所述存储设备进 行管理。
结合第三方面, 在一种可能的实现方式中,
在所述接收所述主机通过所述数据通道发送的第一 SCSI 请求 命令之前, 还包括:
触发请求事件; 其中, 所述请求事件为所述存储设备需要向所 述主机发送所述管理请求时触发的。
结合第三方面和上述可能的实现方式, 在另一种可能的实现方 式中,
在所述根据所述第一 SCSI 请求命令通过所述数据通道将管理 请求发送至所述主机之后, 还包括:
接收所述主机通过所述数据通道发送的第二 SCSI 请求命令; 其中, 所述第二 SCSI请求命令中包含管理数据, 所述管理数据用于 对所述存储设备进行管理;
解析所述第二 SCSI请求命令得到所述管理数据;
根据所述管理数据对所述存储设备进行管理。
结合第三方面和上述可能的实现方式, 在另一种可能的实现方 式中,
在所述根据所述管理数据对所述存储设备进行管理之后, 还包 括:
通过所述数据通道向所述主机发送 SCSI 响应命令; 其中, 所 述 SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。 本发明的第四方面, 提供一种主机, 所述主机和存储设备组成 存储系统, 所述主机和所述存储设备之间已建立数据通道, 但尚未 建立管理通道, 所述主机通过所述数据通道查询到虚拟的小型计算 机系统接口 SCSI设备, 所述主机包括:
总线适配卡 HBA驱动,用于通过所述数据通道向所述存储设备 发送第一 SCSI请求命令; 所述 HBA驱动, 还用于接收所述存储设备根据所述第一 SCSI 请求命令通过所述数据通道发送的管理请求; 所述管理请求用于请 求所述主机对所述存储设备进行管理;
管理单元,用于根据所述 HBA驱动得到的所述管理请求对所述 存储设备进行管理。
结合第四方面, 在一种可能的实现方式中,
所述管理单元,还用于在所述 HBA驱动通过所述数据通道向所 述存储设备发送第一 SCSI请求命令之前,检测到所述存储设备触发 了请求事件; 其中, 所述请求事件为所述存储设备需要向所述主机 发送所述管理请求时触发的。
结合第四方面和上述可能的实现方式, 在另一种可能的实现方 式中,
所述管理单元,还用于根据所述 HBA驱动得到的所述管理请求 获取管理数据;
所述主机, 还包括:
SCSI驱动, 用于并将所述管理单元得到的所述管理数据封装在 第二 SCSI请求命令中; 其中, 所述管理数据用于对所述存储设备进 行管理;
所述 HBA驱动,还用于通过所述数据通道向所述存储设备发送 所述 SCSI驱动得到的所述第二 SCSI请求命令, 以便所述存储设备 根据所述第二 SCSI请求命令中的管理数据进行管理。
结合第四方面和上述可能的实现方式, 在另一种可能的实现方 式中,
所述 HBA驱动,还用于在所述通过所述数据通道向所述存储设 备发送所述第二 SCSI请求命令之后,接收所述存储设备通过所述数 据通道发送的 SCSI响应命令, 所述 SCSI响应命令用于通知所述主 机对所述存储设备的管理已完成。
结合第四方面和上述可能的实现方式, 在另一种可能的实现方 式中, 所述管理单元, 还用于生成管理请求;
所述 SCSI 驱动, 还用于将所述管理单元得到的所述管理请求 封装在 SCSI请求命令中; 其中, 所述管理请求用于请求所述存储设 备对所述存储设备进行管理;
所述 HBA驱动,还用于通过所述数据通道向所述存储设备发送 所述 SCSI驱动得到的所述 SCSI请求命令, 以便所述存储设备根据 所述 SCSI请求命令中的管理请求对所述存储设备进行管理。
结合第四方面和上述可能的实现方式, 在另一种可能的实现方 式中,
所述 HBA驱动,还用于在所述通过所述数据通道向所述存储设 备发送所述 SCSI请求命令之后,接收所述存储设备通过所述数据通 道发送的管理响应, 所述管理响应中包含所述存储设备根据所述管 理请求对所述存储设备进行管理后得到的需要向所述主机返回的数 据。 本发明的第五方面, 提供一种存储设备, 所述存储设备和主机 组成存储系统, 所述主机和所述存储设备之间已建立数据通道, 但 尚未建立管理通道, 所述主机通过所述数据通道查询到虚拟的小型 计算机系统接口 SCSI设备, 所述存储设备包括:
总线适配卡 HBA驱动,用于接收所述主机通过所述数据通道发 送的第一 SCSI请求命令;
所述 HBA驱动, 还用于根据所述第一 SCSI请求命令通过所述 数据通道将管理请求发送至所述主机, 以便所述主机根据所述管理 请求对所述存储设备进行管理; 其中, 所述管理请求用于请求所述 主机对所述存储设备进行管理。
结合第五方面, 在一种可能的实现方式中, 还包括:
管理单元,用于在所述 HBA驱动接收所述主机通过所述数据通 道发送的第一 SCSI请求命令之前, 触发请求事件; 其中, 所述请求 事件为所述存储设备需要向所述主机发送所述管理请求时触发的。 结合第五方面和上述可能的实现方式, 在另一种可能的实现方 式中,
所述 HBA驱动, 还用于在所述根据所述第一 SCSI请求命令通 过所述数据通道将管理请求发送至所述主机之后, 接收所述主机通 过所述数据通道发送的第二 SCSI请求命令; 其中, 所述第二 SCSI 请求命令中包含管理数据, 所述管理数据用于对所述存储设备进行 管理;
所述存储设备, 还包括:
SCSI驱动,用于解析所述 HBA驱动得到的所述第二 SCSI请求 命令得到所述管理数据;
所述管理单元, 还用于根据所述 SCSI 驱动得到的所述管理数 据对所述存储设备进行管理。
结合第五方面和上述可能的实现方式, 在另一种可能的实现方 式中,
所述 HBA驱动,还用于在所述管理单元根据所述所述管理数据 对所述存储设备进行管理之后, 通过所述数据通道向所述主机发送 SCSI 响应命令; 其中, 所述 SCSI 响应命令用于通知所述主机对所 述存储设备的管理已完成。 本发明的第六方面, 提供一种主机, 所述主机和存储设备组成 存储系统, 所述主机和所述存储设备之间已建立数据通道, 但尚未 建立管理通道, 所述主机通过所述数据通道查询到虚拟的小型计算 机系统接口 SCSI设备;
所述主机包括: 至少一个处理器、 存储器、 通信接口和总线, 所述至少一个处理器、 所述存储器和所述通信接口通过所述总线连 接并完成相互间的通信; 所述处理器, 用于执行所述存储器中存储 的可执行程序代码, 具体的用于执行以下操作:
所述处理器, 用于通过所述数据通道向所述存储设备发送第一 SCSI请求命令; 接收所述存储设备根据所述第一 SCSI请求命令通 过所述数据通道发送的管理请求, 所述管理请求用于请求所述主机 对所述存储设备进行管理; 根据所述管理请求对所述存储设备进行 管理。
结合第六方面, 在一种可能的实现方式中,
所述处理器, 还用于在所述通过所述数据通道向所述存储设备 发送第一 SCSI 请求命令之前, 检测到所述存储设备触发了请求事 件; 其中, 所述请求事件为所述存储设备需要向所述主机发送所述 管理请求时触发的。
结合第六方面和上述可能的实现方式, 在另一种可能的实现方 式中,
所述处理器, 具体用于根据所述管理请求获取管理数据, 并将 所述管理数据封装在第二 SCSI请求命令中; 其中, 所述管理数据用 于对所述存储设备进行管理; 通过所述数据通道向所述存储设备发 送所述第二 SCSI请求命令, 以便所述存储设备根据所述第二 SCSI 请求命令中的管理数据进行管理。
结合第六方面和上述可能的实现方式, 在另一种可能的实现方 式中,
所述处理器, 还用于在所述通过所述数据通道向所述存储设备 发送所述第二 SCSI请求命令之后,接收所述存储设备通过所述数据 通道发送的 SCSI响应命令, 所述 SCSI响应命令用于通知所述主机 对所述存储设备的管理已完成。
结合第六方面和上述可能的实现方式, 在另一种可能的实现方 式中,
所述处理器, 还用于生成管理请求, 并将所述管理请求封装在
SCSI请求命令中; 其中, 所述管理请求用于请求所述存储设备对所 述存储设备进行管理; 通过所述数据通道向所述存储设备发送所述
SCSI请求命令, 以便所述存储设备根据所述 SCSI请求命令中的管 理请求对所述存储设备进行管理。
结合第六方面和上述可能的实现方式, 在另一种可能的实现方 式中,
所述处理器, 还用于在所述通过所述数据通道向所述存储设备 发送所述 SCSI请求命令之后,接收所述存储设备通过所述数据通道 发送的管理响应, 所述管理响应中包含所述存储设备根据所述管理 请求对所述存储设备进行管理后得到的需要向所述主机返回的数 据。 本发明的第七方面, 提供一种存储设备, 所述存储设备和主机 组成存储系统, 所述主机和所述存储设备之间已建立数据通道, 但 尚未建立管理通道, 所述主机通过所述数据通道查询到虚拟的小型 计算机系统接口 SCSI设备;
所述存储设备包括: 至少一个处理器、 存储器、 通信接口和总 线, 所述至少一个处理器、 所述存储器和所述通信接口通过所述总 线连接并完成相互间的通信; 所述处理器, 用于执行所述存储器中 存储的可执行程序代码, 具体的用于执行以下操作:
所述处理器, 用于接收所述主机通过所述数据通道发送的第一
SCSI请求命令; 根据所述第一 SCSI请求命令通过所述数据通道将 管理请求发送至所述主机, 以便所述主机根据所述管理请求对所述 存储设备进行管理; 其中, 所述管理请求用于请求所述主机对所述 存储设备进行管理。
结合第七方面, 在一种可能的实现方式中,
所述处理器, 还用于在所述接收所述主机通过所述数据通道发 送的第一 SCSI请求命令之前, 触发请求事件; 其中, 所述请求事件 为所述存储设备需要向所述主机发送所述管理请求时触发的。
结合第七方面和上述可能的实现方式, 在另一种可能的实现方 式中,
所述处理器, 还用于在所述根据所述第一 SCSI 请求命令通过 所述数据通道将管理请求发送至所述主机之后, 接收所述主机通过 所述数据通道发送的第二 SCSI请求命令; 其中, 所述第二 SCSI请 求命令中包含管理数据, 所述管理数据用于对所述存储设备进行管 理; 解析所述第二 SCSI请求命令得到所述管理数据; 根据所述管理 数据对所述存储设备进行管理。
结合第七方面和上述可能的实现方式, 在另一种可能的实现方 式中,
所述处理器, 还用于在所述根据所述管理数据对所述存储设备 进行管理之后, 通过所述数据通道向所述主机发送 SCSI响应命令; 其中,所述 SCSI响应命令用于通知所述主机对所述存储设备的管理 已完成。
本发明实施例提供的存储设备的管理方法及设备, 主机通过数 据通道向存储设备发送第一 SCSI请求命令, 以便存储设备在接收到 第一 SCSI请求命令之后,在存储设备有管理请求需要主机进行处理 时, 根据第一 SCSI请求命令通过数据通道向主机发送管理请求, 进 而主机根据接收到的管理请求对存储设备进行管理, 在主机和存储 设备之间仅建立了数据通道且尚未配置 SCSI设备给主机的情况下, 通过数据通道实现了对存储设备的管理。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下 面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。
图 1为本发明实施例 1提供的一种存储设备的管理方法流程图; 图 2为本发明实施例 2提供的一种存储设备的管理方法流程图; 图 3为本发明实施例 3提供的一种存储设备的管理方法流程图; 图 4为本发明实施例 4提供的一种存储设备的管理方法流程图; 图 5为本发明实施例 4提供的另一种存储设备的管理方法流程 图;
图 6为本发明实施例 5提供的一种主机的组成示意图;
图 7为本发明实施例 5提供的另一种主机的组成示意图; 图 8为本发明实施例 6提供的一种主机的组成示意图; 图 9为本发明实施例 7提供的一种存储设备的组成示意图; 图 10为本发明实施例 7提供的另一种存储设备的组成示意图; 图 1 1为本发明实施例 8提供的一种主机的组成示意图; 图 12为本发明实施例 9提供的一种主机的组成示意图; 图 13为本发明实施例 10提供的一种存储设备的组成示意图; 图 14为本发明实施例 1 1提供的一种存储系统的组成示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术 方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明 一部分实施例, 而不是全部的实施例。
另外, 本文中术语 "系统" 和 "网络" 在本文中常被可互换使 用。 本文中术语 "和 /或", 仅仅是一种描述关联对象的关联关系, 表示可以存在三种关系。 例如, A和 /或 B , 可以表示: 单独存在 A , 同时存在 A和 B , 单独存在 B这三种情况。 另外, 本文中字符 " /" , 一般表示前后关联对象是一种 "或" 的关系。 实施例 1
本发明实施例 1 提供一种存储设备的管理方法, 应用于主机, 该主机和存储设备组成存储系统。 主机和存储设备之间已建立数据 通道, 但尚未建立管理通道, 且尚未配置 SCSI设备给主机。 在主机 与存储设备之间的数据通道建立完成之后, 主机针对存储设备启动 扫描逻辑单元号 ( Logical Unit Number, LUN ) 动作, 该扫描 LUN 动作用于查询是否有可用的 SCSI设备。 当存储设备检测到主机的扫 描 LUN动作时, 可以通过建立的数据通道上报一个虚拟的 SCSI设 备给主机, 主机便可以查询到该虚拟的 SCSI设备, 即主机查询到有 可用的 SCSI设备, 此时主机便可以对存储设备进行访问。 其中, 本 发明实施例中所述的虚拟的 SCSI设备为一个未分配物理空间,不支 持读写, 支持少数私有命令, 支持数据通道连接时的扫描 LUN动作 (即主机可以扫描到该虚拟的 SCSI设备) 的特殊的 SCSI设备。 需要说明的是, 本发明实施例中主要是存储设备通过已建立的 数据通道主动向主机发送管理请求, 以便主机可以根据管理请求对 存储设备进行管理。 如图 1 所示, 该方法可以包括:
101、 主机通过已建立的数据通道向存储设备发送第一 SCSI请 求命令。
第一 SCSI 请求命令用于读取存储设备的需要主机处理的管理 请求, 例如第一 SCSI请求命令可以为 mode sense命令。 主机可以 通过与存储设备之间已建立的数据通道将用于读取存储设备的需要 主机处理的管理请求的第一 SCSI请求命令发送至存储设备。 这样, 当存储设备接收到主机通过数据通道发送的第一 SCSI 请求命令之 后, 若存储设备有管理请求需要主机进行处理, 此时存储设备便可 以根据接收到的第一 SCSI 请求命令通过数据通道将管理请求发送 至主机。
102、 主机接收存储设备根据第一 SCSI请求命令通过数据通道 发送的管理请求。 管理请求用于请求主机对存储设备进行管理。
103、 主机根据管理请求对存储设备进行管理。
例如, 管理请求中指示了需要进行管理的类型、 管理的对象等 信息, 主机可以根据管理请求中的指示信息进行对应的管理动作。
需要说明的是, 在本发明实施例中, 主机可以定时的向存储设 备发送第一 SCSI请求命令。这样当存储设备有管理请求需要主机进 行处理时,主机便可以通过定时发送的第一 SCSI请求命令来获取存 储设备的管理请求。 也就是说, 在本发明实施例中, 可以重复执行 步骤 101 , 以便主机可以立即获取到存储设备的管理请求, 进而根 据管理请求及时的对存储设备进行管理。
本发明实施例提供的存储设备的管理方法, 主机通过数据通道 向存储设备发送第一 SCSI 请求命令, 以便存储设备在接收到第一 SCSI请求命令之后, 在存储设备有管理请求需要主机进行处理时, 根据第一 SCSI请求命令通过数据通道向主机发送管理请求,进而主 机根据接收到的管理请求对存储设备进行管理, 在主机和存储设备 之间仅建立了数据通道且尚未配置 SCSI设备给主机的情况下,通过 数据通道实现了对存储设备的管理。 实施例 2
本发明实施例 2提供一种存储设备的管理方法, 应用于主机, 该主机和存储设备组成存储系统。 并且, 主机和存储设备之间已建 立数据通道, 但尚未建立管理通道, 且尚未配置 SCSI设备给主机。 在主机与存储设备之间数据通道建立完成之后, 主机针对存储设备 启动扫描 LUN动作, 该扫描 LUN动作用于查询是否有可用的 SCSI 设备, 当存储设备检测到主机的扫描 LUN动作时, 可以通过建立的 数据通道上报一个虚拟的 SCSI设备给主机,主机便可以查询到该虚 拟的 SCSI设备, 即主机查询到有可用的 SCSI设备, 此时主机便可 以对存储设备进行访问。 其中, 本发明实施例中所述的虚拟的 SCSI 设备为一个未分配物理空间, 不支持读写, 支持少数私有命令, 支 持数据通道连接时的扫描 LUN 动作 ( 即主机可以扫描到该虚拟的 SCSI设备) 的特殊的 SCSI设备。
需要说明的是, 本发明实施例中主要是主机通过已建立的数据 通道向存储设备发送管理请求, 以便存储设备可以根据管理请求对 存储设备进行管理。 如图 2所示, 该方法可以包括:
201、 主机生成管理请求, 并将管理请求封装在 SCSI请求命令 中。
其中, 管理请求用于请求存储设备对存储设备进行管理。 当主 机需要对存储设备进行管理时, 可以生成管理请求, 并将管理请求 封装在 SCSI请求命令中。
202、 主机通过数据通道向存储设备发送 SCSI请求命令, 以使 存储设备根据 SCSI请求命令中的管理请求对存储设备进行管理。
主机生成管理请求, 并将管理请求封装在 SCSI 请求命令中, 通过数据通道将该 SCSI请求命令发送至存储设备。 这样, 当存储设 备接收到主机通过数据通道发送的 SCSI请求命令之后 ,存储设备对 接收到的 SCSI请求命令进行解析获得封装在该 SCSI请求命令中的 管理请求, 存储设备根据管理请求对存储设备进行管理。
本发明实施例提供的存储设备的管理方法, 主机通过数据通道 向存储设备发送封装了管理请求的 SCSI请求命令, 以便存储设备在 接收到 SCSI请求命令之后, 根据 SCSI请求命令中封装的管理请求 对存储设备进行管理, 在主机和存储设备之间仅建立了数据通道且 尚未配置 SCSI设备给主机的情况下,通过数据通道实现了对存储设 备的管理。 实施例 3
本发明实施例 3提供一种存储设备的管理方法, 应用于存储设 备, 存储设备和主机组成存储系统。 其中, 主机和存储设备之间已 建立数据通道,但尚未建立管理通道,且尚未配置 SCSI设备给主机, 在主机与存储设备之间数据通道建立完成之后, 主机针对存储设备 启动扫描 LUN动作, 该扫描 LUN动作用于查询是否有可用的 SCSI 设备, 当存储设备检测到主机的扫描 LUN动作时, 可以通过建立的 数据通道上报一个虚拟的 SCSI设备给主机,主机便可以查询到该虚 拟的 SCSI设备, 即主机查询到有可用的 SCSI设备, 此时主机便可 以对存储设备进行访问。 其中, 本发明实施例中所述的虚拟的 SCSI 设备为一个未分配物理空间, 不支持读写, 支持少数私有命令, 支 持数据通道连接时的扫描 LUN 动作 ( 即主机可以扫描到该虚拟的 SCSI设备) 的特殊的 SCSI设备。
需要说明的是, 本发明实施例中主要是存储设备通过已建立的 数据通道主动向主机发送管理请求, 以便主机可以根据管理请求对 存储设备进行管理。 如图 3所示, 该方法可以包括:
301、 存储设备接收主机通过数据通道发送的第一 SCSI请求命 令。
其中, 第一 SCSI 请求命令用于读取存储设备的需要主机处理 的管理请求, 例如第一 SCSI请求命令可以为 mode sense命令。
302、 存储设备根据第一 SCSI请求命令通过数据通道将管理请 求发送至主机, 以便主机根据管理请求对存储设备进行管理。 其中, 管理请求用于请求主机对存储设备进行管理。
在存储设备接收到主机通过数据通道发送的第一 SCSI 请求命 令后, 存储设备可以先判断是否有管理请求需要主机进行处理, 并 在确定有管理请求需要主机进行处理时, 存储设备可以根据接收到 的第一 SCSI请求命令将管理请求通过数据通道发送至主机。 这样, 当主机接收到存储设备通过数据通道发送的管理请求之后, 便可以 根据该管理请求对存储设备进行管理。
本发明实施例提供的存储设备的管理方法, 存储设备接收到主 机通过数据通道发送的第一 SCSI请求命令之后,可以根据接收到的 第一 SCSI请求命令通过数据通道向主机发送管理请求, 以便主机根 据接收到的管理请求对存储设备进行管理, 在主机和存储设备之间 仅建立了数据通道且尚未配置 SCSI设备给主机的情况下,通过数据 通道实现了对存储设备的管理。 实施例 4
本发明实施例 4提供一种存储设备的管理方法, 应用于由主机 和存储设备组成的存储系统中, 且主机与存储设备之间已建立数据 通道, 但尚未建立管理通道, 且尚未配置 SCSI设备给主机。 在主机 与存储设备之间数据通道建立完成之后, 主机针对存储设备启动扫 描 LUN动作, 该扫描 LUN动作用于查询是否有可用的 SCSI设备, 当存储设备检测到主机的扫描 LUN动作时, 可以通过建立的数据通 道上 4艮一个虚拟的 SCSI 设备给主机, 主机便可以查询到该虚拟的 SCSI设备, 即主机查询到有可用的 SCSI设备, 此时主机便可以对 存储设备进行访问。 其中, 本发明实施例中所述的虚拟的 SCSI设备 为一个未分配物理空间, 不支持读写, 支持少数私有命令, 支持数 据通道连接时的扫描 LUN 动作 (即主机可以扫描到该虚拟的 SCSI 设备) 的特殊的 SCSI设备。
在本发明实施例的一种应用场景中, 存储设备通过已建立的数 据通道主动向主机发送管理请求, 以便主机可以根据管理请求对存 储设备进行管理, 如图 4所示, 该方法可以包括:
401、 存储设备的管理单元触发请求事件。
其中,请求事件为存储设备需要向主机发送管理请求时触发的, 该请求事件用于通知主机有管理请求需要其进行处理。 当存储设备 需要向主机发送管理请求时, 也就是说, 存储设备有管理请求需要 主机进行处理时, 存储设备的管理单元可以触发请求事件, 以便主 机可以获知存储设备有管理请求需要处理。
402、主机的管理单元检测到存储设备的管理单元触发了请求事 件。
其中, 主机为了可以及时获知存储设备是否有管理请求需要处 理, 主机的管理单元可以检测存储设备的管理单元是否触发了请求 事件。 示例性的, 对于主机检测存储设备是否有管理请求需要处理 的过程, 可以釆用 SCSI协议中的 Unit Attention方式来实现。 具体 的, 主机的管理单元可以向存储设备的管理单元注册事件捕捉器, 当存储设备有管理请求需要主机进行处理时, 存储设备的管理单元 可以触发 Unit Attention事件, 这样主机的管理单元便可以检测到存 储设备的管理单元触发了 Unit Attention事件, 此时主机便可获知存 储设备有管理请求需要处理。
403、 主机的总线适配卡 ( Host Bus Adapter , HBA ) 驱动通过 数据通道向存储设备的 HBA驱动发送第一 SCSI请求命令。
主机的管理单元检测到存储设备的管理单元触发了请求事件之 后, 主机的 HBA驱动通过与存储设备已建立的数据通道向存储设备 的 HBA驱动发送第 ― SCSI请求命令。 其中, 第一 SCSI请求命令用 于读取存储设备的需要主机处理的管理请求,例如第一 SCSI请求命 令可以为 mode sense命令。
示例性的, 主机的 HBA驱动向存储设备发送的第一 SCSI请求 命令中可以包含 SCSI 命令描述块 ( Command Description Block , CDB ) 和数据传输方向等参数。 其中, SCSI CDB对该第一 SCSI请 求命令进行了描述,其第一个字节代表操作码,用于表示该第一 SCSI 请求命令用于读取存储设备的需要主机处理的管理请求, SCSI CDB 的其他字节为可选参数, 可以根据操作码的不同以及应用场景的实 际需求进行选择, 本发明实施例在此不做限制。 数据传输方向用于 指示该第一 SCSI 请求命令的传输方向为由存储设备向主机反馈信 息。 在主机的 HBA驱动通过数据通道向存储设备发送第一 SCSI请 求命令之前, 主机的 SCSI 驱动可以根据 SCSI 协议的要求将 SCSI CDB、 数据传输方向以及其他输入输出 ( Input Output , 10 ) 属性等 参数填充到第一 SCSI请求命令中, 然后将填充了 SCSI CDB、 数据 传输方向以及其他输入输出 ( Input Output , 10 ) 属性等参数的第一 SCSI 请求命令发送至主机的 HBA 驱动, 主机的 HBA 驱动将第一 SCSI请求命令的格式转换为可以在以光纤通道等方式承载的数据通 道上传输的格式, 最后再通过与存储设备已建立的数据通道将第一
SCSI请求命令发送至存储设备。
需要说明的是, 在本发明实施例中, 主机的 HBA驱动可以定时 的向存储设备发送第一 SCSI请求命令。 这样, 当存储设备有管理请 求需要主机处理, 并在接收到主机的 HBA驱动发送的第一 SCSI请 求命令时, 存储设备的 HBA 驱动便可以通过数据通道根据的第一 SCSI请求命令将管理请求发送至主机, 也就是说本发明实施例中当 存储设备有管理请求需要进行处理的, 可以不触发请求事件, 而是 等待主机的 HBA 驱动发送用于读取存储设备的需要主机处理的管 理请求的第一 SCSI请求命令,并在接收到第一 SCSI请求命令之后, 根据第一 SCSI请求命令将管理请求发送至主机, 即本发明实施例中 的步骤 401 和步骤 402为可选的步骤。 但是, 为了使得在存储设备 有管理请求需要处理时, 可以及时的获取到存储设备的管理请求, 优选的, 可以通过执行步骤 401 和步骤 402 , 当存储设备有管理请 求需要处理时触发请求事件, 在检测到存储设备触发了请求事件时, 主机的 HBA 驱动便可以向存储设备发送用于读取存储设备的需要 主机处理的管理请求的第一 SCSI请求命令, 以便及时获取到存储设 备的管理请求。
404、存储设备的 HBA驱动接收主机的 HBA驱动通过数据通道 发送的第一 SCSI请求命令。
示例性的, 存储设备的 HBA驱动接收到主机的 HBA驱动发送 的第一 SCSI请求命令后,存储设备的 HBA驱动将第一 SCSI请求命 令的在以光纤通道等方式承载的数据通道上传输的格式转换为 SCSI 协议要求的格式,然后将经格式转换后的第一 SCSI请求命令发送至 存储设备的 SCSI驱动, 以便存储设备的 SCSI驱动可以对第一 SCSI 请求命令进行解析。
405、 存储设备的 HBA驱动根据第一 SCSI请求命令通过数据 通道将管理请求发送至主机的 HBA驱动。 该管理请求用于请求主机 对存储设备进行管理。
其中, 在存储设备的 HBA驱动将第一 SCSI请求命令进行格式 转换后发送至存储设备的 SCSI驱动之后, 存储设备的 SCSI驱动可 以对第一 SCSI请求命令进行解析得到的第一 SCSI请求命令中包含 的用于表示该第一 SCSI 请求命令用于读取存储设备的需要主机处 理的管理请求的 SCSI CDB , 并将该 SCSI CDB发送至存储设备的 HBA驱动,存储设备的 HBA驱动根据得到的 SCSI CDB通过数据通 道将管理请求发送至主机的 HBA 驱动。 具体的, 存储设备的 SCSI 驱动可以根据第一 SCSI请求命令中的 SCSI CDB确定该第一 SCSI 请求命令用于读取需要主机处理的管理请求, 此时存储设备的管理 单元可以分配緩存空间, 并将需要主机处理的管理请求存储在已分 配的緩存空间中, 然后存储设备的 HBA驱动将存储在緩存空间中的 管理请求通过数据通道发送至主机的 HBA驱动。
406、主机的 HBA驱动接收存储设备的 HBA驱动通过数据通道 发送的管理请求。
407、 主机的管理单元根据接收的存储设备的 HBA驱动通过数 据通道发送的管理请求获取管理数据,然后主机的 SCSI驱动将管理 数据封装在第二 SCSI请求命令中。所述管理数据用于对所述存储设 备进行管理。
其中, 在主机的 HBA驱动接收到存储设备的 HBA驱动通过数 据通道发送的管理请求之后, 主机的 HBA驱动将接收到的管理请求 发送给主机的的管理单元。 主机的管理单元便根据接收到的管理请 求获取管理数据, 并且, 主机的 SCSI驱动将主机的管理单元获取到 的管理数据封装在第二 SCSI请求命令中, 该第二 SCSI请求命令用 于指示存储设备接收主机发送的管理数据,例如第二 SCSI请求命令 可以为 mode select命令。 示例性的, 第二 SCSI请求命令中可以包 含管理数据, SCSI CDB , 数据传输方向以及其他 10属性等参数。 其中, 管理数据用于对存储设备进行管理; SCSI CDB对第二 SCSI 请求命令进行了描述, 其第一个字节代表操作码, 用于表示该第二 SCSI请求命令用于将管理数据写入存储设备。 SCSI CDB 的其他字 节为可选参数, 可以根据操作码的不同以及应用场景的实际需求进 行选择, 本发明实施例在此不做限制。 数据传输方向用于指示该第 二 SCSI请求命令的传输方向为由主机向存储设备发送数据。
408、主机的 HBA驱动通过数据通道向存储设备的 HBA驱动发 送第二 SCSI请求命令。
其中, 在主机的管理单元根据管理请求获取管理数据, 然后主 机的 SCSI驱动将管理数据封装在第二 SCSI请求命令中之后, 主机 的 SCSI驱动将第二 SCSI请求命令发送至主机的 HBA驱动,主机的 HBA驱动将第二 SCSI请求命令的格式转换为可以在以光纤通道等 方式承载的数据通道上传输的格式, 最后便可以通过与存储设备已 建立的数据通道将第二 SCSI请求命令发送至存储设备的 HBA驱动。
409、存储设备的 HBA驱动接收主机的 HBA驱动通过数据通道 发送的第二 SCSI请求命令。
其中, 存储设备的 HBA驱动接收到主机的 HBA驱动发送的第 二 SCSI请求命令后,存储设备的 HBA驱动将第二 SCSI请求命令的 格式转换为 SCSI协议要求的格式, 以便存储设备的 SCSI驱动可以 对第二 SCSI请求命令进行解析。
410、 存储设备的 SCSI驱动对第二 SCSI请求命令进行解析得 到管理数据。
存储设备的 SCSI驱动对第二 SCSI请求命令进行解析得到第二 SCSI请求命令中包含的用于表示该第二 SCSI请求命令用于将管理 数据写入存储设备的 SCSI CDB 以及管理数据。
41 1、 存储设备的管理单元根据管理数据对存储设备进行管理。 其中, 存储设备的管理单元根据管理数据启动与管理数据相应 的管理流程, 进而实现对存储设备的管理。
412、存储设备的 HBA驱动通过数据通道向主机 HBA驱动发送 SCSI响应命令。
其中, SCSI响应命令用于通知主机对存储设备的管理已完成。 在存储设备的管理单元根据管理数据完成对存储设备进行相应的管 理操作之后, 可以通过数据通道向主机的 HBA驱动发送 SCSI响应 命令。
413、主机的 HBA驱动接收存储设备的 HBA驱动通过数据通道 发送的 SCSI响应命令。
主机的 HBA驱动将 SCSI响应命令发送至主机的管理单元, 进 而主机的管理单元获知对存储设备的管理已完成。
为了便于本领域技术人员的理解, 本发明实施例在此对本发明 的实施过程进行举例说明。
例如, 在存储设备检测到某个硬盘即将失效时, 存储设备需要 立即主动通知主机该硬盘即将失效。 具体的, 存储设备向主机主动 发送管理请求, 主机根据管理请求对存储设备进行管理的具体过程 可以是, 存储设备的管理软件检测到某硬盘即将失效, 即有管理请 求需要主机进行处理, 此时存储设备的管理单元可以触发请求事件。 当主机的管理单元检测到存储设备的管理单元触发了请求事件之 后, 主机的 HBA驱动可以通过数据通道向存储设备的 HBA驱动发 送用于读取存储设备的需要主机处理的管理请求的第一 SCSI 请求 命令, 当存储设备的 HBA驱动接收到第一 SCSI请求命令之后, 将 第一 SCSI请求命令转发至存储设备的 SCSI驱动,存储设备的 SCSI 驱动对第一 SCSI请求命令进行解析得到第一 SCSI请求命令中包含 的用于表示该第一 SCSI 请求命令用于读取存储设备的需要主机处 理的管理请求的 SCSI CDB , 然后存储设备的 HBA驱动便根据第一 SCSI请求命令中包含的 SCSI CDB通过数据通道将管理请求 (管理 请求中可以包含各类参数, 如事件标识, 硬盘容量, 硬盘类型, 硬 盘位置等) 发送至主机的 HBA驱动 (其中, 当存储设备的管理软件 检测到某硬盘即将失效, 也可以不触发请求事件, 而是等待主机发 送的用于读取存储设备的需要主机处理的管理请求的第一 SCSI 请 求命令, 当接收到第一 SCSI请求命令之后, 再将管理请求发送至主 机)。主机的 HBA驱动接收存储设备的 HBA驱动通过数据通道发送 的管理请求后, 可以将该管理请求转换为告警显示在告警列表中, 并且可以通知给维护人员。 维护人员得知后需要启动换盘流程, 换 盘流程启动时, 主机的管理单元便可以获取管理数据 (如, 新硬盘 位置, 新硬盘类型, 待更换盘的位置, 待更换盘的类型等信息), 然 后主机的 S C S I驱动将获取到的管理数据封装到第二 S C S I请求命令 中, 并传输至主机的 HBA驱动 , 此时主机的 HBA驱动便可以通过 数据通道将第二 SCSI请求命令发送至存储设备的 HBA驱动, 存储 设备的 HBA驱动接收到第二 SCSI请求命令之后,将第二 SCSI请求 命令转发至存储设备的 SCSI 驱动, 存储设备的 SCSI 驱动对第二 SCSI请求命令进行解析获得封装在第二 SCSI请求命令中的管理数 据。 存储设备的管理单元。 根据管理数据启动硬盘重构流程, 进而 实现对存储设备的管理。 进一步可选的, 存储设备的 HBA驱动还可 以通过数据通道向主机 HBA 驱动发送用于通知主机已开始重构的 SCSI响应命令。
在本发明实施例的另一种应用场景中, 主机通过已建立的数据 通道向存储设备发送管理请求, 以便存储设备可以根据管理请求对 存储设备进行管理, 如图 5所示, 该方法可以包括:
501、 主机的管理单元生成管理请求, 然后主机的 SCSI驱动将 管理请求封装在 SCSI请求命令中。
其中, 管理请求用于请求存储设备对存储设备进行管理。 当主 机有管理请求需要存储设备进行处理时, 主机的管理单元可以生成 管理请求, 然后将生成的管理请求传输至主机的 SCSI驱动, 并由主 机的 SCSI驱动将管理请求封装在 SCSI请求命令中。
502、主机的 HBA驱动通过数据通道向存储设备的 HBA驱动发 送 SCSI请求命令。
其中,主机的 SCSI驱动根据 SCSI协议的要求将管理请求, SCSI CDB , 数据传输方向以及其他 10属性等参数填充到 SCSI请求命令 中, 然后将 SCSI请求命令发送至主机的 HBA驱动, 主机的 HBA驱 动将 SCSI 请求命令的格式转换为可以在以光纤通道等方式承载的 数据通道上传输的格式, 最后主机的 HBA驱动便可以通过数据通道 向存储设备的 HBA驱动发送该 SCSI请求命令。
503、存储设备的 HBA驱动接收主机的 HBA驱动通过数据通道 发送的 SCSI请求命令。
其中, 存储设备的 HBA 驱动接收到主机的 HBA 驱动发送的 SCSI请求命令后,将第二 SCSI请求命令的格式转换为 SCSI协议要 求的格式, 以便存储设备的 SCSI驱动可以对 SCSI请求命令进行解
504、 存储设备的 SCSI驱动解析 SCSI请求命令得到管理请求。
505、 存储设备的管理单元根据管理请求对存储设备进行管理。 其中, 当存储设备的 SCSI驱动对 SCSI请求命令进行解析得到 管理请求之后, 存储设备的管理单元便可以根据解析得到的管理请 求对存储设备进行管理。 示例性的, 管理请求可以是配置信息, 这 样主机可以通过向存储设备发送管理请求, 来完成对存储设备的配 置。
506、存储设备的 HBA驱动通过数据通道向主机的 HBA驱动发 送管理响应。
存储设备的管理单元根据管理请求完成对存储设备的管理之 后, 存储设备的 HBA驱动通过数据通道向主机的 HBA驱动发送管 理响应。 其中, 管理响应中包含存储设备根据管理请求对存储设备 进行管理后得到的需要向主机返回的数据。
507、主机的 HBA驱动接收存储设备的 HBA驱动通过数据通道 发送的管理响应。
当存储设备的管理单元根据管理请求对存储设备进行管理后, 若有数据需要返回至主机, 此时存储设备的 HBA驱动便可以通过数 据通道向主机发送包含需要向主机返回的数据的管理响应, 这样主 机的 HBA驱动便可以接收存储设备通过数据通道发送的管理响应, 进行得到 自身需要的数据。
需要说明的是, 在本发明实施例中, 主机向存储设备发送的管 理请求, 可以是用来管理主机可见的 SCSI设备的, 也可以是用来管 理该主机不可见的 SCSI设备的, 本发明实施例在此不做限制。
为了便于本领域技术人员的理解, 本发明实施例在此对本发明 的实施过程进行举例说明。
例如, 主机需要对存储设备中的控制器进行升级, 主机的管理 单元可以生成管理请求, 此时的管理请求用于请求存储设备对存储 设备中的控制器进行升级。主机的 SCSI驱动可以将生成的管理请求 封装在 SCSI请求命令中, 并将封装了管理请求的 SCSI请求命令传 输至主机的 HBA驱动。 主机的 HBA驱动通过数据通道向存储设备 的 HBA驱动发送该 SCSI请求命令。存储设备的 HBA驱动接收到主 机的 HBA驱动发送的 SCSI请求命令之后,将 SCSI请求命令传输至 存储设备的 SCSI驱动, 存储设备的 SCSI驱动对接收到的 SCSI请 求命令进行解析的到管理请求, 并将管理请求转发至存储设备的管 理单元。 存储设备的管理单元根据用于请求对存储设备中的控制器 进行升级的管理请求任意选择一个控制器执行升级动作。 可选的, 在存储设备的管理单元执行完升级动作之后, 存储设备的 HBA驱动 可以把执行结果 (如是否升级成功, 升级所用时间, 执行升级的控 制器的标识, 升级的控制器的原始版本, 升级的控制器升级后的版 本, 业务运行状况等等) 携带在管理响应中通过数据返回给主机的 的 HBA驱动, 以便主机可以得到执行结果。 进一步可选的, 主机可 以继续根据接收到的执行结果发起用于请求存储设备进行业务切换 的管理请求给存储设备。 同样的, 存储设备的管理单元可以根据用 于请求进行业务切换的管理请求执行相应的业务切换动作, 以便完 成对存储设备的管理, 并可以进一步的将相应的执行结果返回至主 机。
本发明实施例提供的存储设备的管理方法, 主机通过数据通道 向存储设备发送第一 SCSI 请求命令, 以便存储设备在接收到第一 SCSI请求命令之后, 在存储设备有管理请求需要主机进行处理时, 根据第一 SCSI请求命令通过数据通道向主机发送管理请求,进而主 机根据接收到的管理请求对存储设备进行管理; 且主机可以通过数 据通道向存储设备发送封装了管理请求的 SCSI请求命令, 以便存储 设备在接收到 SCSI请求命令之后, 根据 SCSI请求命令中封装的管 理请求对存储设备进行管理。 这样在主机和存储设备之间仅建立了 数据通道且尚未配置 SCSI设备给主机的情况下,通过数据通道实现 了主机和存储设备的双向通信, 并且通过数据通道实现了对存储设 备的管理。
并且, 当存储设备有管理请求需要主机处理时, 通过触发请求 事件, 使得主机可以及时的获取到存储设备的管理请求, 进而及时 的对管理请求进行响应, 提高了工作效率。 实施例 5
本发明实施例 5提供一种主机, 所述主机和存储设备组成存储 系统, 所述主机和所述存储设备之间已建立数据通道, 但尚未建立 管理通道, 所述主机通过所述数据通道查询到虚拟的小型计算机系 统接口 SCSI设备, 如图 6所示, 所述主机可以包括: HBA驱动 61、 管理单元 62。
HBA驱动 61 ,用于通过所述数据通道向所述存储设备发送第一 SCSI请求命令。
所述 HBA 驱动 61 , 还用于接收所述存储设备根据所述第一 SCSI请求命令通过所述数据通道发送的管理请求, 所述管理请求用 于请求所述主机对所述存储设备进行管理。
管理单元 62 , 用于根据所述 HBA驱动 61得到的所述管理请求 对所述存储设备进行管理。
本发明实施例中进一步可选的,
所述管理单元 62 , 还用于在所述 HBA驱动 61通过所述数据通 道向所述存储设备发送第 ― SCSI请求命令之前,检测到所述存储设 备触发了请求事件; 其中, 所述请求事件为所述存储设备需要向所 述主机发送所述管理请求时触发的。
本发明实施例中进一步可选的,
所述管理单元 62 , 还用于根据所述 HBA驱动 61得到的所述管 理请求获取管理数据。
如图 7所示, 所述主机, 还包括: SCSI驱动 63。
SCSI驱动 63 , 用于并将所述管理单元 62得到的所述管理数据 封装在第二 SCSI请求命令中; 其中, 所述管理数据用于对所述存储 设备进行管理。
所述 HBA驱动 61 , 还用于通过所述数据通道向所述存储设备 发送所述 SCSI驱动 63得到的所述第二 SCSI请求命令,以便所述存 储设备根据所述第二 SCSI请求命令中的管理数据进行管理。
本发明实施例中进一步可选的, 所述 HBA驱动 61 , 还用于在 通过所述数据通道向所述存储设备发送所述第二 SCSI 请求命令之 后, 接收所述存储设备通过所述数据通道发送的 SCSI响应命令, 所 述 SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。
需要说明的是, 本发明实施例提供的主机中各功能模块的具体 描述可以参考方法实施例中对应内容的具体描述, 本发明实施例在 此不再详细赘述。
本发明实施例提供的主机, 通过数据通道向存储设备发送第一
SCSI请求命令, 以便存储设备在接收到第一 SCSI请求命令之后, 在存储设备有管理请求需要主机进行处理时,根据第一 SCSI请求命 令通过数据通道向主机发送管理请求, 进而主机根据接收到的管理 请求对存储设备进行管理; 且主机可以通过数据通道向存储设备发 送封装了管理请求的 SCSI请求命令, 以便存储设备在接收到 SCSI 请求命令之后,根据 SCSI请求命令中封装的管理请求对存储设备进 行管理, 在主机和存储设备之间仅建立了数据通道且尚未配置 SCSI 设备给主机的情况下, 通过数据通道实现了主机和存储设备的双向 通信, 并且通过数据通道实现了对存储设备的管理。
并且, 当存储设备有管理请求需要主机处理时, 通过触发请求 事件, 使得主机可以及时的获取到存储设备的管理请求, 进而及时 的对管理请求进行响应, 提高了工作效率。 实施例 6
本发明实施例 6提供一种主机, 所述主机和存储设备组成存储 系统, 所述主机和所述存储设备之间已建立数据通道, 但尚未建立 管理通道, 所述主机通过所述数据通道查询到虚拟的小型计算机系 统接口 SCSI设备, 如图 8所示, 所述主机可以包括: 管理单元 71、 SCSI驱动 72、 HBA驱动 73。
管理单元 71 , 用于生成管理请求。
SCSI驱动 72 , 用于将所述管理单元 71得到的所述管理请求封 装在 SCSI请求命令中; 其中, 所述管理请求用于请求所述存储设备 对所述存储设备进行管理。
HBA驱动 73 ,用于通过所述数据通道向所述存储设备发送所述 SCSI驱动 72得到的所述 SCSI请求命令, 以便所述存储设备根据所 述 SCSI请求命令中的管理请求对所述存储设备进行管理。
本发明实施例中进一步可选的, 所述 HBA驱动 73 , 还用于在所述通过所述数据通道向所述存 储设备发送所述 SCSI请求命令之后,接收所述存储设备通过所述数 据通道发送的管理响应, 所述管理响应中包含所述存储设备根据所 述管理请求对所述存储设备进行管理后得到的需要向所述主机返回 的数据。
需要说明的是, 本发明实施例提供的主机中各功能模块的具体 描述可以参考方法实施例中对应内容的具体描述, 本发明实施例在 此不再详细赘述。
本发明实施例提供的主机, 通过数据通道向存储设备发送第一 SCSI请求命令, 以便存储设备在接收到第一 SCSI请求命令之后, 在存储设备有管理请求需要主机进行处理时,根据第一 SCSI请求命 令通过数据通道向主机发送管理请求, 进而主机根据接收到的管理 请求对存储设备进行管理; 且主机可以通过数据通道向存储设备发 送封装了管理请求的 SCSI请求命令, 以便存储设备在接收到 SCSI 请求命令之后,根据 SCSI请求命令中封装的管理请求对存储设备进 行管理, 在主机和存储设备之间仅建立了数据通道且尚未配置 SCSI 设备给主机的情况下, 通过数据通道实现了主机和存储设备的双向 通信, 并且通过数据通道实现了对存储设备的管理。
并且, 当存储设备有管理请求需要主机处理时, 通过触发请求 事件, 使得主机可以及时的获取到存储设备的管理请求, 进而及时 的对管理请求进行响应, 提高了工作效率。 实施例 7
本发明实施例 7提供一种存储设备, 所述存储设备和主机组成 存储系统, 所述主机和所述存储设备之间已建立数据通道, 但尚未 建立管理通道, 所述主机通过所述数据通道查询到虚拟的小型计算 机系统接口 SCSI设备, 如图 9所示, 所述存储设备可以包括: HBA 驱动 81。
HBA驱动 81 ,用于接收所述主机通过所述数据通道发送的第一 SCSI请求命令。
HBA驱动 81 , 还用于根据所述第一 SCSI请求命令通过所述数 据通道将管理请求发送至所述主机, 以便所述主机根据所述管理请 求对所述存储设备进行管理; 其中, 所述管理请求用于请求所述主 机对所述存储设备进行管理。
本发明实施例中进一步可选的, 如图 10所示, 所述存储设备还 可以包括: 管理单元 82。
管理单元 82 , 用于在所述 HBA驱动 81接收所述主机通过所述 数据通道发送的第一 SCSI请求命令之前, 触发请求事件; 其中, 所 述请求事件为所述存储设备需要向所述主机发送所述管理请求时触 发的。
在本发明实施例中进一步可选的, 所述 HBA驱动 81 , 还用于 在所述根据所述第一 SCSI 请求命令通过所述数据通道将管理请求 发送至所述主机之后, 接收所述主机通过所述数据通道发送的第二 SCSI请求命令; 其中, 所述第二 SCSI请求命令中包含管理数据, 所述管理数据用于对所述存储设备进行管理。
所述存储设备, 还包括: SCSI驱动 83。
SCSI驱动 83 ,用于解析所述 HBA驱动 81得到的所述第二 SCSI 请求命令得到所述管理数据。
所述管理单元 82 , 还用于根据所述 SCSI驱动 83得到的所述管 理数据对所述存储设备进行管理。
本发明实施例中进一步可选的, 所述 HBA驱动 81 , 还用于在 所述根据所述管理数据对所述存储设备进行管理之后, 通过所述数 据通道向所述主机发送 SCSI响应命令; 其中, 所述 SCSI响应命令 用于通知所述主机对所述存储设备的管理已完成。
需要说明的是, 本发明实施例提供的存储设备中各功能模块的 具体描述可以参考方法实施例中对应内容的具体描述, 本发明实施 例在此不再详细赞述。
本发明实施例提供的存储设备, 接收主机通过数据通道发送的 第一 SC SI请求命令之后, 可以根据接收到的第一 SC SI请求命令通 过数据通道向主机发送管理请求, 以便主机根据接收到的管理请求 对存储设备进行管理, 在主机和存储设备之间仅建立了数据通道且 尚未配置 SC SI设备给主机的情况下,通过数据通道实现了对存储设 备的管理。
并且, 当存储设备有管理请求需要主机处理时, 通过触发请求 事件, 使得主机可以及时的获取到存储设备的管理请求, 进而及时 的对管理请求进行响应, 提高了工作效率。 实施例 8
本发明实施例 8提供一种主机, 所述主机和存储设备组成存储 系统, 所述主机和所述存储设备之间已建立数据通道, 但尚未建立 管理通道, 所述主机通过所述数据通道查询到虚拟的 SC SI设备, 如 图 1 1 所示, 所述主机包括: 至少一个处理器 91、 存储器 92、 通信 接口 93 和总线 94 , 该至少一个处理器 91、 存储器 92 和通信接口 93通过总线 94连接并完成相互间的通信, 其中:
所述总线 94 可以是工业标准体系结构 ( Industry Standard Architecture , ISA ) 总线、 夕卜部设备互连 ( Peripheral Component Interconnect , PCI )总线或扩展工业标准体系结构( Extended Industry Standard Architecture , EISA )总线等。该总线 94可以分为地址总线、 数据总线、 控制总线等。 为便于表示, 图 1 1 中仅用一条粗线表示, 但并不表示仅有一根总线或一种类型的总线。
所述存储器 92用于存储可执行程序代码,该程序代码包括计算 机操作指令。 存储器 92可能包含高速 RAM存储器, 也可能还包括 非易失性存储器( non- volatile memory ) , 例如至少一个磁盘存储器。
所述处理器 91 可能是一个中央处理器 ( Central Processing Unit , CPU ) , 或者是特定集成电路 ( Application Specific Integrated Circuit , ASIC ) , 或者是被配置成实施本发明实施例的一个或多个集 成电路。 所述通信接口 93 , 主要用于实现本实施例的设备之间的通信。 所述处理器 91 , 用于执行所述存储器 92 中存储的可执行程序 代码, 具体的用于执行以下操作:
所述处理器 91 , 用于通过所述数据通道向所述存储设备发送第 ― SCSI请求命; 接收所述存储设备根据所述第一 SCSI请求命令通 过所述数据通道发送的管理请求, 所述管理请求用于请求所述主机 对所述存储设备进行管理; 根据所述管理请求对所述存储设备进行 管理。
在本发明实施例中, 进一步可选的, 所述处理器 91 , 还用于在 所述通过所述数据通道向所述存储设备发送第一 SCSI 请求命令之 前, 检测到所述存储设备触发了请求事件; 其中, 所述请求事件为 所述存储设备需要向所述主机发送所述管理请求时触发的。
在本发明实施例中, 进一步可选的, 所述处理器 91 , 具体用于 根据所述管理请求获取管理数据, 并将所述管理数据封装在第二 SCSI请求命令中; 其中, 所述管理数据用于对所述存储设备进行管 理; 通过所述数据通道向所述存储设备发送所述第二 SCSI 请求命 令,以便所述存储设备根据所述第二 SCSI请求命令中的管理数据进 行管理。
在本发明实施例中, 进一步可选的, 所述处理器 91 , 还用于在 所述通过所述数据通道向所述存储设备发送所述第二 SCSI 请求命 令之后, 接收所述存储设备通过所述数据通道发送的 SCSI 响应命 令,所述 SCSI响应命令用于通知所述主机对所述存储设备的管理已 完成。
需要说明的是, 本发明实施例提供的主机中各功能模块的具体 描述可以参考方法实施例中对应内容的具体描述, 本发明实施例在 此不再详细赘述。
本发明实施例提供的主机, 通过数据通道向存储设备发送第一
SCSI请求命令, 以便存储设备在接收到第一 SCSI请求命令之后, 在存储设备有管理请求需要主机进行处理时,根据第一 SCSI请求命 令通过数据通道向主机发送管理请求, 进而主机根据接收到的管理 请求对存储设备进行管理; 且主机可以通过数据通道向存储设备发 送封装了管理请求的 SCSI请求命令, 以便存储设备在接收到 SCSI 请求命令之后,根据 SCSI请求命令中封装的管理请求对存储设备进 行管理, 在主机和存储设备之间仅建立了数据通道且尚未配置 SCSI 设备给主机的情况下, 通过数据通道实现了主机和存储设备的双向 通信, 并且通过数据通道实现了对存储设备的管理。
并且, 当存储设备有管理请求需要主机处理时, 通过触发请求 事件, 使得主机可以及时的获取到存储设备的管理请求, 进而及时 的对管理请求进行响应, 提高了工作效率。 实施例 9
本发明实施例 9提供一种主机, 所述主机和存储设备组成存储 系统, 所述主机和所述存储设备之间已建立数据通道, 但尚未建立 管理通道, 所述主机通过所述数据通道查询到虚拟的小型计算机系 统接口 SCSI设备。 如图 12所示, 所述主机包括: 至少一个处理器 1001、 存储器 1002、 通信接口 1003 和总线 1004 , 该至少一个处理 器 1001、 存储器 1002和通信接口 1003 通过总线 1004连接并完成 相互间的通信, 其中:
所述总线 1004可以是 ISA总线、 PCI总线或 EISA总线等。 该 总线 1004可以分为地址总线、 数据总线、 控制总线等。 为便于表示, 图 12 中仅用一条粗线表示, 但并不表示仅有一根总线或一种类型的 总线。
所述存储器 1002用于存储可执行程序代码,该程序代码包括计 算机操作指令。 存储器 1002可能包含高速 RAM存储器, 也可能还 包括非易失性存储器 ( non- volatile memory ) , 例如至少一个磁盘存 储器。
所述处理器 1001可能是一个 CPU , 或者是 ASIC , 或者是被配 置成实施本发明实施例的一个或多个集成电路。 所述通信接口 1003 , 主要用于实现本实施例的设备之间的通 信。
所述处理器 1001 , 用于执行所述存储器 1002 中存储的可执行 程序代码, 具体的用于执行以下操作:
所述处理器 1001 , 用于生成管理请求, 并将所述管理请求封装 在 SCSI请求命令中; 其中, 所述管理请求用于请求所述存储设备对 所述存储设备进行管理; 通过所述数据通道向所述存储设备发送所 述 SCSI请求命令, 以便所述存储设备根据所述 SCSI请求命令中的 管理请求对所述存储设备进行管理。
在本发明实施例中, 进一步可选的, 所述处理器 1001 , 还用于 在所述通过所述数据通道向所述存储设备发送所述 SCSI 请求命令 之后, 接收所述存储设备通过所述数据通道发送的管理响应, 所述 管理响应中包含所述存储设备根据所述管理请求对所述存储设备进 行管理后得到的需要向所述主机返回的数据。
需要说明的是, 本发明实施例提供的主机中各功能模块的具体 描述可以参考方法实施例中对应内容的具体描述, 本发明实施例在 此不再详细赘述。
本发明实施例提供的主机, 通过数据通道向存储设备发送第一
SCSI请求命令, 以便存储设备在接收到第一 SCSI请求命令之后, 在存储设备有管理请求需要主机进行处理时,根据第一 SCSI请求命 令通过数据通道向主机发送管理请求, 进而主机根据接收到的管理 请求对存储设备进行管理; 且主机可以通过数据通道向存储设备发 送封装了管理请求的 SCSI请求命令, 以便存储设备在接收到 SCSI 请求命令之后,根据 SCSI请求命令中封装的管理请求对存储设备进 行管理, 在主机和存储设备之间仅建立了数据通道且尚未配置 SCSI 设备给主机的情况下, 通过数据通道实现了主机和存储设备的双向 通信, 并且通过数据通道实现了对存储设备的管理。
并且, 当存储设备有管理请求需要主机处理时, 通过触发请求 事件, 使得主机可以及时的获取到存储设备的管理请求, 进而及时 的对管理请求进行响应, 提高了工作效率。 实施例 10
本发明实施例 10提供一种存储设备,所述存储设备和主机组成 存储系统, 所述主机和所述存储设备之间已建立数据通道, 但尚未 建立管理通道, 所述主机通过所述数据通道查询到虚拟的小型计算 机系统接口 SCSI设备, 如图 13所示, 所述存储设备包括: 至少一 个处理器 1101、 存储器 1102、 通信接口 1103和总线 1104, 该至少 一个处理器 1101、存储器 1102和通信接口 1103通过总线 1104连接 并完成相互间的通信, 其中:
所述总线 1104可以是 ISA总线、 PCI总线或 EISA总线等。 该 总线 1104可以分为地址总线、 数据总线、 控制总线等。 为便于表示, 图 13 中仅用一条粗线表示, 但并不表示仅有一根总线或一种类型的 总线。
所述存储器 1102用于存储可执行程序代码,该程序代码包括计 算机操作指令。 存储器 1102可能包含高速 RAM存储器, 也可能还 包括非易失性存储器 ( non- volatile memory ), 例如至少一个磁盘存 储器。
所述处理器 1101可能是一个 CPU, 或者是 ASIC, 或者是被配 置成实施本发明实施例的一个或多个集成电路。
所述通信接口 1103, 主要用于实现本实施例的设备之间的通 信。
所述处理器 1101, 用于执行所述存储器 1102 中存储的可执行 程序代码, 具体的用于执行以下操作:
所述处理器 1101, 用于接收所述主机通过所述数据通道发送的 第一 SCSI请求命令; 根据所述第一 SCSI请求命令通过所述数据通 道将管理请求发送至所述主机, 以便所述主机根据所述管理请求对 所述存储设备进行管理; 其中, 所述管理请求用于请求所述主机对 所述存储设备进行管理。 在本发明实施例中, 进一步可选的, 所述处理器 1 101 , 还用于 在所述接收所述主机通过所述数据通道发送的第一 SCSI 请求命令 之前, 触发请求事件; 其中, 所述请求事件为所述存储设备需要向 所述主机发送所述管理请求时触发的。
在本发明实施例中, 进一步可选的, 所述处理器 1 101 , 还用于 在所述根据所述第一 SCSI 请求命令通过所述数据通道将管理请求 发送至所述主机之后, 接收所述主机通过所述数据通道发送的第二
SCSI请求命令; 其中, 所述第二 SCSI请求命令中包含管理数据, 所述管理数据用于对所述存储设备进行管理; 解析所述第二 SCSI 请求命令得到所述管理数据; 根据所述管理数据对所述存储设备进 行管理。
在本发明实施例中, 进一步可选的, 所述处理器 1 101 , 还用于 在所述根据所述管理数据对所述存储设备进行管理之后, 通过所述 数据通道向所述主机发送 SCSI响应命令; 其中, 所述 SCSI响应命 令用于通知所述主机对所述存储设备的管理已完成。
需要说明的是, 本发明实施例提供的存储设备中各功能模块的 具体描述可以参考方法实施例中对应内容的具体描述, 本发明实施 例在此不再详细赞述。
本发明实施例提供的存储设备, 接收主机通过数据通道发送的 第 ― SCSI请求命令之后, 可以根据接收到的第一 SCSI请求命令通 过数据通道向主机发送管理请求, 以便主机根据接收到的管理请求 对存储设备进行管理, 在主机和存储设备之间仅建立了数据通道且 尚未配置 SCSI设备给主机的情况下,通过数据通道实现了对存储设 备的管理。
并且, 当存储设备有管理请求需要主机处理时, 通过触发请求 事件, 使得主机可以及时的获取到存储设备的管理请求, 进而及时 的对管理请求进行响应, 提高了工作效率。 实施例 11 本发明实施例 1 1提供一种存储系统, 如图 14所示, 包括: 主 机 1201和存储设备 1202 ;其中 ,所述主机 1201和所述存储设备 1202 之间已建立数据通道, 但尚未建立管理通道, 所述主机 1201通过所 述数据通道查询到虚拟的小型计算机系统接口 SCSI设备;
所述主机 1201 , 用于通过所述数据通道向所述存储设备 1202 发送第一 SCSI请求命令。
所述存储设备 1202 , 用于接收所述主机 1201 通过所述数据通 道发送的第一 SCSI请求命令; 根据所述第一 SCSI请求命令通过所 述数据通道将管理请求发送至所述主机 1201。
所述主机 1201 , 还用于接收所述存储设备 1202根据所述第一 SCSI请求命令通过所述数据通道发送的所述管理请求, 所述管理请 求用于请求主机 1201 对所述存储设备 1202进行管理; 根据所述管 理请求对所述存储设备 1202进行管理
在本发明实施例中, 进一步可选的, 所述主机 1201 , 还用于生 成管理请求, 并将所述管理请求封装在 SCSI请求命令中; 其中, 所 述管理请求用于请求存储设备 1202对所述存储设备 1202进行管理; 通过所述数据通道向所述存储设备 1202发送所述 SCSI请求命令。
所述存储设备 1202 , 还用于接收所述主机 1201 通过所述数据 通道发送的所述 SCSI请求命令, 并根据所述 SCSI请求命令中的管 理请求对所述存储设备 1202进行管理。
需要说明的是, 本发明实施例提供的存储系统中主机和存储设 备的具体描述可以参考方法实施例中对应内容的具体描述, 本发明 实施例在此不再详细赘述。
本发明实施例提供的存储系统, 主机通过数据通道向存储设备 发送第一 SCSI请求命令, 以便存储设备在接收到第一 SCSI请求命 令之后,在存储设备有管理请求需要主机进行处理时,根据第一 SCSI 请求命令通过数据通道向主机发送管理请求, 进而主机根据接收到 的管理请求对存储设备进行管理; 且主机可以通过数据通道向存储 设备发送封装了管理请求的 SCSI请求命令, 以便存储设备在接收到 SCSI请求命令之后, 根据 SCSI请求命令中封装的管理请求对存储 设备进行管理, 在主机和存储设备之间仅建立了数据通道且尚未配 置 SCSI设备给主机的情况下,通过数据通道实现了主机和存储设备 的双向通信, 并且通过数据通道实现了对存储设备的管理。
并且, 当存储设备有管理请求需要主机处理时, 通过触发请求 事件, 使得主机可以及时的获取到存储设备的管理请求, 进而及时 的对管理请求进行响应, 提高了工作效率。
通过以上的实施方式的描述, 所属领域的技术人员可以清楚地 了解到, 为描述的方便和简洁, 仅以上述各功能模块的划分进行举 例说明, 实际应用中, 可以根据需要而将上述功能分配由不同的功 能模块完成, 即将装置的内部结构划分成不同的功能模块, 以完成 以上描述的全部或者部分功能。 上述描述的装置的具体工作过程, 可以参考前述方法实施例中的对应过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的装置 和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施 例仅仅是示意性的, 例如, 所述模块或单元的划分, 仅仅为一种逻 辑功能划分, 实际实现时可以有另外的划分方式, 例如多个单元或 组件可以结合或者可以集成到另一个装置, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合或 通信连接可以是通过一些接口, 装置或单元的间接耦合或通信连接, 可以是电性, 机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分 开的, 作为单元显示的部件可以是一个物理单元或多个物理单元, 即可以位于一个地方, 或者也可以分布到多个不同地方。 可以根据 实际的需要选择其中的部分或者全部单元来实现本实施例方案的目 的。
另外, 在本发明各个实施例中的各功能单元可以集成在一个处 理单元中, 也可以是各个单元单独物理存在, 也可以两个或两个以 上单元集成在一个单元中。 上述集成的单元既可以釆用硬件的形式 实现, 也可以釆用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的 产品销售或使用时, 可以存储在一个可读取存储介质中。 基于这样 的理解, 本发明的技术方案本质上或者说对现有技术做出贡献的部 分或者该技术方案的全部或部分可以以软件产品的形式体现出来, 该软件产品存储在一个存储介质中, 包括若干指令用以使得一个设 备 (可以是单片机, 芯片等) 或处理器 ( processor ) 执行本发明各 个实施例所述方法的全部或部分步骤。 而前述的存储介质包括: U 盘、 移动硬盘、 只读存储器 ( ROM , Read-Only Memory ) , 随机存 取存储器 ( RAM , Random Access Memory ) , 磁碟或者光盘等各种 可以存储程序代码的介质。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围 并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技 术范围内, 可轻易想到变化或替换, 都应涵盖在本发明的保护范围 之内。 因此, 本发明的保护范围应所述以权利要求的保护范围为准。

Claims

权 利 要 求 书
1、 一种存储设备的管理方法, 应用于主机, 所述主机和所述存 储设备组成存储系统, 其特征在于, 所述主机和所述存储设备之间已 建立数据通道, 但尚未建立管理通道, 所述主机通过所述数据通道查 询到虚拟的小型计算机系统接口 SCSI设备, 所述方法包括:
通过所述数据通道向所述存储设备发送第一 SCSI请求命令; 接收所述存储设备根据所述第一 SCSI请求命令通过所述数据通 道发送的管理请求; 所述管理请求用于请求所述主机对所述存储设备 进行管理;
根据所述管理请求对所述存储设备进行管理。
2、 根据权利要求 1 所述的方法, 其特征在于, 在所述通过所述 数据通道向所述存储设备发送第一 SCSI请求命令之前, 还包括: 检测到所述存储设备触发了请求事件; 其中, 所述请求事件为所 述存储设备需要向所述主机发送所述管理请求时触发的。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述根据所 述管理请求对所述存储设备进行管理, 包括:
根据所述管理请求获取管理数据,并将所述管理数据封装在第二 SCSI 请求命令中; 其中, 所述管理数据用于对所述存储设备进行管 理;
通过所述数据通道向所述存储设备发送所述第二 SCSI 请求命 令, 以便所述存储设备根据所述第二 SCSI请求命令中的管理数据进 行管理。
4、 根据权利要求 3 所述的方法, 其特征在于, 在所述通过所述 数据通道向所述存储设备发送所述第二 SCSI请求命令之后,还包括: 接收所述存储设备通过所述数据通道发送的 SCSI响应命令, 所 述 SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。
5、 一种存储设备的管理方法, 应用于主机, 所述主机和所述存 储设备组成存储系统, 其特征在于, 所述主机和所述存储设备之间已 建立数据通道, 但尚未建立管理通道, 所述主机通过所述数据通道查 询到虚拟的小型计算机系统接口 SCSI设备, 所述方法包括:
生成管理请求, 并将所述管理请求封装在 SCSI请求命令中; 其 中, 所述管理请求用于请求所述存储设备对所述存储设备进行管理; 通过所述数据通道向所述存储设备发送所述 SCSI请求命令, 以 便所述存储设备根据所述 SCSI请求命令中的管理请求对所述存储设 备进行管理。
6、 根据权利要求 5所述的方法, 其特征在于, 在所述通过所述 数据通道向所述存储设备发送所述 SCSI请求命令之后, 还包括: 接收所述存储设备通过所述数据通道发送的管理响应;所述管理 响应中包含所述存储设备根据所述管理请求对所述存储设备进行管 理后得到的需要向所述主机返回的数据。
7、 一种存储设备的管理方法, 应用于所述存储设备, 所述存储 设备和主机组成存储系统, 其特征在于, 所述主机和所述存储设备之 间已建立数据通道, 但尚未建立管理通道, 所述主机通过所述数据通 道查询到虚拟的小型计算机系统接口 SCSI设备, 所述方法包括: 接收所述主机通过所述数据通道发送的第一 SCSI请求命令; 根据所述第一 SCSI请求命令通过所述数据通道将管理请求发送 至所述主机, 以便所述主机根据所述管理请求对所述存储设备进行管 理;其中,所述管理请求用于请求所述主机对所述存储设备进行管理。
8、 根据权利要求 7所述的方法, 其特征在于, 在所述接收所述 主机通过所述数据通道发送的第一 SCSI请求命令之前, 还包括: 触发请求事件; 其中, 所述请求事件为所述存储设备需要向所述 主机发送所述管理请求时触发的。
9、 根据权利要求 7或 8所述的方法, 其特征在于, 在所述根据 所述第一 SCSI请求命令通过所述数据通道将管理请求发送至所述主 机之后, 还包括:
接收所述主机通过所述数据通道发送的第二 SCSI请求命令; 其 中, 所述第二 SCSI请求命令中包含管理数据, 所述管理数据用于对 所述存储设备进行管理; 解析所述第二 S C S I请求命令得到所述管理数据;
根据所述管理数据对所述存储设备进行管理。
10、 根据权利要求 9所述的方法, 其特征在于, 在所述根据所述 管理数据对所述存储设备进行管理之后, 还包括:
通过所述数据通道向所述主机发送 SCSI响应命令; 其中, 所述 SCSI响应命令用于通知所述主机对所述存储设备的管理已完成。
11、一种主机, 所述主机和存储设备组成存储系统, 其特征在于, 所述主机和所述存储设备之间已建立数据通道, 但尚未建立管理通 道, 所述主机通过所述数据通道查询到虚拟的小型计算机系统接口
SCSI设备, 所述主机包括:
总线适配卡 HBA驱动, 用于通过所述数据通道向所述存储设备 发送第一 SCSI请求命令;
所述 HBA 驱动, 还用于接收所述存储设备根据所述第一 SCSI 请求命令通过所述数据通道发送的管理请求; 所述管理请求用于请求 所述主机对所述存储设备进行管理;
管理单元, 用于根据所述 HBA驱动得到的所述管理请求对所述 存储设备进行管理。
12、 根据权利要求 1 1所述的主机, 其特征在于,
所述管理单元, 还用于在所述 HBA驱动通过所述数据通道向所 述存储设备发送第一 SCSI请求命令之前, 检测到所述存储设备触发 了请求事件; 其中, 所述请求事件为所述存储设备需要向所述主机发 送所述管理请求时触发的。
13、 根据权利要求 1 1或 12所述的主机, 其特征在于,
所述管理单元, 还用于根据所述 HBA驱动得到的所述管理请求 获取管理数据;
所述主机, 还包括:
SCSI 驱动, 用于将所述管理单元得到的所述管理数据封装在第 二 SCSI请求命令中; 其中, 所述管理数据用于对所述存储设备进行 管理; 所述 HBA驱动, 还用于通过所述数据通道向所述存储设备发送 所述 SCSI驱动得到的所述第二 SCSI请求命令,以便所述存储设备根 据所述第二 SCSI请求命令中的管理数据进行管理。
14、 根据权利要求 13所述的主机, 其特征在于,
所述 HBA驱动, 还用于在所述通过所述数据通道向所述存储设 备发送所述第二 SCSI请求命令之后, 接收所述存储设备通过所述数 据通道发送的 SCSI响应命令,所述 SCSI响应命令用于通知所述主机 对所述存储设备的管理已完成。
15、 根据权利要求 1 1所述的主机, 其特征在于,
所述管理单元, 还用于生成管理请求;
所述 SCSI驱动, 还用于将所述管理单元得到的所述管理请求封 装在 SCSI请求命令中; 其中, 所述管理请求用于请求所述存储设备 对所述存储设备进行管理;
所述 HBA驱动, 还用于通过所述数据通道向所述存储设备发送 所述 SCSI驱动得到的所述 SCSI请求命令,以便所述存储设备根据所 述 SCSI请求命令中的管理请求对所述存储设备进行管理。
16、 根据权利要求 15所述的主机, 其特征在于,
所述 HBA驱动, 还用于在所述通过所述数据通道向所述存储设 备发送所述 SCSI请求命令之后, 接收所述存储设备通过所述数据通 道发送的管理响应, 所述管理响应中包含所述存储设备根据所述管理 请求对所述存储设备进行管理后得到的需要向所述主机返回的数据。
17、 一种存储设备, 所述存储设备和主机组成存储系统, 其特征 在于, 所述主机和所述存储设备之间已建立数据通道, 但尚未建立管 理通道, 所述主机通过所述数据通道查询到虚拟的小型计算机系统接 口 SCSI设备, 所述存储设备包括:
总线适配卡 HBA驱动, 用于接收所述主机通过所述数据通道发 送的第一 SCSI请求命令;
所述 HBA驱动, 还用于根据所述第一 SCSI请求命令通过所述 数据通道将管理请求发送至所述主机, 以便所述主机根据所述管理请 求对所述存储设备进行管理; 其中, 所述管理请求用于请求所述主机 对所述存储设备进行管理。
18、 根据权利要求 17所述的存储设备, 其特征在于, 还包括: 管理单元, 用于在所述 HBA驱动接收所述主机通过所述数据通 道发送的第一 SCSI请求命令之前, 触发请求事件; 其中, 所述请求 事件为所述存储设备需要向所述主机发送所述管理请求时触发的。
19、 根据权利要求 17或 18所述的存储设备, 其特征在于, 所述 HBA驱动, 还用于在所述根据所述第一 SCSI请求命令通 过所述数据通道将管理请求发送至所述主机之后, 接收所述主机通过 所述数据通道发送的第二 SCSI请求命令; 其中, 所述第二 SCSI请求 命令中包含管理数据, 所述管理数据用于对所述存储设备进行管理; 所述存储设备, 还包括:
SCSI驱动, 用于解析所述 HBA驱动得到的所述第二 SCSI请求 命令得到所述管理数据;
所述管理单元, 还用于根据所述 SCSI驱动得到的所述管理数据 对所述存储设备进行管理。
20、 根据权利要求 19所述的存储设备, 其特征在于,
所述 HBA驱动, 还用于在所述管理单元根据所述所述管理数据 对所述存储设备进行管理之后, 通过所述数据通道向所述主机发送 SCSI响应命令; 其中, 所述 SCSI响应命令用于通知所述主机对所述 存储设备的管理已完成。
21、一种主机, 所述主机和存储设备组成存储系统,其特征在于, 所述主机和所述存储设备之间已建立数据通道, 但尚未建立管理通 道, 所述主机通过所述数据通道查询到虚拟的小型计算机系统接口 SCSI设备;
所述主机包括: 至少一个处理器、 存储器、 通信接口和总线, 所 述至少一个处理器、 所述存储器和所述通信接口通过所述总线连接并 完成相互间的通信; 所述处理器, 用于执行所述存储器中存储的可执 行程序代码, 具体的用于执行以下操作: 所述处理器, 用于通过所述数据通道向所述存储设备发送第一
SCSI请求命令; 接收所述存储设备根据所述第一 SCSI请求命令通过 所述数据通道发送的所述管理请求, 所述管理请求用于请求所述主机 对所述存储设备进行管理; 根据所述管理请求对所述存储设备进行管 理。
22、 根据权利要求 21所述的主机, 其特征在于,
所述处理器,还用于在所述通过所述数据通道向所述存储设备发 送第一 SCSI请求命令之前, 检测到所述存储设备触发了请求事件; 其中, 所述请求事件为所述存储设备需要向所述主机发送所述管理请 求时触发的。
23、 根据权利要求 21或 22所述的主机, 其特征在于,
所述处理器, 具体用于根据所述管理请求获取管理数据, 并将所 述管理数据封装在第二 SCSI请求命令中; 其中, 所述管理数据用于 对所述存储设备进行管理; 通过所述数据通道向所述存储设备发送所 述第二 SCSI请求命令,以便所述存储设备根据所述第二 SCSI请求命 令中的管理数据进行管理。
24、 根据权利要求 23所述的主机, 其特征在于,
所述处理器,还用于在所述通过所述数据通道向所述存储设备发 送所述第二 SCSI请求命令之后, 接收所述存储设备通过所述数据通 道发送的 SCSI响应命令,所述 SCSI响应命令用于通知所述主机对所 述存储设备的管理已完成。
25、 根据权利要求 21所述的主机, 其特征在于,
所述处理器, 还用于生成管理请求, 并将所述管理请求封装在 SCSI 请求命令中; 其中, 所述管理请求用于请求所述存储设备对所 述存储设备进行管理; 通过所述数据通道向所述存储设备发送所述 SCSI请求命令, 以便所述存储设备根据所述 SCSI请求命令中的管理 请求对所述存储设备进行管理。
26、 根据权利要求 25所述的主机, 其特征在于,
所述处理器,还用于在所述通过所述数据通道向所述存储设备发 送所述 SCSI请求命令之后, 接收所述存储设备通过所述数据通道发 送的管理响应, 所述管理响应中包含所述存储设备根据所述管理请求 对所述存储设备进行管理后得到的需要向所述主机返回的数据。
27、 一种存储设备, 所述存储设备和主机组成存储系统, 其特征 在于, 所述主机和所述存储设备之间已建立数据通道, 但尚未建立管 理通道, 所述主机通过所述数据通道查询到虚拟的小型计算机系统接 口 SCSI设备;
所述存储设备包括: 至少一个处理器、存储器、通信接口和总线, 所述至少一个处理器、 所述存储器和所述通信接口通过所述总线连接 并完成相互间的通信; 所述处理器, 用于执行所述存储器中存储的可 执行程序代码, 具体的用于执行以下操作:
所述处理器, 用于接收所述主机通过所述数据通道发送的第一
SCSI请求命令; 根据所述第一 SCSI请求命令通过所述数据通道将管 理请求发送至所述主机, 以便所述主机根据所述管理请求对所述存储 设备进行管理; 其中, 所述管理请求用于请求所述主机对所述存储设 备进行管理。
28、 根据权利要求 27所述的存储设备, 其特征在于,
所述处理器,还用于在所述接收所述主机通过所述数据通道发送 的第一 SCSI请求命令之前, 触发请求事件; 其中, 所述请求事件为 所述存储设备需要向所述主机发送所述管理请求时触发的。
29、 根据权利要求 27或 28所述的存储设备, 其特征在于, 所述处理器, 还用于在所述根据所述第一 SCSI请求命令通过所 述数据通道将管理请求发送至所述主机之后,接收所述主机通过所述 数据通道发送的第二 SCSI请求命令; 其中, 所述第二 SCSI请求命令 中包含管理数据, 所述管理数据用于对所述存储设备进行管理; 解析 所述第二 SCSI请求命令得到所述管理数据; 根据所述管理数据对所 述存储设备进行管理。
30、 根据权利要求 29所述的存储设备, 其特征在于,
所述处理器,还用于在所述根据所述管理数据对所述存储设备进 行管理之后, 通过所述数据通道向所述主机发送 SCSI响应命令; 其 中, 所述 SCSI响应命令用于通知所述主机对所述存储设备的管理已 完成。
PCT/CN2013/090762 2013-12-27 2013-12-27 一种存储设备的管理方法及设备 WO2015096158A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/090762 WO2015096158A1 (zh) 2013-12-27 2013-12-27 一种存储设备的管理方法及设备
CN201380002330.8A CN103858091B (zh) 2013-12-27 2013-12-27 一种存储设备的管理方法及设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/090762 WO2015096158A1 (zh) 2013-12-27 2013-12-27 一种存储设备的管理方法及设备

Publications (1)

Publication Number Publication Date
WO2015096158A1 true WO2015096158A1 (zh) 2015-07-02

Family

ID=50864331

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/090762 WO2015096158A1 (zh) 2013-12-27 2013-12-27 一种存储设备的管理方法及设备

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106814975A (zh) * 2017-01-20 2017-06-09 郑州云海信息技术有限公司 一种用于多类型存储设备的存储管理方法及其系统
CN107579849A (zh) * 2017-08-31 2018-01-12 郑州云海信息技术有限公司 一种基于scsi带内命令的存储设备管理方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329661A (zh) * 2008-07-31 2008-12-24 北京飞天诚信科技有限公司 一种实现hid/scsi设备pc/sc接口的系统和方法
CN103176751A (zh) * 2013-03-04 2013-06-26 浪潮电子信息产业股份有限公司 一种多种存储协议下的统一服务系统
CN103201746A (zh) * 2010-11-08 2013-07-10 英特尔公司 用于数据存储装置处的安全管理供应的技术

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004192105A (ja) * 2002-12-09 2004-07-08 Hitachi Ltd 記憶装置の接続装置およびそれを含むコンピュータシステム
CN100452795C (zh) * 2004-01-16 2009-01-14 英业达股份有限公司 利用iSCSI协议访问逻辑设备的方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329661A (zh) * 2008-07-31 2008-12-24 北京飞天诚信科技有限公司 一种实现hid/scsi设备pc/sc接口的系统和方法
CN103201746A (zh) * 2010-11-08 2013-07-10 英特尔公司 用于数据存储装置处的安全管理供应的技术
CN103176751A (zh) * 2013-03-04 2013-06-26 浪潮电子信息产业股份有限公司 一种多种存储协议下的统一服务系统

Also Published As

Publication number Publication date
CN103858091A (zh) 2014-06-11
CN103858091B (zh) 2017-03-29

Similar Documents

Publication Publication Date Title
US11487690B2 (en) Universal host and non-volatile memory express storage domain discovery for non-volatile memory express over fabrics
WO2018059222A1 (zh) 一种文件切片上传方法、装置及云存储系统
US11544001B2 (en) Method and apparatus for transmitting data processing request
US11556491B2 (en) Data transmission method and apparatus used in virtual switch technology
US20220222016A1 (en) Method for accessing solid state disk and storage device
AU2013388031A1 (en) Data processing system and data processing method
JP2013514588A5 (zh)
JP6498844B2 (ja) コンピュータデバイス及びコンピュータデバイスによりデータを読み取る/書き込むための方法
WO2015081515A1 (zh) 数据处理方法、装置、存储控制器和机柜
WO2015035887A1 (zh) 一种数据存储方法、装置及系统
WO2014075255A1 (zh) 一种基于PCIE Switch通信的方法、装置及系统
WO2016086659A1 (zh) 一种业务消息的传输方法、装置及系统
US20160234311A1 (en) Memory access method, device, and system
US10216664B2 (en) Remote resource access method and switching device
WO2016101856A1 (zh) 数据访问方法及装置
KR101752823B1 (ko) 작동 요청을 처리하기 위한 스토리지 시스템, 방법 및 장치
WO2019071699A1 (zh) 处理i/o请求的方法、存储阵列及主机
WO2015096158A1 (zh) 一种存储设备的管理方法及设备
KR20160103110A (ko) 네트워크 요소 데이터 액세스 방법, 액세스 장치, 및 네트워크 관리 시스템
US20230342087A1 (en) Data Access Method and Related Device
CN110471627B (zh) 一种共享存储的方法、系统及装置
US20220052902A1 (en) Method for managing remote device through management device
JP6378847B2 (ja) ネットワーク・ファイル・システムにおいてi/o要求を処理するための方法及び装置
WO2012126352A1 (zh) 在pcie总线上传输报文的方法、设备和系统
WO2016074179A1 (zh) 一种数据处理方法及多核处理器系统

Legal Events

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

Ref document number: 13900203

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13900203

Country of ref document: EP

Kind code of ref document: A1