CN117312045A - Data backup processing method and device, electronic equipment and storage medium - Google Patents

Data backup processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117312045A
CN117312045A CN202311091381.4A CN202311091381A CN117312045A CN 117312045 A CN117312045 A CN 117312045A CN 202311091381 A CN202311091381 A CN 202311091381A CN 117312045 A CN117312045 A CN 117312045A
Authority
CN
China
Prior art keywords
disaster recovery
mark
volume
remote copy
data backup
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
CN202311091381.4A
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 CN202311091381.4A priority Critical patent/CN117312045A/en
Publication of CN117312045A publication Critical patent/CN117312045A/en
Pending legal-status Critical Current

Links

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/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
    • G06F11/1451Management of the data involved in backup or backup restore by selection of backup contents
    • 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

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 relates to the technical field of data backup, and provides a data backup processing method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: creating a remote copy relationship between the production volume and the disaster recovery volume, and sending a creation notification to the slave device, so that the slave device sets a mark of the remote copy relationship as a first mark, and the first mark represents that the disaster recovery volume is in a normal state; enabling a remote copy relationship, and executing data backup between the production volume and the disaster recovery volume; the mark of the remote copy relation is determined to be updated from the first mark to the second mark, and incremental data backup between the production volume and the disaster recovery volume is executed; the second identifier characterizes that the failure of the disaster recovery volume has been recovered and a portion of the data is lost. The invention realizes normal backup and even incremental backup of the data after the recovery of the original disaster recovery volume under the original remote copy relationship, so that the resource is not wasted and the use cost is not enlarged.

Description

Data backup processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data backup technologies, and in particular, to a data backup processing method, a data backup processing device, an electronic device, and a storage medium.
Background
The remote copying of business data between the master and slave devices is the core technology of disaster recovery backup, and can realize remote data backup and disaster recovery. Creating a production volume in the master device for receiving service data of the service terminal, and creating a disaster recovery volume in the slave device for backing up the service data in the production volume.
The disk corresponding to the disaster recovery volume of the slave device is damaged, so that the disaster recovery volume fails, and the backup function of service data is affected. When this is encountered, the general process is: deleting the original remote copy relationship and creating a new remote copy relationship with another disaster recovery volume again, so that the original disaster recovery volume cannot be used continuously, the data backup operation before the unnecessary fee is carried out, the disaster recovery volume can be newly increased, and the use cost of resources is increased. The processing mode can not realize the incremental backup of the data on the original remote copy relationship, namely can not continuously use the original disaster recovery volume.
Disclosure of Invention
Aiming at the problems existing in the prior art, the invention provides a data backup processing method, a data backup processing device, electronic equipment and a storage medium.
The invention provides a data backup processing method, which is applied to data backup between a master device and a slave device, wherein the master device is provided with a production volume, the slave device is provided with a disaster recovery volume, and the method is applied to the master device and comprises the following steps:
the method comprises the steps that a master device creates a remote copy relationship between a production volume and a disaster recovery volume, and sends a creation notification to a slave device, so that the slave device sets a mark of the remote copy relationship as a first mark, and the first mark represents that the disaster recovery volume is in a normal state;
enabling the remote copy relationship by the main equipment, and executing data backup between the production volume and the disaster recovery volume;
the main equipment determines that the mark of the remote copy relation is updated from the first mark to the second mark, and incremental data backup between the production volume and the disaster recovery volume is executed; the second identifier characterizes that the failure of the disaster recovery volume is recovered and part of data is lost.
In one embodiment, the method further comprises:
and the master equipment determines that the disaster recovery volume has faults, stops the remote copy relationship, and triggers the recovery operation of the disaster recovery volume, so that when the slave equipment determines that the faults of the disaster recovery volume are recovered and partial data are lost, the mark of the remote copy relationship is updated from the first mark to the second mark, and the mark of the remote copy relationship is fed back to the master equipment.
In one embodiment, the master device enables the remote copy relationship, performs a backup of data between the production volume and the disaster recovery volume, comprising:
enabling the remote copy relationship by the master device, executing data backup between the production volume and the disaster recovery volume based on a first bitmap corresponding to the remote copy relationship, and updating the first bitmap based on a data backup condition to obtain a second bitmap; the first bitmap is generated for initial traffic data based on the production volume.
In one embodiment, the master device determining that the flag of the remote copy relationship is updated from the first identification to a second identification, performing an incremental data backup between the production volume and the disaster recovery volume, comprising:
the master device determines that the mark of the remote copy relationship is updated from the first mark to the second mark, incremental data backup between the production volume and the disaster recovery volume is executed according to a third bitmap, and the third bitmap is obtained by updating the second bitmap by the slave device based on the recovered partial data and the lost partial data.
The invention also provides a data backup processing method applied to data backup between a master device and a slave device, wherein the master device is provided with a production volume, the slave device is provided with a disaster recovery volume, and the method applied to the slave device comprises the following steps:
the method comprises the steps that a slave device receives a creation notification of a remote copy relationship between a production volume and a disaster recovery volume created by a master device, a mark of the remote copy relationship is set to be a first mark, and the first mark represents that the disaster recovery volume is in a normal state;
after the slave device determines that the disaster recovery volume fails, recovering the disaster recovery volume based on a trigger signal of the recovery operation of the master device on the disaster recovery volume, and when determining that the failure of the disaster recovery volume is recovered and partial data is lost, updating the mark of the remote copy relationship from the first mark to the second mark, and feeding back the mark of the remote copy relationship to the master device, so that the master device executes incremental data backup between the production volume and the disaster recovery volume; the second identifier characterizes that the failure of the disaster recovery volume is recovered and part of data is lost.
In one embodiment, the method further comprises:
and after the slave equipment determines that the disaster recovery volume fails, sending a notification signal to the master equipment so as to enable the master equipment to stop the remote copy relationship and trigger the recovery operation of the disaster recovery volume.
In one embodiment, the method further comprises:
the slave device updates the second bitmap based on the recovered partial data and the lost partial data to obtain a third bitmap, and sends the third bitmap to the master device, so that the master device determines that the mark of the remote copy relationship is updated from the first mark to the second mark, and incremental data backup between the production volume and the disaster recovery volume is executed according to the third bitmap;
the second bitmap is obtained by updating a first bitmap based on a data backup condition by the master device, the first bitmap is used for executing data backup between the production volume and the disaster recovery volume after the master device starts a remote copy relationship, and the first bitmap is generated based on initial service data of the production volume.
The invention also provides a data backup processing device, which is applied to data backup between a master device and a slave device, wherein the master device is provided with a production volume, the slave device is provided with a disaster recovery volume, and the device is applied to the master device and comprises:
the creation module is used for creating a remote copy relationship between the production volume and the disaster recovery volume, and sending a creation notification to the slave equipment, so that the slave equipment sets a mark of the remote copy relationship as a first mark, and the first mark represents that the disaster recovery volume is in a normal state;
the first processing module is used for starting the remote copy relationship and executing data backup between the production volume and the disaster recovery volume;
the second processing module is used for determining that the mark of the remote copy relationship is updated from the first mark to the second mark and executing incremental data backup between the production volume and the disaster recovery volume; the second identifier characterizes that the failure of the disaster recovery volume is recovered and part of data is lost.
The invention also provides a data backup processing device, which is applied to data backup between a master device and a slave device, wherein the master device is provided with a production volume, the slave device is provided with a disaster recovery volume, and the device is applied to the slave device and comprises:
the setting module is used for receiving a creation notice of a remote copy relationship between a production volume and a disaster recovery volume created by a main device, setting a mark of the remote copy relationship as a first mark, and representing the disaster recovery volume as a normal state;
the third processing module is used for recovering the disaster recovery volume based on a trigger signal of the recovery operation of the main equipment on the disaster recovery volume after the disaster recovery volume is determined to have failed, updating the mark of the remote copy relationship from the first mark to the second mark when the failure of the disaster recovery volume is determined to have been recovered and part of data is lost, and feeding back the mark of the remote copy relationship to the main equipment so that the main equipment executes incremental data backup between the production volume and the disaster recovery volume; the second identifier characterizes that the failure of the disaster recovery volume is recovered and part of data is lost.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the data backup processing method according to any one of the above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a data backup processing method as described in any of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements a data backup processing method as described above.
According to the data backup processing method provided by the invention, the mark of the remote copy relationship between the production volume and the disaster recovery volume is set, the failure of the disaster recovery volume is known based on the mark, and after part of data is lost, the incremental data backup between the production volume and the disaster recovery volume is executed, so that the normal backup, even the incremental backup, of the data after the original disaster recovery volume is restored under the original remote copy relationship is realized, the resource is not wasted, and the use cost is not enlarged.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a data backup processing method according to the present invention;
FIG. 2 is a flowchart of a data backup processing method provided by the present invention;
FIG. 3 is a second flowchart of a data backup processing method according to the present invention;
FIG. 4 is a schematic diagram of a data backup device according to the present invention;
FIG. 5 is a second schematic diagram of a data backup processing apparatus according to the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The following describes a data backup processing method, a device, an electronic apparatus and a storage medium in conjunction with fig. 1 to 6.
Fig. 1 shows a flow chart of a data backup processing method provided by the present invention, referring to fig. 1, the method is applied to data backup between a master device and a slave device, the master device is provided with a production volume, the slave device is provided with a disaster recovery volume, and the method is applied to the master device and includes:
11. the method comprises the steps that a master device creates a remote copy relationship between a production volume and a disaster recovery volume, and sends a creation notification to a slave device, so that the slave device sets a mark of the remote copy relationship as a first mark, and the first mark represents that the disaster recovery volume is in a normal state;
12. the main equipment starts a remote copy relationship and executes data backup between the production volume and the disaster recovery volume;
13. the main equipment determines that the mark of the remote copy relationship is updated from the first mark to the second mark, and incremental data backup between the production volume and the disaster recovery volume is executed; the second identifier characterizes that the failure of the disaster recovery volume has been recovered and a portion of the data is lost.
For steps 11 to 13, it should be noted that, in the present invention, the method is applied to a remote replication scenario of service data between a master device and a slave device, where remote replication is a core technology of disaster recovery backup, so as to implement remote data backup and disaster recovery. Creating a production volume in the master device for receiving service data of the service terminal, and creating a disaster recovery volume in the slave device for backing up the service data in the production volume.
In the remote replication process, the master device creates a remote replication relationship between the production volume and the disaster recovery volume, and after the remote replication relationship is created and started, the master device replicates data on the production volume to the disaster recovery volume in real time, wherein the disaster recovery volume is a backup of the production volume.
In the invention, the disk corresponding to the disaster recovery volume of the slave device is damaged, so that the disaster recovery volume fails, and the backup function of service data is affected. When this is encountered, the general process is: deleting the original remote copy relationship and creating a new remote copy relationship with another disaster recovery volume again, so that the original disaster recovery volume cannot be used continuously, the data backup operation before the unnecessary fee is carried out, the disaster recovery volume can be newly increased, and the use cost of resources is increased. The processing mode can not realize the incremental backup of the data on the original remote copy relationship, namely can not continuously use the original disaster recovery volume.
In the invention, after the disaster recovery volume breaks down, the data recovery can be carried out, but the situation of data loss possibly exists, that is, the disaster recovery volume can be used continuously, so in order to realize the backup of service data by continuously using the original disaster recovery volume, a mark needs to be configured for the remote copy relationship between the production volume and the disaster recovery volume, and the mark can indicate whether the disaster recovery volume is in a normal state or the fault is recovered and the data loss exists. The mark can inform the main equipment so that the main equipment can make corresponding reasonable operation in the process of executing the data backup of the production volume and the disaster recovery volume. Such as stopping the remote copy relationship between the production volume and the disaster recovery volume, performing incremental data backup between the production volume and the disaster recovery volume, and the like.
Because the master device cannot timely learn the specific working state of the disaster recovery volume, after the master device initially creates the remote copy relationship between the production volume and the disaster recovery volume, the master device sends a creation notification to the slave device, and the slave device can sense the specific working state of the disaster recovery volume in real time, so that the slave device can initially set a flag of the remote copy relationship between the production volume and the disaster recovery volume as a first flag, and the first flag characterizes the disaster recovery volume as a normal state. For example, flag_data_error=false of the remote copy relationship indicates that the disaster recovery volume is in a normal state; flag_data_error=wire, indicating that the disaster recovery volume has recovered and that part of the data is lost.
In the invention, in the normal state of the disaster recovery volume, the main equipment starts a remote copy relationship to execute data backup between the production volume and the disaster recovery volume. In the process of executing the remote copy data backup, the processing modes of synchronous remote copy, asynchronous remote copy, periodic asynchronous remote copy, double-activity and the like can be adopted, and the essence of the processing modes is that the backup of the data is realized. Synchronous means that the service data is finished at the same time of the production volume and the disaster recovery volume and then returned to the notification service terminal, and asynchronous means that the service data is finished at the production volume and can be returned to the notification service terminal without waiting for the completion of the disaster recovery volume.
In terms of processing mode, the method is further divided into full data backup and incremental data backup. For example full synchronization: the copying of data to a volume is accomplished either daily on a regular basis (avoiding peak hours) or with a single cycle. Incremental synchronization: such as synchronizing data using actions on the behavior. Comparison of full and delta: incremental synchronization consumes more servers than full synchronizationMemoryBut can more secure the synchronization of data.
When the slave device determines that the disaster recovery volume has failed, a flag of the remote copy relationship between the production volume and the disaster recovery volume is set to a second flag, wherein the second flag indicates that the failure of the disaster recovery volume has been recovered, and a part of data is lost.
The slave device feeds the mark back to the master device, the master device determines that the fault of the disaster recovery volume is recovered based on the mark, partial data is lost, incremental data backup between the production volume and the disaster recovery volume is executed, the lost partial data is complemented in an incremental data backup mode, and the purpose of continuing remote follow-up service data is also achieved.
According to the data backup processing method provided by the invention, the mark of the remote copy relationship between the production volume and the disaster recovery volume is set, the failure of the disaster recovery volume is recovered based on the mark, and after part of data is lost, the incremental data backup between the production volume and the disaster recovery volume is executed, so that the normal backup, even the incremental backup, of the data can be carried out after the original disaster recovery volume is recovered under the original remote copy relationship, the resource waste is avoided, and the use cost is not enlarged.
In the further method of the method, after the slave device determines that the disaster recovery curl fails, a notification signal is sent to the master device, the master device knows that the disaster recovery curl fails, and then stops the remote copy relationship, so that the waste of processing resources caused by continuously executing the data backup between the production curl and the disaster recovery curl is avoided. The master device can trigger the recovery operation of the disaster recovery volume to remind the slave device of completing the recovery of the disaster recovery volume within a preset time, and when the slave device senses that part of data is lost after the fault recovery of the disaster recovery volume is completed, the slave device feeds back a mark with a second mark to the master device so as to inform the master device that incremental data backup between the production volume and the disaster recovery volume can be executed.
According to the method, the data backup can be stopped or restarted at a reasonable time point through information notification between the master device and the slave device, so that the reasonable utilization of processing resources is ensured.
In a further method of the above method, a remote copy relationship is mainly activated for a master device, and an explanation of a process procedure of performing data backup between a production volume and the disaster recovery volume is specifically as follows:
enabling a remote copy relationship by the master device, performing data backup between the production volume and the disaster recovery volume based on a first bitmap corresponding to the remote copy relationship, and updating the first bitmap based on the data backup condition to obtain a second bitmap; the first bitmap is generated for initial traffic data based on the production volume.
In this regard, in the present invention, it is necessary to display the backup status of data based on a bitmap corresponding to a remote copy relationship, for data backup between a production volume and a disaster recovery volume. The bitmap of the remote copy relationship represents the data bitmap under the current remote copy relationship.
The bitmap is that each bit is used to represent the storage state of data, and is suitable for large-scale data processing, such as data copy and backup. Each bit of the bitmap is used to determine whether a certain data exists, and from the perspective of data backup, whether a certain data has been backed up into a volume.
The bitmap is implemented in an array, where each bit of each element of the array may represent one data present or not, 0 represents the presence of data, and 1 represents the absence of data. Because the bit has only two states, either 0 or 1, the bitmap is in fact a hash of the direct addressing method, except that the bitmap can only indicate that this value is or is not.
In the present invention, the data in the production volume is copied and backed up to the disaster recovery volume, so the first bitmap mentioned above is generated based on the initial service data of the production volume, and represents a bitmap corresponding to the data when the data of the production volume is not backed up to the disaster recovery volume at first. And along with the start and execution of the data backup, updating the first bitmap based on the data backup condition to obtain a second bitmap. The second bitmap can show whether the data in the current period is backed up or not, or on which data.
The method further displays the data backup condition through the bitmap, can locate the lost data after the recovery of the subsequent disaster recovery volume, and ensures the successful execution of the subsequent incremental data backup.
In the further method of the above method, the process of executing incremental data backup between the production volume and the disaster recovery volume is mainly explained by updating the flag of the remote copy relationship determined by the master device from the first flag to the second flag, and specifically as follows:
the main equipment determines that the mark of the remote copy relation is updated from the first mark to the second mark, incremental data backup between the production volume and the disaster recovery volume is executed according to a third bitmap, and the third bitmap is obtained by updating the second bitmap by the auxiliary equipment based on the recovered partial data and the lost partial data.
In this regard, it should be noted that in the present invention, after the failure of the disaster recovery volume is recovered by the slave device, the specific condition of the data is checked, the second bitmap is updated based on the recovered partial data and the lost partial data to obtain the third bitmap, and then the third bitmap is sent to the master device, and the master device can locate the lost data after the recovery of the disaster recovery volume based on the third bitmap, so as to ensure the successful execution of the subsequent incremental data backup.
The above method will be described below by taking synchronous remote copy as an example, where a master creates volume a and a slave creates volume B, and referring to fig. 2, a specific flowchart is shown.
Fig. 3 is a schematic flow chart of a data backup processing method provided by the present invention, referring to fig. 3, the method is applied to data backup between a master device and a slave device, the master device is provided with a production volume, the slave device is provided with a disaster recovery volume, and the method is applied to the slave device, and includes:
31. the method comprises the steps that a slave device receives a creation notification of a remote copy relationship between a production volume created by a master device and a disaster recovery volume, a mark of the remote copy relationship is set as a first mark, and the first mark represents that the disaster recovery volume is in a normal state;
32. after the slave device determines that the disaster recovery roll fails, recovering the disaster recovery roll based on a trigger signal of the recovery operation of the master device on the disaster recovery roll, and updating a mark of the remote copy relationship from a first mark to a second mark when determining that the failure of the disaster recovery roll is recovered and partial data is lost, and feeding back the mark of the remote copy relationship to the master device so as to enable the master device to execute incremental data backup between the production roll and the disaster recovery roll; the second identifier characterizes that the failure of the disaster recovery volume has been recovered and a portion of the data is lost.
In a further method of the above method, the method further comprises:
after the slave device determines that the disaster recovery volume fails, a notification signal is sent to the master device, so that the master device stops remote copy relationship and triggers recovery operation of the disaster recovery volume.
In a further method of the above method, the method further comprises:
the slave device updates the second bitmap based on the recovered partial data and the lost partial data to obtain a third bitmap, and sends the third bitmap to the master device, so that the mark of the remote copy relationship determined by the master device is updated from the first mark to the second mark, and incremental data backup between the production volume and the disaster recovery volume is executed according to the third bitmap;
the second bitmap is obtained by updating the first bitmap based on the data backup condition by the master device, the first bitmap is used for executing the data backup between the production volume and the disaster recovery volume after the master device starts the remote copy relationship, and the first bitmap is generated based on the initial service data of the production volume.
In this regard, it should be noted that, based on the above description of the detailed process of data backup of the master device and the slave device, the description is omitted here.
According to the data backup processing method provided by the invention, the mark of the remote copy relationship between the production volume and the disaster recovery volume is set, the failure of the disaster recovery volume is recovered based on the mark, and after part of data is lost, the incremental data backup between the production volume and the disaster recovery volume is executed, so that the normal backup, even the incremental backup, of the data can be carried out after the original disaster recovery volume is recovered under the original remote copy relationship, the resource waste is avoided, and the use cost is not enlarged.
The data backup processing device provided by the invention is described below, and the data backup processing device described below and the data backup processing method described above can be referred to correspondingly.
Fig. 4 shows a schematic structural diagram of a data backup processing apparatus provided by the present invention, referring to fig. 4, the apparatus is applied to a processing scenario of data backup between a master device and a slave device, the master device is provided with a production volume, the slave device is provided with a disaster recovery volume, the apparatus is applied to the master device, and the apparatus includes a creation module 41, a first processing module 42 and a second processing module 43, where:
the creation module 41 is configured to create a remote copy relationship between the production volume and the disaster recovery volume, and send a creation notification to the slave device, so that the slave device sets a flag of the remote copy relationship as a first flag, and the first flag characterizes that the disaster recovery volume is in a normal state;
a first processing module 42 for enabling a remote copy relationship, performing a data backup between the production volume and the disaster recovery volume;
a second processing module 43, configured to determine that the flag of the remote copy relationship is updated from the first flag to the second flag, and perform incremental data backup between the production volume and the disaster recovery volume; the second identifier characterizes that the failure of the disaster recovery volume has been recovered and a portion of the data is lost.
In a further arrangement of the above arrangement, the arrangement further comprises a fourth processing module for:
and determining that the disaster recovery volume has faults, stopping the remote copy relationship, triggering the recovery operation of the disaster recovery volume, updating the mark of the remote copy relationship from the first mark to the second mark when the slave device determines that the faults of the disaster recovery volume are recovered and part of data is lost, and feeding back the mark of the remote copy relationship to the master device.
In a further arrangement of the above arrangement, the first processing module is specifically configured to:
starting the remote copy relationship, executing data backup between the production volume and the disaster recovery volume based on a first bitmap corresponding to the remote copy relationship, and updating the first bitmap based on the data backup condition to obtain a second bitmap; the first bitmap is generated for initial traffic data based on the production volume.
In a further arrangement of the above arrangement, the second processing module is specifically configured to:
and updating the mark of the remote copy relationship from the first mark to the second mark, and executing incremental data backup between the production volume and the disaster recovery volume according to a third bitmap, wherein the third bitmap is obtained by updating the second bitmap by the slave device based on the recovered partial data and the lost partial data.
The data backup processing device provided by the invention has the advantages that the mark of the remote copy relationship between the production volume and the disaster recovery volume is set, the failure of the disaster recovery volume is recovered based on the mark, and after part of data is lost, the incremental data backup between the production volume and the disaster recovery volume is executed, so that the normal backup, even the incremental backup, of the data after the original disaster recovery volume is recovered under the original remote copy relationship is realized, the resource is not wasted, and the use cost is not enlarged.
Fig. 5 shows a schematic structural diagram of a data backup processing apparatus provided by the present invention, referring to fig. 5, the apparatus is applied to a processing scenario of data backup between a master device and a slave device, the master device is provided with a production volume, the slave device is provided with a disaster recovery volume, the apparatus is applied to the slave device, and the apparatus includes a setting module 51 and a third processing module 52, where:
the setting module 51 is configured to receive a notification of creating a remote copy relationship between a production volume and a disaster recovery volume by a host device, set a flag of the remote copy relationship as a first flag, and characterize the disaster recovery volume as a normal state;
the third processing module 52 is configured to, after determining that the disaster recovery roll fails, restore the disaster recovery roll based on a trigger signal of a restoration operation of the disaster recovery roll by the host device, determine that the failure of the disaster recovery roll has been restored, update a flag of the remote copy relationship from the first flag to the second flag when part of the data is lost, and feed back the flag of the remote copy relationship to the host device, so that the host device performs incremental data backup between the production roll and the disaster recovery roll; the second identifier characterizes that the failure of the disaster recovery volume has been recovered and a portion of the data is lost.
In a further arrangement of the above arrangement, the arrangement further comprises a notification module for:
after the disaster recovery volume is determined to have faults, a notification signal is sent to the main equipment, so that the main equipment stops remote copy relationship, and the recovery operation of the disaster recovery volume is triggered.
In a further apparatus of the above apparatus, the apparatus further comprises an update module configured to:
updating the second bitmap based on the restored partial data and the lost partial data to obtain a third bitmap, and sending the third bitmap to the main equipment so that the mark of the remote copy relationship determined by the main equipment is updated from the first mark to the second mark, and executing incremental data backup between the production volume and the disaster recovery volume according to the third bitmap;
the second bitmap is obtained by updating the first bitmap based on the data backup condition by the master device, the first bitmap is used for executing the data backup between the production volume and the disaster recovery volume after the master device starts the remote copy relationship, and the first bitmap is generated based on the initial service data of the production volume.
The data backup processing device provided by the invention has the advantages that the mark of the remote copy relationship between the production volume and the disaster recovery volume is set, the failure of the disaster recovery volume is recovered based on the mark, and after part of data is lost, the incremental data backup between the production volume and the disaster recovery volume is executed, so that the normal backup, even the incremental backup, of the data after the original disaster recovery volume is recovered under the original remote copy relationship is realized, the resource is not wasted, and the use cost is not enlarged.
Fig. 6 illustrates a physical schematic diagram of an electronic device, as shown in fig. 6, which may include: a processor (processor) 61, a communication interface (communication interface) 62, a memory (memory) 63 and a communication bus 64, wherein the processor 61, the communication interface 62 and the memory 63 communicate with each other through the communication bus 64. Processor 61 may invoke logic instructions in memory 63 to perform a data backup processing method comprising: creating a remote copy relationship between the production volume and the disaster recovery volume, and sending a creation notification to the slave device, so that the slave device sets a mark of the remote copy relationship as a first mark, and the first mark represents that the disaster recovery volume is in a normal state; enabling a remote copy relationship, and executing data backup between the production volume and the disaster recovery volume; the mark of the remote copy relation is determined to be updated from the first mark to the second mark, and incremental data backup between the production volume and the disaster recovery volume is executed; the second identifier represents that the fault of the disaster recovery volume is recovered, and part of data is lost;
or the method comprises the following steps:
receiving a creation notice of a remote copy relationship between a production volume and a disaster recovery volume created by a main device, setting a mark of the remote copy relationship as a first mark, wherein the first mark represents that the disaster recovery volume is in a normal state; after determining that the disaster recovery roll fails, recovering the disaster recovery roll based on a trigger signal of the recovery operation of the main equipment on the disaster recovery roll, and updating a mark of the remote copy relationship from a first mark to a second mark when determining that the failure of the disaster recovery roll is recovered and part of data is lost, and feeding back the mark of the remote copy relationship to the main equipment so as to enable the main equipment to execute incremental data backup between the production roll and the disaster recovery roll; the second identifier characterizes that the failure of the disaster recovery volume has been recovered and a portion of the data is lost.
Further, the logic instructions in the memory 63 described above 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 this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform 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, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can perform a data backup processing method provided by the above methods, and the method includes:
creating a remote copy relationship between the production volume and the disaster recovery volume, and sending a creation notification to the slave device, so that the slave device sets a mark of the remote copy relationship as a first mark, and the first mark represents that the disaster recovery volume is in a normal state; enabling a remote copy relationship, and executing data backup between the production volume and the disaster recovery volume; the mark of the remote copy relation is determined to be updated from the first mark to the second mark, and incremental data backup between the production volume and the disaster recovery volume is executed; the second identifier represents that the fault of the disaster recovery volume is recovered, and part of data is lost;
or the method comprises the following steps:
receiving a creation notice of a remote copy relationship between a production volume and a disaster recovery volume created by a main device, setting a mark of the remote copy relationship as a first mark, wherein the first mark represents that the disaster recovery volume is in a normal state; after determining that the disaster recovery roll fails, recovering the disaster recovery roll based on a trigger signal of the recovery operation of the main equipment on the disaster recovery roll, and updating a mark of the remote copy relationship from a first mark to a second mark when determining that the failure of the disaster recovery roll is recovered and part of data is lost, and feeding back the mark of the remote copy relationship to the main equipment so as to enable the main equipment to execute incremental data backup between the production roll and the disaster recovery roll; the second identifier characterizes that the failure of the disaster recovery volume has been recovered and a portion of the data is lost.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform a data backup processing method provided by the above methods, the method comprising:
creating a remote copy relationship between the production volume and the disaster recovery volume, and sending a creation notification to the slave device, so that the slave device sets a mark of the remote copy relationship as a first mark, and the first mark represents that the disaster recovery volume is in a normal state; enabling a remote copy relationship, and executing data backup between the production volume and the disaster recovery volume; the mark of the remote copy relation is determined to be updated from the first mark to the second mark, and incremental data backup between the production volume and the disaster recovery volume is executed; the second identifier represents that the fault of the disaster recovery volume is recovered, and part of data is lost;
or the method comprises the following steps:
receiving a creation notice of a remote copy relationship between a production volume and a disaster recovery volume created by a main device, setting a mark of the remote copy relationship as a first mark, wherein the first mark represents that the disaster recovery volume is in a normal state; after determining that the disaster recovery roll fails, recovering the disaster recovery roll based on a trigger signal of the recovery operation of the main equipment on the disaster recovery roll, and updating a mark of the remote copy relationship from a first mark to a second mark when determining that the failure of the disaster recovery roll is recovered and part of data is lost, and feeding back the mark of the remote copy relationship to the main equipment so as to enable the main equipment to execute incremental data backup between the production roll and the disaster recovery roll; the second identifier characterizes that the failure of the disaster recovery volume has been recovered and a portion of the data is lost.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. The data backup processing method is characterized by being applied to data backup between a master device and a slave device, wherein the master device is provided with a production volume, the slave device is provided with a disaster recovery volume, and the method is applied to the master device and comprises the following steps:
the method comprises the steps that a master device creates a remote copy relationship between a production volume and a disaster recovery volume, and sends a creation notification to a slave device, so that the slave device sets a mark of the remote copy relationship as a first mark, and the first mark represents that the disaster recovery volume is in a normal state;
enabling the remote copy relationship by the main equipment, and executing data backup between the production volume and the disaster recovery volume;
the main equipment determines that the mark of the remote copy relation is updated from the first mark to the second mark, and incremental data backup between the production volume and the disaster recovery volume is executed; the second identifier characterizes that the failure of the disaster recovery volume is recovered and part of data is lost.
2. The data backup processing method of claim 1, wherein the method further comprises:
and the master equipment determines that the disaster recovery volume has faults, stops the remote copy relationship, and triggers the recovery operation of the disaster recovery volume, so that when the slave equipment determines that the faults of the disaster recovery volume are recovered and partial data are lost, the mark of the remote copy relationship is updated from the first mark to the second mark, and the mark of the remote copy relationship is fed back to the master equipment.
3. The data backup processing method according to claim 1 or 2, wherein the master device enables the remote copy relationship, performs data backup between the production volume and the disaster recovery volume, and includes:
enabling the remote copy relationship by the master device, executing data backup between the production volume and the disaster recovery volume based on a first bitmap corresponding to the remote copy relationship, and updating the first bitmap based on a data backup condition to obtain a second bitmap; the first bitmap is generated for initial traffic data based on the production volume.
4. The data backup processing method of claim 3, wherein the master device determining that the flag of the remote copy relationship is updated from the first flag to a second flag, performing incremental data backup between the production volume and the disaster recovery volume, comprises:
the master device determines that the mark of the remote copy relationship is updated from the first mark to the second mark, incremental data backup between the production volume and the disaster recovery volume is executed according to a third bitmap, and the third bitmap is obtained by updating the second bitmap by the slave device based on the recovered partial data and the lost partial data.
5. The data backup processing method is characterized by being applied to data backup between a master device and a slave device, wherein the master device is provided with a production volume, the slave device is provided with a disaster recovery volume, and the method is applied to the slave device and comprises the following steps:
the method comprises the steps that a slave device receives a creation notification of a remote copy relationship between a production volume and a disaster recovery volume created by a master device, a mark of the remote copy relationship is set to be a first mark, and the first mark represents that the disaster recovery volume is in a normal state;
after the slave device determines that the disaster recovery volume fails, recovering the disaster recovery volume based on a trigger signal of the recovery operation of the master device on the disaster recovery volume, and when determining that the failure of the disaster recovery volume is recovered and partial data is lost, updating the mark of the remote copy relationship from the first mark to the second mark, and feeding back the mark of the remote copy relationship to the master device, so that the master device executes incremental data backup between the production volume and the disaster recovery volume; the second identifier characterizes that the failure of the disaster recovery volume is recovered and part of data is lost.
6. The data backup processing method of claim 5, further comprising:
and after the slave equipment determines that the disaster recovery volume fails, sending a notification signal to the master equipment so as to enable the master equipment to stop the remote copy relationship and trigger the recovery operation of the disaster recovery volume.
7. The data backup processing method according to claim 5 or 6, characterized in that the method further comprises:
the slave device updates the second bitmap based on the recovered partial data and the lost partial data to obtain a third bitmap, and sends the third bitmap to the master device, so that the master device determines that the mark of the remote copy relationship is updated from the first mark to the second mark, and incremental data backup between the production volume and the disaster recovery volume is executed according to the third bitmap;
the second bitmap is obtained by updating a first bitmap based on a data backup condition by the master device, the first bitmap is used for executing data backup between the production volume and the disaster recovery volume after the master device starts a remote copy relationship, and the first bitmap is generated based on initial service data of the production volume.
8. A data backup processing apparatus, which is applied to data backup between a master device and a slave device, wherein the master device is provided with a production volume, and the slave device is provided with a disaster recovery volume, the apparatus being applied to the master device, comprising:
the creation module is used for creating a remote copy relationship between the production volume and the disaster recovery volume, and sending a creation notification to the slave equipment, so that the slave equipment sets a mark of the remote copy relationship as a first mark, and the first mark represents that the disaster recovery volume is in a normal state;
the first processing module is used for starting the remote copy relationship and executing data backup between the production volume and the disaster recovery volume;
the second processing module is used for determining that the mark of the remote copy relationship is updated from the first mark to the second mark and executing incremental data backup between the production volume and the disaster recovery volume; the second identifier characterizes that the failure of the disaster recovery volume is recovered and part of data is lost.
9. A data backup processing apparatus, which is applied to data backup between a master device and a slave device, wherein the master device is provided with a production volume, and the slave device is provided with a disaster recovery volume, the apparatus being applied to the slave device, comprising:
the setting module is used for receiving a creation notice of a remote copy relationship between a production volume and a disaster recovery volume created by a main device, setting a mark of the remote copy relationship as a first mark, and representing the disaster recovery volume as a normal state;
the third processing module is used for recovering the disaster recovery volume based on a trigger signal of the recovery operation of the main equipment on the disaster recovery volume after the disaster recovery volume is determined to have failed, updating the mark of the remote copy relationship from the first mark to the second mark when the failure of the disaster recovery volume is determined to have been recovered and part of data is lost, and feeding back the mark of the remote copy relationship to the main equipment so that the main equipment executes incremental data backup between the production volume and the disaster recovery volume; the second identifier characterizes that the failure of the disaster recovery volume is recovered and part of data is lost.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the data backup processing method of any one of claims 1 to 4 or the data backup processing method of any one of claims 5 to 7 when the program is executed by the processor.
11. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the data backup processing method according to any one of claims 1 to 4 or implements the data backup processing method according to any one of claims 5 to 7.
12. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements a data backup processing method as claimed in any one of claims 1 to 4 or implements a data backup processing method as claimed in any one of claims 5 to 7.
CN202311091381.4A 2023-08-28 2023-08-28 Data backup processing method and device, electronic equipment and storage medium Pending CN117312045A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311091381.4A CN117312045A (en) 2023-08-28 2023-08-28 Data backup processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311091381.4A CN117312045A (en) 2023-08-28 2023-08-28 Data backup processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117312045A true CN117312045A (en) 2023-12-29

Family

ID=89272773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311091381.4A Pending CN117312045A (en) 2023-08-28 2023-08-28 Data backup processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117312045A (en)

Similar Documents

Publication Publication Date Title
CN101706802B (en) Method, device and sever for writing, modifying and restoring data
WO2017177941A1 (en) Active/standby database switching method and apparatus
CN110543386B (en) Data storage method, device, equipment and storage medium
CN111130879B (en) PBFT algorithm-based cluster exception recovery method
US8612799B2 (en) Method and apparatus of backing up subversion repository
WO2017028375A1 (en) Version upgrading method and system
CN110825562B (en) Data backup method, device, system and storage medium
CN111752488B (en) Management method and device of storage cluster, management node and storage medium
CN110109772B (en) CPU restarting method, communication equipment and readable storage medium
CN113965578A (en) Method, device, equipment and storage medium for electing master node in cluster
CN112153134A (en) Disaster tolerance drilling method, device, equipment and storage medium of disaster tolerance cloud host
CN112631831A (en) Bare computer recovery method and system of service system
EP4060514A1 (en) Distributed database system and data disaster backup drilling method
CN113438111A (en) Method for restoring RabbitMQ network partition based on Raft distribution and application
CN116185697A (en) Container cluster management method, device and system, electronic equipment and storage medium
CN117312045A (en) Data backup processing method and device, electronic equipment and storage medium
CN113297134B (en) Data processing system, data processing method and device, and electronic device
CN112491633B (en) Fault recovery method, system and related components of multi-node cluster
CN110113395B (en) Shared file system maintenance method and device
CN112214466B (en) Distributed cluster system, data writing method, electronic equipment and storage device
CN117640349A (en) Fault recovery method and device for network additional storage system cluster and host equipment
CN115048246A (en) Method, device and equipment for processing split brain of distributed copy block equipment
CN116501543A (en) Physical backup method, storage medium and equipment for database cluster
CN115309429A (en) Software updating method and device
CN115344424A (en) Method, device and equipment for recovering synchronous state and storage medium

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