CN110798520B - Service processing method, system, device and readable storage medium - Google Patents
Service processing method, system, device and readable storage medium Download PDFInfo
- Publication number
- CN110798520B CN110798520B CN201911025132.9A CN201911025132A CN110798520B CN 110798520 B CN110798520 B CN 110798520B CN 201911025132 A CN201911025132 A CN 201911025132A CN 110798520 B CN110798520 B CN 110798520B
- Authority
- CN
- China
- Prior art keywords
- card
- service
- user state
- recovery program
- program
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 20
- 238000000034 method Methods 0.000 claims abstract description 35
- 238000011084 recovery Methods 0.000 claims description 18
- 238000013507 mapping Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 11
- 230000004044 response Effects 0.000 claims description 6
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000004744 fabric Substances 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5682—Policies or rules for updating, deleting or replacing the stored data
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Retry When Errors Occur (AREA)
Abstract
The application discloses a service processing method, a system, a device and a readable storage medium, which are applied to an FC card and comprise the following steps: starting a user-mode-driven supervision module, registering a service quick recovery program and initializing; starting a user state drive; initializing all ports of the FC card through user state drive; acquiring target address data corresponding to a user mode driver through a service quick recovery program; when the user state driver crashes, the target address data is used for enabling the service quick recovery program to take over the link of the FC card. Due to the fact that the service fast recovery program is arranged in the method, when the user state drive is broken down, the service fast recovery program can take over the FC card link, the service cannot be directly interrupted, if the user state drive is restarted again, the previous service can be continuously executed, the situations that service issuing is restarted and the service is repeatedly executed in the prior art are avoided, the service processing efficiency and the safety degree of data are improved, and the stability of operation of the storage device is guaranteed.
Description
Technical Field
The present invention relates to the field of cloud computing, and in particular, to a method, a system, an apparatus, and a readable storage medium for service processing.
Background
At present, in the cloud computing era, mass data needs to be stored and read, the capacity and the deployment density of storage devices are continuously improved, and an FC (Fiber Channel) has the advantages of Channel and network, high bandwidth, reliability, stability, electromagnetic interference resistance and the like, can provide very stable and reliable optical Fiber connection, and is easy to construct a large-scale data transmission and communication network. User state drive support is mostly adopted in the application process of the FC card by the storage device, so that the accuracy and the high efficiency of data processing are ensured, the data consistency and the rapid reporting of events are ensured, and the like. The FC card user mode driver is compiled with other partial codes, such as a protocol layer, a hard disk driver and the like, once other modules have abnormity to cause the user mode driver to exit, the FC card user mode driver needs to check whether a partner node exists or not, and a path is switched to the partner node through multi-path software at a server host end to continue service transmission. And when the following occurs: when the storage node has no partner node, the two storage node user state drivers exit simultaneously or the server multipath software cannot be used normally, path switching cannot be realized, the host service can only be interrupted, the user state drivers are restarted after the storage end is processed by mistake, a link is established with the host, service release is restarted, a large amount of time needs to be waited, and great loss is caused by service interruption in the process.
Therefore, how to provide a solution to the above technical problems is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of this, the present invention provides a method, a system, a device and a readable storage medium for processing a service, so as to avoid direct service interruption and ensure the stability and security of a storage device. The specific scheme is as follows:
a service processing method is applied to an FC card and comprises the following steps:
starting a user-mode-driven supervision module, registering a service quick recovery program and initializing;
starting the user state drive;
initializing all ports of the FC card through the user state driver;
acquiring target address data corresponding to the user mode driver through the service quick recovery program;
and when the user state driver crashes, the target address data is utilized to enable the service quick recovery program to take over the link of the FC card.
Preferably, the process of registering and initializing the service fast recovery program further includes:
mapping a register space of a queue and a mailbox command in the FC card, and establishing contact with the FC card;
correspondingly, the process of initializing all ports of the FC card by the user state driver further includes:
and initializing DMA space allocation, mapping the queue in the FC card and the register space of the mailbox command, and establishing contact with the FC card.
Preferably, the method further includes, while the user-state drive is started, the steps of:
and disabling the service quick recovery program.
Preferably, the target address data includes DMA physical addresses of queues in the FC card and/or DMA physical addresses of mailbox commands.
Preferably, the process of using the target address data to enable the service fast recovery program to take over the link of the FC card when the user state driver crashes specifically includes:
when the user state driver crashes, starting the service quick recovery program;
allocating corresponding space by using the target address data to set the queue and the mailbox command;
polling IO (input/output) of the FC card interacting with a driver through the queue, and sending an IO termination command to the IC card;
polling the response queue of the FC card to confirm whether the command for terminating the IO is completely finished, if so, ending the service fast recovery program and restarting the user state drive.
Preferably, before the using the target address data to enable the service fast recovery program to take over the link of the FC card, the method further includes:
judging whether the FC card meets a quick recovery condition, if so, executing the action of enabling the service quick recovery program to take over the link of the FC card by using the target address data;
the fast recovery condition includes: the storage node where the FC card is located has no partner node, or the storage node and the user mode driver of the partner node exit simultaneously, or server multipath software cannot be used normally.
Preferably, the service fast recovery program specifically includes an initialization program, a queue management program, and a mailbox command program.
Correspondingly, the invention also discloses a service processing system, which is applied to the FC card and comprises the following components:
the first starting module is used for starting the user-mode-driven supervision module, registering a service quick recovery program and initializing the service quick recovery program;
the second starting module is used for starting the user state drive;
the drive initialization module is used for initializing all ports of the FC card through the user state drive;
the data acquisition module is used for acquiring target address data corresponding to the user mode driver through the service quick recovery program;
and the takeover module is used for enabling the service quick recovery program to take over the link of the FC card by using the target address data when the user state driver crashes.
Correspondingly, the invention also discloses a service processing device, which is applied to the FC card and comprises the following components:
a memory for storing a computer program;
a processor for implementing the steps of the service processing method as described in any one of the above when executing the computer program.
Correspondingly, the invention also discloses a readable storage medium, which is applied to the FC card, wherein the readable storage medium stores a computer program, and the computer program realizes the steps of the service processing method according to any one of the above when being executed by a processor.
The application discloses a service processing method, which is applied to an FC card and comprises the following steps: starting a user-mode-driven supervision module, registering a service quick recovery program and initializing; starting the user state drive; initializing all ports of the FC card through the user state driver; acquiring target address data corresponding to the user mode driver through the service quick recovery program; and when the user state driver crashes, the target address data is utilized to enable the service quick recovery program to take over the link of the FC card. Due to the fact that the service fast recovery program is arranged in the method, when the user state drive is broken down, the service fast recovery program can take over the FC card link, the service cannot be directly interrupted, if the user state drive is restarted again, the previous service can be continuously executed, the situations that service issuing is restarted and the service is repeatedly executed in the prior art are avoided, the service processing efficiency and the safety degree of data are improved, and the stability of operation of the storage device is guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, 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 illustrating steps of a service processing method according to an embodiment of the present invention;
FIG. 2 is a structural diagram of a memory device according to an embodiment of the present invention;
fig. 3 is a structural distribution diagram of a service processing system according to an embodiment of the present invention;
fig. 4 is a configuration diagram of a service processing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
In the prior art, the following situations occur: when the storage node has no partner node, the two storage node user state drivers exit simultaneously or the server multipath software cannot be used normally, path switching cannot be realized, the host service can only be interrupted, the user state drivers are restarted after the storage end is processed by mistake, a link is established with the host, service release is restarted, a large amount of time needs to be waited, and great loss is caused by service interruption in the process. Due to the fact that the service fast recovery program is arranged in the method, when the user state drive is broken down, the service fast recovery program can take over the FC card link, the service cannot be directly interrupted, if the user state drive is restarted again, the previous service can be continuously executed, the situations that service issuing is restarted and the service is repeatedly executed in the prior art are avoided, the service processing efficiency and the safety degree of data are improved, and the stability of operation of the storage device is guaranteed.
The embodiment of the invention discloses a service processing method, which is applied to an FC card and shown in figure 1, and comprises the following steps:
s1: starting a user-mode-driven supervision module, registering a service quick recovery program and initializing;
the service quick recovery program generally comprises an initialization program, a queue management program and a mailbox command program. Besides necessary initialization program, queue management program and mailbox command program, it can further add other related programs in the service quick recovery program according to the service requirements.
S2: starting the user state drive;
it will be appreciated that the service fast recovery procedure is disabled while the user state driver is enabled.
S3: initializing all ports of the FC card through the user state driver;
s4: acquiring target address data corresponding to the user mode driver through the service quick recovery program;
the target address data includes a Direct Memory Access (DMA) physical address of a queue in the FC card and/or a DMA physical address of a mailbox command, and the obtained target address data is stored in a corresponding structure and waits for call.
S5: and when the user state driver crashes, the target address data is utilized to enable the service quick recovery program to take over the link of the FC card.
It can be understood that, as shown in fig. 2, the structure of a storage device generally includes two nodes that are partner nodes with each other, and therefore, determining that a user state driver crashes and a service fast recovery program takes over a link of an FC card generally includes, before the service fast recovery program takes over the link of the FC card using the target address data, that is:
judging whether the FC card meets a quick recovery condition, if so, executing the action of enabling the service quick recovery program to take over the link of the FC card by using the target address data;
the fast recovery condition includes: the storage node where the FC card is located has no partner node, or the storage node and the user mode driver of the partner node exit simultaneously, or server multipath software cannot be used normally.
It will be appreciated that the traffic fast recovery program will invoke the target address data in the fabric to perform the correlation operation to take over the FC card link.
The application discloses a service processing method, which is applied to an FC card and comprises the following steps: starting a user-mode-driven supervision module, registering a service quick recovery program and initializing; starting the user state drive; initializing all ports of the FC card through the user state driver; acquiring target address data corresponding to the user mode driver through the service quick recovery program; and when the user state driver crashes, the target address data is utilized to enable the service quick recovery program to take over the link of the FC card. Due to the fact that the service fast recovery program is arranged in the method, when the user state drive is broken down, the service fast recovery program can take over the FC card link, the service cannot be directly interrupted, if the user state drive is restarted again, the previous service can be continuously executed, the situations that service issuing is restarted and the service is repeatedly executed in the prior art are avoided, the service processing efficiency and the safety degree of data are improved, and the stability of operation of the storage device is guaranteed.
The embodiment of the invention discloses a specific service processing method, and compared with the previous embodiment, the embodiment further explains and optimizes the technical scheme.
Specifically, the process of registering a service fast recovery program and initializing further includes:
mapping a register space of a queue and a mailbox command in the FC card, and establishing contact with the FC card;
correspondingly, the process of initializing all ports of the FC card by the user state driver further includes:
and initializing DMA space allocation, mapping the queue in the FC card and the register space of the mailbox command, and establishing contact with the FC card.
Specifically, when the user state driver is started, the method further includes:
and disabling the service quick recovery program.
Further, the process of using the target address data to enable the service fast recovery program to take over the link of the FC card when the user state driver crashes specifically includes:
when the user state driver crashes, starting the service quick recovery program;
allocating corresponding space by using the target address data to set the queue and the mailbox command;
polling IO (input/output) of the FC card interacting with a driver through the queue, and sending an IO termination command to the IC card;
polling the response queue of the FC card to confirm whether the command for terminating the IO is completely finished, if so, ending the service fast recovery program and restarting the user state drive.
It can be understood that after restarting the user-state drive, the method further includes: the storage device logs in the host server, establishes a link and continues the service.
Further, before the using the target address data to enable the service fast recovery program to take over the link of the FC card, the method further includes:
judging whether the FC card meets a quick recovery condition, if so, executing the action of enabling the service quick recovery program to take over the link of the FC card by using the target address data;
the fast recovery condition includes: the storage node where the FC card is located has no partner node, or the storage node and the user mode driver of the partner node exit simultaneously, or server multipath software cannot be used normally.
Correspondingly, the embodiment of the present invention further discloses a service processing system, which is applied to an FC card, and as shown in fig. 3, the service processing system includes:
the first starting module 01 is used for starting a user-mode-driven supervision module, registering a service quick recovery program and initializing the service quick recovery program;
the second starting module 02 is used for starting the user state drive;
a driver initialization module 03, configured to initialize all ports of the FC card through the user state driver;
a data obtaining module 04, configured to obtain, through the service fast recovery program, target address data corresponding to the user mode driver;
and the takeover module 05 is configured to, when the user state driver crashes, use the target address data to cause the service fast recovery program to take over the link of the FC card.
Preferably, the process of registering and initializing the service fast recovery program further includes:
mapping a register space of a queue and a mailbox command in the FC card, and establishing contact with the FC card;
correspondingly, the process of initializing all ports of the FC card by the user state driver further includes:
and initializing DMA space allocation, mapping the queue in the FC card and the register space of the mailbox command, and establishing contact with the FC card.
Because the service fast recovery program is set in the embodiment, when the user state driver crashes, the service fast recovery program can take over the FC card link, so that the service cannot be directly interrupted, if the user state driver is restarted again, the previous service can be continuously executed, the situations that the service is released and executed repeatedly in the prior art are avoided, the service processing efficiency and the data safety degree are improved, and the operation stability of the storage device is ensured.
In some preferred embodiments, the second enabling module 02 is further configured to:
and disabling the service quick recovery program.
In some preferred embodiments, the target address data includes DMA physical addresses of queues in the FC card and/or DMA physical addresses of mailbox commands.
In some preferred embodiments, the takeover module 05 is specifically configured to:
when the user state driver crashes, starting the service quick recovery program;
allocating corresponding space by using the target address data to set the queue and the mailbox command;
polling IO (input/output) of the FC card interacting with a driver through the queue, and sending an IO termination command to the IC card;
polling the response queue of the FC card to confirm whether the command for terminating the IO is completely finished, if so, ending the service fast recovery program and restarting the user state drive.
In some preferred embodiments, before the taking over the link of the FC card by the service fast recovery program using the target address data, the taking over module 05 is further configured to:
judging whether the FC card meets a quick recovery condition, if so, executing the action of enabling the service quick recovery program to take over the link of the FC card by using the target address data;
the fast recovery condition includes: the storage node where the FC card is located has no partner node, or the storage node and the user mode driver of the partner node exit simultaneously, or server multipath software cannot be used normally.
In some preferred embodiments, the service fast recovery program specifically includes an initialization program, a queue management program, and a mailbox command program.
Correspondingly, the invention also discloses a service processing device, which is applied to the FC card, and is shown in fig. 4, and includes a processor 11 and a memory 12; wherein the processing 11 implements the following steps when executing the computer program stored in the memory 12:
starting a user-mode-driven supervision module, registering a service quick recovery program and initializing;
starting the user state drive;
initializing all ports of the FC card through the user state driver;
acquiring target address data corresponding to the user mode driver through the service quick recovery program;
and when the user state driver crashes, the target address data is utilized to enable the service quick recovery program to take over the link of the FC card.
Because the service fast recovery program is set in the embodiment, when the user state driver crashes, the service fast recovery program can take over the FC card link, so that the service cannot be directly interrupted, if the user state driver is restarted again, the previous service can be continuously executed, the situations that the service is released and executed repeatedly in the prior art are avoided, the service processing efficiency and the data safety degree are improved, and the operation stability of the storage device is ensured.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
mapping a register space of a queue and a mailbox command in the FC card, and establishing contact with the FC card;
and initializing DMA space allocation, mapping the queue in the FC card and the register space of the mailbox command, and establishing contact with the FC card.
And disabling the service quick recovery program.
In some embodiments, the destination address data includes DMA physical addresses of queues in the FC card and/or DMA physical addresses of mailbox commands.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
when the user state driver crashes, starting the service quick recovery program;
allocating corresponding space by using the target address data to set the queue and the mailbox command;
polling IO (input/output) of the FC card interacting with a driver through the queue, and sending an IO termination command to the IC card;
polling the response queue of the FC card to confirm whether the command for terminating the IO is completely finished, if so, ending the service fast recovery program and restarting the user state drive.
In some specific embodiments, when the processor 11 executes the computer subprogram stored in the memory 12, the following steps may be specifically implemented:
judging whether the FC card meets a quick recovery condition, if so, executing the action of enabling the service quick recovery program to take over the link of the FC card by using the target address data;
the fast recovery condition includes: the storage node where the FC card is located has no partner node, or the storage node and the user mode driver of the partner node exit simultaneously, or server multipath software cannot be used normally.
In some specific embodiments, the service fast recovery program specifically includes an initialization program, a queue management program, and a mailbox command program.
Further, the service processing apparatus in this embodiment may further include:
the input interface 13 is configured to obtain a computer program imported from the outside, store the obtained computer program in the memory 12, and also be configured to obtain various instructions and parameters transmitted by an external terminal device, and transmit the instructions and parameters to the processor 11, so that the processor 11 performs corresponding processing by using the instructions and parameters. In this embodiment, the input interface 13 may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, and the like.
And an output interface 14, configured to output various data generated by the processor 11 to a terminal device connected thereto, so that other terminal devices connected to the output interface 14 can acquire various data generated by the processor 11. In this embodiment, the output interface 14 may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
A communication unit 15 for establishing a telecommunication connection between the service processing device and the external server so that the service processing device can mount the image file to the external server. In this embodiment, the communication unit 15 may specifically include, but is not limited to, a remote communication unit based on a wireless communication technology or a wired communication technology.
And the keyboard 16 is used for acquiring various parameter data or instructions input by a user through real-time key cap knocking.
And the display 17 is used for displaying relevant information of the business processing process in real time so that a user can know the business processing condition in time.
The mouse 18 may be used to assist the user in entering data and to simplify the user's operation.
Further, embodiments of the present application also disclose a computer-readable storage medium, where the computer-readable storage medium includes Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art. A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
starting a user-mode-driven supervision module, registering a service quick recovery program and initializing;
starting the user state drive;
initializing all ports of the FC card through the user state driver;
acquiring target address data corresponding to the user mode driver through the service quick recovery program;
and when the user state driver crashes, the target address data is utilized to enable the service quick recovery program to take over the link of the FC card.
Because the service fast recovery program is set in the embodiment, when the user state driver crashes, the service fast recovery program can take over the FC card link, so that the service cannot be directly interrupted, if the user state driver is restarted again, the previous service can be continuously executed, the situations that the service is released and executed repeatedly in the prior art are avoided, the service processing efficiency and the data safety degree are improved, and the operation stability of the storage device is ensured.
In some specific embodiments, when executed by a processor, the computer sub-program stored in the computer-readable storage medium may specifically implement the following steps:
mapping a register space of a queue and a mailbox command in the FC card, and establishing contact with the FC card;
and initializing DMA space allocation, mapping the queue in the FC card and the register space of the mailbox command, and establishing contact with the FC card.
And disabling the service quick recovery program.
In some embodiments, the destination address data includes DMA physical addresses of queues in the FC card and/or DMA physical addresses of mailbox commands.
In some specific embodiments, when executed by a processor, the computer sub-program stored in the computer-readable storage medium may specifically implement the following steps:
when the user state driver crashes, starting the service quick recovery program;
allocating corresponding space by using the target address data to set the queue and the mailbox command;
polling IO (input/output) of the FC card interacting with a driver through the queue, and sending an IO termination command to the IC card;
polling the response queue of the FC card to confirm whether the command for terminating the IO is completely finished, if so, ending the service fast recovery program and restarting the user state drive.
In some specific embodiments, when executed by a processor, the computer sub-program stored in the computer-readable storage medium may specifically implement the following steps:
judging whether the FC card meets a quick recovery condition, if so, executing the action of enabling the service quick recovery program to take over the link of the FC card by using the target address data;
the fast recovery condition includes: the storage node where the FC card is located has no partner node, or the storage node and the user mode driver of the partner node exit simultaneously, or server multipath software cannot be used normally.
In some specific embodiments, the service fast recovery program specifically includes an initialization program, a queue management program, and a mailbox command program.
Finally, it should also be 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 service processing method, system, device and readable storage medium provided by the present invention are introduced in detail, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (9)
1. A service processing method is applied to an FC card and comprises the following steps:
starting a user-mode-driven supervision module, registering a service quick recovery program and initializing;
starting the user state drive;
initializing all ports of the FC card through the user state driver;
acquiring target address data corresponding to the user mode driver through the service quick recovery program;
when the user state driver crashes, judging whether the FC card meets a quick recovery condition, if so, using the target address data to enable the service quick recovery program to take over a link of the FC card;
the fast recovery condition includes: the storage node where the FC card is located has no partner node, or the storage node and the user mode driver of the partner node exit simultaneously, or server multipath software cannot be used normally.
2. The service processing method according to claim 1, wherein the process of registering and initializing a service fast recovery procedure further comprises:
mapping a register space of a queue and a mailbox command in the FC card, and establishing contact with the FC card;
correspondingly, the process of initializing all ports of the FC card by the user state driver further includes:
and initializing DMA space allocation, mapping the queue in the FC card and the register space of the mailbox command, and establishing contact with the FC card.
3. The service processing method according to claim 2, wherein said starting the user state driver further comprises:
and disabling the service quick recovery program.
4. The traffic processing method according to claim 3, wherein the destination address data includes DMA physical addresses of queues in the FC card and/or DMA physical addresses of mailbox commands.
5. The service processing method according to claim 4, wherein the process of taking over the link of the FC card by the service fast recovery program using the target address data when the user state driver crashes specifically includes:
when the user state driver crashes, starting the service quick recovery program;
allocating corresponding space by using the target address data to set the queue and the mailbox command;
polling IO (input/output) of the FC card interacting with a driver through the queue, and sending an IO termination command to the FC card;
polling the response queue of the FC card to confirm whether the command for terminating the IO is completely finished, if so, ending the service fast recovery program and restarting the user state drive.
6. The service processing method according to any one of claims 1 to 5, wherein the service fast recovery program specifically includes an initialization program, a queue management program, and a mailbox command program.
7. A service processing system applied to an FC card, comprising:
the first starting module is used for starting the user-mode-driven supervision module, registering a service quick recovery program and initializing the service quick recovery program;
the second starting module is used for starting the user state drive;
the drive initialization module is used for initializing all ports of the FC card through the user state drive;
the data acquisition module is used for acquiring target address data corresponding to the user mode driver through the service quick recovery program;
a takeover module, configured to determine whether the FC card meets a fast recovery condition when the user state driver crashes, and if so, enable the service fast recovery program to take over a link of the FC card by using the target address data;
the fast recovery condition includes: the storage node where the FC card is located has no partner node, or the storage node and the user mode driver of the partner node exit simultaneously, or server multipath software cannot be used normally.
8. A service processing device applied to an FC card comprises:
a memory for storing a computer program;
processor for implementing the steps of the service processing method according to any of claims 1 to 6 when executing said computer program.
9. A readable storage medium, applied to an FC card, having a computer program stored thereon, which, when executed by a processor, implements the steps of the service processing method according to any one of claims 1 to 6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911025132.9A CN110798520B (en) | 2019-10-25 | 2019-10-25 | Service processing method, system, device and readable storage medium |
PCT/CN2020/092825 WO2021077742A1 (en) | 2019-10-25 | 2020-05-28 | Method, system, and device for service processing, and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911025132.9A CN110798520B (en) | 2019-10-25 | 2019-10-25 | Service processing method, system, device and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110798520A CN110798520A (en) | 2020-02-14 |
CN110798520B true CN110798520B (en) | 2021-12-03 |
Family
ID=69441314
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911025132.9A Active CN110798520B (en) | 2019-10-25 | 2019-10-25 | Service processing method, system, device and readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110798520B (en) |
WO (1) | WO2021077742A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110798520B (en) * | 2019-10-25 | 2021-12-03 | 苏州浪潮智能科技有限公司 | Service processing method, system, device and readable storage medium |
CN112596818B (en) * | 2020-12-30 | 2023-12-05 | 上海众源网络有限公司 | Application program control method, system and device |
CN115471215B (en) * | 2022-10-31 | 2023-03-28 | 江西省地质局地理信息工程大队 | Business process processing method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1308278A (en) * | 2001-02-15 | 2001-08-15 | 华中科技大学 | IP fault-tolerant method for colony server |
CN1452405A (en) * | 2002-04-18 | 2003-10-29 | 华为技术有限公司 | All-process backup video communication system |
CN101019120A (en) * | 2004-10-12 | 2007-08-15 | 国际商业机器公司 | Apparatus, system, and method for facilitating storage management |
CN101217353A (en) * | 2007-01-05 | 2008-07-09 | 深圳市科陆电子科技股份有限公司 | A control method on multi-point dual redundancy system of call center |
CN101237315A (en) * | 2008-02-28 | 2008-08-06 | 浪潮电子信息产业股份有限公司 | A synchronous detection and failure separation method for dual control high-availability system |
CN109240809A (en) * | 2017-07-11 | 2019-01-18 | 阿里巴巴集团控股有限公司 | Process maintenance management method, container maintaining method, device and operating system |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8473661B2 (en) * | 2009-08-14 | 2013-06-25 | Cadence Design Systems, Inc. | System and method for providing multi-process protection using direct memory mapped control registers |
EP2862051A4 (en) * | 2012-06-18 | 2016-08-10 | Actifio Inc | Enhanced data management virtualization system |
US9933946B2 (en) * | 2014-09-15 | 2018-04-03 | Hewlett Packard Enterprise Development Lp | Fibre channel storage array methods for port management |
US10229017B1 (en) * | 2015-10-01 | 2019-03-12 | EMC IP Holding Company LLC | Resetting fibre channel devices for failover in high availability backup systems |
US10592357B2 (en) * | 2015-12-30 | 2020-03-17 | Commvault Systems, Inc. | Distributed file system in a distributed deduplication data storage system |
CN106888111B (en) * | 2016-12-30 | 2019-11-08 | 北京同有飞骥科技股份有限公司 | A method of solving dual computer group FC-SAN switching |
CN108874595A (en) * | 2018-06-28 | 2018-11-23 | 郑州云海信息技术有限公司 | A kind of HBA card remapping method, system and HBA card and storage medium |
CN109039958B (en) * | 2018-09-13 | 2021-06-29 | 郑州云海信息技术有限公司 | FC port virtualization method and device and FC terminal equipment |
CN109413164B (en) * | 2018-10-09 | 2022-04-22 | 郑州云海信息技术有限公司 | Access service recovery method, device, equipment and readable storage medium |
CN110798520B (en) * | 2019-10-25 | 2021-12-03 | 苏州浪潮智能科技有限公司 | Service processing method, system, device and readable storage medium |
-
2019
- 2019-10-25 CN CN201911025132.9A patent/CN110798520B/en active Active
-
2020
- 2020-05-28 WO PCT/CN2020/092825 patent/WO2021077742A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1308278A (en) * | 2001-02-15 | 2001-08-15 | 华中科技大学 | IP fault-tolerant method for colony server |
CN1452405A (en) * | 2002-04-18 | 2003-10-29 | 华为技术有限公司 | All-process backup video communication system |
CN101019120A (en) * | 2004-10-12 | 2007-08-15 | 国际商业机器公司 | Apparatus, system, and method for facilitating storage management |
CN101217353A (en) * | 2007-01-05 | 2008-07-09 | 深圳市科陆电子科技股份有限公司 | A control method on multi-point dual redundancy system of call center |
CN101237315A (en) * | 2008-02-28 | 2008-08-06 | 浪潮电子信息产业股份有限公司 | A synchronous detection and failure separation method for dual control high-availability system |
CN109240809A (en) * | 2017-07-11 | 2019-01-18 | 阿里巴巴集团控股有限公司 | Process maintenance management method, container maintaining method, device and operating system |
Also Published As
Publication number | Publication date |
---|---|
CN110798520A (en) | 2020-02-14 |
WO2021077742A1 (en) | 2021-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110798520B (en) | Service processing method, system, device and readable storage medium | |
CN107678835B (en) | Data transmission method and system | |
CN110389815A (en) | Task processing method, apparatus and system | |
JP2006217283A (en) | Method for transferring data, data transfer program, information-processing terminal device and information system | |
JP2002300229A (en) | Device and method for controlling usb communication and usb communication system | |
JP6498844B2 (en) | Computer device and method for reading / writing data by computer device | |
CN113076281B (en) | Method, system, equipment and medium for communication of Ceph kernel client | |
WO2015035887A1 (en) | Data storage method, apparatus, and system | |
CN111901386A (en) | Method, system, equipment and readable storage medium for remote file processing | |
CN115080479B (en) | Transmission method, server, device, bare metal instance and baseboard management controller | |
US10009425B1 (en) | Synchronization of transactions utilizing multiple distributed cloud-based services | |
CN108366098A (en) | A kind of data interactive method and device of network node | |
CN111726848B (en) | Equipment binding method, target starting device, fixed terminal and storage medium | |
CN109413180B (en) | Data acquisition method, system and equipment and storage medium | |
CN109189705A (en) | A kind of usb expansion method, apparatus, equipment, storage medium and system | |
WO2019012375A1 (en) | Method for remote node discovery and communication channel validation and connection | |
CN112527192A (en) | Data acquisition method and device and service equipment | |
CN113391931B (en) | Remote control method and device based on Bluetooth, computer equipment and storage medium | |
CN115002840A (en) | Equipment data transmission method and device, electronic equipment and storage medium | |
CN113626139B (en) | High-availability virtual machine storage method and device | |
CN113438749A (en) | Multi-public-network connection driving method and device, computer equipment and storage medium | |
CN109862553B (en) | Terminal and communication method | |
CN116743587B (en) | Virtual network interface implementation method and device based on heterogeneous computing accelerator card | |
CN113703676B (en) | Calling method, device, equipment and medium for double live volumes | |
CN112261051B (en) | User registration method, device and system |
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 |