CN108984120A - Store the processing method and relevant apparatus of device path mistake - Google Patents
Store the processing method and relevant apparatus of device path mistake Download PDFInfo
- Publication number
- CN108984120A CN108984120A CN201810713250.8A CN201810713250A CN108984120A CN 108984120 A CN108984120 A CN 108984120A CN 201810713250 A CN201810713250 A CN 201810713250A CN 108984120 A CN108984120 A CN 108984120A
- Authority
- CN
- China
- Prior art keywords
- error code
- decision table
- code decision
- mistake
- processing
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0635—Configuration or reconfiguration of storage systems by changing the path, e.g. traffic rerouting, path reconfiguration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/067—Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
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)
- Computer Networks & Wireless Communication (AREA)
- Computer And Data Communications (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the present application discloses a kind of processing method and relevant apparatus for storing device path mistake, with the flexibility for improving processing unit processing mistake.The embodiment of the present application method includes: to control IO control interface by input and output to obtain the second error code decision table, the second error code decision table is what user modified to the first error code decision table, the second error code decision table includes the corresponding relationship of at least one mistake with the rule for handling the mistake, the mistake that the mistake occurs during sending request to storage equipment by processing unit;According to mistake described in the second error code decision list processing.
Description
Technical field
The invention relates to field of data storage, more particularly to the processing method and phase of storage device path mistake
Close device.
Background technique
Multipath technology (multi-path input/output, MPIO) is visiting by one or more physical link
It asks network storage equipment, and the modes such as fault-tolerant, traffic load balancing and fine-grained I O scheduling plan be standby can be used, for net
Network storage application provides higher availability and performance advantage.Have in the operating system of commonly used host and supports multipath function
Can multi-path software, the multi-path software is by multipath driver, and for the multi-route management tool of path management
Composition.Multipath driver is the module for belonging to operating system nucleus, and realizing route identifies, path polymerization, and Path selection is (negative
Carry balanced), the functions such as error handle.Multi-route management tool runs on client layer, provides path management, and performance data counts function
Energy.
In the case where applied host machine is using storage multipath connection type access storage equipment, if processing unit is being sent
There is mistake during giving storage equipment in I/O Request, then processing unit call error processing function handles the mistake.
In the prior art, it is compiling that processing unit call error processing function, which solves the error handling mechanism of path error,
Good kernel code, which is not revisable.Therefore, after processing unit brings into operation, error handle function
It cannot modify.If modifying error handle function, need to recompilate kernel code, and then rebuilds processing dress
It sets, in the flexibility for being reduction of processing unit processing mistake.
Summary of the invention
The embodiment of the present application provides a kind of processing method and relevant apparatus for storing device path mistake, for improving
The flexibility of processing unit processing mistake.
In a first aspect, the embodiment of the present application provides a kind of processing method for storing device path mistake, comprising:
When processing unit prepares processing mistake, processing unit can obtain for the second wrong generation by IO control interface
Code decision table, the second error code decision table are what user modified to the first error code decision table, this second
Error code decision table includes the corresponding relationship of at least one mistake with the rule for handling the mistake, which gives for processing unit
The mistake that storage equipment occurs during sending request;
After processing unit obtains the second error code decision table by IO control interface, processing unit can basis
The second error code decision list processing mistake.
In the embodiment of the present application, error code decision table can realize the use in processing unit by IO control interface
The transmission of family layer and inner nuclear layer.No matter whether processing unit there is mistake during sending I/O Request to storage equipment, locates
Reason device can receive the instruction of modification error code decision table at any time, and by taking in the instruction of IO control interface
Second error code decision table of band, and the first error code is modified according to the second error code decision table carried in the instruction
Decision table.To improve the flexibility of multi-path software processing mistake.
According in a first aspect, second error code is determined in the first embodiment of the embodiment of the present application first aspect
Plan table includes: that operating system interface fault is missed, and minicomputer interface scsi command fault is missed, with the operating system interface fault
Accidentally or the scsi command fault misses corresponding processing rule.
In the embodiment of the present application, list the content of the second error code decision table, thus can be improved scheme can
Row.
According in a first aspect, in second of embodiment of the embodiment of the present application first aspect, according to the second wrong generation
The code decision list processing mistake includes:
The error code decision table of inner nuclear layer is replaced with into the second error code decision table;
The mistake is handled according to the error code decision table of the inner nuclear layer.
In the embodiment of the present application, describe according to the second error code decision list processing wrong step, therefore energy
Enough improve the feasibility of scheme.
According to second of embodiment of first aspect, in the third embodiment of the embodiment of the present application first aspect,
The error code decision table according to the inner nuclear layer carries out processing to the mistake
When receiving miscue message, the corresponding target error of miscue message is determined;
Judge in the error code decision table of the inner nuclear layer with the presence or absence of processing rule corresponding with the target error;
If there is processing rule corresponding with the target error in the error code decision table of the inner nuclear layer, according to this
Reason rule handles the target error.
In the embodiment of the present application, the step of error code decision table of the inner nuclear layer handles the mistake is described,
Therefore the feasibility of scheme has been can be improved.
According in a first aspect, in the 4th kind of embodiment of the embodiment of the present application first aspect, this method further include:
If it is regular no that there is no processing corresponding with the target error in the error code decision table of the inner nuclear layer, prompt
User modifies to the second error code decision table.
In the embodiment of the present application, enumerate when judge to be not present in the error code decision table of the inner nuclear layer and the target error
It is corresponding processing rule when as a result, the realization flexibility of scheme therefore can be enhanced.
According in a first aspect, in the 5th kind of embodiment of the embodiment of the present application first aspect, this method further include:
When to storage equipment send I/O Request when the error occurs, obtain erroneous path code, the erroneous path code to
Indicate the mistake position;
Judge that can the first error code decision table handle the mistake, the processing mistake includes satisfying the need diameter progress parameter more
Newly;
If the first error code decision table cannot handle the mistake, the request of modification error code decision table is sent.
In the embodiment of the present application, when processing unit to storage equipment send I/O Request during when the error occurs, place
Reason device will first judge that can the first error code decision table handle the mistake, perform the next step operation further according to judging result,
Therefore the realization flexibility of scheme can be enhanced.
According to the 5th of first aspect the kind of embodiment, in the 6th kind of embodiment of the embodiment of the present application first aspect,
Judge that can the first error code decision table handle the mistake, comprising:
Obtain the erroneous path code;
Inquire the list item in the first error code decision table;
Judge whether there is the list item corresponding with the erroneous path code in the first error code decision table;
If there is the list item corresponding with the erroneous path code in the first error code decision table, it is determined that first mistake
Accidentally code decision table is capable of handling the mistake;
If list item not corresponding with the erroneous path code in the first error code decision table, it is determined that this first
Error code decision table can not handle the mistake.
In the embodiment of the present application, the specific steps for judging that can the first error code decision table handle the mistake are described,
Therefore the feasibility of scheme has been can be improved.
Second aspect, the embodiment of the present application provide a kind of processing unit, which executes such as aforementioned first aspect
In method, which includes:
Acquiring unit, for obtaining the second error code decision table, second error code by IO control interface
Decision table is what user modified to the first error code decision table, which includes at least one
The corresponding relationship of a mistake and the rule for handling the mistake, the mistake are during processing unit sends request to storage equipment
The mistake occurred;
Processing unit, for according to the second error code decision list processing mistake.
In the embodiment of the present application, error code decision table can realize the use in processing unit by IO control interface
The transmission of family layer and inner nuclear layer.No matter whether processing unit there is mistake during sending I/O Request to storage equipment, locates
Reason device can receive the instruction of modification error code decision table at any time, and by taking in the instruction of IO control interface
Second error code decision table of band, and the first error code is modified according to the second error code decision table carried in the instruction
Decision table.To improve the flexibility of processing unit processing mistake.
According to second aspect, in the first embodiment of the embodiment of the present application second aspect, which determines
Plan table includes:
Operating system interface fault is missed, and minicomputer interface scsi command fault is missed, with the operating system interface fault
Accidentally or the scsi command fault misses corresponding processing rule.
In the embodiment of the present application, list the content of the second error code decision table, thus can be improved scheme can
Row.
According to second aspect, in second of embodiment of the embodiment of the present application second aspect, which includes:
Subelement is replaced, for the error code decision table of inner nuclear layer to be replaced with the second error code decision table;
Subelement is handled, for handling according to the error code decision table of the inner nuclear layer the mistake.
In the embodiment of the present application, describe according to the second error code decision list processing wrong step, therefore energy
Enough improve the feasibility of scheme.
According to second of embodiment of second aspect, in the third embodiment of the embodiment of the present application second aspect,
The processing subelement includes:
Determining module, for when receiving miscue message, determining the corresponding target error of miscue message;
Judgment module, with the presence or absence of corresponding with the target error in the error code decision table for judging the inner nuclear layer
Processing rule;
Processing module, for when the inner nuclear layer error code decision table in exist processing corresponding with the target error rule
When then, reason rule handles the target error according to this.
In the embodiment of the present application, the step of error code decision table of the inner nuclear layer handles the mistake is described,
Therefore the feasibility of scheme has been can be improved.
According to second aspect, in the 4th kind of embodiment of the embodiment of the present application second aspect, the processing unit further include:
Prompt unit, for when there is no processing corresponding with the target error in the error code decision table of the inner nuclear layer
When regular, user is prompted to modify the second error code decision table.
In the embodiment of the present application, enumerate when judge to be not present in the error code decision table of the inner nuclear layer and the target error
It is corresponding processing rule when as a result, the realization flexibility of scheme therefore can be enhanced.
The third aspect, the embodiment of the present application provide a kind of processing unit, which executes such as aforementioned first aspect
In method, which includes:
Processor, memory, bus and communication interface;
The processor, the memory and the input-output apparatus are connect with the bus;
Processor controls communication interface by obtaining the second error code decision table, and by the second error code decision table
It is stored in memory, which is what user modified to the first error code decision table,
The second error code decision table includes the corresponding relationship of at least one mistake with the rule for handling the mistake, which is processing
The mistake that device occurs during sending request to storage equipment;
Processor is according to the second error code decision list processing mistake.
It should be noted that the communication interface can be IO control interface.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, which deposits
Computer program is contained, which includes program instruction, which makes the processor when being executed by a processor
Execute the method such as any one of aforementioned first aspect.
5th aspect, the embodiment of the present application provide a kind of computer program product, which is characterized in that when the computer journey
When sequence product is run on computers, so that computer executes the method such as any one of aforementioned first aspect.
6th aspect, this application provides a kind of chip systems, which includes processor, for supporting network to set
It is standby to realize function involved in above-mentioned aspect, for example, for example sending or handling data and/or letter involved in the above method
Breath.In a kind of possible design, which further includes memory, and the memory is necessary for saving the network equipment
Program instruction and data.The chip system, can be made of chip, also may include chip and other discrete devices.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
In the embodiment of the present application, error code decision table can realize the use in processing unit by IO control interface
The transmission of family layer and inner nuclear layer.No matter whether processing unit there is mistake during sending I/O Request to storage equipment, locates
Reason device can receive the instruction of modification error code decision table at any time, and by taking in the instruction of IO control interface
Second error code decision table of band, and the first error code is modified according to the second error code decision table carried in the instruction
Decision table.To improve the flexibility of multi-path software processing mistake.
Detailed description of the invention
Fig. 1 is a kind of storage area network frame diagram provided by the embodiments of the present application;
Fig. 2 is another storage area network frame diagram provided by the embodiments of the present application;
Fig. 3 is a kind of flow diagram of the processing method of storage device path mistake provided by the embodiments of the present application;
Fig. 4 is another flow diagram of the processing method of storage device path mistake provided by the embodiments of the present application;
Fig. 5 is a kind of processing unit schematic diagram provided by the embodiments of the present application.
Specific embodiment
The embodiment of the present application provides a kind of processing method and relevant apparatus for storing device path mistake, for improving
The flexibility of processing unit processing mistake.
Below to the invention relates to some terms be introduced.
Processing unit: referring to has the function of that the solid of multipath drive software is contained in the processing unit.
Mistake: being one and prompt the mark for network error occur, and referring to causes system that cannot be intended to work according to user
All reasons or event common are 407 mistakes, 405 mistakes, 401 mistakes and 404 mistakes.In the embodiment of the present application, refer to multichannel
Diameter driver occurs abnormal during sending I/O Request to storage equipment.
Error handle: in programming procedure, due to the presence of certain mistakes, causing program to be unable to operate normally, place
These mistakes are managed so that program, which is correctly run, is known as error handle.Error handle function is to measure the important side of compiler performance
Face, it plays the role of very important in terms of helper person modifies program as early as possible.
The system architecture adapted to below the embodiment of the present application is introduced.
In enterprise information system, set for the applied host machine (Host) of processing business request and the storage of storing data
Standby (Storage) is interconnected by storage area network (storage area network, SAN).In order to improve redundancy and
I/O throughput generallys use storage multipath connection type, i.e. applied host machine is set by the access storage of a plurality of physical pathway simultaneously
It is standby.As shown in Figure 1, there are two initial port IP0, IP1 on applied host machine, store in equipment there are two target port TP0, TP1,
It is connected by SAN network, when applied host machine access stores logic unit (logical the unit number, LUN) in equipment,
Share 4 paths: Path0 (IP0, TP0), Path1 (IP0, TP1), Path2 (IP1, TP0), Path3 (IP1, TP1).
The structure of multi-path software (multi-path IO, MPIO) in the operating system of applied host machine as shown in Fig. 2,
The figure is a part of processing unit in the embodiment of the present application.The processing unit includes at least multi-path software, and the multipath
Software is made of the multipath driver of inner nuclear layer and the multi-route management tool of client layer.Multipath driver is to belong to
The module of operating system nucleus, realizing route identification, path polymerization, Path selection (load balancing), the functions such as error handle.It is more
Path management tool runs on client layer, provides path management, performance data statistical function.The embodiment of the present application is defined from newly
IO control interface between multipath driver and multi-route management tool, also, in the multi-route management of client layer
It is provided with error code decision table configuration file in tool, determines in the multipath driver of inner nuclear layer provided with error code
Plan table, to realize transmission of the error code decision table between client layer and inner nuclear layer.The error code decision table configuration file
The file for needing to use when modifying error code decision table including error code decision table and other users.If multipath drives
When sending I/O Request to storage equipment by selected path mistake occurs for program, then the error handle mould of multipath driver
Block can according to mistake type and the error code decision table instruction, to determine how to handle this I/O Request, and
How the mistake is handled.
In the present embodiment, it should be noted that the processing unit in the embodiment of the present application can be server, or service
Processor in the device perhaps chip or other devices in server, it is specific this herein without limitation.The present embodiment with
And in subsequent embodiment, only it is illustrated by taking processing unit as an example.
For ease of understanding, the detailed process in the present embodiment is described below, as shown in figure 3, being that the present embodiment mentions
The processing method of the storage device path mistake of confession, the processing unit in this method execute following steps, comprising:
301, the second error code decision table is obtained by IO control interface;
When processing unit prepares processing mistake, processing unit can obtain for the second wrong generation by IO control interface
Code decision table, the second error code decision table are what user modified to the first error code decision table, this second
Error code decision table includes the corresponding relationship of at least one mistake with the rule for handling the mistake, which gives for processing unit
The mistake that storage equipment occurs during sending request.
302, according to the second error code decision list processing mistake.
After processing unit obtains the second error code decision table by IO control interface, processing unit can basis
The second error code decision list processing mistake.
In the embodiment of the present application, error code decision table can realize the client layer in processing unit by IO control interface
With the transmission of inner nuclear layer.No matter whether processing unit there is mistake, processing dress during sending I/O Request to storage equipment
The instruction that can receive modification error code decision table at any time is set, and receives carry in the instruction second by IO control interface
Error code decision table, and the first error code decision table is modified according to the second error code decision table carried in the instruction.
To improve the flexibility of multi-path software processing mistake.
The processing method of the storage device path mistake in the present embodiment is described above, below to the present embodiment
In another embodiment of processing method of storage device path mistake be introduced, as shown in figure 3, the storage in the present embodiment
Another embodiment of the processing method of device path mistake includes:
401, IO control interface is controlled by input and output obtain the second error code decision table;
In the present embodiment, when user modifies the second error code decision table, processing unit passes through IO control interface
The second error code decision table is obtained, which is that user modifies to the first error code decision table
It obtains, which includes the corresponding relationship of at least one mistake with the rule for handling the mistake, the mistake
It is mistaken for the mistake occurred during processing unit sends request to storage equipment.
In the present embodiment, one group of IO control interface, multi-route management of the interface to realize client layer are defined
Error code decision table between tool and the processing unit of inner nuclear layer is synchronous.When multi-route management tool is by calling this interface
When the error code decision table of reading processing apparatus, using instruction Io_CTL (CTL_GET_ERROR_POLICY_TABLE,
void*table).When multi-route management tool passes through the error code decision table for updating this interface reading processing apparatus, use
It instructs Io_CTL (CTL_SET_ERROR_POLICY_TABLE, void*table).The code refers to programmer with developing instrument institute
The source file that the language of support writes out, being one group indicates defining for information by character, symbol or signal element with discrete form
Rule system.The principle of the Code Design includes uniquely determining property, standardization and versatility, expandability and stability, just
In identification and memory, makes every effort to short and small and uniform format and be easily modified.It should be noted that multipath pipe in the present embodiment
Reason tool renewal or the instruction for reading the interface are not limited only to above-metioned instruction, in the present embodiment and subsequent embodiment, only with
It is illustrated for above two code.
In the present embodiment, decision table is a kind of graphical tool in table shape, more suitable for description processing Rule of judgment,
The case where each condition is combined with each other again, there are many decision schemes.Error code decision table can accurately and succinctly describe complexity and patrol
It is corresponding will to execute movement after meeting multiple conditions and these conditions for the mode collected.With the control language in traditional program language
Unlike sentence, which can clearly indicate multiple independent conditions and the direct connection of multiple movements
Out.As shown in table 1, error code decision table includes at least: applied host machine state (host_status), scsi command fault
Accidentally (scsi_status), error handle regular (action), the number (param count) retransmitted, retransmittal interval
(interval) and retransmit maximum number of times (count).
Table 1
402, the error code decision table of inner nuclear layer is replaced with into the second error code decision table;
In the present embodiment, the error code decision table of inner nuclear layer original in inner nuclear layer is replaced with the second mistake by processing unit
Accidentally code decision table, the second error code decision table are by IO control interface from the multi-route management work in client layer
It is obtained in tool.In the present embodiment, the error code decision table of inner nuclear layer replaces with the second error code decision table, then,
At the time of next update error code decision table, which is the error code decision of inner nuclear layer
Table.
403, when receiving miscue message, the corresponding target error of miscue message is determined;
In the present embodiment, when multipath driver mistake, processing unit occurs when sending I/O Request to storage equipment
Miscue message will be received, which can be a message, be also possible to multiple message, specifically herein not
It limits.Erroneous path code is carried in the miscue message, which is used to indicate this and the mistake occur
Reason, the reason of the appearance mistake include: the mistake position, the error time of the mistake or the frequency of occurrence of the mistake.
In the present embodiment, processing unit can determine corresponding target error according to the erroneous path code in the miscue message.
The time to be processed of miscue number, mistake early warning series or the mistake can also be carried in the miscue message,
Specifically herein without limitation.
404, judge in the error code decision table of the inner nuclear layer with the presence or absence of processing rule corresponding with the target error;
In the present embodiment, when processing unit receives miscue message and after target error has been determined, this is interior for the judgement
With the presence or absence of processing rule corresponding with the target error in the error code decision table of stratum nucleare, the error code of the inner nuclear layer is determined
The content of plan table is identical as the parameter in the second error code decision table hereinbefore, which refers to the mistake of the inner nuclear layer
List item in code decision table.As shown in table 1, error code decision table includes at least: applied host machine state (host_
Status), the number (param that scsi command fault misses (scsi_status), error handle regular (action), retransmits
Count), retransmittal interval (interval) and the maximum number of times (count) retransmitted.Wherein, at least a kind of scsi command
Fault is accidentally corresponding with the processing rule of at least one mistake.One of error code decision table scsi command fault accidentally can
With corresponding with the processing rule of a variety of mistakes, the processing rule of one of error code decision table mistake can with it is a variety of
Scsi command fault is missed corresponding.In the present embodiment and subsequent embodiment, only missed and one kind with a kind of scsi command fault
It is illustrated for the processing rule of mistake is corresponding.
Below in table 1 the first row and the second behavior example error code decision table is explained.
As shown in table 1, the applied host machine state corresponding to the target error in erroneous path code is applied host machine generation
When code 0 and scsi command fault mispick SCSI error code 0, there is corresponding processing rule in the error code decision table
(action)。
If there is processing rule corresponding with the target error in the error code decision table of the inner nuclear layer, then follow the steps
405;
If executing step there is no processing rule corresponding with the target error in the error code decision table of the inner nuclear layer
Rapid 406.
405, reason rule handles the target error according to this;
It is regular when there is processing corresponding with the target error in the error code decision table of the inner nuclear layer in the present embodiment
When, which manages rule according to this and handles the target error.Below in table 1 the first row and fourth line be
Example explains error code decision table.As shown in table 1, the application master corresponding to the target error in erroneous path code
Have when machine state is applied host machine code 0 and scsi command fault mispick SCSI error code 2, in the error code decision table pair
The processing answered is regular (action), which is to retransmit I/O Request (retry_other) by other paths, also, work as
The number (param count) of preceding repeating transmission is 2 times, and retransmittal interval (interva) is 10 unit time, the number of repeating transmission
The upper limit (count) is 3 times.The unit time can be 0.001ms, or 0.002ms, can also be 0.0001ms, tool
Body is herein without limitation.
406, prompt user modifies to the second error code decision table.
In the present embodiment, advised when processing corresponding with the target error is not present in the error code decision table of the inner nuclear layer
When then, which will be prompted to user and modifies to the second error code decision table.It is repaired when user receives the needs
After the prompt for changing the second error code decision table, user interface will show the list item of the second error code decision table of inner nuclear layer,
And erroneous path code or other can indicate how user modifies the information of the second error code decision table, it is specific this
Place is without limitation.User modifies to the second error code decision table according to the information, obtains third error code decision table,
Step 401 is executed later, into the circulation of next modification error code decision table.
In the embodiment of the present application, error code decision table can realize the client layer in processing unit by IO control interface
With the transmission of inner nuclear layer.No matter whether processing unit there is mistake, processing dress during sending I/O Request to storage equipment
The instruction that can receive modification error code decision table at any time is set, and receives carry in the instruction second by IO control interface
Error code decision table, and the first error code decision table is modified according to the second error code decision table carried in the instruction.
To improve the flexibility of multi-path software processing mistake.
The processing method of the storage device path mistake in the present embodiment is described above, below to the present embodiment
In processing unit 500 be introduced, as shown in figure 5, one embodiment of processing unit 500 includes: in the present embodiment
Acquiring unit 501, for obtaining the second error code decision table by IO control interface, the second wrong generation
Code decision table is what user modified to the first error code decision table, which includes at least
One mistake and the regular corresponding relationship for handling the mistake, the mistake send the process requested to storage equipment for processing unit
Appeared in mistake;
Processing unit 502, for according to the second error code decision list processing mistake.
The processing unit 502 includes:
Subelement 5021 is replaced, for the error code decision table of inner nuclear layer to be replaced with the second error code decision
Table;
Subelement 5022 is handled, for handling according to the error code decision table of the inner nuclear layer the mistake.
The processing subelement 5022 includes:
Determining module 50221, for when receiving miscue message, determining the corresponding target of miscue message
Mistake;
Judgment module 50222, whether there is in the error code decision table for judging the inner nuclear layer and the target error
Corresponding processing rule;
Processing module 50223, for corresponding with the target error when existing in the error code decision table of the inner nuclear layer
When processing rule, reason rule handles the target error according to this.
The processing unit 500 further include:
Prompt unit 503, for when there is no corresponding with the target error in the error code decision table of the inner nuclear layer
When processing rule, user is prompted to modify the second error code decision table.
In the embodiment of the present application, error code decision table can realize the client layer in processing unit by IO control interface
With the transmission of inner nuclear layer.No matter whether processing unit there is mistake, processing dress during sending I/O Request to storage equipment
The instruction that can receive modification error code decision table at any time is set, and receives carry in the instruction second by IO control interface
Error code decision table, and the first error code decision table is modified according to the second error code decision table carried in the instruction.
To improve the flexibility of multi-path software processing mistake.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit is drawn
Point, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can
To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for
The mutual coupling, direct-coupling or communication connection of opinion can be through some interfaces, the INDIRECT COUPLING of device or unit
Or communication connection, it can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member for this, show as unit
Component may or may not be physical unit, it can it is in one place, or may be distributed over multiple nets
On network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product,
It can store in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or
Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products
Reveal and, which is stored in a storage medium, including some instructions are with so that a computer is set
Standby (can be personal computer, server or the network equipment etc.) execute each embodiment this method of the application whole or
Part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (read-only memory, ROM),
Random access memory (random access memory, RAM), magnetic or disk etc. be various to can store program code
Medium.
Above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although with reference to the foregoing embodiments
The application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each implementation
Technical solution documented by example is modified or equivalent replacement of some of the technical features;And these modification or
Replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of processing method for storing device path mistake characterized by comprising
IO control interface, which is controlled, by input and output obtains the second error code decision table, the second error code decision
Table is what user modified to the first error code decision table, and the second error code decision table includes at least one
Mistake and the regular corresponding relationship for handling the mistake, the mistake are process of the processing unit to storage equipment transmission request
Appeared in mistake;
According to mistake described in the second error code decision list processing.
2. the method according to claim 1, wherein the second error code decision table includes: operating system
Interface layer mistake, minicomputer interface scsi command fault are missed, and the operating system interface fault is missed or the scsi command
Fault misses corresponding processing rule.
3. the method according to claim 1, wherein described according to the second error code decision list processing institute
Stating mistake includes:
The error code decision table of inner nuclear layer is replaced with into the second error code decision table;
The mistake is handled according to the error code decision table of the inner nuclear layer.
4. according to the method described in claim 3, it is characterized in that, the error code decision table pair according to the inner nuclear layer
The mistake carries out processing
When receiving miscue message, the corresponding target error of the miscue message is determined;
Judge in the error code decision table of the inner nuclear layer with the presence or absence of processing rule corresponding with the target error;
If there is the processing rule corresponding with the target error, basis in the error code decision table of the inner nuclear layer
The processing rule handles the target error.
5. the method according to claim 1, wherein the method also includes:
If being mentioned in the error code decision table of the inner nuclear layer there is no the processing rule corresponding with the target error
Show that user modifies to the second error code decision table.
6. a kind of processing unit characterized by comprising
Acquiring unit, for controlling IO control interface the second error code decision table of acquisition by input and output, described the
What two error code decision tables modified to the first error code decision table for user, the second error code decision
Table includes the corresponding relationship of at least one mistake with the rule for handling the mistake, and the mistake is that processing unit gives storage equipment
The mistake occurred during sending request;
Processing unit is used for the mistake according to the second error code decision list processing.
7. processing unit according to claim 6, which is characterized in that the processing unit includes:
Subelement is replaced, for the error code decision table of inner nuclear layer to be replaced with the second error code decision table;
Subelement is handled, for handling according to the error code decision table of the inner nuclear layer the mistake.
8. processing unit according to claim 7, which is characterized in that the processing subelement includes:
Determining module, for when receiving miscue message, determining the corresponding target error of the miscue message;
Judgment module, with the presence or absence of corresponding with the target error in the error code decision table for judging the inner nuclear layer
Processing rule;
Processing module, for when the inner nuclear layer error code decision table in exist processing corresponding with the target error rule
When then, the target error is handled according to the processing rule.
9. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with computer program, institute
Stating computer program includes program instruction, and described program instruction executes the processor as right is wanted
Method described in asking any one of 1 to 5.
10. a kind of computer program product, which is characterized in that when the computer program product is run on computers, make
Obtain method of the computer execution as described in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810713250.8A CN108984120B (en) | 2018-06-29 | 2018-06-29 | Storage device path error processing method and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810713250.8A CN108984120B (en) | 2018-06-29 | 2018-06-29 | Storage device path error processing method and related device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108984120A true CN108984120A (en) | 2018-12-11 |
CN108984120B CN108984120B (en) | 2021-11-09 |
Family
ID=64539897
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810713250.8A Active CN108984120B (en) | 2018-06-29 | 2018-06-29 | Storage device path error processing method and related device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108984120B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030135703A1 (en) * | 2001-12-28 | 2003-07-17 | Martin Marcia Reid | Data management appliance |
US20050022064A1 (en) * | 2003-01-13 | 2005-01-27 | Steinmetz Joseph Harold | Management of error conditions in high-availability mass-storage-device shelves by storage-shelf routers |
CN101075206A (en) * | 2007-07-03 | 2007-11-21 | 北京控制工程研究所 | Active software fault-tolerant method based on linked list |
CN101727297A (en) * | 2008-10-30 | 2010-06-09 | 株式会社日立制作所 | Storage device, and data path failover method of internal network of storage controller |
CN101853189A (en) * | 2010-05-26 | 2010-10-06 | 北京航空航天大学 | Exception handling device based on Java and exception handling method thereof |
CN102047683A (en) * | 2008-04-08 | 2011-05-04 | 叠拓有限公司 | Dynamic fault analysis for a centrally managed network element in a telecommunications system |
CN105893190A (en) * | 2016-06-28 | 2016-08-24 | 浪潮(北京)电子信息产业有限公司 | Diagnosis processing method and system for multi-path IO errors |
CN106775487A (en) * | 2016-12-27 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of multipath stores the treating method and apparatus of failure |
CN107633026A (en) * | 2017-08-30 | 2018-01-26 | 深圳云天励飞技术有限公司 | Data syn-chronization abnormality eliminating method, device and server |
CN107678875A (en) * | 2017-09-29 | 2018-02-09 | 北京深思数盾科技股份有限公司 | A kind of fault detect and self-repairing method, device, terminal and storage medium |
-
2018
- 2018-06-29 CN CN201810713250.8A patent/CN108984120B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030135703A1 (en) * | 2001-12-28 | 2003-07-17 | Martin Marcia Reid | Data management appliance |
US20050022064A1 (en) * | 2003-01-13 | 2005-01-27 | Steinmetz Joseph Harold | Management of error conditions in high-availability mass-storage-device shelves by storage-shelf routers |
CN101075206A (en) * | 2007-07-03 | 2007-11-21 | 北京控制工程研究所 | Active software fault-tolerant method based on linked list |
CN102047683A (en) * | 2008-04-08 | 2011-05-04 | 叠拓有限公司 | Dynamic fault analysis for a centrally managed network element in a telecommunications system |
CN101727297A (en) * | 2008-10-30 | 2010-06-09 | 株式会社日立制作所 | Storage device, and data path failover method of internal network of storage controller |
CN101853189A (en) * | 2010-05-26 | 2010-10-06 | 北京航空航天大学 | Exception handling device based on Java and exception handling method thereof |
CN105893190A (en) * | 2016-06-28 | 2016-08-24 | 浪潮(北京)电子信息产业有限公司 | Diagnosis processing method and system for multi-path IO errors |
CN106775487A (en) * | 2016-12-27 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of multipath stores the treating method and apparatus of failure |
CN107633026A (en) * | 2017-08-30 | 2018-01-26 | 深圳云天励飞技术有限公司 | Data syn-chronization abnormality eliminating method, device and server |
CN107678875A (en) * | 2017-09-29 | 2018-02-09 | 北京深思数盾科技股份有限公司 | A kind of fault detect and self-repairing method, device, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108984120B (en) | 2021-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6598174B1 (en) | Method and apparatus for storage unit replacement in non-redundant array | |
US6654830B1 (en) | Method and system for managing data migration for a storage system | |
EP1788482B1 (en) | Storage control device, and error information management method for storage control device | |
CN112099918A (en) | Live migration of clusters in containerized environments | |
JP2022008781A (en) | Decentralized training method, system, device, storage medium and program | |
US20070011361A1 (en) | Storage management system | |
CN101243396B (en) | Method and apparatus for supporting universal serial bus devices in a virtualized environment | |
US8612973B2 (en) | Method and system for handling interrupts within computer system during hardware resource migration | |
CN111314125A (en) | System and method for fault tolerant communication | |
KR20200078382A (en) | Solid-state drive with initiator mode | |
CN114253740A (en) | Protocol stack data transmission method and device based on Linux kernel | |
CN109510856A (en) | By the target device in storage area network to the mark of alternately Major Members port | |
JP2004145885A (en) | Method and device for distribution of operation to remote computer, and storage medium | |
CN108008950A (en) | The implementation method and device of a kind of user interface updating | |
CN112540914A (en) | Execution method, execution device, server and storage medium for unit test | |
CN107908469A (en) | A kind of method for scheduling task and system | |
US20160162202A1 (en) | Programmable, high performance solid state drive controller architecture | |
CN115168256A (en) | Interrupt control method, interrupt controller, electronic device, medium, and chip | |
US7921220B2 (en) | Reducing occurrences of two-phase commits in a multi-node computing system | |
US20100107161A1 (en) | Method of Improving or Managing Performance of Storage System, System, Apparatus, and Program | |
CN113658351A (en) | Product production method and device, electronic equipment and storage medium | |
CN114286993B (en) | Link speed recovery in data storage systems | |
US20160073315A1 (en) | Information processing apparatus, storage control apparatus, and information processing method | |
CN108984120A (en) | Store the processing method and relevant apparatus of device path mistake | |
RU2721235C2 (en) | Method and system for routing and execution of transactions |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |