CN112269533A - Command processing method, system, equipment and computer readable storage medium - Google Patents

Command processing method, system, equipment and computer readable storage medium Download PDF

Info

Publication number
CN112269533A
CN112269533A CN202011109316.6A CN202011109316A CN112269533A CN 112269533 A CN112269533 A CN 112269533A CN 202011109316 A CN202011109316 A CN 202011109316A CN 112269533 A CN112269533 A CN 112269533A
Authority
CN
China
Prior art keywords
target
command
determining
host
scsi
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202011109316.6A
Other languages
Chinese (zh)
Inventor
李大生
宋腾
苑忠科
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011109316.6A priority Critical patent/CN112269533A/en
Publication of CN112269533A publication Critical patent/CN112269533A/en
Withdrawn legal-status Critical Current

Links

Images

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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • 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/0629Configuration or reconfiguration of storage systems
    • 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/0671In-line storage system

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)
  • Hardware Redundancy (AREA)

Abstract

The application discloses a command processing method, a system, a device and a computer readable storage medium, which are applied to a storage device and comprise the following steps: determining a disconnected target SCSI path in the SCSI path connecting the host and the host; determining a target host connected through a target SCSI path; determining a target command received through a target SCSI path; responding to the target command and obtaining a command response result; and transmitting the command response result to the target host through other SCSI paths connected with the target host. In the application, after the SCSI path between the storage device and the target host is lost, the target command can still be responded, and the command response result is returned to the target host, so that the service of the target host can be normally completed, and the service reliability is improved. The command processing system, the command processing equipment and the computer readable storage medium solve the corresponding technical problems.

Description

Command processing method, system, equipment and computer readable storage medium
Technical Field
The present application relates to the field of storage device technologies, and in particular, to a method, a system, a device, and a computer-readable storage medium for processing a command.
Background
Currently, in the process of command interaction between a storage device and a host through a Small Computer System Interface (SCSI) path, if the SCSI path is lost, the storage device cannot interact with the host through a command transmitted through the SCSI path, which causes service interruption and affects service interaction between the host and the storage device.
In summary, how to improve the service reliability of the storage device is a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The application aims to provide a command processing method which can solve the technical problem of improving the service reliability of a storage device to a certain extent. The application also provides a command processing system, a device and a computer readable storage medium.
In order to achieve the above purpose, the present application provides the following technical solutions:
a command processing method is applied to a storage device and comprises the following steps:
determining a disconnected target SCSI path in the SCSI path connecting the host and the host;
determining a target host connected through the target SCSI path;
determining a target command received through the target SCSI path;
responding the target command and obtaining a command response result;
and transmitting the command response result to the target host through other SCSI paths connected with the target host.
Preferably, the determining a disconnected target SCSI path includes:
and determining the SCSI path with disconnected login as the target SCSI path.
Preferably, the determining the target host connected through the target SCSI path includes:
and determining the target host through the login information of the target SCSI path.
Preferably, the determining the target command received through the target SCSI path includes:
determining a command queue corresponding to the target SCSI path according to the login information of the target SCSI path and the information of the target host;
and determining the target command in the command queue.
A command processing system applied to a storage device, comprising:
the first determining module is used for determining a disconnected target SCSI path in the SCSI path connecting the first determining module with the host end;
a second determining module, configured to determine a target host connected through the target SCSI path;
a third determining module, configured to determine a target command received through the target SCSI path;
the first response module is used for responding the target command and obtaining a command response result;
and the first transmission module is used for transmitting the command response result to the target host through other SCSI paths connected with the target host.
Preferably, the first determining module includes:
and the first determining unit is used for determining the SCSI path with disconnected login as the target SCSI path.
Preferably, the second determining module includes:
and the second determining unit is used for determining the target host through the login information of the target SCSI path.
Preferably, the third determining module includes:
a third determining unit, configured to determine, through login information of the target SCSI path and information of the target host, a command queue corresponding to the target SCSI path;
a fourth determining unit, configured to determine the target command in the command queue.
A command processing system, comprising:
a memory for storing a computer program;
a processor for implementing the steps of any of the above command processing methods when executing the computer program.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the command processing method as set forth in any one of the preceding claims.
The application provides a command processing method, which is applied to a storage device and comprises the following steps: determining a disconnected target SCSI path in the SCSI path connecting the host and the host; determining a target host connected through a target SCSI path; determining a target command received through a target SCSI path; responding to the target command and obtaining a command response result; and transmitting the command response result to the target host through other SCSI paths connected with the target host. In the application, after the SCSI path between the storage device and the target host is lost, the target command can still be responded, and the command response result is returned to the target host, so that the service of the target host can be normally completed, and the service reliability is improved. The command processing system, the command processing equipment and the computer readable storage medium solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a command processing method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a command processing system according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a command processing device according to an embodiment of the present application;
fig. 4 is another schematic structural diagram of a command processing device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart illustrating a command processing method according to an embodiment of the present disclosure.
The command processing method provided by the embodiment of the application is applied to the storage device and can comprise the following steps:
step S101: and determining a disconnected target SCSI path in the SCSI paths connecting the host side and the host side.
In practical applications, the storage device may determine a disconnected target SCSI path in the SCSI paths connecting itself and the host, that is, the target SCSI path is a disconnected path originally connecting the storage device and the host. Specifically, the storage device may perform connectivity test on all SCSI paths of the storage device itself, and determine a target SCSI path according to a test result.
Step S102: a target host connected through a target SCSI path is determined.
In practical application, after determining a disconnected target SCSI path in a SCSI path connecting the storage device itself and a host, the storage device needs to determine a target host connected through the target SCSI path, so as to perform additional processing on subsequent services issued by the target host.
Step S103: a target command received over the target SCSI path is determined.
In practical applications, because the target SCSI path is disconnected, the target commands received through the target SCSI path cannot normally interact with the host through the target SCSI path, and in order to normally process the target commands, the storage device needs to determine the target commands received through the target SCSI path after determining the target hosts connected through the target SCSI path, so as to perform special processing on the target commands in the subsequent process, and ensure that the service corresponding to the target commands can be completed between the storage device and the target hosts.
Step S104: and responding to the target command and obtaining a command response result.
Step S105: and transmitting the command response result to the target host through other SCSI paths connected with the target host.
In practical application, after determining a target command passing through a target SCSI path, the storage device may respond to the target command and obtain a command response result, and then transmit the command response result to the target host through another SCSI path connected to the target host, so as to complete a corresponding service between the storage device and the target host.
It should be noted that the type of the command response result may be determined according to the response result of the target command in the actual application, for example, the command response result may be information characterizing the response status of the target command, such as a response failure, or information characterizing the response status of the target command, such as a read result of a read command.
The application provides a command processing method, which is applied to a storage device and comprises the following steps: determining a disconnected target SCSI path in the SCSI path connecting the host and the host; determining a target host connected through a target SCSI path; determining a target command received through a target SCSI path; responding to the target command and obtaining a command response result; and transmitting the command response result to the target host through other SCSI paths connected with the target host. In the application, after the SCSI path between the storage device and the target host is lost, the target command can still be responded, and the command response result is returned to the target host, so that the service of the target host can be normally completed, and the service reliability is improved.
In the command processing method provided in the embodiment of the present application, in the process of determining the disconnected target SCSI path, because the login between the storage device and the target host requires the SCSI path to be connected, the storage device may determine the target SCSI path according to whether the login between the storage device and the host is disconnected, that is, may determine the SCSI path that is disconnected from the login as the target SCSI path.
In the command processing method provided in the embodiment of the present application, in the process of determining the target host connected through the target SCSI path, the storage device may determine the target host through the login information of the target SCSI path because the login information may carry information of the target host, for example, the login information may carry an identifier of the target host.
Specifically, the target host may be determined directly according to the identification information of the target host when the login information of the target SCSI path directly carries the identification information of the target host, and the target host may be determined according to the correspondence between the login information of the target SCSI path and the target host when the login information of the target SCSI path does not carry the identification information of the target host.
In the command processing method provided by the embodiment of the application, a command queue corresponding to each SCSI path can be created, and the command received by the SCSI path is saved by means of the command queue, so that when the storage device determines the target command received through the target SCSI path, the command queue corresponding to the target SCSI path can be determined through the login information of the target SCSI path and the information of the target host; a target command is determined in the command queue.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a command processing system according to an embodiment of the present disclosure.
The command processing system provided by the embodiment of the application is applied to a storage device, and may include:
a first determining module 101, configured to determine a disconnected target SCSI path in an SCSI path connecting the host to the host;
a second determining module 102, configured to determine a target host connected through a target SCSI path;
a third determining module 103, configured to determine a target command received through the target SCSI path;
a first response module 104, configured to respond to the target command and obtain a command response result;
the first transmission module 105 is configured to transmit the command response result to the target host through another SCSI path connected to the target host.
The command processing system provided in the embodiment of the present application is applied to a storage device, and the first determining module may include:
and the first determination unit is used for determining the SCSI path with disconnected login as the target SCSI path.
The command processing system provided in the embodiment of the present application is applied to a storage device, and the second determining module may include:
and the second determining unit is used for determining the target host through the login information of the target SCSI path.
The command processing system provided in the embodiment of the present application is applied to a storage device, and the third determining module may include:
a third determining unit, configured to determine a command queue corresponding to the target SCSI path according to the login information of the target SCSI path and the information of the target host;
and the fourth determining unit is used for determining the target command in the command queue.
The application also provides a command processing device and a computer readable storage medium, which have the corresponding effects of the command processing method provided by the embodiment of the application. Referring to fig. 3, fig. 3 is a schematic structural diagram of a command processing apparatus according to an embodiment of the present disclosure.
The command processing device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 realizes the following steps when executing the computer program:
determining a disconnected target SCSI path in the SCSI path connecting the host and the host;
determining a target host connected through a target SCSI path;
determining a target command received through a target SCSI path;
responding to the target command and obtaining a command response result;
and transmitting the command response result to the target host through other SCSI paths connected with the target host.
The command processing device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 realizes the following steps when executing the computer program: and determining the SCSI path with disconnected login as the target SCSI path.
The command processing device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 realizes the following steps when executing the computer program: the target host is determined by the login information of the target SCSI path.
The command processing device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 realizes the following steps when executing the computer program: determining a command queue corresponding to the target SCSI path according to the login information of the target SCSI path and the information of the target host; a target command is determined in the command queue.
Referring to fig. 4, another command processing apparatus provided in the embodiment of the present application may further include: an input port 203 connected to the processor 202, for transmitting externally input commands to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing result of the processor 202 to the outside; and the communication module 205 is connected with the processor 202 and is used for realizing the communication between the command processing device and the outside. The display unit 204 may be a display panel, a laser scanning display, or the like; the communication method adopted by the communication module 205 includes, but is not limited to, mobile high definition link technology (HML), Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), and wireless connection: wireless fidelity technology (WiFi), bluetooth communication technology, bluetooth low energy communication technology, ieee802.11s based communication technology.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps:
determining a disconnected target SCSI path in the SCSI path connecting the host and the host;
determining a target host connected through a target SCSI path;
determining a target command received through a target SCSI path;
responding to the target command and obtaining a command response result;
and transmitting the command response result to the target host through other SCSI paths connected with the target host.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: and determining the SCSI path with disconnected login as the target SCSI path.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: the target host is determined by the login information of the target SCSI path.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: determining a command queue corresponding to the target SCSI path according to the login information of the target SCSI path and the information of the target host; a target command is determined in the command queue.
The computer-readable storage media to which this application relates include Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
For a description of a relevant part in the command processing system, the device, and the computer-readable storage medium provided in the embodiments of the present application, reference is made to detailed descriptions of a corresponding part in the command processing method provided in the embodiments of the present application, and details are not repeated here. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A command processing method applied to a storage device includes:
determining a disconnected target SCSI path in the SCSI path connecting the host and the host;
determining a target host connected through the target SCSI path;
determining a target command received through the target SCSI path;
responding the target command and obtaining a command response result;
and transmitting the command response result to the target host through other SCSI paths connected with the target host.
2. The method of claim 1, wherein determining the disconnected target SCSI path comprises:
and determining the SCSI path with disconnected login as the target SCSI path.
3. The method of claim 2, wherein determining the target host connected via the target SCSI path comprises:
and determining the target host through the login information of the target SCSI path.
4. The method of claim 3, wherein determining the target command received via the target SCSI path comprises:
determining a command queue corresponding to the target SCSI path according to the login information of the target SCSI path and the information of the target host;
and determining the target command in the command queue.
5. A command processing system applied to a storage device, comprising:
the first determining module is used for determining a disconnected target SCSI path in the SCSI path connecting the first determining module with the host end;
a second determining module, configured to determine a target host connected through the target SCSI path;
a third determining module, configured to determine a target command received through the target SCSI path;
the first response module is used for responding the target command and obtaining a command response result;
and the first transmission module is used for transmitting the command response result to the target host through other SCSI paths connected with the target host.
6. The system of claim 5, wherein the first determining module comprises:
and the first determining unit is used for determining the SCSI path with disconnected login as the target SCSI path.
7. The system of claim 6, wherein the second determining module comprises:
and the second determining unit is used for determining the target host through the login information of the target SCSI path.
8. The system of claim 7, wherein the third determination module comprises:
a third determining unit, configured to determine, through login information of the target SCSI path and information of the target host, a command queue corresponding to the target SCSI path;
a fourth determining unit, configured to determine the target command in the command queue.
9. A command processing system, comprising:
a memory for storing a computer program;
processor for implementing the steps of the command processing method according to any one of claims 1 to 4 when executing said computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the command processing method according to any one of claims 1 to 4.
CN202011109316.6A 2020-10-16 2020-10-16 Command processing method, system, equipment and computer readable storage medium Withdrawn CN112269533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011109316.6A CN112269533A (en) 2020-10-16 2020-10-16 Command processing method, system, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011109316.6A CN112269533A (en) 2020-10-16 2020-10-16 Command processing method, system, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112269533A true CN112269533A (en) 2021-01-26

Family

ID=74337359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011109316.6A Withdrawn CN112269533A (en) 2020-10-16 2020-10-16 Command processing method, system, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112269533A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1773479A (en) * 2004-11-09 2006-05-17 富士通株式会社 Memory virtual equipment and computer system using the same equipment
CN101102256A (en) * 2006-07-04 2008-01-09 国际商业机器公司 Memory area network system and method for determining datapath in memory area network system
CN105162824A (en) * 2015-07-07 2015-12-16 浪潮(北京)电子信息产业有限公司 Host multi-path disposition method in cloud storage system, and system
US10496486B1 (en) * 2018-06-29 2019-12-03 International Business Machines Corporation Protecting data integrity in a multiple path input/output environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1773479A (en) * 2004-11-09 2006-05-17 富士通株式会社 Memory virtual equipment and computer system using the same equipment
CN101102256A (en) * 2006-07-04 2008-01-09 国际商业机器公司 Memory area network system and method for determining datapath in memory area network system
CN105162824A (en) * 2015-07-07 2015-12-16 浪潮(北京)电子信息产业有限公司 Host multi-path disposition method in cloud storage system, and system
US10496486B1 (en) * 2018-06-29 2019-12-03 International Business Machines Corporation Protecting data integrity in a multiple path input/output environment

Similar Documents

Publication Publication Date Title
US11544001B2 (en) Method and apparatus for transmitting data processing request
CN112684982B (en) Data migration method, system, equipment and computer readable storage medium
CN114201268B (en) Data processing method, device and equipment and readable storage medium
CN115657975B (en) Disk data read-write control method, related components and front-end shared card
CN112134763B (en) Method, system, equipment and medium for transmitting layered messages among cluster nodes
CN105487937A (en) RDMA (Remote Direct Memory Access) implementation method and device
CN111367764A (en) PCIE monitoring method, system, equipment and computer storage medium
CN111966375A (en) Firmware upgrading method, system, equipment and computer readable storage medium
CN111756858A (en) Remote development processing system, method and device of embedded equipment
CN114064091A (en) OTA (over the air) upgrade control method and device, electronic equipment and automatic driving vehicle
CN111722966B (en) PCIe Switch detection method, system, equipment and medium
CN109144586A (en) A kind of driving adaptation method, device, computer equipment and storage medium
CN112269533A (en) Command processing method, system, equipment and computer readable storage medium
CN112422485B (en) Communication method and device of transmission control protocol
CN109800202B (en) PCIE (peripheral component interface express) -based data transmission system, method and device
CN110673799B (en) Cluster partnership establishment method, system, equipment and computer medium
CN111740881B (en) Network card link detection method, system, equipment and computer storage medium
CN104184762A (en) Fault information feedback method and system of server
CN102984138A (en) Method, device and system for obtaining object
CN114422236B (en) Intelligent device access method and device and electronic device
CN112463172B (en) Data burning method and system
CN110661869B (en) Node online method, system, device, equipment and computer storage medium
CN109753461B (en) DMA device and data transmission method
CN111970091A (en) Communication method, system, equipment and computer readable storage medium
CN111884921A (en) Communication method, system, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210126