CN112363868B - Method, system, equipment and medium for incremental synchronization of annular two places and three centers - Google Patents

Method, system, equipment and medium for incremental synchronization of annular two places and three centers Download PDF

Info

Publication number
CN112363868B
CN112363868B CN202011268165.9A CN202011268165A CN112363868B CN 112363868 B CN112363868 B CN 112363868B CN 202011268165 A CN202011268165 A CN 202011268165A CN 112363868 B CN112363868 B CN 112363868B
Authority
CN
China
Prior art keywords
volume
bitmap
disaster recovery
production volume
production
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
Application number
CN202011268165.9A
Other languages
Chinese (zh)
Other versions
CN112363868A (en
Inventor
李俭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011268165.9A priority Critical patent/CN112363868B/en
Publication of CN112363868A publication Critical patent/CN112363868A/en
Application granted granted Critical
Publication of CN112363868B publication Critical patent/CN112363868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking
    • G06F11/1489Generic software techniques for error detection or fault masking through recovery blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method, a system, equipment and a storage medium for incremental synchronization of two places and three centers of a ring, wherein the method comprises the following steps: starting a synchronous/double-active remote copying relation between the production volume and the first disaster recovery volume; in response to the production volume receiving the data, updating a first bitmap of the production volume according to the data; starting a periodic asynchronous remote copying relation between a first disaster recovery volume and a second disaster recovery volume, and synchronizing the first disaster recovery volume and a production volume according to a first bitmap; updating a second bitmap of the production volume based on the first bitmap in response to the first disaster recovery volume failing or a link between the production volume and the first disaster recovery volume failing; and starting a backup period asynchronous remote synchronization relation between the production volume and the second disaster recovery volume, and performing incremental synchronization on the second disaster recovery volume based on the second bitmap. The invention can realize the incremental synchronization of the asynchronous remote copy of the backup period in the annular two-place three-center, reduce the repeated copy of data and reduce the copy time from the production volume to the second disaster-tolerant volume.

Description

Method, system, equipment and medium for incremental synchronization of annular two places and three centers
Technical Field
The present invention relates to the field of data synchronization, and more particularly, to a method, a system, a computer device, and a readable medium for incrementally synchronizing two places and three centers of a ring.
Background
The design method of ring 3DC (Three data centers in two places and Three centers) in the current storage system is mainly implemented by a synchronous remote replication/double active and periodic asynchronous remote replication cascade mode, wherein full synchronization is adopted for the backup period asynchronous remote between the production volume and the second disaster-tolerant volume, which enables the backup period asynchronous remote replication Rcy2 to synchronize the data on the production volume to the second disaster-tolerant volume when the link between site2 (first disaster-tolerant volume) or site1 (production volume) and site2, site2 and site3 (second disaster-tolerant volume) fails each time.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, a system, a computer device, and a computer readable storage medium for incrementally synchronizing a ring two-place three-center, which implement data backup from a production volume to a second disaster recovery volume by performing bitmap merging between the production volume and the disaster recovery volume and by using incremental asynchronous remote replication, so as to implement incremental synchronization of backup period asynchronous remote replication in the ring two-place three-center, reduce duplicate copy of data, and reduce copy time from the production volume to the second disaster recovery volume.
Based on the above object, an aspect of the embodiments of the present invention provides a method for incrementally synchronizing two places and three centers of a ring, including the following steps: starting a synchronous/double-active remote copying relation between the production volume and the first disaster recovery volume; in response to the production volume receiving data, updating a first bitmap of the production volume according to the data; starting a periodic asynchronous remote copying relation between the first disaster recovery volume and the second disaster recovery volume, and synchronizing the first disaster recovery volume and the production volume according to the first bitmap; updating a second bitmap of the production volume based on the first bitmap in response to the first disaster recovery volume failing or a link between the production volume and the first disaster recovery volume failing; and starting a backup period asynchronous remote synchronization relationship between the production volume and the second disaster recovery volume, and performing incremental synchronization on the second disaster recovery volume based on the second bitmap.
In some embodiments, said synchronizing said first disaster recovery volume and said production volume according to said first bitmap comprises: and transferring the data of the first bitmap to the bitmap of the first disaster recovery volume, and transferring the data of the bitmap of the first disaster recovery volume to the third bitmap of the production volume.
In some embodiments, said synchronizing said first disaster recovery volume and said production volume according to said first bitmap comprises: and responding to the synchronous completion of the first disaster recovery volume and the production volume, and setting the data positions of the first bitmap to zero.
In some embodiments, said updating the second bitmap of the production volume based on the first bitmap comprises: taking or the first bitmap and the third bitmap according to the bit, and transferring the result to the second bitmap.
In some embodiments, initiating a synchronous/double-active remote copy relationship between the production volume and the first disaster recovery volume comprises: judging whether the production volume and the first disaster recovery volume are finished synchronously; and in response to the synchronous completion of the production volume and the first disaster recovery volume, setting the data positions of a fourth bitmap, used for identifying the synchronous state, of the production volume to zero.
In some embodiments, said updating the first bitmap of the production volume according to the data comprises: judging whether the current period of the periodic asynchronous remote copying relationship is finished or not; and synchronizing data received in a current cycle to the first bitmap in response to completion of the current cycle of the periodic asynchronous remote copy relationship.
In some embodiments, the method further comprises: monitoring a link between the production volume and the first disaster recovery volume; and responding to the failure recovery of the first disaster recovery volume and/or the normal recovery of the link between the production volume and the first disaster recovery volume, and closing the asynchronous remote copy relationship of the backup period.
In another aspect of the embodiments of the present invention, an incremental synchronous annular two-place-three-center system is further provided, including: the first starting module is configured to start a synchronous/double-active remote copy relationship between the production volume and the first disaster recovery volume; a first update module configured to update a first bitmap of the production volume according to data received by the production volume; a second starting module, configured to start a periodic asynchronous remote replication relationship between the first disaster recovery volume and the second disaster recovery volume, and synchronize the first disaster recovery volume and the production volume according to the first bitmap; a second updating module configured to update a second bitmap of the production volume based on the first bitmap in response to the first disaster recovery volume failing or a link between the production volume and the first disaster recovery volume failing; and a third starting module configured to start a backup cycle asynchronous remote synchronization relationship between the production volume and the second disaster recovery volume, and perform incremental synchronization on the second disaster recovery volume based on the second bitmap.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method as above.
In another aspect of the embodiments of the present invention, a computer-readable storage medium is further provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: by combining bitmaps between the production volume and the disaster recovery volume and adopting incremental asynchronous remote replication, the data backup from the production volume to the second disaster recovery volume is realized, the incremental synchronization of the backup period asynchronous remote replication in the annular two-place-three center can be realized, the repeated data copy is reduced, and the copy time from the production volume to the second disaster recovery volume is reduced.
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 embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of a method for incrementally synchronizing two places and three centers of a ring according to the present invention;
FIG. 2 is a schematic diagram of a ring two-place-three-center architecture according to an embodiment of the present invention;
fig. 3 is a schematic hardware structure diagram of an embodiment of a computer device in an incremental synchronous ring two-place-three-center provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are only used for convenience of expression and should not be construed as a limitation to the embodiments of the present invention, and no description is given in the following embodiments.
In view of the above, a first aspect of the embodiments of the present invention proposes an embodiment of a method for incrementally synchronizing two places and three centers of a ring. Fig. 1 is a schematic diagram illustrating an embodiment of a method for incrementally synchronizing two places and three centers of a ring according to the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, starting the synchronous/double-active remote copy relationship between the production volume and the first disaster recovery volume;
s2, responding to the received data of the production volume, and updating the first bitmap of the production volume according to the data;
s3, starting a periodic asynchronous remote copying relation between the first disaster recovery volume and the second disaster recovery volume, and synchronizing the first disaster recovery volume and the production volume according to the first bitmap;
s4, responding to the first disaster recovery volume or the link between the production volume and the first disaster recovery volume, and updating the second bitmap of the production volume based on the first bitmap; and
and S5, starting the backup cycle asynchronous remote synchronization relationship between the production volume and the second disaster recovery volume, and performing incremental synchronization on the second disaster recovery volume based on the second bitmap.
Fig. 2 is a schematic diagram of an annular two-place-three-center architecture in the embodiment of the present invention. As shown in fig. 2, the two-place-three-center system includes a production volume a, a first disaster recovery volume B, and a second disaster recovery volume C. This embodiment will be described with reference to fig. 2.
The production volume a, the first disaster recovery volume B, and the second disaster recovery volume C are initialized. The initialization includes: creating a synchronous/live remote copy relationship Rcx between the production volume and the first disaster recovery volume, creating a periodic asynchronous remote copy relationship Rcy1 between the first disaster recovery volume and the second disaster recovery volume, and creating a periodic asynchronous remote copy relationship Rcy2 between the production volume and the second disaster recovery volume.
Creating a synchronous/live-active remote copy relationship Rcx includes: the production volume A corresponding bitmaps mapA1, mapA2 and mapA3 are initialized to all 1, that is, the bitmap mapA1 is set to (1, 1, 1), and other bitmaps are similar. The bitmap mapA1 is used for a primary volume bitmap corresponding to the Rcx, the bitmap mapA2 is used for recording IO change situations received by the volume A before the Rcy1 is started every time, and the bitmap mapA3 is used for recording data situations of the volume B synchronized to the volume C; creating the periodic asynchronous remote copy relationship Rcy1 includes: setting a period as T1, initializing a bitmap mapB1 corresponding to the volume B to be all 1, and when a certain data block of the volume B is copied to the volume C, setting a corresponding data block position bitmap to be 0; creating the periodic asynchronous remote copy relationship Rcy2 includes: the set period is T2, the bitmap mapA4 corresponding to the volume a is initialized to all 1, and when a certain data block of the volume a is copied to the volume C, the bitmap of the corresponding data block position is 0.
And starting a synchronous/double-active remote copying relationship between the production volume and the first disaster recovery volume. In some embodiments, initiating a synchronous/double-active remote copy relationship between the production volume and the first disaster recovery volume comprises: judging whether the production volume and the first disaster recovery volume are finished synchronously; and in response to the synchronous completion of the production volume and the first disaster recovery volume, setting the data positions of a fourth bitmap, used for identifying the synchronous state, of the production volume to zero. The sync/live remote copy relationship Rcx is initiated, the bitmap mapA1 is updated, and if the sync is complete, the fourth bitmap mapA1 becomes (0, 0, 0).
In response to the production volume receiving the data, a first bitmap of the production volume is updated according to the data. Volume A receives write IO (input/output), sets the data block corresponding to the bitmap to 1, for example, when receiving write IO of the first and second data blocks, the first bitmap mapA2 is updated to mapA2(1, 1, 0), if volume A does not receive write IO, the corresponding bitmap is not changed.
In some embodiments, said updating the first bitmap of the production volume according to the data comprises: judging whether the current period of the periodic asynchronous remote copying relationship is finished or not; and in response to a current cycle completion of the periodic asynchronous remote copy relationship, synchronizing data received in the current cycle to the first bitmap. That is, it is determined whether the time waiting for updating reaches the period T1, and if so, synchronization is performed.
And starting a periodic asynchronous remote copying relation between the first disaster recovery volume and the second disaster recovery volume, and synchronizing the first disaster recovery volume and the production volume according to the first bitmap. And starting a periodic asynchronous remote copy Rcy1, updating the bitmaps 1 and mapA3, and completing synchronization.
In some embodiments, said synchronizing said first disaster recovery volume and said production volume according to said first bitmap comprises: and transferring the data of the first bitmap to the bitmap of the first disaster recovery volume, and transferring the data of the bitmap of the first disaster recovery volume to the third bitmap of the production volume. The data of the first bitmap mapA2 is transferred to the bitmap mapB1 of the first disaster recovery volume, i.e. mapB1 ═ mapA2, and the data of the bitmap mapB1 of the first disaster recovery volume is transferred to the third bitmap mapA3 of the production volume, i.e. mapA3 ═ mapB 1.
In some embodiments, said synchronizing said first disaster recovery volume and said production volume according to said first bitmap comprises: and in response to the synchronous completion of the first disaster recovery volume and the production volume, setting the data bits of the first bitmap to zero. After synchronization is complete, mapA2 may be updated to (0, 0, 0).
In response to a failure of the first disaster recovery volume or a failure of a link between the production volume and the first disaster recovery volume, a second bitmap of the production volume is updated based on the first bitmap.
In some embodiments, said updating the second bitmap of the production volume based on the first bitmap comprises: taking or the first bitmap and the third bitmap according to the bit, and transferring the result to the second bitmap. mapA 4-mapA 2| mapA3(mapA2 and mapA3 are taken or bit-wise), thus updating second bitmap mapA 4.
And starting a backup period asynchronous remote synchronization relation between the production volume and the second disaster recovery volume, and performing incremental synchronization on the second disaster recovery volume based on the second bitmap. Rcx and Rcy1 are stopped and a backup cycle is initiated to asynchronously remotely copy Rcy2 to complete Rcy2 incremental synchronization.
In some embodiments, the method further comprises: monitoring a link between the production volume and the first disaster recovery volume; and responding to the failure recovery of the first disaster recovery volume and/or the normal recovery of the link between the production volume and the first disaster recovery volume, and closing the asynchronous remote copy relationship of the backup period.
The embodiment of the invention can realize the increment synchronization of the asynchronous remote copy of the annular 3DC backup period; moreover, when the asynchronous remote copy of the backup period is started, the bitmap mapA4 is acquired through the production volume; in addition, the production volume stores the data change (mapA2) of the first disaster recovery volume and the data synchronization condition (mapA3) of the first disaster recovery volume and the second disaster recovery volume before the first disaster recovery volume and the second disaster recovery volume are started again for periodic asynchronous remote copying in real time.
It should be noted that, the steps in the embodiments of the incremental synchronous circular two-place-three-center method described above can be mutually intersected, replaced, added, and deleted, so that these methods of changing the reasonable permutation and combination to the incremental synchronous circular two-place-three-center also belong to the protection scope of the present invention, and the protection scope of the present invention should not be limited to the embodiments.
In view of the above object, according to a second aspect of the embodiments of the present invention, there is provided an incremental synchronous ring two-place-three-center system, including: the first starting module is configured to start a synchronous/double-active remote copy relationship between the production volume and the first disaster recovery volume; a first update module configured to update a first bitmap of the production volume according to data received by the production volume; a second starting module, configured to start a periodic asynchronous remote replication relationship between the first disaster recovery volume and the second disaster recovery volume, and synchronize the first disaster recovery volume and the production volume according to the first bitmap; a second updating module configured to update a second bitmap of the production volume based on the first bitmap in response to the first disaster recovery volume failing or a link between the production volume and the first disaster recovery volume failing; and a third starting module configured to start a backup cycle asynchronous remote synchronization relationship between the production volume and the second disaster recovery volume, and perform incremental synchronization on the second disaster recovery volume based on the second bitmap.
In some embodiments, the second initiating module is configured to: and transferring the data of the first bitmap to the bitmap of the first disaster recovery volume, and transferring the data of the bitmap of the first disaster recovery volume to a third bitmap of the production volume.
In some embodiments, the second activation module is configured to: and in response to the synchronous completion of the first disaster recovery volume and the production volume, setting the data bits of the first bitmap to zero.
In some embodiments, the second update module is configured to: taking or the first bitmap and the third bitmap according to the bit, and transferring the result to the second bitmap.
In some embodiments, the first initiation module is configured to: judging whether the production volume and the first disaster recovery volume are synchronously finished; and in response to the synchronous completion of the production volume and the first disaster recovery volume, setting the data positions of a fourth bitmap, used for identifying the synchronous state, of the production volume to zero.
In some embodiments, the first update module is configured to: judging whether the current period of the periodic asynchronous remote copying relationship is finished or not; and synchronizing data received in a current cycle to the first bitmap in response to completion of the current cycle of the periodic asynchronous remote copy relationship.
In some embodiments, the system further comprises: a monitoring module configured to monitor a link between the production volume and the first disaster recovery volume; and responding to the failure recovery of the first disaster recovery volume and/or the normal recovery of the link between the production volume and the first disaster recovery volume, and closing the asynchronous remote copy relationship of the backup period.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, starting the synchronous/double-active remote copy relationship between the production volume and the first disaster recovery volume; s2, responding to the received data of the production volume, and updating the first bitmap of the production volume according to the data; s3, starting a periodic asynchronous remote copying relation between the first disaster recovery volume and the second disaster recovery volume, and synchronizing the first disaster recovery volume and the production volume according to the first bitmap; s4, responding to the first disaster recovery volume or the link between the production volume and the first disaster recovery volume, and updating the second bitmap of the production volume based on the first bitmap; and S5, starting the backup period asynchronous remote synchronization relation between the production volume and the second disaster recovery volume, and performing incremental synchronization on the second disaster recovery volume based on the second bitmap.
In some embodiments, said synchronizing said first disaster recovery volume and said production volume according to said first bitmap comprises: and transferring the data of the first bitmap to the bitmap of the first disaster recovery volume, and transferring the data of the bitmap of the first disaster recovery volume to the third bitmap of the production volume.
In some embodiments, said synchronizing said first disaster recovery volume and said production volume according to said first bitmap comprises: and responding to the synchronous completion of the first disaster recovery volume and the production volume, and setting the data positions of the first bitmap to zero.
In some embodiments, said updating the second bitmap of the production volume based on the first bitmap comprises: taking or the first bitmap and the third bitmap according to the bit, and transferring the result to the second bitmap.
In some embodiments, initiating a synchronous/double-active remote copy relationship between the production volume and the first disaster recovery volume comprises: judging whether the production volume and the first disaster recovery volume are synchronously finished; and in response to the synchronous completion of the production volume and the first disaster recovery volume, setting the data bits of a fourth bitmap of the production volume for identifying the synchronous state to zero.
In some embodiments, said updating the first bitmap of the production volume according to the data comprises: judging whether the current period of the periodic asynchronous remote copying relationship is finished or not; and synchronizing data received in a current cycle to the first bitmap in response to completion of the current cycle of the periodic asynchronous remote copy relationship.
In some embodiments, the steps further comprise: monitoring a link between the production volume and the first disaster recovery volume; and responding to the failure recovery of the first disaster recovery volume and/or the normal recovery of the link between the production volume and the first disaster recovery volume, and closing the asynchronous remote copy relationship of the backup period.
Fig. 3 is a schematic hardware structural diagram of an embodiment of the incremental synchronous ring two-place-three-center computer device provided in the present invention.
Taking the apparatus shown in fig. 3 as an example, the apparatus includes a processor 301 and a memory 302, and may further include: an input device 303 and an output device 304.
The processor 301, the memory 302, the input device 303 and the output device 304 may be connected by a bus or other means, and fig. 3 illustrates the connection by a bus as an example.
The memory 302, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the incremental synchronous ring two-place-three-center method in the embodiments of the present application. The processor 301 executes various functional applications of the server and data processing by running non-volatile software programs, instructions and modules stored in the memory 302, i.e., implements the incremental synchronization ring two-place-three-center method of the above-described method embodiment.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the incremental sync ring two-place-three-center method, or the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 302 may optionally include memory located remotely from processor 301, which may be connected to local modules over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 303 may receive information such as a user name and a password that are input. The output means 304 may comprise a display device such as a display screen.
Program instructions/modules corresponding to one or more incremental synchronization ring two-place-three-center methods are stored in memory 302 and, when executed by processor 301, perform the incremental synchronization ring two-place-three-center method of any of the above-described method embodiments.
Any of the embodiments of a computer apparatus for performing the above-described incremental synchronous torus two-place-three-center method may achieve the same or similar effects as any of the previously described method embodiments corresponding thereto.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by a computer program to instruct related hardware, and the program of the incremental synchronization ring two-place-three-center method can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments corresponding thereto.
The foregoing are exemplary embodiments of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant only to be exemplary, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of an embodiment of the invention, also combinations between technical features in the above embodiments or in different embodiments are possible, and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements and the like that may be made without departing from the spirit or scope of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method of incrementally synchronizing two places and three centers of a ring, comprising the steps of:
starting a synchronous/double-active remote copying relation between the production volume and the first disaster recovery volume;
in response to the production volume receiving data, updating a first bitmap of the production volume according to the data;
starting a periodic asynchronous remote copying relation between the first disaster recovery volume and the second disaster recovery volume, and synchronizing the first disaster recovery volume and the production volume according to the first bitmap;
updating a second bitmap of the production volume based on the first bitmap in response to the first disaster recovery volume failing or a link between the production volume and the first disaster recovery volume failing; and
and starting a backup period asynchronous remote synchronization relation between the production volume and the second disaster recovery volume, and performing incremental synchronization on the second disaster recovery volume based on the second bitmap.
2. The method of claim 1, wherein the synchronizing the first disaster recovery volume and the production volume according to the first bitmap comprises:
and transferring the data of the first bitmap to the bitmap of the first disaster recovery volume, and transferring the data of the bitmap of the first disaster recovery volume to the third bitmap of the production volume.
3. The method of claim 2, wherein the synchronizing the first disaster recovery volume and the production volume according to the first bitmap comprises:
and in response to the synchronous completion of the first disaster recovery volume and the production volume, setting the data bits of the first bitmap to zero.
4. The method of claim 2, wherein updating the second bitmap of the production volume based on the first bitmap comprises:
taking or the first bitmap and the third bitmap according to the bit, and transferring the result to the second bitmap.
5. The method of claim 1, wherein initiating a synchronous/live remote copy relationship between the production volume and the first disaster recovery volume comprises:
judging whether the production volume and the first disaster recovery volume are synchronously finished; and
and in response to the synchronous completion of the production volume and the first disaster recovery volume, setting the data positions of a fourth bitmap, which is used for identifying the synchronous state, of the production volume to zero.
6. The method of claim 1, wherein said updating the first bitmap of the production volume according to the data comprises:
judging whether the current period of the periodic asynchronous remote copying relationship is finished or not; and
in response to a current cycle completion of the periodic asynchronous remote copy relationship, synchronizing data received in the current cycle to the first bitmap.
7. The method of claim 1, further comprising:
monitoring a link between the production volume and the first disaster recovery volume; and
and in response to the failure recovery of the first disaster recovery volume and/or the recovery of the link between the production volume and the first disaster recovery volume, closing the asynchronous remote copy relationship of the backup period.
8. An incrementally synchronized annular two place three center system, comprising:
the first starting module is configured to start a synchronous/double-active remote copy relationship between the production volume and the first disaster recovery volume;
a first update module configured to update a first bitmap of the production volume according to data received by the production volume in response to the data;
a second starting module, configured to start a periodic asynchronous remote replication relationship between the first disaster recovery volume and the second disaster recovery volume, and synchronize the first disaster recovery volume and the production volume according to the first bitmap;
a second updating module configured to update a second bitmap of the production volume based on the first bitmap in response to the first disaster recovery volume failing or a link between the production volume and the first disaster recovery volume failing; and
and the third starting module is configured to start a backup cycle asynchronous remote synchronization relationship between the production volume and the second disaster recovery volume, and perform incremental synchronization on the second disaster recovery volume based on the second bitmap.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202011268165.9A 2020-11-13 2020-11-13 Method, system, equipment and medium for incremental synchronization of annular two places and three centers Active CN112363868B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011268165.9A CN112363868B (en) 2020-11-13 2020-11-13 Method, system, equipment and medium for incremental synchronization of annular two places and three centers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011268165.9A CN112363868B (en) 2020-11-13 2020-11-13 Method, system, equipment and medium for incremental synchronization of annular two places and three centers

Publications (2)

Publication Number Publication Date
CN112363868A CN112363868A (en) 2021-02-12
CN112363868B true CN112363868B (en) 2022-07-26

Family

ID=74515504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011268165.9A Active CN112363868B (en) 2020-11-13 2020-11-13 Method, system, equipment and medium for incremental synchronization of annular two places and three centers

Country Status (1)

Country Link
CN (1) CN112363868B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113905056B (en) * 2021-09-15 2023-07-14 苏州浪潮智能科技有限公司 Novel bitmap management method, system, equipment and medium of annular 3DC
CN113849350A (en) * 2021-09-30 2021-12-28 苏州浪潮智能科技有限公司 Ring-shaped two-place three-center topology switching method, device, system and medium
CN115242616A (en) * 2022-07-22 2022-10-25 济南浪潮数据技术有限公司 Remote disaster recovery method, device, equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874593A (en) * 2018-06-21 2018-11-23 郑州云海信息技术有限公司 A kind of three center disaster recovery method, apparatus of two places, equipment and system
CN108984346A (en) * 2018-07-18 2018-12-11 郑州云海信息技术有限公司 A kind of method, system and the storage medium of creation data disaster tolerance

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874593A (en) * 2018-06-21 2018-11-23 郑州云海信息技术有限公司 A kind of three center disaster recovery method, apparatus of two places, equipment and system
CN108984346A (en) * 2018-07-18 2018-12-11 郑州云海信息技术有限公司 A kind of method, system and the storage medium of creation data disaster tolerance

Also Published As

Publication number Publication date
CN112363868A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
CN112363868B (en) Method, system, equipment and medium for incremental synchronization of annular two places and three centers
CN111427728B (en) State management method, main/standby switching method and electronic equipment
CN105681420A (en) Method for realizing backup of switch operating system based on Docker
CN115576655B (en) Container data protection system, method, device, equipment and readable storage medium
US8612799B2 (en) Method and apparatus of backing up subversion repository
WO2013113220A1 (en) Method and device for backup and recovery of network management configuration data
CN115658390A (en) Container disaster tolerance method, system, device, equipment and computer readable storage medium
CN109614398A (en) The variation and device of table structure in database
CN112612851A (en) Multi-center data synchronization method and device
CN112749123A (en) Method, apparatus and computer program product for managing a file system
CN108984346B (en) Method, system and storage medium for producing data disaster tolerance
CN113438111A (en) Method for restoring RabbitMQ network partition based on Raft distribution and application
CN112364104A (en) Distributed database capacity expansion method, distributed database system and computer readable storage medium
CN111813606A (en) Fault-tolerant method, system, equipment and medium for double-node virtual machine
KR20200122724A (en) Method and device for restoring blockchain network with its credibility on backup data maintained and minimizing resource usage by using delayed synchronization recycling nodes
CN114546978B (en) Bitmap management method, system, equipment and medium for storage cluster
CN115129676A (en) Data synchronization method, device, equipment and medium
CN111966532A (en) Database management method and device, electronic equipment and medium
CN109697110B (en) Transaction coordination processing system, method and device and electronic equipment
CN113419676A (en) Data remote copying method, system, storage medium and equipment
CN115705269A (en) Data synchronization method, system, server and storage medium
CN112732426A (en) Method, system, equipment and medium for dynamically adjusting task priority
CN104850471A (en) Itanium platform-based method for realizing two places and three centers of DB2 database
CN112988882A (en) System, method and device for data remote disaster recovery and computing equipment
JP2003008573A (en) Network management terminal, communication system and method for backing up and restoring setting information

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