Disaster recovery processing method, device, mobile terminal and storage medium

By introducing a buffer server into the disaster recovery system for synchronous replication and asynchronous replication, the problems of write operation delay and data loss are solved, and complete data recovery is achieved when the main server fails.

CN111858147BActive Publication Date: 2024-09-27ZUNYI BRANCH OF CHINA MOBILE GRP GUIZHOU COMPANY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910353972.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-29
Publication Date
2024-09-27
Estimated Expiration
2039-04-29

AI Technical Summary

Technical Problem

Existing synchronous data replication disaster recovery technology causes delays in write operations, while asynchronous data replication disaster recovery may cause data loss during fault recovery.

Method used

When receiving a data write request, the data is first copied to the buffer server synchronously, and then copied asynchronously to the disaster recovery server to ensure that the storage capacity of the buffer server is greater than or equal to the total input and output of the asynchronous time difference between the main server and the disaster recovery server. Ensure data integrity and reduce write operation latency.

Benefits of technology

When the primary server fails, the copied data in the buffer server can ensure data integrity and avoid the delay in write operations caused by waiting for the disaster recovery node to complete writing. At the same time, the primary server can be reconstructed based on the data of the buffer server and the disaster recovery server. A complete copy of the server's data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111858147B
    Figure CN111858147B
Patent Text Reader

Abstract

The present invention provides a disaster recovery processing method, device, mobile terminal and storage medium, the method comprising: upon receiving a data write request, writing the to-be-written data corresponding to the data write request to the primary server; synchronously copying the to-be-written data to the buffer server; asynchronously copying the to-be-written data to the disaster recovery server, wherein the storage capacity of the buffer server is greater than or equal to the total input and output of the asynchronous time difference from the primary server to the disaster recovery server. According to the technical solution of the embodiment of the present invention, the problem of delay in writing operation caused by waiting for the disaster recovery node to complete writing can be avoided, and a complete data copy of the primary server can be reconstructed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of disaster recovery, and in particular to a disaster recovery processing method, a disaster recovery processing device, a mobile terminal and a computer-readable storage medium. Background Art

[0002] With the development of information construction, enterprises are paying more and more attention to the planning and construction of disaster recovery after solving the basic information guarantee. At present, the commonly used disaster recovery methods are: backup disaster recovery, data-level disaster recovery, and application-level disaster recovery. Data-level disaster recovery is our most widely used disaster recovery method, and disaster recovery based on data volume replication is the most commonly used method in data-level disaster recovery. Volume replication is mainly divided into synchronous data replication disaster recovery and asynchronous data replication disaster recovery.

[0003] Synchronous data replication disaster recovery writes the write data on the application to the production node and the disaster recovery node synchronously. It needs to ensure that the write data has been written to the primary node and the disaster recovery node before the application finally completes the write. If the link condition between the primary node and the disaster recovery node is not good, it will have to wait for the disaster recovery node to complete the write, resulting in a delay in the application's write operation; asynchronous data replication disaster recovery does not require synchronous completion of the write operation of the primary node and the disaster recovery node, but when the primary site fails, the data of the disaster recovery node and the primary site will be inconsistent, and some data will be lost when restoring the data of the primary site. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a disaster recovery processing method, a disaster recovery system, a disaster recovery processing device, a mobile terminal and a computer-readable storage medium to avoid the problem of delaying the write operation due to waiting for the disaster recovery node to complete writing, while being able to completely restore the data of the primary site.

[0005] To solve the above technical problems, the embodiments of the present invention are implemented as follows:

[0006] In the first aspect, an embodiment of the present invention provides a disaster recovery processing method, which is applied to a disaster recovery system, which includes a main server, a disaster recovery server and a buffer server. The disaster recovery processing method includes: when a data write request is received, writing the data to be written corresponding to the data write request to the main server; synchronously copying the data to be written to the buffer server; asynchronously copying the data to be written to the disaster recovery server, wherein the storage capacity of the buffer server is greater than or equal to the total input and output amount of the asynchronous time difference from the main server to the disaster recovery server.

[0007] In the second aspect, an embodiment of the present invention provides a disaster recovery processing device, which is applied to a disaster recovery system. The disaster recovery system includes a main server, a disaster recovery server and a buffer server. The disaster recovery processing device includes: a data writing module, which is used to write the data to be written corresponding to the data writing request to the main server when a data writing request is received; a synchronous replication module, which is used to synchronously replicate the data to be written to the buffer server; and an asynchronous replication module, which is used to asynchronously replicate the data to be written to the disaster recovery server, wherein the storage capacity of the buffer server is greater than or equal to the total input and output amount of the asynchronous time difference from the main server to the disaster recovery server.

[0008] In a third aspect, an embodiment of the present invention provides a mobile terminal, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the disaster recovery processing method described in the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the disaster recovery processing method described in the first aspect are implemented.

[0010] According to the technical solution of the embodiment of the present invention, on the one hand, the data to be written is synchronously copied to the buffer server, wherein the storage capacity of the buffer server is greater than or equal to the total input and output of the asynchronous time difference between the main server and the disaster recovery server, thereby ensuring that when the main server fails, the data in the main server that has not yet been asynchronously copied to the disaster recovery server has been copied in the buffer server; on the other hand, the data to be written is asynchronously copied to the disaster recovery server, thereby avoiding the problem of delaying the write operation due to waiting for the disaster recovery node to complete writing, and a complete data copy of the main server can be reconstructed based on the data in the buffer server and the disaster recovery server. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0012] Figure 1 A schematic diagram of a process flow of a disaster recovery processing method provided according to some embodiments of the present invention is shown;

[0013] Figure 2 A logical schematic diagram of a disaster recovery processing method provided according to some embodiments of the present invention is shown;

[0014] Figure 3A schematic diagram of a disaster recovery system provided according to some embodiments of the present invention is shown;

[0015] Figure 4 A schematic diagram of a primary site server in a disaster recovery system provided according to some embodiments of the present invention is shown;

[0016] Figure 5 shows a data block status bitmap of each site provided according to some embodiments of the present invention;

[0017] Figure 6 A schematic diagram of data flow after a primary site failure is shown according to some embodiments of the present invention;

[0018] Figure 7 A buffer site data block state bitmap during disaster recovery site data reconstruction provided by some embodiments of the present invention is shown;

[0019] Figure 8 A schematic diagram of data composition during data reconstruction of a disaster recovery site provided in some embodiments of the present invention is shown;

[0020] Fig. 9 A schematic diagram of a process of reconstructing a complete data copy when a primary server fails based on data stored on a buffer server and data stored on a disaster recovery server according to some embodiments of the present invention is shown;

[0021] Fig.10 A schematic block diagram of a disaster recovery processing device provided according to some embodiments of the present invention is shown; and

[0022] Fig.11 A schematic block diagram of a mobile terminal provided according to some embodiments of the present invention is shown. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0024] Figure 1 A schematic diagram of a process flow of a disaster recovery processing method provided according to some embodiments of the present invention is shown. The disaster recovery processing method is applied to a disaster recovery system, which includes a main server, a disaster recovery server, and a buffer server. Figure 1 As shown, the disaster recovery processing method includes step S110, step S120, and step S130. Figure 1 The disaster recovery processing method in the example embodiment is described in detail.

[0025] Reference Figure 1 As shown, in step S110, when a data write request is received, the to-be-written data corresponding to the data write request is written to the main server.

[0026] In an example embodiment, the master server is a server deployed at a master site. The application at the master site issues a data write request, and the operating system writes the data block involved in the request to the master storage of the master server. After the write operation is completed, the master storage feeds back a write completion notification to the operating system.

[0027] Next, in step S120, the data to be written is synchronously copied to the buffer server.

[0028] In an exemplary embodiment, a synchronous data replication disaster recovery method is used to synchronously replicate the data blocks involved in step S110 to a pre-deployed buffer server. The data write request involved in step S110 is synchronously written to the buffer server through the operating system of the primary site and the storage area network (SAN), and is written to the buffer storage through the operating system of the buffer server. After the write operation is completed, the buffer storage feeds back a write completion notification to the operating system of the buffer server, and then returns to the operating system of the primary site through the storage area network (SAN). When the operating system of the primary site receives the write completion notification from the primary storage and the write completion notification from the buffer storage, it feeds back a write completion notification to the application.

[0029] In the example embodiment, the buffer server is a lightweight sand pile buffer server, which is deployed at a location close to the main server, such as in different computer rooms in the same park. At this time, the communication link conditions are good, the construction cost is low, and synchronous replication is easy to implement. The data blocks stored in the sand pile buffer server are the latest data blocks written in the main server. Among them, the storage configuration of the sand pile buffer server is 1 / N of the storage configuration of the main server, and the value of N is a real number greater than or equal to 1, which is configured according to the actual situation. For example, if N=20, the total data capacity stored in the sand pile buffer server is 1 / 20 of the total data capacity of the main server.

[0030] Furthermore, in the example embodiment, the storage space of the sand pile buffer server performs write operations in a round-robin manner. When the storage space is filled once, the data block duplication operation is subsequently performed in the order of the previous data blocks. Therefore, the data of the sand pile buffer server always maintains 1 / N synchronization with the data of the main server. For example, the storage space of the main server is 400 data blocks, and the storage space capacity of the sand pile buffer server is 20 data blocks, that is, the storage space of the sand pile buffer server is 1 / 20 of the main server. In the process of synchronously copying data from the main server to the sand pile buffer server, when the sand pile buffer server is filled with 20 data blocks, the 21st data block will overwrite the first data block, the 22nd data block will overwrite the second data block...the 41st data block will overwrite the 21st data block, and so on.

[0031] Continue to refer to Figure 1 As shown, in step S130, the data to be written is asynchronously copied to the disaster recovery server, wherein the storage capacity of the buffer server is greater than or equal to the total input and output amount of the asynchronous time difference from the main server to the disaster recovery server.

[0032] In an example embodiment, the data blocks involved in step S110 are asynchronously copied to the disaster recovery server using an asynchronous replication data disaster recovery method. The data write request involved in step S110 is then written to the asynchronous buffer volume in the operating system of the primary site, and queued to obtain a first-in-first-out queue. The data write request in the queue is written to the operating system of the disaster recovery site via a wide area network (WAN), and then written to the disaster recovery storage. If the wide area network (WAN) is blocked, the data write request is queued in the asynchronous buffer volume. After the write operation is completed, the disaster recovery storage feeds back a write completion notification to the operating system of the disaster recovery site, and then feeds back a write completion notification to the operating system of the primary site via the wide area network (WAN).

[0033] It should be noted that, in the example embodiment, when the main server fails, a complete data copy of the main server at the time of the failure is reconstructed based on the data stored on the buffer server and the data stored on the disaster recovery server. The role of the buffer server is to recover the data lost in the asynchronous replication. Therefore, the storage space capacity of the buffer server is greater than or equal to the total input and output of the asynchronous time difference from the main server to the disaster recovery server. For example, when the main server synchronously replicates 20 data blocks to the sand pile buffer server, the main server asynchronously replicates 5 data blocks to the disaster recovery server, and there are 15 data blocks queued in the wide area network (WAN). At this time, the total input and output of the asynchronous time difference from the main server to the disaster recovery server is 15 data blocks, which is less than the storage space capacity of the sand pile buffer server. In addition, the smaller the storage capacity, the lower the construction cost of the server. When selecting the storage configuration of the buffer server, the construction cost should be minimized under the premise of ensuring that the buffer server can completely recover the data lost in the asynchronous replication.

[0034] In addition, in the exemplary embodiment, the information of the data blocks is stored in the form of a data block status bitmap in the main server, the buffer server, and the disaster recovery server. For example, the data block status bitmap includes the sequence, mark, and data block status of the data blocks. After the synchronous replication of the data blocks is completed, the data block status of the data blocks stored in the main server and the buffer server will be synchronously updated; during the asynchronous replication of the data blocks, as the data block status changes, the data block status of the data stored in the main server and the disaster recovery server will be updated. Among them, the data block status includes: synchronization status, queuing status, and replication status. The synchronization status records whether the data block has completed synchronous replication; the queuing status records whether the data block has been queued in the queue in the sand pile buffer volume; the replication status records whether the data block has completed asynchronous replication. When data reconstruction is performed after the main server fails, the status information of the data block is used to help determine the data blocks in the buffer server that have not completed asynchronous replication from the main server to the disaster recovery server.

[0035] according to Figure 1 The disaster recovery processing method in the example embodiment, on the one hand, synchronously copies the data to be written to the buffer server, wherein the storage capacity of the buffer server is greater than or equal to the total input and output of the asynchronous time difference between the main server and the disaster recovery server, which can ensure that when the main server fails, the buffer server has copied the data in the main server that has not been asynchronously copied to the disaster recovery server; on the other hand, asynchronously copies the data to be written to the disaster recovery server, avoiding the problem of delaying the write operation due to waiting for the disaster recovery node to complete writing, and can reconstruct a complete data copy of the main server based on the data in the buffer server and the disaster recovery server.

[0036] Figure 2 A logical schematic diagram of a disaster recovery processing method provided according to some embodiments of the present invention is shown.

[0037] Reference Figure 2 As shown, a sand pile buffer server 220 is deployed near the main server 210. The main server 210 and the sand pile buffer server 220 are connected by a storage area network (SAN) 240, and the disaster recovery server and the other two servers are connected by a wide area network (WAN) 250. The data in the main server 210 is synchronously replicated to the sand pile buffer server 220 through the storage area network (SAN) 240; the data in the main server 210 is asynchronously replicated to the disaster recovery server 230 through the wide area network (WAN) 250.

[0038] Figure 3 A schematic diagram of a disaster recovery system provided according to some embodiments of the present invention is shown.

[0039] Reference Figure 3 As shown, the main site 310 includes an application 320, an operating system 322, a primary storage 324, and an asynchronous buffer volume 326; the sandpile buffer server 314 includes an operating system 328 and a buffer storage 320; the disaster recovery site 312 includes an operating system 332 and a disaster recovery storage 324; in addition, the main site 310 and the disaster recovery site 312 are connected by a wide area network (WAN) 318, and the main site 310 and the sandpile buffer server 314 are connected by a storage area network (SAN) 316.

[0040] First, the application 320 in the primary site 310 issues a data write request, which is written to the primary storage 324 through the operating system 322. After the write operation is completed, the primary storage 324 feeds back a write completion notification to the operating system 322. At the same time, the data write request is synchronously written to the sand pile buffer server 314 through the operating system 322 and the storage area network (SAN) 316, and is written to the buffer storage 330 through the operating system 328. After the write operation is completed, the buffer storage 330 feeds back a write completion notification to the operating system 328, and then returns to the operating system 322 of the primary site 310 through the storage area network (SAN) 316. When the operating system 322 receives the write completion notification from the primary storage 324 and the write completion notification from the buffer storage 330, it feeds back a write completion notification to the application 320.

[0041] Next, the data write request is written into the asynchronous buffer volume 326 in the operating system 322 for queuing, written into the operating system 332 in the disaster recovery site 312 through the wide area network (WAN) 318, and then written into the disaster recovery storage 334. If the wide area network (WAN) 318 is blocked, the data write request will be queued in the asynchronous buffer volume 326. After the write operation is completed, the disaster recovery storage 334 feeds back a write completion notification to the operating system 332, and then feeds back a write completion notification to the operating system 322 of the primary site 310 through the wide area network (WAN) 318.

[0042] Figure 4 A schematic diagram of a primary site server in a disaster recovery system provided according to some embodiments of the present invention is shown.

[0043] Reference Figure 4 As shown, the primary site server 400 includes an application 410, an operating system 420, an asynchronous buffer volume 430, and a primary storage 440. The application 410 is connected to the operating system 420, the operating system 420 includes an asynchronous buffer volume 430, and the operating system 420 is connected to the primary storage 440. When the data write request has been synchronously written to the primary storage 440 and the sand pile buffer server storage, and after receiving completion feedback, the data write request is then written to the asynchronous buffer volume 430 in the operating system 420, wherein the asynchronous buffer volume 430 plays the role of queuing and buffering the asynchronous replication data write request from the primary site to the disaster recovery site, and the queue is a first-in-first-out queue.

[0044] Figure 5 A data block status bitmap of each site provided according to some embodiments of the present invention is shown.

[0045] Reference Figure 5 As shown in the upper part, the primary site data block status bitmap includes the primary storage volume block bitmap, the sand pile buffer volume block bitmap, and the disaster recovery buffer volume block bitmap. The primary storage volume block bitmap includes the sequence, block, state 1, state 2, and state 3 information of the data blocks stored in the primary storage volume; the sand pile buffer volume block bitmap includes the sequence, block, and state information of the data blocks stored in the sand pile buffer storage volume; and the disaster recovery storage volume block bitmap includes the sequence, block, and state information of the data blocks stored in the disaster recovery storage volume.

[0046] Among them, in the primary storage volume block bitmap: "Sequence" is the serial number of the data block in the primary storage volume, "Block" is the data block, and its corresponding value is the mark of the data block. State 1 is the synchronization state of the data block, state 2 is the queuing state of the data block, and state 3 is the replication state of the data block. In the sand pile buffer volume block bitmap: "Sequence" is the serial number of the data block in the sand pile buffer storage volume, "Block" is the data block, and its corresponding value is the mark of the data block, and the state is the synchronization state of the data block. In the disaster recovery storage volume, "Sequence" is the serial number of the data block in the disaster recovery storage volume, "Block" is the data block, and its corresponding value is the mark of the data block, and the state is the replication state of the data block.

[0047] Reference Figure 5 As shown, except Figure 5 The upper part stores a table of information about the sequence, tag, and status of data blocks. Figure 5 The diagram in the lower part intuitively shows the labels of the data blocks stored in the primary storage volume, the sand pile buffer volume, and the disaster recovery storage volume. For example, the primary storage volume stores data blocks 001, data blocks 0A2, data blocks 0A3, data blocks 00T, etc.; the sand pile buffer volume stores data blocks 001, data blocks 0A2, data blocks 0A3, etc.; and the disaster recovery storage volume stores data blocks 001 and data blocks 0A2.

[0048] Figure 6 A schematic diagram of data flow after a primary site failure is shown according to some embodiments of the present invention.

[0049] Reference Figure 6 As shown, when the main server 610 fails, the synchronous data replication and the asynchronous data replication are stopped at the same time, and the data blocks in the main server 610 are no longer replicated to the disaster recovery server 630 via the wide area network (WAN) 650, nor are they replicated to the sand pile buffer server 620 via the storage area network (SAN) 640. During data reconstruction, the data blocks in the sand pile buffer server 620 are replicated to the disaster recovery server 630 via the wide area network (WAN) 650.

[0050] Figure 7 A buffer site data block status bitmap during disaster recovery site data reconstruction provided according to some embodiments of the present invention is shown.

[0051] Reference Figure 7 As shown in the upper part, the buffer site data block status bitmap includes a sandpile buffer volume block bitmap and a disaster recovery buffer volume block bitmap. The sandpile buffer storage volume block bitmap includes the sequence, block, state 1, state 2 and state 3 information of the data blocks stored in the sandpile buffer storage volume; the disaster recovery storage volume block bitmap includes the sequence, block and state information of the data blocks stored in the disaster recovery storage volume.

[0052] Among them, in the sand pile storage volume block bitmap: "Sequence" is the serial number of the data block in the sand pile buffer storage volume, "Block" is the data block, and its corresponding value is the mark of the data block, state 1 is the synchronization state of the data block, state 2 is the queue state of the data block, and state 3 is the replication state of the data block. In the disaster recovery storage volume, "Sequence" is the serial number of the data block in the disaster recovery storage volume, "Block" is the data block, and its corresponding value is the mark of the data block, and the state is the replication state of the data block.

[0053] Reference Figure 7 As shown, except Figure 7 The upper part stores a table of information about the sequence, tag, and status of data blocks. Figure 7 The schematic diagram in the lower part intuitively shows the markings of the data blocks stored in the sandpile buffer volume and the disaster recovery storage volume. For example, the sandpile buffer volume stores data blocks 001, 0A2, 0A3, and A05, and the disaster recovery storage volume stores data blocks 001 and 0A2.

[0054] Figure 8 A schematic diagram of data composition during data reconstruction of a disaster recovery site provided according to some embodiments of the present invention is shown.

[0055] Reference Figure 8 As shown, when the disaster recovery site data is reconstructed, the sand pile buffer storage data 820 plus the disaster recovery site storage data 830 equals the sum of the primary site storage data 810 .

[0056] In the example embodiment, the amount of data stored in the sandpile buffer 820 is 1 / N of the data stored in the main site 810, that is, the storage space on the sandpile buffer server is equal to 1 / N of the storage space on the main server, and N can be any positive real number greater than or equal to 1, and its specific value is configured according to actual needs. In addition, the storage space is written cyclically.

[0057] Fig. 9 A schematic diagram of a process for reconstructing a complete data copy when a primary server fails based on data stored on a buffer server and data stored on a disaster recovery server according to some embodiments of the present invention is shown.

[0058] Reference Fig. 9 As shown, in step S910, data block information of data blocks stored in the buffer server is obtained, wherein the data block information includes information on the sequence, mark, and data block status of the data blocks synchronously copied from the main server to the buffer server.

[0059] In an exemplary embodiment, the sandpile cache server stores Figure 7The buffer site data block status bitmap shown includes the sequence, mark, and data block status information of the data blocks currently synchronously copied from the main server to the buffer server and the sequence, mark, and data block status information of the data blocks asynchronously copied from the main server to the disaster recovery server.

[0060] It should be noted that, in the example embodiment, since the information of the data blocks in the disaster recovery server is returned to the buffer server via the wide area network for updating, there will be a small time delay depending on the link conditions and network conditions, and it is not completely synchronized, but in most cases it has little impact on the disaster recovery processing process. Therefore, the data block information in the disaster recovery server stored in the data block status bitmap in the sandpile buffer server can be regarded as real-time information.

[0061] Next, in step S920, based on the data block information, marks of data blocks in the buffer server that have not been asynchronously replicated from the primary server to the disaster recovery server when the primary server fails are determined.

[0062] In the example embodiment, the status of the data blocks stored in the sandpile buffer volume and the disaster recovery storage volume in the buffer site data block status bitmap can be used to know the marks of the data blocks stored in the sandpile buffer storage volume and the disaster recovery storage volume at this time, wherein the marks are as follows: Figure 7 The serial number corresponding to "block" in the table shown. After comparing the marks of the data blocks stored in the sandpile buffer storage volume and the disaster recovery storage volume, it can be known which data blocks exist in the sandpile buffer storage volume but not in the disaster recovery storage volume when the primary server fails. For example, the synchronization status of the two data blocks 001 and 0A2 in the sand pile buffer volume is synchronized, the queuing status is queued, the replication status is replication completed, and the replication status in the disaster recovery storage volume is replication completed. Then, data blocks 001 and 0A2 exist in both the sand pile buffer volume and the disaster recovery storage volume, and there is no need to copy them from the sand pile buffer volume to the disaster recovery storage volume; the replication status of data block 0A3 in both the sand pile buffer volume and the disaster recovery storage volume are empty, that is, the replication is not completed, and the synchronization status of data block 0A3 in the sand pile buffer volume is synchronized, then data block 0A3 is stored in the sand pile buffer volume, and data block 0A3 is not stored in the disaster recovery storage volume. It can be determined that 0A3 is one of the marks of the data block in the buffer server that has not been asynchronously replicated from the main server to the disaster recovery server when the main server fails.

[0063] Finally, in step S930, the data block corresponding to the mark is copied from the buffer server to the disaster recovery server.

[0064] In an example embodiment, according to the mark of the data block obtained in step S920, such as 0A3, the data block corresponding to the mark is copied from the sand pile buffer server to the disaster recovery server to facilitate data reconstruction of the complete data copy and achieve a disaster recovery effect with zero data loss.

[0065] Fig.10 FIG. 1 is a schematic block diagram of a disaster recovery processing device provided according to some embodiments of the present invention. Figure 7 As shown, the disaster recovery processing device 1000 includes: a data writing module 1010, a synchronous replication module 1020 and an asynchronous replication module 1030. The data writing module is used to write the to-be-written data corresponding to the data writing request to the primary server when receiving a data writing request; the synchronous replication module is used to synchronously replicate the to-be-written data to the buffer server; the asynchronous replication module is used to asynchronously replicate the to-be-written data to the disaster recovery server, wherein the storage capacity of the buffer server is greater than or equal to the total input and output amount of the asynchronous time difference from the primary server to the disaster recovery server.

[0066] In some embodiments of the present invention, based on the above solution, the disaster recovery processing device further includes:

[0067] The data reconstruction unit is used to reconstruct a complete data copy when the main server fails based on the data stored on the buffer server and the data stored on the disaster recovery server when the main server fails.

[0068] In some embodiments of the present invention, based on the above solution, the data reconstruction unit includes:

[0069] A data block information acquisition unit is used to acquire data block information of data blocks stored in a buffer server, wherein the data block information includes information on the sequence, mark, and data block status of data blocks synchronously copied from a main server to a buffer server; a mark determination unit is used to determine, based on the data block information, marks of data blocks in the buffer server that have not been asynchronously copied from the main server to the disaster recovery server when a main server fails; and a data block replication unit is used to replicate the data blocks corresponding to the mark from the buffer server to the disaster recovery server.

[0070] In some embodiments of the present invention, based on the above solution, the asynchronous replication module includes:

[0071] The request queuing unit is used to write the data write request into the asynchronous buffer volume of the main server and queue it to obtain a first-in-first-out asynchronous replication queue; the asynchronous replication unit is used to write the data write request in the asynchronous replication queue into the disaster recovery storage of the disaster recovery server through the network connecting the main server and the disaster recovery server.

[0072] In some embodiments of the present invention, based on the above solution, the disaster recovery processing device further includes:

[0073] The asynchronous status update unit is used to update the data block status of the data blocks storing the data to be written in the disaster recovery server and the main server.

[0074] In some embodiments of the present invention, based on the above solution, the synchronous replication module includes:

[0075] The data cyclic writing unit is used to synchronously write the data to be written into the buffer storage of the buffer server in a cyclic writing manner; the synchronization status updating unit is used to update the data block status of the data blocks storing the data to be written in the main server and the buffer server after the synchronization is completed.

[0076] In some embodiments of the present invention, based on the above solution, the disaster recovery processing device further includes:

[0077] The status display unit is used to display the data block status of the data blocks in the main server, the buffer server and the disaster recovery server, and the data block status includes: one or more of synchronization status, queuing status and replication status.

[0078] Fig.11 A schematic diagram of the hardware structure of a mobile terminal provided by an embodiment of the present invention is shown in FIG. Fig.11 As shown, the mobile terminal 1100 includes but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, a processor 1110, and a power supply 1111. Those skilled in the art will appreciate that Fig.11 The mobile terminal structure shown in the figure does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In the embodiment of the present invention, the mobile terminal includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.

[0079] Among them, a computer program is stored in the memory 1109. When the computer program is executed by the processor 1110, it is applied to the disaster recovery system. The disaster recovery system includes a main server and a disaster recovery server, and also includes a buffer server. It can implement the following process: when a data write request is received, the data to be written corresponding to the data write request is written to the main server; the data to be written is synchronously copied to the buffer server; the data to be written is asynchronously copied to the disaster recovery server, wherein the storage capacity of the buffer server is greater than or equal to the total input and output of the asynchronous time difference from the main server to the disaster recovery server.

[0080] Optionally, when the computer program is executed by the processor 1110, when a main server fails, a complete data copy at the time of the main server failure is reconstructed based on the data stored on the buffer server and the data stored on the disaster recovery server.

[0081] Optionally, when the computer program is executed by processor 1110, a complete copy of the data when the primary server fails is reconstructed based on the data stored on the buffer server and the data stored on the disaster recovery server, including: obtaining data block information of the data blocks stored in the buffer server, wherein the data block information includes information on the sequence, mark, and data block status of the data blocks synchronously copied from the primary server to the buffer server; based on the data block information, determining the mark of the data block in the buffer server that was not completed in asynchronously copying from the primary server to the disaster recovery server when the primary server fails; and copying the data block corresponding to the mark from the buffer server to the disaster recovery server.

[0082] Optionally, when the computer program is executed by processor 1110, it asynchronously replicates the data to be written to the disaster recovery server, including: writing the data write request to the asynchronous buffer volume of the main server and queuing it to obtain a first-in-first-out asynchronous replication queue; writing the data write request in the asynchronous replication queue to the disaster recovery storage of the disaster recovery server through the network connecting the main server and the disaster recovery server.

[0083] Optionally, when the computer program is executed by the processor 1110 , the data block status of the data blocks storing the data to be written in the disaster recovery server and the main server is updated.

[0084] Optionally, when the computer program is executed by the processor 1110, the data to be written is synchronously copied to the buffer server, including: synchronously writing the data to be written into the buffer storage of the buffer server in a cyclic writing manner; after the synchronization is completed, updating the data block status of the data blocks storing the data to be written in the main server and the buffer server.

[0085] Optionally, when the computer program is executed by the processor 1110, the data block status of the data blocks in the primary server, the buffer server, and the disaster recovery server includes: one or more of a synchronization state, a queuing state, and a replication state.

[0086] It should be understood that in the embodiment of the present invention, the radio frequency unit 1101 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 1110 for processing; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 1101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 1101 can also communicate with the network and other devices through a wireless communication system.

[0087] The mobile terminal provides users with wireless broadband Internet access through the network module 1102, such as helping users to send and receive emails, browse web pages, and access streaming media.

[0088] The audio output unit 11103 can convert the audio data received by the RF unit 1101 or the network module 1102 or stored in the memory 1109 into an audio signal and output it as sound. Moreover, the audio output unit 1103 can also provide audio output related to a specific function performed by the mobile terminal 1100 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 1103 includes a speaker, a buzzer, a receiver, etc.

[0089] The input unit 1104 is used to receive audio or video signals. The input unit 1104 may include a graphics processor (GPU) 11041 and a microphone 11042, and the graphics processor 11041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 1106. The image frame processed by the graphics processor 11041 can be stored in the memory 1109 (or other storage medium) or sent via the radio frequency unit 1101 or the network module 1102. The microphone 11042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 1101 in the case of a telephone call mode.

[0090] The mobile terminal 1100 also includes at least one sensor 1105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 11061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 11061 and / or the backlight when the mobile terminal 1100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 1105 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.

[0091] The display unit 1106 is used to display information input by the user or information provided to the user. The display unit 1106 may include a display panel 11061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0092] The user input unit 1107 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile terminal. Specifically, the user input unit 1107 includes a touch panel 11071 and other input devices 11072. The touch panel 11071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 11071 or near the touch panel 11071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 11071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the coordinates of the contact point, and then sends it to the processor 1110, receives the command sent by the processor 1110 and executes it. In addition, the touch panel 11071 can be implemented in various types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 11071, the user input unit 1107 may also include other input devices 11072. Specifically, other input devices 11072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

[0093] Further, the touch panel 11071 may be covered on the display panel 11061. When the touch panel 11071 detects a touch operation on or near it, it is transmitted to the processor 1110 to determine the type of the touch event, and then the processor 1110 provides a corresponding visual output on the display panel 11061 according to the type of the touch event. Although the touch panel 11071 and the display panel 11061 are used as two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 11071 and the display panel 11061 can be integrated to implement the input and output functions of the mobile terminal, which is not limited here.

[0094] The interface unit 1108 is an interface for connecting an external device to the mobile terminal 1100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 1108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements in the mobile terminal 1100 or may be used to transmit data between the mobile terminal 1100 and an external device.

[0095] The memory 1109 can be used to store software programs and various data. The memory 1109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 1109 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0096] The processor 1110 is the control center of the mobile terminal. It uses various interfaces and lines to connect various parts of the entire mobile terminal. It executes various functions of the mobile terminal and processes data by running or executing software programs and / or modules stored in the memory 1109, and calling data stored in the memory 1109, so as to monitor the mobile terminal as a whole. The processor 1110 may include one or more processing units; preferably, the processor 1110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 1110.

[0097] The mobile terminal 1100 may also include a power supply 1111 (such as a battery) for supplying power to various components. Preferably, the power supply 1111 may be logically connected to the processor 1110 via a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system.

[0098] In addition, the mobile terminal 1100 includes some functional modules not shown, which will not be described here.

[0099] The mobile terminal in the embodiment of the present application can implement each process of the aforementioned password input method and achieve the same effects and functions, which will not be repeated here.

[0100] Furthermore, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned password input method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the computer-readable storage medium, such as a read-only memory (Read-Only Memory, referred to as ROM), a random access memory (Random Access Memory, referred to as RAM), a disk or an optical disk, etc.

[0101] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in the above-mentioned embodiment of the present invention.

[0103] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A disaster recovery processing method, applied to a disaster recovery system, wherein the disaster recovery system comprises a main server and a disaster recovery server, It is characterized in that The disaster recovery system further includes a buffer server, and the method includes: When receiving a data write request, writing the to-be-written data corresponding to the data write request to the main server; Synchronously copying the data to be written to the buffer server; Asynchronously copying the data to be written to the disaster recovery server, wherein the storage capacity of the buffer server is greater than or equal to the total input and output amount of the asynchronous time difference from the primary server to the disaster recovery server; When the main server fails, a complete data copy of the main server at the time of the failure is reconstructed based on the data stored on the buffer server and the data stored on the disaster recovery server; The asynchronous replication of the data to be written to the disaster recovery server comprises: writing the data write request to the asynchronous buffer volume of the primary server and queuing the data to obtain a first-in-first-out asynchronous replication queue; writing the data write request in the asynchronous replication queue to the disaster recovery storage of the disaster recovery server through a network connecting the primary server and the disaster recovery server; Wherein, based on the data stored on the buffer server and the data stored on the disaster recovery server, a complete data copy when the main server fails is reconstructed, including: obtaining data block information of the data blocks stored in the buffer server, wherein the data block information includes information on the sequence, mark, and data block status of the data blocks synchronously copied from the main server to the buffer server; wherein the data block status of the data blocks in the main server, the buffer server, and the disaster recovery server includes: one or more of a synchronization state, a queuing state, and a replication state; based on the data block information, determining the mark of the data block in the buffer server that has not been asynchronously copied from the main server to the disaster recovery server when the main server fails; and copying the data block corresponding to the mark from the buffer server to the disaster recovery server.

2. The disaster recovery processing method according to claim 1, It is characterized in that The method further comprises: The data block status of the data blocks storing the data to be written in the disaster recovery server and the main server is updated.

3. The disaster recovery processing method according to claim 1, It is characterized in that Synchronously copying the data to be written to the buffer server includes: Synchronously writing the data to be written into the buffer storage of the buffer server in a circular writing manner; After the synchronization is completed, the data block status of the data blocks storing the to-be-written data in the main server and the buffer server is updated.

4. A disaster recovery processing device, applied to a disaster recovery system, wherein the disaster recovery system comprises a main server and a disaster recovery server, It is characterized in that The disaster recovery system further includes a buffer server, including: A data writing module, configured to write the to-be-written data corresponding to the data writing request to the main server upon receiving the data writing request; A synchronous replication module, used for synchronously replicating the data to be written to the buffer server; An asynchronous replication module, used for asynchronously replicating the data to be written to the disaster recovery server, wherein the storage capacity of the buffer server is greater than or equal to the total input and output amount of the asynchronous time difference from the primary server to the disaster recovery server; A data reconstruction unit, used for reconstructing a complete data copy of the main server when the main server fails, based on the data stored on the buffer server and the data stored on the disaster recovery server; The asynchronous replication module includes: a request queuing unit, which is used to write the data write request into the asynchronous buffer volume of the primary server and queue it to obtain a first-in-first-out asynchronous replication queue; an asynchronous replication unit, which is used to write the data write request in the asynchronous replication queue into the disaster recovery storage of the disaster recovery server through the network connecting the primary server and the disaster recovery server; The data reconstruction unit includes: a data block information acquisition unit, which is used to acquire data block information of data blocks stored in the buffer server, wherein the data block information includes information on the sequence, mark, and data block status of the data blocks synchronously copied from the main server to the buffer server; wherein the data block status of the data blocks in the main server, the buffer server, and the disaster recovery server includes: one or more of a synchronization state, a queuing state, and a replication state; a mark determination unit, which is used to determine, based on the data block information, the mark of the data block in the buffer server that has not been asynchronously copied from the main server to the disaster recovery server when the main server fails; and a data block replication unit, which copies the data block corresponding to the mark from the buffer server to the disaster recovery server.

5. A mobile terminal, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the disaster recovery processing method according to any one of claims 1 to 3.

6. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the disaster recovery processing method according to any one of claims 1 to 3 are implemented.