CN115480880A - Continuous data protection method and system and electronic equipment - Google Patents

Continuous data protection method and system and electronic equipment Download PDF

Info

Publication number
CN115480880A
CN115480880A CN202211227829.6A CN202211227829A CN115480880A CN 115480880 A CN115480880 A CN 115480880A CN 202211227829 A CN202211227829 A CN 202211227829A CN 115480880 A CN115480880 A CN 115480880A
Authority
CN
China
Prior art keywords
data
virtual machine
backup
storage disk
main
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
CN202211227829.6A
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.)
Anchao Cloud Software Co Ltd
Original Assignee
Anchao Cloud Software 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 Anchao Cloud Software Co Ltd filed Critical Anchao Cloud Software Co Ltd
Priority to CN202211227829.6A priority Critical patent/CN115480880A/en
Publication of CN115480880A publication Critical patent/CN115480880A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/1458Management of the backup or restore process

Abstract

The embodiment of the specification provides a continuous data protection method, a continuous data protection system and electronic equipment, and the functions of a virtual machine can be quickly recovered when a data fault occurs on a virtualization platform. The method is applied to a virtualization platform, the virtualization platform comprises a virtual machine and a backup storage disk, the backup storage disk is used for storing backup data corresponding to main data in the virtual machine, and the method comprises the following steps: when the virtual machine works normally, acquiring real-time change information of the main data in the virtual machine, and dynamically updating the backup data according to the real-time change information; when the virtual machine fails, the system for taking over the virtual machine by using the backup data comprises a dynamic updating module and a failure taking-over module. The electronic device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor implements the continuous data protection method when executing the program.

Description

Continuous data protection method and system and electronic equipment
Technical Field
The invention relates to the technical field of data security, in particular to a continuous data protection method, a system and electronic equipment.
Background
In some important Data information systems, CDP (Continuous Data-Protection) technology is applied to protect critical Data. The CDP technology is also applied to the virtualization platform to protect data in the virtual machine, a virtual machine monitor is utilized in the virtualization platform to monitor real-time change of the data in the disk, and the real-time changed data is exported to an IO log for continuous data protection. When recovery is needed, the IO log is used for playback, and therefore data recovery of the virtual machine at the IO level is achieved.
In the CDP technology, RTO (recovery Time Objective) and RPO (recovery Point Objective) are important metrics for data recovery, where RTO refers to a Time duration of data that is most likely to be lost, and RPO refers to a maximum Time duration required from a disaster to a system recovery. In the existing CDP scheme of the virtualization platform, due to the recording file attribute of the IO log, a virtual machine cannot be directly started when data fails, so that the RPO time is long, and quick recovery cannot be achieved.
Disclosure of Invention
In view of this, embodiments of the present specification provide a persistent data protection method, which can quickly recover a function of a virtual machine when a data failure occurs in a virtualization platform.
In a first aspect, the embodiments of the present specification provide a persistent data protection method.
The method is applied to a virtualization platform, wherein the virtualization platform comprises a virtual machine and a backup storage disk, and the backup storage disk is used for storing backup data corresponding to main data in the virtual machine. The method comprises the following steps:
when the virtual machine works normally, acquiring real-time change information of the main data in the virtual machine, and dynamically updating the backup data according to the real-time change information;
and when the virtual machine fails, taking over the virtual machine by using the backup data.
Optionally, the real-time change information includes IO log data corresponding to the master data;
the dynamically updating the backup data according to the real-time change information includes:
according to the main data in the virtual machine, carrying out full update on the backup data according to a preset time period;
and after the full amount of updating, synchronously updating the backup data according to the IO log data.
Optionally, the performing full update on the backup data includes: and acquiring a full snapshot of a main storage disk in the virtual machine, and writing the full snapshot into the backup storage disk, wherein the main storage disk is used for storing the main data.
Optionally, the backup storage disk includes a data storage block and a log storage block, and the data storage block and the log storage block are combined and mapped to a logical storage device as the backup storage disk;
the data storage block is used for storing the backup data, and the log storage block is used for storing the IO log data.
Optionally, taking over the virtual machine by using the backup data includes: when the virtual machine fails, replacing a main storage disk in the virtual machine with the backup storage disk, and providing data service for the virtual machine by the backup storage disk, wherein the main storage disk is used for storing the main data.
Optionally, after taking over the virtual machine by using the backup data, the method further includes performing data recovery on the backup data.
Optionally, the performing data recovery on the backup data includes:
and restoring the backup data in the data storage block according to the IO log data stored in the log storage block, and restoring the backup data to a data state corresponding to a designated time node.
Optionally, the data storage block and the log storage block are subjected to combined mapping by using a device-Mapper technology.
In a second aspect, embodiments of the present specification provide a persistent data protection system.
The system is applied to a virtualization platform, wherein the virtualization platform comprises a virtual machine and a backup storage disk, and the backup storage disk is used for storing backup data corresponding to main data in the virtual machine; the system comprises:
the dynamic updating module is used for acquiring real-time change information of the main data in the virtual machine when the virtual machine works normally and dynamically updating the backup data according to the real-time change information;
and the fault takeover module is used for taking over the virtual machine by using the backup data when the virtual machine has a fault.
In a third aspect, the present specification further provides an electronic device with persistent data protection, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the persistent data protection method according to the first aspect when executing the computer program.
As can be seen from the above, the method, the system, and the electronic device for continuous data protection provided by the embodiments of the present specification have the following beneficial technical effects:
and dynamically updating the backup storage disk in real time in a normal working state of the virtual machine, so that the dynamic consistency and high availability of the main data relative to the backup data in the backup storage disk can be ensured. Therefore, when the virtual machine fails, the backup data which is consistent with the original main data in the virtual machine can directly take over the virtual machine, the backup storage disk continues to provide data service for the virtual machine, and normal operation of a virtualization platform system is ensured.
Drawings
The features and advantages of the present invention will be more clearly understood by reference to the accompanying drawings, which are illustrative and not to be construed as limiting the invention in any way, and in which:
FIG. 1 illustrates a timing diagram of CDP data recovery in an existing virtualization platform;
FIG. 2 is a schematic diagram illustrating a persistent data protection method according to one or more alternative embodiments of the present disclosure;
FIG. 3 is a schematic diagram illustrating a method for dynamically updating backup data in a persistent data protection method according to one or more alternative embodiments of the present disclosure;
FIG. 4 is a diagram illustrating a combined mapping relationship in the backup storage disk in a persistent data protection method according to one or more alternative embodiments of the present disclosure;
FIG. 5 is a block diagram illustrating a persistent data protection system according to one or more alternative embodiments of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device with persistent data protection according to one or more alternative embodiments of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In some important Data information systems, CDP (Continuous Data-Protection) technology is applied to protect critical Data. The CDP technology is also applied to the virtualization platform to protect data in the virtual machine, a virtual machine monitor is utilized in the virtualization platform to monitor real-time change of the data in the disk, and the real-time changed data is exported to an IO log for continuous data protection. When recovery is needed, the IO log is used for playback, and therefore data recovery of the virtual machine at the IO level is achieved.
In CDP technology, RTO (recovery Time Objective) and RPO (recovery Point Objective) are important metrics for data recovery, where RTO refers to the Time duration of data that is most likely to be lost, and RPO refers to the maximum Time duration required from disaster occurrence to system recovery. In the existing CDP scheme of the virtualization platform, due to the recording file attribute of the IO log, a virtual machine cannot be directly started when data fails, so that the RPO time is long, and quick recovery cannot be achieved.
Fig. 1 is a timing diagram illustrating CDP data recovery in a conventional virtualization platform. In the existing CDP scheme, a virtual machine cannot be directly started based on an IO log file, and data application needs to be performed based on a full snapshot point first to restore a logical volume to a specified time point. When the virtual machine fails and data recovery is needed, the data in the virtual machine is recovered to the data state at the last snapshot time point s1, and then data recovery is executed action by action according to the data read-write operation recorded in the CDP log. When the interval between the cdp log and the last snapshot time point is long, the RTO restored to the current time point t0 of the virtual machine is long.
In view of the above problems, a technical solution of the present disclosure is to provide a method for continuous data protection, which provides real-time synchronized backup data for a virtual machine in a virtualization platform, and maintains CDP characteristics while enabling the virtual machine to be pulled up quickly at the current time.
Based on the above object, in one aspect, the embodiments of the present specification provide a persistent data protection method.
One or more alternative embodiments of the present specification provide a method for persistent data protection, as shown in fig. 2. The method is applied to a virtualization platform, wherein the virtualization platform comprises a virtual machine and a backup storage disk, and the backup storage disk is used for storing backup data corresponding to main data in the virtual machine. The method comprises the following steps:
s1: and when the virtual machine works normally, acquiring real-time change information of the main data in the virtual machine, and dynamically updating the backup data according to the real-time change information.
In the virtualization platform, the backup data corresponding to the main data is stored in the backup storage disk. And when the virtual machine works normally, reading and writing operations are executed aiming at the main data, so that the main data is changed. The virtualization platform may acquire real-time change information of the main data when the main data changes, and dynamically update the backup data in the backup storage disk according to the real-time change information.
S2: and when the virtual machine fails, taking over the virtual machine by using the backup data.
When the virtual machine has data failure, the main data in the virtual machine is in an unreadable state, and the virtual machine cannot normally run. In this case, the virtual machine may be directly taken over by using the backup data in the backup storage disk, and the backup storage disk is used to replace a main storage disk in the virtual machine, and the main storage disk is used to store the main data, and the data service is provided to the virtual machine by the backup storage disk.
In the continuous data protection method, the backup storage disk is dynamically updated in real time in a normal working state of the virtual machine, so that the dynamic consistency and high availability of the main data relative to the backup data in the backup storage disk can be ensured. Therefore, when the virtual machine fails, the backup data which is consistent with the original main data in the virtual machine can directly take over the virtual machine, the backup storage disk continues to provide data service for the virtual machine, and normal operation of a virtualization platform system is ensured.
As shown in fig. 3, in a method for continuous data protection provided in one or more optional embodiments of this specification, the real-time change information may include IO log data corresponding to the main data, where the IO log data is used to record read-write operation information of the virtual machine for the main data.
The dynamically updating the backup data according to the real-time change information includes:
s301: and according to the main data in the virtual machine, carrying out full update on the backup data according to a preset time period.
In some alternative embodiments, the main data may be recorded in the form of a data snapshot. When the backup data is fully updated according to the main data, a full snapshot of the main data stored in a main storage disk in the virtual machine at the corresponding moment may be obtained first, and then the full snapshot is written into the backup storage disk.
And writing the full snapshot into the backup storage disk, wherein the backup data in the backup storage disk is completely consistent with the main data in the virtual machine.
S302: and after the full update, synchronously updating the backup data according to the IO log data.
After each full update, the backup data in the backup storage disk can be synchronously operated according to the data read-write operation information recorded by the IO log data acquired in real time, so as to ensure the synchronous update of the backup data relative to the main data.
As shown in fig. 4, in a persistent data protection method provided in one or more alternative embodiments of the present specification, the backup storage disk includes data storage blocks and log storage blocks, and the data storage blocks and the log storage blocks are mapped to a logical storage device as the backup storage disk in combination.
In the virtualization platform, the data storage blocks and the log storage blocks may be configured to be mapped in combination into a logical storage device as the backup storage disk, so as to provide data backup for the main data in the virtual machine.
In some optional embodiments, a device-Mapper technique may be adopted to perform combined mapping on the data storage block and the log storage block, where a logical relationship between the data storage block and the log storage block may be configured as log write.
The data storage block and the log storage block are combined and mapped to serve as a logical storage device, and the logical storage device can be formatted into a file system and used as the backup storage disk of the virtual machine to be mounted to the virtual machine. In some optional embodiments, the backup storage disk may include a plurality of the logical storage devices mapped by a plurality of sets of the data storage blocks in combination with the log storage blocks.
One or more optional embodiments of the present specification provide a persistent data protection method, which further includes, after taking over the virtual machine by using the backup data, performing data recovery on the backup data. When data recovery is performed on the backup data, the backup data in the data storage block may be recovered according to the IO log data stored in the log storage block, and the backup data is recovered to a data state corresponding to a designated time node.
The IO log data is also recorded in the backup storage disk, and when recovery needs to be performed based on the backup data, reverse data recovery can be performed operation by operation according to read-write operation information recorded by the IO log data. In this way, according to the IO log data, the backup data can be rolled back to be restored to the data state corresponding to the intended time node.
In the continuous data protection method, the backup storage disk is dynamically updated in real time in a normal working state of the virtual machine, so that the dynamic consistency and high availability of the main data relative to the backup data in the backup storage disk can be ensured. Therefore, when the virtual machine fails, the backup data which is consistent with the original main data in the virtual machine can directly take over the virtual machine, the backup storage disk continues to provide data service for the virtual machine, and normal operation of a virtualization platform system is ensured. Furthermore, data recovery can be performed on the backup data according to the IO log data, and the data is rolled back and recovered to any time point.
It should be noted that the method of one or more embodiments of the present disclosure may be executed by a single device, such as a computer or a server. The method of the embodiment can also be applied to a distributed scene and is completed by the mutual cooperation of a plurality of devices. In such a distributed scenario, one of the devices may perform only one or more steps of the method of one or more embodiments of the present disclosure, and the devices may interact with each other to complete the method.
It should be noted that the above description describes certain embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Based on the same inventive concept, corresponding to the method of any embodiment, the embodiment of the present specification further provides a persistent data protection system.
Referring to fig. 5, the persistent data protection system is applied to a virtualization platform, where the virtualization platform includes a virtual machine and a backup storage disk, and the backup storage disk is used to store backup data corresponding to main data in the virtual machine. The system comprises:
the dynamic updating module is used for acquiring real-time change information of the main data in the virtual machine when the virtual machine works normally and dynamically updating the backup data according to the real-time change information;
and the fault takeover module is used for taking over the virtual machine by using the backup data when the virtual machine has a fault.
In one or more optional embodiments of the present specification, in a persistent data protection system, the real-time change information includes IO log data corresponding to the main data. The dynamic updating module is further configured to perform full updating on the backup data according to a preset time period and according to the main data in the virtual machine; and after the full update, synchronously updating the backup data according to the IO log data.
In a system for continuous data protection provided in one or more optional embodiments of the present specification, the dynamic update module further obtains a full snapshot of a primary storage disk in the virtual machine, and writes the full snapshot to the backup storage disk, where the primary storage disk is used to store the primary data.
In one or more alternative embodiments of the present specification, a persistent data protection system is provided, where the backup storage disk includes a data storage block and a log storage block, the data storage block and the log storage block are combined and mapped into a logic storage device as the backup storage disc;
the data storage block is used for storing the backup data, and the log storage block is used for storing the IO log data.
In one or more alternative embodiments of the present specification, the failure takeover module is further configured to, when the virtual machine fails, replace a primary storage disk in the virtual machine with the backup storage disk, and provide data services to the virtual machine by the backup storage disk, where the primary storage disk is used to store the primary data.
One or more alternative embodiments of the present specification provide a persistent data protection system, further comprising a data recovery module. And the data recovery module is used for performing data recovery on the backup data after the fault takeover module takes over the virtual machine by using the backup data.
In a continuous data protection system provided in one or more optional embodiments of this specification, the data recovery module is further configured to recover, according to the IO log data stored in the log storage block, the backup data in the data storage block, and recover the backup data to a data state corresponding to a specified time node.
In one or more alternative embodiments of the present specification, in a persistent data protection system, the data storage block and the log storage block are mapped in a combined manner by using a device-Mapper technique.
For convenience of description, the above devices are described as being divided into various modules by functions, which are described separately. Of course, the functionality of the various modules may be implemented in the same one or more software and/or hardware implementations of the present disclosure.
The apparatus in the foregoing embodiment is used to implement the corresponding persistent data protection method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functionality of the modules may be implemented in the same one or more software and/or hardware implementations in implementing one or more embodiments of the present description.
The apparatus of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Fig. 6 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the electronic device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute a relevant program to implement the technical solution of the persistent data protection method provided in the embodiments of the present specification.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, bluetooth and the like).
The bus 1050 includes a path to transfer information between various components of the device, such as the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only the components necessary to implement the embodiments of the present disclosure, and need not include all of the components shown in the figures.
The electronic device of the foregoing embodiment is used to implement the corresponding persistent data protection method in any one of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described again here.
Based on the same inventive concept, corresponding to any of the above-described embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the persistent data protection method according to any of the above embodiments.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The computer instructions stored in the storage medium of the foregoing embodiment are used to enable the computer to execute the persistent data protection method according to any embodiment, and have the beneficial effects of the corresponding method embodiments, which are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the spirit of the present disclosure, features from the above embodiments or from different embodiments may also be combined, steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present description as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown in the provided figures, for simplicity of illustration and discussion, and so as not to obscure one or more embodiments of the disclosure. Furthermore, devices may be shown in block diagram form in order to avoid obscuring the understanding of one or more embodiments of the present description, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the one or more embodiments of the present description are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the disclosure, it should be apparent to one skilled in the art that one or more embodiments of the disclosure can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures, such as Dynamic RAM (DRAM), may use the discussed embodiments.
It is intended that the one or more embodiments of the present specification embrace all such alternatives, modifications and variations as fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit or scope of the disclosure are intended to be included within the scope of the disclosure.

Claims (10)

1. A continuous data protection method is applied to a virtualization platform, wherein the virtualization platform comprises a virtual machine and a backup storage disk, and the backup storage disk is used for storing backup data corresponding to main data in the virtual machine; the method comprises the following steps:
when the virtual machine works normally, acquiring real-time change information of the main data in the virtual machine, and dynamically updating the backup data according to the real-time change information;
and when the virtual machine fails, taking over the virtual machine by using the backup data.
2. The method according to claim 1, wherein the real-time change information includes IO log data corresponding to the main data;
the dynamically updating the backup data according to the real-time change information includes:
according to the main data in the virtual machine, performing full update on the backup data according to a preset time period;
and after the full update, synchronously updating the backup data according to the IO log data.
3. The method of claim 2, wherein said updating the full amount of the backup data comprises: and acquiring a full snapshot of a main storage disk in the virtual machine, and writing the full snapshot into the backup storage disk, wherein the main storage disk is used for storing the main data.
4. The method of claim 2, wherein the backup storage disk comprises data storage blocks and log storage blocks, and the data storage blocks and the log storage blocks are mapped into a logical storage device as the backup storage disk in combination;
the data storage block is used for storing the backup data, and the log storage block is used for storing the IO log data.
5. The method of claim 1, wherein the taking over the virtual machine with the backup data comprises: when the virtual machine fails, replacing a main storage disk in the virtual machine with the backup storage disk, and providing data service for the virtual machine by the backup storage disk, wherein the main storage disk is used for storing the main data.
6. The method of claim 4, further comprising, after taking over the virtual machine with the backup data, performing a data recovery for the backup data.
7. The method of claim 6, wherein the performing data recovery on the backup data comprises:
and according to the IO log data stored in the log storage block, restoring the backup data in the data storage block, and restoring the backup data to a data state corresponding to a node at a specified time.
8. The method of claim 4, wherein the data storage blocks and the log storage blocks are mapped in a combination using device-Mapper technology.
9. The continuous data protection system is applied to a virtualization platform, wherein the virtualization platform comprises a virtual machine and a backup storage disk, and the backup storage disk is used for storing backup data corresponding to main data in the virtual machine; the system comprises:
the dynamic updating module is used for acquiring real-time change information of the main data in the virtual machine when the virtual machine works normally and dynamically updating the backup data according to the real-time change information;
and the fault takeover module is used for taking over the virtual machine by using the backup data when the virtual machine has a fault.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 8 when executing the program.
CN202211227829.6A 2022-10-09 2022-10-09 Continuous data protection method and system and electronic equipment Pending CN115480880A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211227829.6A CN115480880A (en) 2022-10-09 2022-10-09 Continuous data protection method and system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211227829.6A CN115480880A (en) 2022-10-09 2022-10-09 Continuous data protection method and system and electronic equipment

Publications (1)

Publication Number Publication Date
CN115480880A true CN115480880A (en) 2022-12-16

Family

ID=84394002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211227829.6A Pending CN115480880A (en) 2022-10-09 2022-10-09 Continuous data protection method and system and electronic equipment

Country Status (1)

Country Link
CN (1) CN115480880A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115858222A (en) * 2022-12-19 2023-03-28 安超云软件有限公司 Virtual machine fault processing method and system and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114510369A (en) * 2020-11-17 2022-05-17 云坞科技(北京)有限公司 Data recovery method based on complete machine continuous data protection

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114510369A (en) * 2020-11-17 2022-05-17 云坞科技(北京)有限公司 Data recovery method based on complete machine continuous data protection

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115858222A (en) * 2022-12-19 2023-03-28 安超云软件有限公司 Virtual machine fault processing method and system and electronic equipment
CN115858222B (en) * 2022-12-19 2024-01-02 安超云软件有限公司 Virtual machine fault processing method, system and electronic equipment

Similar Documents

Publication Publication Date Title
US10860447B2 (en) Database cluster architecture based on dual port solid state disk
CN110019498B (en) Log synchronization method and device, storage medium and electronic equipment
CN113626256B (en) Virtual machine disk data backup method, device, terminal and storage medium
US10609141B2 (en) Methods and apparatuses for cluster switching
CN104899071A (en) Recovery method and recovery system of virtual machine in cluster
EP3474143B1 (en) Method and apparatus for incremental recovery of data
CN103619008A (en) System and method for performing backup and restoration on data
JP6715334B2 (en) GPU resource reconstruction method, user device, system and storage medium
JP2019527883A (en) Database data change request processing method and apparatus
KR20220125198A (en) Data additional writing method, apparatus, electronic device, storage medium and computer programs
CN108810127A (en) Disaster recovery method based on block chain and device
CN104750755A (en) Method and system for recovering data after switching between main database and standby database
CN115167782B (en) Temporary storage copy management method, system, equipment and storage medium
CN115480880A (en) Continuous data protection method and system and electronic equipment
CN112445780A (en) Master-slave architecture deployment method and device based on snapshot
US20150112946A1 (en) Computing device and data recovery method for distributed file system
CN108647112B (en) Data backup method and device and distributed transaction processing system
CN113641446A (en) Memory snapshot creating method, device and equipment and readable storage medium
CN110018986B (en) Abnormal snapshot identification method and device
CN111367710A (en) eMMC problem reduction method and device
CN111399780B (en) Data writing method, device and equipment
CN110046060B (en) Backup method and device for asset data and business server
CN112765129A (en) Method and equipment for realizing database data version management
CN109426589B (en) File repair method and device
CN111858175A (en) Method and equipment for backing up cloud platform data based on mobile storage device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20221216