CN115509806A - Real-time protection asynchronous remote copying method, device and equipment based on ROW - Google Patents

Real-time protection asynchronous remote copying method, device and equipment based on ROW Download PDF

Info

Publication number
CN115509806A
CN115509806A CN202211035478.9A CN202211035478A CN115509806A CN 115509806 A CN115509806 A CN 115509806A CN 202211035478 A CN202211035478 A CN 202211035478A CN 115509806 A CN115509806 A CN 115509806A
Authority
CN
China
Prior art keywords
volume
data
copy
source
source volume
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.)
Pending
Application number
CN202211035478.9A
Other languages
Chinese (zh)
Inventor
周希梦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211035478.9A priority Critical patent/CN115509806A/en
Publication of CN115509806A publication Critical patent/CN115509806A/en
Pending legal-status Critical Current

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/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • 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/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques

Landscapes

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

Abstract

The invention belongs to the technical field of remote copy of a storage system, and particularly provides a real-time protection asynchronous remote copy method, a real-time protection asynchronous remote copy device and real-time protection asynchronous remote copy equipment based on ROW, wherein the method comprises the following steps: creating a pool in a production center, and sequentially creating an RAID, a source volume, a change volume of the source volume and a copy volume after creation; creating a pool in a backup center, and sequentially creating an RAID, a target volume and a change volume of the target volume after the creation is finished; setting ROW snapshot relation between an added source volume and a source volume change volume, adding copy relation between a change volume and a copy volume of the source volume, and adding snapshot relation between a target volume and a change volume of the target volume; establishing an intercommunicating connection between a production center and a backup center; creating an asynchronous remote copy relationship of the changed volume of the copy volume to the target volume; starting remote copy, and when the data of the source volume and the data of the target volume are inconsistent, starting the data synchronization of the source volume and the target volume; and after the remote copy is successfully started, displaying the change of the remote copy state in real time.

Description

Real-time protection asynchronous remote copying method, device and equipment based on ROW
Technical Field
The invention relates to the technical field of remote copy of a storage system, in particular to a real-time protection asynchronous remote copy method, device and equipment based on ROW.
Background
Remote replication of storage systems is applied to data center level data protection or disaster recovery. The main operation mode is to make copies of the same data in different systems respectively. Usually, considering the balance between system reliability and performance, in practical application scenarios, two copies are used. In periodic asynchronous remote replication, four volumes are located on different systems (between I/O groups of different clusters). The production center has an active volume and a changed volume of the active volume, and the backup center has a target volume and a changed volume of the target volume. The production center contains production data written by the host end and bears normal business application data; the backup center contains backup data for the source volume and maintains synchronous update with the source volume data for post-disaster data recovery.
The COW snapshot is adopted between the source volume and the changed volume of the source volume in the current period asynchronous remote copy, and the writing into the source volume is started after the source volume copies the data to be modified to the changed volume of the source volume. The user needs to wait for the data copy to complete when writing data, and the time for the user to complete the corresponding writing is prolonged. The periodic asynchronous remote copy usually has a periodic data time difference, and a failure may lose one period of data.
Disclosure of Invention
The method is characterized in that COW snapshot is adopted between a source volume and a changed volume of the source volume in the current period asynchronous remote copy, and the writing to the source volume is started after the source volume copies data to be modified to the changed volume of the source volume. The user needs to wait for the data copy to complete when writing data, and the time for the user to complete the corresponding writing is prolonged. The invention provides a real-time protection asynchronous remote copying method, a device and equipment based on ROW (remote object), wherein the method, the device and the equipment generally have periodic data time difference, and the problem that one period of data is lost due to failure is solved.
In a first aspect, a technical solution of the present invention provides a real-time protection asynchronous remote copy method based on ROW, including the following steps:
creating a pool in a production center, and sequentially creating an RAID (redundant array of independent disks), a source volume, a change volume of the source volume and a copy volume after creation is completed;
creating a pool in a backup center, and sequentially creating an RAID, a target volume and a change volume of the target volume after creation is completed;
setting ROW snapshot relation between an added source volume and a source volume change volume, adding copy relation between a change volume and a copy volume of the source volume, and adding snapshot relation between a change volume and a target volume;
establishing intercommunication connection between the production center and the backup center;
creating an asynchronous remote replication relationship of the copy volume to the change volume of the target volume;
starting remote copy, and when the data of the source volume and the data of the target volume are inconsistent, starting the data synchronization of the source volume and the target volume;
and after the remote copy is successfully started, displaying the change of the remote copy state in real time.
The method comprises the steps of creating a source volume, a change volume of the source volume and a copy volume of the change volume in a production center, wherein a ROW snapshot of walking is formed between the source volume and the change volume of the source volume, and real-time data synchronization is formed between the change volume of the source volume and the copy volume.
Further, the step of starting remote copy, when the data of the source volume and the target volume are not consistent, the step of starting the data synchronization of the source volume and the target volume comprises:
when the remote copy is started, judging whether the source volume is consistent with the target volume;
if the data are inconsistent, starting the data synchronization of the source volume and the target volume;
after the data synchronization execution is finished, judging whether the source volume is consistent with the target volume again;
and the data are consistent, and the remote copy is successfully started.
Further, the step of displaying the remote copy status change in real time includes:
after the remote copy is started, when the data of the source volume and the data of the target volume are inconsistent, setting the display state to be inconsistent copy; when the data of the source volume and the data of the target volume are consistent, setting the display state to be in copying; and after the target volume copies the source volume, setting the display state to be consistent copy.
Further, the step of displaying the change of the remote copy status in real time further comprises:
after the remote copying is stopped, the inconsistent copying is stopped, and the display state is set to be inconsistent and stopped; stopping during copying, and setting the display state to be consistent and stopped; the consistent copy is stopped and the display state is set to be consistent stop.
Further, the method further comprises:
when data is written, the data is written into a source volume of a production center;
triggering a ROW snapshot mechanism to redirect metadata to be written into data to a change volume of a source volume;
after the changed volume data of the source volume is successfully written, feeding back the completion of the writing of the user data;
after the write is completed, the changed volume data of the source volume is copied to the copy volume.
Further, the method also comprises the following steps:
when data is read, the metadata points to the corresponding data blocks, the data of the corresponding data blocks are respectively read from the source volume and the changed volume of the source volume, and the read data are combined;
and returning the combined data to the user and feeding back the reading success.
When user data is written, an ROW snapshot process is carried out, metadata written into the source volume is redirected to the changed volume of the source volume, and the data directly fall into the changed volume of the source volume. After the changed volume of the source volume writes data, the success of writing is directly fed back, the write waiting of the COW is bypassed, and the data write performance is improved. Because the change volume of the source volume is updated in real time when the production center writes data, the data of the production center can be synchronized to the backup center at any time, the cycle delay is avoided, and the problem of a scene of losing one cycle of data is solved. Meanwhile, the copy volume of the change volume of the source volume is increased, the local disaster tolerance capability of the production center is improved, and a means that the data of the production center can be locally recovered is provided; and the source volume and the change volume of the source volume copy the data stream of the user, the copy volume and the backup center copy the data backup stream, and the data stream and the backup stream are isolated, so that the data do not influence each other, and the service conflict is reduced.
In a second aspect, the technical solution of the present invention further provides a real-time protection asynchronous remote copy apparatus based on an ROW, which includes a first creating module, a second creating module, a setting adding module, an interworking setting module, a remote copy creating module, an execution control module, and a status display module;
the system comprises a first creation module, a second creation module and a third creation module, wherein the first creation module is used for creating a pool in a production center, and sequentially creating an RAID (redundant array of independent disks), a source volume, a change volume of the source volume and a copy volume after creation is completed;
the second creation module is used for creating a pool in the backup center, and sequentially creating the RAID, the target volume and the change volume of the target volume after creation is completed;
the system comprises an adding module, a snapshot module and a snapshot module, wherein the adding module is used for setting ROW snapshot relation between an added source volume and a source volume change volume, adding copy relation between a change volume and a copy volume of the source volume and adding snapshot relation between a target volume and a change volume of the target volume;
the intercommunication setting module is used for establishing intercommunication connection between the production center and the backup center;
the remote replication creating module is used for creating an asynchronous remote replication relation of the changed volume of the copy volume to the target volume;
the execution control module is used for starting remote copy, and starting the data synchronization of the source volume and the target volume when the data of the source volume and the target volume are inconsistent;
and the state display module is used for displaying the change of the remote copy state in real time after the remote copy starting is successful.
Furthermore, the execution control module comprises a judging unit and a synchronous execution unit;
the judging unit is used for judging whether the source volume is consistent with the target volume when the remote copy is started;
the synchronous execution unit is used for judging the data inconsistency and starting the data synchronization of the source volume and the target volume; and after the synchronous execution of the data is finished, triggering the judgment unit again.
Further, the step of displaying the remote copy status change in real time includes:
the state display module is used for setting the display state to be inconsistent copy when the data of the source volume is inconsistent with the data of the target volume after the remote copy is started; when the data of the source volume and the data of the target volume are consistent, setting the display state to be in copying; after the target volume finishes copying the source volume, setting the display state to be consistent copy; after the remote copy is stopped, the inconsistent copy is stopped, and the display state is set to be inconsistent and stopped; stopping during copying, and setting the display state to be consistent stopping; the consistent copy is stopped and the display state is set to be consistent stop.
Further, the device also comprises a data writing execution module, which is used for writing the data into the production center source volume when the data is written; triggering a ROW snapshot mechanism to redirect metadata to be written into the data to a changed volume of the source volume; after the changed volume data of the source volume is successfully written, feeding back the completion of the writing of the user data; after the write is completed, the changed volume data of the source volume is copied to the copy volume.
Furthermore, the device also comprises a data reading execution module, which is used for reading the data from the source volume and the changed volume of the source volume respectively by pointing the metadata to the corresponding data block and combining the read data; and returning the combined data to the user and feeding back the reading success.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores computer program instructions executable by the at least one processor to enable the at least one processor to perform the real-time protected asynchronous remote copy by ROW method according to the first aspect.
The COW snapshot mode before the ROW snapshot mode is replaced, and the purpose of improving the writing performance of a production center user on data is achieved. And the copy volume of the changed volume is increased, and the local disaster recovery capability of the production center is improved. Based on the characteristic of the ROW snapshot, the snapshot volume is updated in real time, namely the change volume of the source volume is updated in real time, and the data can be synchronized to the backup center in real time.
According to the technical scheme, the invention has the following advantages: the production center creates a source volume, a changed volume of the source volume and a copy volume of the changed volume, wherein a walking ROW snapshot is formed between the source volume and the changed volume of the source volume, and real-time data synchronization is formed between the changed volume of the source volume and the copy volume of the changed volume. When user data is written, the ROW snapshot process is carried out, metadata written into the source volume is redirected to the changed volume of the source volume, and the data directly falls into the changed volume of the source volume. After the changed volume of the source volume writes data, the success of writing is directly fed back, the write waiting of the COW is bypassed, and the data writing performance is improved. Because the changed volume of the source volume is updated in real time when the production center writes data, the data of the production center can be synchronized to the backup center at any time, the periodic delay is avoided, and the problem of a scene that one period of data is lost is solved. Meanwhile, the copy volume of the change volume of the source volume is increased, the local disaster tolerance capability of the production center is improved, and a means that the data of the production center can be locally recovered is provided; and the source volume and the change volume of the source volume copy the data stream of the user, the copy volume of the change volume and the backup center copy the data backup stream, and the data stream and the backup stream are isolated, so that the data do not influence each other, and the service conflict is reduced.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments or prior art solutions of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic flow chart diagram of remote copy initiation of a method of one embodiment of the present invention.
FIG. 3 is a schematic flow chart diagram of data writing of a method of one embodiment of the invention.
FIG. 4 is a data read schematic flow diagram of a method of one embodiment of the invention.
Detailed Description
The COW snapshot is adopted between the source volume and the changed volume of the source volume in the current period asynchronous remote copy, and the writing into the source volume is started after the source volume copies the data to be modified to the changed volume of the source volume. The user needs to wait for the data copy to complete when writing data, and the time for the user to complete the corresponding writing is prolonged. The periodic asynchronous remote copy usually has a periodic data time difference, and a failure may lose one period of data. The invention designs that a source volume, a change volume of the source volume and a copy volume of the change volume are established in a production center, a walking ROW snapshot is formed between the source volume and the change volume of the source volume, and real-time data synchronization is formed between the change volume of the source volume and the copy volume of the change volume. When user data is written, the ROW snapshot process is carried out, metadata written into the source volume is redirected to the changed volume of the source volume, and the data directly falls into the changed volume of the source volume. After the changed volume of the source volume writes data, the success of writing is directly fed back, the write waiting of the COW is bypassed, and the data writing performance is improved. Because the change volume of the source volume is updated in real time when the production center writes data, the data of the production center can be synchronized to the backup center at any time, the cycle delay is avoided, and the problem of a scene of losing one cycle of data is solved. Meanwhile, the copy volume of the change volume of the source volume is increased, the local disaster tolerance capability of the production center is improved, and a means that the data of the production center can be locally recovered is provided; and the source volume and the change volume of the source volume copy the data stream of the user, the copy volume of the change volume and the backup center copy the data backup stream, and the data stream and the backup stream are isolated, so that the data do not influence each other, and the service conflict is reduced.
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a real-time protected asynchronous remote copy method based on ROW, including the following steps:
step 1: creating a pool in a production center, and sequentially creating an RAID (redundant array of independent disks), a source volume, a change volume of the source volume and a copy volume after creation is completed;
and 2, step: creating a pool in a backup center, and sequentially creating an RAID, a target volume and a change volume of the target volume after creation is completed;
and 3, step 3: setting ROW snapshot relation between an added source volume and a source volume change volume, adding copy relation between a change volume and a copy volume of the source volume, and adding snapshot relation between a target volume and a change volume of the target volume;
and 4, step 4: establishing an intercommunicating connection between a production center and a backup center;
and 5: creating an asynchronous remote replication relationship of the copy volume to the change volume of the target volume;
step 6: starting remote copy, and when the data of the source volume and the data of the target volume are inconsistent, starting the data synchronization of the source volume and the target volume;
and 7: and after the remote copy is successfully started, displaying the change of the remote copy state in real time.
The method comprises the steps that a source volume, a changed volume of the source volume and a copy volume of the changed volume are created in a production center, a walking ROW snapshot is arranged between the source volume and the changed volume of the source volume, and real-time data synchronization is arranged between the changed volume of the source volume and the copy volume.
The ROW snapshot mode replaces the previous COW snapshot mode, and the purpose of improving the writing performance of a production center user on data is achieved. And the copy volume of the changed volume is increased, and the local disaster recovery capability of the production center is improved. Based on the characteristic of the ROW snapshot, the snapshot volume is updated in real time, namely the change volume of the source volume is updated in real time, and the data can be synchronized to the backup center in real time.
In some embodiments, as shown in FIG. 2, the remote copy is initiated in step 6, and when the source volume and the target volume data are inconsistent, the step of initiating the synchronization of the source volume and the target volume data comprises:
step 61: when the remote copy is started, judging whether the source volume is consistent with the target volume;
if the data are inconsistent, go to step 62, if the data are consistent, go to step 64;
step 62: starting data synchronization of the source volume and the target volume;
and step 63: after the data synchronization execution is finished, judging whether the source volume is consistent with the target volume again;
if the data are inconsistent, executing step 62, if the data are consistent, executing step 64;
step 64: the remote copy initiation is successful.
In some embodiments, the step of displaying the change in the remote copy status in real time comprises:
after the remote copy is started, when the data of the source volume and the data of the target volume are inconsistent, setting the display state to be inconsistent copy; when the data of the source volume and the data of the target volume are consistent, setting the display state to be in copying; and after the target volume copies the source volume, setting the display state to be consistent copy.
After the remote copy is stopped, the inconsistent copy is stopped, and the display state is set to be inconsistent and stopped; stopping during copying, and setting the display state to be consistent stopping; the consistent copy is stopped and the display state is set to be consistent stop.
As shown in FIG. 3, in some embodiments, the method further comprises:
s11: when data is written, the data is written into a production center source volume;
s12: triggering a ROW snapshot mechanism to redirect metadata to be written into the data to a changed volume of the source volume;
s13: after the changed volume data of the source volume is successfully written, feeding back the completion of the writing of the user data;
s14: after the write is completed, the changed volume data of the source volume is copied to the copy volume.
When user data is written, an ROW snapshot process is carried out, metadata written into the source volume is redirected to the changed volume of the source volume, and the data directly fall into the changed volume of the source volume. After the changed volume of the source volume writes data, the success of writing is directly fed back, the write waiting of the COW is bypassed, and the data write performance is improved. Because the changed volume of the source volume is updated in real time when the production center writes data, the data of the production center can be synchronized to the backup center at any time, the periodic delay is avoided, and the problem of a scene that one period of data is lost is solved.
As shown in fig. 4, in some embodiments, the method further comprises:
s21: when data is read, the metadata points to the corresponding data blocks, the data of the corresponding data blocks are respectively read from the source volume and the changed volume of the source volume, and the read data are combined;
s22: and returning the combined data to the user and feeding back the reading success.
When user data is written, the ROW snapshot process is carried out, metadata written into the source volume is redirected to the changed volume of the source volume, and the data directly falls into the changed volume of the source volume. After the changed volume of the source volume writes data, the success of writing is directly fed back, the write waiting of the COW is bypassed, and the data write performance is improved. Because the change volume of the source volume is updated in real time when the production center writes data, the data of the production center can be synchronized to the backup center at any time, the cycle delay is avoided, and the problem of a scene of losing one cycle of data is solved. Meanwhile, the copy volume of the change volume of the source volume is increased, the local disaster tolerance capability of the production center is improved, and a means that the data of the production center can be locally recovered is provided; and the source volume and the change volume of the source volume copy the data stream of the user, the copy volume and the backup center copy the data backup stream, and the data stream and the backup stream are isolated, so that the data do not influence each other, and the service conflict is reduced.
The embodiment of the invention also provides a real-time protection asynchronous remote copying device based on ROW, which comprises a first establishing module, a second establishing module, a setting adding module, an intercommunication setting module, a remote copying establishing module, an execution control module and a state display module;
the system comprises a first establishing module, a second establishing module and a third establishing module, wherein the first establishing module is used for establishing a pool in a production center, and sequentially establishing RAID, a source volume, a change volume of the source volume and a copy volume after the establishment is finished;
the second creation module is used for creating a pool in the backup center, and sequentially creating the RAID, the target volume and the changed volume of the target volume after creation is completed;
the system comprises an adding module, a snapshot module and a snapshot module, wherein the adding module is used for setting ROW snapshot relation between an added source volume and a source volume change volume, adding copy relation between a change volume and a copy volume of the source volume and adding snapshot relation between a target volume and a change volume of the target volume;
the intercommunication setting module is used for establishing intercommunication connection between the production center and the backup center;
the remote replication creating module is used for creating an asynchronous remote replication relation of the changed volume of the copy volume to the target volume;
the execution control module is used for starting remote copy, and starting the data synchronization of the source volume and the target volume when the data of the source volume and the target volume are inconsistent;
and the state display module is used for displaying the change of the remote copy state in real time after the remote copy starting is successful.
In some embodiments, the execution control module includes a determination unit and a synchronization execution unit;
the judging unit is used for judging whether the source volume is consistent with the target volume when the remote copy is started;
the synchronous execution unit is used for judging the data inconsistency and starting the data synchronization of the source volume and the target volume; and after the synchronous execution of the data is finished, triggering the judgment unit again.
In some embodiments, the step of displaying the change in the remote copy status in real time comprises:
the state display module is used for setting the display state to be inconsistent copy when the data of the source volume is inconsistent with the data of the target volume after the remote copy is started; when the data of the source volume and the data of the target volume are consistent, setting the display state to be in copying; after the target volume finishes copying the source volume, setting the display state to be consistent copy; after the remote copying is stopped, the inconsistent copying is stopped, and the display state is set to be inconsistent and stopped; stopping during copying, and setting the display state to be consistent stopping; the consistent copy is stopped and the display state is set to be consistent stop.
In some embodiments, the apparatus further comprises a data write execution module, configured to write the data to the production center source volume when the data is written; triggering a ROW snapshot mechanism to redirect metadata to be written into the data to a changed volume of the source volume; after the changed volume data of the source volume is successfully written, feeding back the completion of the writing of the user data; after the write is completed, the changed volume data of the source volume is copied to the copy volume.
In some embodiments, the apparatus further includes a data reading execution module, configured to, when data is read, read data of corresponding data blocks from the source volume and the changed volume of the source volume respectively by pointing to the corresponding data blocks through the metadata, and combine the read data; and returning the combined data to the user and feeding back the reading success.
When user data is written, the ROW snapshot process is carried out, metadata written into the source volume is redirected to the changed volume of the source volume, and the data directly falls into the changed volume of the source volume. After the changed volume of the source volume writes data, the success of writing is directly fed back, the write waiting of the COW is bypassed, and the data writing performance is improved. Because the changed volume of the source volume is updated in real time when the production center writes data, the data of the production center can be synchronized to the backup center at any time, the periodic delay is avoided, and the problem of a scene that one period of data is lost is solved. Meanwhile, the copy volume of the change volume of the source volume is increased, the local disaster tolerance capability of the production center is improved, and a means that the data of the production center can be locally recovered is provided; and the source volume and the change volume of the source volume copy the data stream of the user, the copy volume and the backup center copy the data backup stream, and the data stream and the backup stream are isolated, so that the data do not influence each other, and the service conflict is reduced.
An embodiment of the present invention further provides an electronic device, where the electronic device includes: the system comprises a processor, a communication interface, a memory and a bus, wherein the processor, the communication interface and the memory are communicated with each other through the bus. The bus may be used for information transfer between the electronic device and the sensor. The processor may call logic instructions in memory to perform the following method: step 1: creating a pool in a production center, and sequentially creating an RAID, a source volume, a change volume of the source volume and a copy volume after creation; and 2, step: creating a pool in a backup center, and sequentially creating an RAID, a target volume and a change volume of the target volume after creation is completed; and step 3: setting ROW snapshot relation between an added source volume and a source volume change volume, adding copy relation between a change volume and a copy volume of the source volume, and adding snapshot relation between a target volume and a change volume of the target volume; and 4, step 4: establishing an intercommunicating connection between a production center and a backup center; and 5: creating an asynchronous remote replication relationship of the copy volume to the change volume of the target volume; step 6: starting remote copy, and when the data of the source volume and the data of the target volume are inconsistent, starting the data synchronization of the source volume and the target volume; and 7: and after the remote copy starting is successful, displaying the change of the remote copy state in real time.
In some embodiments, the processor may call logic instructions in the memory to perform the following method: step 61: when the remote copy is started, judging whether the source volume is consistent with the target volume; if the data are inconsistent, executing step 62, if the data are consistent, executing step 64; step 62: starting data synchronization of the source volume and the target volume; and step 63: after the data synchronization execution is finished, judging whether the source volume is consistent with the target volume again; if the data are inconsistent, executing step 62, if the data are consistent, executing step 64; step 64: the remote copy initiation is successful.
In some embodiments, the processor may call logic instructions in the memory to perform the following method: s11: when data is written, the data is written into a production center source volume; s12: triggering a ROW snapshot mechanism to redirect metadata to be written into the data to a changed volume of the source volume; s13: after the changed volume data of the source volume is successfully written, feeding back the completion of the writing of the user data; s14: after the write is completed, the changed volume data of the source volume is copied to the copy volume.
In some embodiments, the processor may call logic instructions in the memory to perform the following method: s21: when data is read, the metadata points to the corresponding data blocks, the data of the corresponding data blocks are respectively read from the source volume and the changed volume of the source volume, and the read data are combined; s22: and returning the combined data to the user and feeding back the reading success.
In addition, the logic instructions in the memory may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A real-time protection asynchronous remote copy method based on ROW is characterized by comprising the following steps:
creating a pool in a production center, and sequentially creating an RAID (redundant array of independent disks), a source volume, a change volume of the source volume and a copy volume after creation is completed;
creating a pool in a backup center, and sequentially creating an RAID, a target volume and a change volume of the target volume after creation is completed;
setting ROW snapshot relation between an added source volume and a source volume change volume, adding copy relation between a change volume and a copy volume of the source volume, and adding snapshot relation between a change volume and a target volume;
establishing intercommunication connection between the production center and the backup center;
creating an asynchronous remote replication relationship of the copy volume to the change volume of the target volume;
starting remote copy, and when the data of the source volume and the data of the target volume are inconsistent, starting the data synchronization of the source volume and the target volume;
and after the remote copy starting is successful, displaying the change of the remote copy state in real time.
2. The ROW-based real-time protection asynchronous remote copy method as claimed in claim 1, wherein the step of initiating remote copy, when the source volume and the target volume data are inconsistent, the step of initiating data synchronization of the source volume and the target volume comprises:
when the remote copy is started, judging whether the source volume is consistent with the target volume;
if the data are inconsistent, starting the data synchronization of the source volume and the target volume;
after the data synchronization execution is finished, judging whether the source volume is consistent with the target volume again;
and the data are consistent, and the remote copy is successfully started.
3. The ROW-based real-time protected asynchronous remote copy method according to claim 2, wherein the step of displaying the change of the remote copy status in real time comprises:
after the remote copy is started, when the data of the source volume and the data of the target volume are inconsistent, setting the display state to be inconsistent copy; when the data of the source volume and the data of the target volume are consistent, setting the display state to be in copying; and after the target volume copies the source volume, setting the display state to be consistent copy.
4. The ROW-based real-time protected asynchronous remote copy method as claimed in claim 3, wherein the step of displaying the change of the remote copy status in real time further comprises:
after the remote copying is stopped, the inconsistent copying is stopped, and the display state is set to be inconsistent and stopped; stopping during copying, and setting the display state to be consistent stopping; the consistent copy is stopped and the display state is set to be consistent stop.
5. The ROW-based real-time protected asynchronous remote copy method of claim 1, further comprising:
when data is written, the data is written into a production center source volume;
triggering a ROW snapshot mechanism to redirect metadata to be written into data to a change volume of a source volume;
after the changed volume data of the source volume is successfully written, feeding back the completion of the writing of the user data;
after the write is completed, the changed volume data of the source volume is copied to the copy volume.
6. The ROW-based real-time protected asynchronous remote copy method of claim 1, further comprising:
when data is read, the metadata points to the corresponding data blocks, the data of the corresponding data blocks are respectively read from the source volume and the changed volume of the source volume, and the read data are combined;
and returning the combined data to the user and feeding back the reading success.
7. A real-time protection asynchronous remote copying device based on ROW is characterized by comprising a first creating module, a second creating module, a setting adding module, an intercommunication setting module, a remote copying creating module, an execution control module and a state display module;
the system comprises a first creation module, a second creation module and a third creation module, wherein the first creation module is used for creating a pool in a production center, and sequentially creating an RAID (redundant array of independent disks), a source volume, a change volume of the source volume and a copy volume after creation is completed;
the second creation module is used for creating a pool in the backup center, and sequentially creating the RAID, the target volume and the changed volume of the target volume after creation is completed;
the system comprises a setting adding module, a setting module and a processing module, wherein the setting adding module is used for setting ROW snapshot relation between an added source volume and a source volume change volume, adding copy relation between a change volume and a copy volume of the source volume and adding snapshot relation between a target volume and a change volume of the target volume;
the intercommunication setting module is used for establishing intercommunication connection between the production center and the backup center;
the remote replication creating module is used for creating an asynchronous remote replication relation of the changed volume of the copy volume to the target volume;
the execution control module is used for starting remote copy, and starting data synchronization of the source volume and the target volume when the data of the source volume is inconsistent with the data of the target volume;
and the state display module is used for displaying the change of the remote copy state in real time after the remote copy is successfully started.
8. The ROW-based real-time protected asynchronous remote copy apparatus of claim 7, further comprising a data write execution module, for writing data to the production center source volume when the data is written; triggering a ROW snapshot mechanism to redirect metadata to be written into the data to a changed volume of the source volume; after the changed volume data of the source volume is successfully written, feeding back the completion of the writing of the user data; after the write is completed, the changed volume data of the source volume is copied to the copy volume.
9. The ROW-based real-time protection asynchronous remote copy device according to claim 7, further comprising a data read executing module, configured to read data of corresponding data blocks from the source volume and the modified volume of the source volume, respectively, by pointing the metadata to the corresponding data blocks, and combine the read data; and returning the combined data to the user and feeding back the reading success.
10. An electronic device, characterized in that the electronic device comprises:
at least one processor; and (c) a second step of,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores computer program instructions executable by at least one processor to enable the at least one processor to perform the ROW-based real-time protected asynchronous remote copy method of any of claims 1 to 6.
CN202211035478.9A 2022-08-26 2022-08-26 Real-time protection asynchronous remote copying method, device and equipment based on ROW Pending CN115509806A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211035478.9A CN115509806A (en) 2022-08-26 2022-08-26 Real-time protection asynchronous remote copying method, device and equipment based on ROW

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211035478.9A CN115509806A (en) 2022-08-26 2022-08-26 Real-time protection asynchronous remote copying method, device and equipment based on ROW

Publications (1)

Publication Number Publication Date
CN115509806A true CN115509806A (en) 2022-12-23

Family

ID=84501103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211035478.9A Pending CN115509806A (en) 2022-08-26 2022-08-26 Real-time protection asynchronous remote copying method, device and equipment based on ROW

Country Status (1)

Country Link
CN (1) CN115509806A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116431396A (en) * 2023-06-07 2023-07-14 成都云祺科技有限公司 Method, system and storage medium for processing real-time backup cache data of volume

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116431396A (en) * 2023-06-07 2023-07-14 成都云祺科技有限公司 Method, system and storage medium for processing real-time backup cache data of volume
CN116431396B (en) * 2023-06-07 2023-08-25 成都云祺科技有限公司 Method, system and storage medium for processing real-time backup cache data of volume

Similar Documents

Publication Publication Date Title
US20230205786A1 (en) System and method for persistence and replication of changes to a data store
US20150213100A1 (en) Data synchronization method and system
RU2596585C2 (en) Method for sending data, data receiving method and data storage device
US8667330B1 (en) Information lifecycle management assisted synchronous replication
JP5559821B2 (en) Method for storing data, method for mirroring data, machine-readable medium carrying an instruction sequence, and program for causing a computer to execute the method
CN102891849B (en) Service data synchronization method, data recovery method, data recovery device and network device
US5682513A (en) Cache queue entry linking for DASD record updates
CN106776130B (en) Log recovery method, storage device and storage node
US20120191908A1 (en) Storage writes in a mirrored virtual machine system
US7979651B1 (en) Method, system, and computer readable medium for asynchronously processing write operations for a data storage volume having a copy-on-write snapshot
TW201441809A (en) Method and apparatus for performing volume replication using unified architecture
CN102945278A (en) Method and device for redoing logs of database records
US20190317872A1 (en) Database cluster architecture based on dual port solid state disk
CN114637475A (en) Distributed storage system control method and device and readable storage medium
US11748215B2 (en) Log management method, server, and database system
CN115098299B (en) Backup method, disaster recovery method, device and equipment of virtual machine
CN112181723A (en) Financial disaster recovery method and device, storage medium and electronic equipment
CN115509806A (en) Real-time protection asynchronous remote copying method, device and equipment based on ROW
CN107291924B (en) Synchronous log replication control method and system for disaster recovery backup system
US20230315713A1 (en) Operation request processing method, apparatus, device, readable storage medium, and system
US9015433B2 (en) Resiliency with a destination volume in a replication environment
CN112711596B (en) Multi-copy database system, data processing method, electronic device, and computer-readable storage medium
CN111858173A (en) Data recovery method, device, equipment and medium
CN109165117B (en) Data processing method and system
WO2022033269A1 (en) Data processing method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination