CN110032477A - A kind of method, system and associated component for restoring continuous data protection - Google Patents
A kind of method, system and associated component for restoring continuous data protection Download PDFInfo
- Publication number
- CN110032477A CN110032477A CN201910309922.3A CN201910309922A CN110032477A CN 110032477 A CN110032477 A CN 110032477A CN 201910309922 A CN201910309922 A CN 201910309922A CN 110032477 A CN110032477 A CN 110032477A
- Authority
- CN
- China
- Prior art keywords
- data
- target
- virtual machine
- disk
- base point
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000003860 storage Methods 0.000 claims abstract description 33
- 238000011084 recovery Methods 0.000 claims abstract description 24
- 230000006870 function Effects 0.000 claims description 70
- 238000005192 partition Methods 0.000 claims description 11
- 230000002159 abnormal effect Effects 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 9
- 210000000056 organ Anatomy 0.000 claims 1
- 230000000007 visual effect Effects 0.000 claims 1
- 230000008569 process Effects 0.000 abstract description 16
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 230000001360 synchronised effect Effects 0.000 description 27
- 238000005516 engineering process Methods 0.000 description 13
- 230000008859 change Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000001419 dependent effect Effects 0.000 description 3
- 230000008030 elimination Effects 0.000 description 3
- 238000003379 elimination reaction Methods 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 239000013589 supplement Substances 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000002045 lasting effect Effects 0.000 description 2
- 239000003550 marker Substances 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000009993 protective function Effects 0.000 description 1
- 239000011800 void material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1471—Saving, restoring, recovering or retrying involving logging of persistent data for recovery
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
This application discloses a kind of methods for restoring continuous data protection, and the method includes the data variation information using target disk in virtual machine monitor record target time section;Wherein, target time section is that current base point generates the corresponding period at moment to current time;When receiving backup functionality recovery instruction, according to the delta data in data variation synchronizing information target disk, new current base point is generated;Virtual machine IO log is recorded using the new current base point, to restore continuous data protection function.This method can be improved the working efficiency for restoring continuous data protection function, optimize the data backup process of virtual machine.Disclosed herein as well is a kind of system, a kind of computer readable storage medium and a kind of electronic equipment for restoring continuous data protection, have the above beneficial effect.
Description
Technical field
The present invention relates to technical field of virtualization, in particular to a kind of method, system, one kind for restoring continuous data protection
Computer readable storage medium and a kind of electronic equipment.
Background technique
CDP (Continuous Data Protection, continuous data protection) technology is that a kind of common virtual machine is standby
Part technology, CDP technology are able to record and save each WRITE IO of virtual machine and (write IO, write behaviour for data in magnetic disk
Make), it can be restored to any time point of nearest a period of time when virtual machine system breaks down, realize the RPO of IO rank
(Recovery Point Object, recovery point objectives).
When VMM (Virtual Machine Monitor, virtual machine monitor) opens CDP for the first time, need first to virtual machine
Virtual disk VDISK to carry out primary complete data synchronous, generate BP (Base Point) datum mark, it is hereafter all
IOLOG is to depend on and this BP point.CDP can continue to record each WRITE IO of virtual machine in the process of running, and be protected
IOLOG (Input/Output LOG, read/write operation log) is saved as, each IOLOG all relies on the IOLOG data of front, shape
At a chain type dependency structure.If the storage for saving IOLOG at this time is broken down, CDP function can not continue to operate normally,
In this regard, processing scheme in the related technology are as follows: directly stopping CDP function but keep virtual machine operate normally, when recovery of stomge just
Chang Shi needs to carry out the new BP datum mark of the synchronous generation of primary complete data, new IOLOG is made to be dependent on new BP datum mark
After, CDP function can just resume operation.But if the processing method of above-mentioned the relevant technologies wants that restoring CDP function needs to have synchronized
Whole VDISK data generate new BP point, need synchronous data flow excessive, need to occupy a large amount of memory space and generate
A large amount of I/O operation has seriously affected the recovery efficiency of CDP function.
Therefore, the working efficiency for restoring continuous data protection function how is improved, the data backup process of virtual machine is optimized
It is a technical problem that technical personnel in the field need to solve at present.
Summary of the invention
The purpose of the application is to provide a kind of method, system, a kind of computer-readable storage for restoring continuous data protection
Medium and a kind of electronic equipment, can be improved the working efficiency for restoring continuous data protection function, and the data for optimizing virtual machine are standby
Part process.
In order to solve the above technical problems, the application provides a kind of method for restoring continuous data protection, this method comprises:
Utilize the data variation information of target disk in virtual machine monitor record target time section;Wherein, the object time
Section is that current base point generates the corresponding period at moment to current time;
When receiving backup functionality and restoring instruction, according to the delta data in data variation synchronizing information target disk,
Generate new current base point;
Virtual machine IO log is recorded using new current base point, to restore continuous data protection function.
Optionally, include: according to the delta data in data variation synchronizing information target disk
Target data address is determined according to data variation information, synchronizes the corresponding delta data of target data address.
Optionally, this method further include:
It is abnormal to judge whether continuous data protection function storage occurs;
If so, stopping continuous data protection function and generating backup functionality recovery instruction.
Optionally, include: using the data variation information of target disk in virtual machine monitor record target time section
The corresponding bitmap of target disk in target time section is updated using virtual machine monitor;Wherein, bitmap is for recording
The variable condition of each disk partition of target disk in target time section.
Optionally, updating the corresponding bitmap of target disk in target time section using virtual machine monitor includes:
Determine the delta data in target time section in target disk using virtual machine monitor, and by bitmap with variation
The corresponding item of data is set as target value.
Present invention also provides a kind of system for restoring continuous data protection, which includes:
Logging modle, for the data variation information using target disk in virtual machine monitor record target time section;
Wherein, target time section is that current base point generates the corresponding period at moment to current time;
Synchronization module, for when receive backup functionality restore instruction when, according to data variation synchronizing information target disk
In delta data, generate new current base point;
Functional rehabilitation module, for recording virtual machine IO log using new current base point, to restore duration data
Defencive function.
Optionally, logging modle is corresponding particularly for target disk in target time section is updated using virtual machine monitor
Bitmap module;Wherein, bitmap is used to record the variable condition of each disk partition of target disk in target time section.
Optionally, logging modle is specially to determine target data address according to data variation information, with synchronizing target data
The module of the corresponding delta data in location.
Present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, computer program
The step of method that above-mentioned recovery continuous data protection is realized when execution executes.
Present invention also provides a kind of electronic equipment, including memory and processor, computer journey is stored in memory
The step of sequence, processor realizes above-mentioned recovery continuous data protection method when calling the computer program in memory executes.
This application provides a kind of methods for restoring continuous data protection, when recording target including the use of virtual machine monitor
Between in section target disk data variation information;Wherein, target time section is that current base point generates moment to current time pair
The period answered;When receiving backup functionality recovery instruction, according to the variation number in data variation synchronizing information target disk
According to generating new current base point;Virtual machine IO log is recorded using new current base point, to restore continuous data protection
Function.
The application utilizes virtual machine monitor record target disk during continuous data protection function operates normally
Data variation information only carries out data changed in target disk after there is storage failure and the storage Failure elimination
Simultaneously operating generates new current base point, records virtual machine IO log using new current base point, to restore to continue number
According to defencive function.In above-mentioned continuous data protection functional rehabilitation scheme provided by the present application, it is only necessary in synchronous target disk
Changed data greatly reduce the workload for restoring process without the total data in synchronous target disk.Into one
Step, since the application is using the data variation information of virtual machine monitor record target disk, without pacifying in an operating system
Part driving is plugged, the influence to operating system performance and stability is avoided.Therefore, technical solution provided by the present application can mention
Height restores the working efficiency of continuous data protection function, optimizes the data backup process of virtual machine.The application additionally provides simultaneously
A kind of a kind of system, computer readable storage medium and a kind of electronic equipment for restoring continuous data protection, has above-mentioned beneficial
Effect, details are not described herein.
Detailed description of the invention
In ord to more clearly illustrate embodiments of the present application, attached drawing needed in the embodiment will be done simply below
It introduces, it should be apparent that, the drawings in the following description are only some examples of the present application, for ordinary skill people
For member, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart for the method for restoring continuous data protection provided by the embodiment of the present application;
Fig. 2 is that IOLOG generates schematic diagram when CDP function starts for the first time;
IOLOG generates schematic diagram when Fig. 3 is CDP function non-initial start;
Fig. 4 is the flow chart for the method that another kind provided by the embodiment of the present application restores continuous data protection;
Fig. 5 is a kind of structural schematic diagram for the system for restoring continuous data protection provided by the embodiment of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Traditional periodic backups mode can only accomplish the standby of hour rank to the virtual machine run on virtual platform
Part, i.e. RPO is hour grade.That is this traditional periodic backups mode, which once breaks down, will be lost hour grade
Data volume.Therefore, occurs CDP (continuous data protection) technology in industry, continuous data protection technology can recorde virtual machine
Each WRITE IO of VM (Virtual Machine) is simultaneously preserved, and when virtual machine VM system breaks down, can be restored
To any time point of nearest a period of time, the RPO of IO rank is realized.But during continuous data protection, if occurring
Store the processing mode of failure the relevant technologies are as follows: directly stopping continuous data protection function, but VM is kept to continue to run.Work as storage
After restoring normal, it cannot be recovered immediately since the dependence of IOLOG chain type has been destroyed continuous data protection function, need to carry out one
Secondary complete data are synchronous to generate new BP datum mark, is dependent on new IOLOG after it, continuous data protection function ability
It resumes operation.But above-mentioned the relevant technologies need all data in timing disk in recovery process, need to occupy a large amount of
Memory space simultaneously generates a large amount of I/O operation, has seriously affected the recovery efficiency of CDP function.Therefore, in the related technology
Many disadvantages, the application provide the recovery scheme of following several continuous data protection functions, can be improved and restore duration data guarantor
The working efficiency of protective function optimizes the data backup process of virtual machine.
Below referring to Figure 1, Fig. 1 is a kind of stream for the method for restoring continuous data protection provided by the embodiment of the present application
Cheng Tu.
Specific steps may include:
S101: the data variation information of target disk in virtual machine monitor record target time section is utilized;
Wherein, continuous data protection function (continual data protection, CDP) realizes the RPO of IO rank
(Recovery Point Object, recovery point objectives).Continuous data protection function can by virtual machine monitor (VMM,
Virtual Machine Monitor) starting, virtual machine monitor is the realization virtualization run in host system
Software.Fig. 2 is referred to, Fig. 2 is that IOLOG generates schematic diagram when CDP function starts for the first time, starts for the first time in virtual machine monitor and holds
When continuous data protection function, needs first to carry out primary complete data to the virtual disk VDISK of virtual machine to synchronize, generate first
A BP (Base Point, datum mark), hereafter all IOLOG are to depend on to realize with this BP point.Continuous data protection function
During startup, each WRITE IO of record virtual machine VM can be continued, and saves as IOLOG, each IOLOG is all relied on
The IOLOG data of front form a chain type dependency structure.
It is understood that there may be changes for the datum mark of CDP, such as when CDP function is because of storage failure pause
When, the chain type dependency structure constructed before can be destroyed, and new IOLOG can not be made to continue to open dependent on the IOLOG data of front
Dynamic CDP function.Therefore, new datum mark can be regenerated after chain type dependency structure is destroyed, to continue to construct newly
Chain type dependency structure.
New datum mark is generated to need to carry out data to the virtual disk of virtual machine to synchronize, and the relevant technologies mentioned above
The operation of middle synchronous virtual disk are as follows: whole data in magnetic disk of synchronous virtual disk, thus bring CDP functional rehabilitation low efficiency
Under problem.
Refer to Fig. 3, IOLOG generates schematic diagram when Fig. 3 is CDP function non-initial start, and the datum mark of CDP function can be with
As the record benchmark of WRITE IO, therefore when the chain type dependency structure constructed before is destroyed, it is thus necessary to determine that new record
Benchmark.Further, which can be used to indicate that the data status of current time virtual disk, it is therefore desirable to virtual magnetic
Disk carries out the synchronous record benchmark that just can determine that new WRITE IO of data.But when the non-datum mark of generation for the first time, by
In the operation that there is synchronous virtual disk total data before, therefore it can only synchronize and be produced in the presence of the data to change
New datum mark.
Data variation information of the present embodiment first with target disk in virtual machine monitor record target time section, root
Changed data in target disk can be determined according to data variation information, changed data are carried out so as to only same
Step.It should be noted that the target time section mentioned in S101 be current base point generate moment to current time it is corresponding when
Between section, that is to say, that the present embodiment has recorded total data moment of last synchronous target disk to the number between current time
According to change information.The present embodiment does not limit the quantity of the datum mark generated, and current base point is in CDP function operational process
The datum mark that chain type dependency structure where current time corresponding IOLOG data is relied on.The current base point generation moment refers to
At the time of current base point (i.e. the currently used corresponding datum mark of chain type dependency structure of CDP function) is corresponding, current base point
All data that target disk generates the moment in current base point are synchronized, therefore are only needed after current base point generates the moment
WRITE I/O operation is recorded on the basis of current base point can be realized CDP function.Due to after current base point moment
The chain type dependency structure of CDP function can have been based on current base point and realize CDP function, therefore current time refers to that system is present
Time point, and current base point generate the moment refer to the datum mark of the currently used chain type dependency structure of CDP function in history
At the time of synchronous target disk corresponds to.It illustrates above-mentioned discussion: after such as starting CDP function, passing through synchronous 12:00 moment institute
Current base point is generated after all data of corresponding target disk, 12:00 is referred to as current base point moment at this time;If working as the time
It has passed through in half an hour and half an hour CDP function there is no storages abnormal, 12:30 is referred to as current time at this time, due to
The datum mark of CDP function does not change, therefore current base point moment is still 12:00, the object time that the present embodiment is previously mentioned
Section refers to current base point moment to this period of time at current time (i.e. 12:00-12:30).
It should be noted that there is following data change information recording method in the related art: pacifying in operating system
Part driving is plugged, is driven by plug-in unit and intercepts operating system IO to record data variation information.But it is above-mentioned in the related technology
Record data variation information method have the following problems: 1) plug-in unit driving need to be adapted to various operating system versions (for example,
Linux operating system release version has hundreds of), maintenance workload is huge to be adapted to completely for plug-in unit driving, causes much to grasp
Making system can not support, there are significant limitations for technical solution;2) plug-in unit driving needs to intercept in IO of the bottom to system,
Seriously affect the performance of system.3) plug-in unit driving operates in the kernel state of operating system, brings serious stability risk, if
Code logic goes wrong, and can directly result in operating system collapse.Relative to above-mentioned data variation information note in the related technology
Recording method, the present embodiment record data variation information using virtual machine monitor VMM, drive without installing plug-in unit in operating system
It is dynamic, it avoids and the performance and stability of operating system is impacted, and compatible all operating system versions, dispose more square
Just.
S102: when receiving backup functionality recovery instruction, according to the variation in data variation synchronizing information target disk
Data generate new current base point;
Wherein, when there is the storage failure of IOLOG, CDP function will be unable to continue to operate normally, in storage fault recovery
Later, backup functionality can be issued and restore instruction to restore CDP function.Therefore, as a kind of feasible embodiment,
There may also be following before S102: it is abnormal to judge whether continuous data protection function storage occurs;If so, stopping lasting number
According to defencive function and generate backup functionality recovery instruction.
When receiving backup functionality and restoring instruction, in order to rebuild the chain type dependency structure of CDP it needs to be determined that new
Current base point.Backup functionality restores instruction either repairing the instruction that issues after storage exception by staff, can also be with
It is that memory state detection module detects the instruction issued automatically after storage abnormal restoring mentioned above, does not limit backup herein
Functional rehabilitation instruction issues form.This step synchronizes behaviour to the delta data in target disk according to data variation information
Make, since the current base point that this step generates is not the first datum mark of CDP, in the variation number for being synchronized target disk
On the basis of can according to the target disk data of preamble obtain the total data of current target disk.It needs
Bright, the data variation information being previously mentioned in the present embodiment refers to the description whether changed letter in each position of target disk
Breath, data variation information may include the position where changed data in the target time period.As a kind of feasible
Target disk can be divided into multiple block (that is, block) according to fixed size by embodiment, be generated for all block
Bitmap, when the data for detecting certain specific block change, by marker corresponding in bitmap by 0 set be 1.
It can be to own corresponding to 1 by marker when needing according to delta data in data variation synchronizing information target disk
Data are synchronized as delta data, and then generate new current base point.It is discussed above below by illustration, if mesh
Marking disk includes tri- blocks of A, B, C, and the corresponding data of block A synchronized when generating former current base point are a, block
The corresponding data of B are b, and the corresponding data of block C are c;The data of the block B of target disk are become from b in the target time period
X is changed according to the data in data variation information block B obtained in S101.In order to reduce synchrodata
New current base point is generated on the basis of amount, can the data only in the block B to target disk synchronize to obtain x.By
In being synchronized data a, b, c when generating former current base point, on the basis of the data after learning that b has changed and changes is x,
All data of available current target disk are a, x, c, and then realize and just given birth to by the data for only synchronizing block B
The purpose of the current base point of Cheng Xin." data of block B send variation " is equivalent to data variation information in the example above,
" data x " is equivalent to about delta data, can be by data variation information (data of block B send variation) as determining variation
(reference of data x) finally synchronizes delta data, generates new datum mark data.
S103: virtual machine IO log is recorded using new current base point, to restore continuous data protection function.
Wherein, on the basis of having obtained new current base point, new current base point can be depended on and persistently record void
Each WRITE IO of quasi- machine is simultaneously saved as IOLOG (i.e. IO log), and each IOLOG all relies on the IOLOG data shape of front
The recovery of continuous data protection function is realized at chain type dependency structure.Virtual machine IO log is for recording virtual machine to disk number
According to read-write operation log.
The present embodiment records target disk using virtual machine monitor during continuous data protection function operates normally
Data variation information, when there is storage failure and after the storage Failure elimination only to data changed in target disk into
Row simultaneously operating generates new current base point, records virtual machine IO log using new current base point, to restore to continue
Data protection function.In above-mentioned continuous data protection functional rehabilitation scheme provided in this embodiment, it is only necessary to synchronous target magnetic
Changed data greatly reduce the workload for restoring process without the total data in synchronous target disk in disk.
Further, since the present embodiment is using the data variation information of virtual machine monitor record target disk, without being in operation
Plug-in unit driving is installed in system, avoids the influence to operating system performance and stability.Therefore, technical side provided in this embodiment
Case can be improved the working efficiency for restoring continuous data protection function, optimize the data backup process of virtual machine.
As the further supplement of embodiment corresponding for Fig. 1, according to data variation synchronizing information target magnetic in S102
The operation of delta data in disk is specifically as follows: determining target data address, synchronous target data according to data variation information
The corresponding delta data in address.
Data variation information may include the target data for the data that variation (such as operations such as modification, write-ins) has occurred
Location can synchronize corresponding data during progress data are synchronous according to target data address.
As the further supplement of embodiment corresponding for Fig. 1, when recording target using virtual machine monitor in S101
Between in section the operation of the data variation information of target disk be specifically as follows: updated in target time section using virtual machine monitor
The corresponding bitmap of target disk;Wherein, bitmap is used to record the variation of each disk partition of target disk in target time section
State.
Above-mentioned supplement is to safeguard bitmap using virtual machine monitor, utilizes the bitmap record each disk partition of target disk
Variable condition.Further, it can use virtual machine monitor and determine delta data in target time section in target disk, and
Target value is set by item corresponding with delta data in bitmap.It illustrates aforesaid operations: target disk being divided into multiple
The block of 64K size, each block correspond to an item in bitmap, bitmap all item defaults 0, if block number
According to changing, item corresponding in bitmap is just set as 1.
Fig. 4 is referred to below, and Fig. 4 is the method that another kind provided by the embodiment of the present application restores continuous data protection
Flow chart, specific steps may include:
S201: the delta data in target time section in target disk is determined using virtual machine monitor, and will be in bitmap
Item corresponding with delta data is set as target value;
Wherein, bitmap is used to record the variable condition of each disk partition of target disk in target time section.When target
Between section be that current base point generates corresponding period at moment to current time.This step is lasting using virtual machine monitor VMM
One bitmap (bitmap) structure of maintenance of change, above-mentioned bitmap can be used to mark from target disk after a nearest datum mark
The data of which position are changed.As a kind of feasible embodiment, target disk can be divided by the present embodiment
The disk partition block, each disk partition block of multiple default sizes correspond to an item in bitmap, all items of bitmap
Default 0;If block data change, 1 just is set by item corresponding in bitmap.
S202: it is abnormal to judge whether continuous data protection function storage occurs;If so, stopping continuous data protection function
And it generates backup functionality and restores to instruct and enter S203.
After VMM runs a period of time, all changed disk partition block can be in bitmap in target disk
There is record.If CDP function is encountered abnormal and interrupted at this time, when restoring CDP function again, it may not need and synchronize completely
VDISK data, but analyze bitmap and synchronize the corresponding data in disk section changed, generate new current base
Point.Specifically, can be continued to store according to the corresponding IOLOG memory space of continuous data protection function new IOLOG come
Judge whether continuous data protection function storage exception occurs, then sentences when IOLOG memory space can not store new IOLOG data
Determine continuous data protection function and storage exception occurs.Such as when detecting that the residual storage capacity of IOLOG memory space is 0, sentence
Determine continuous data protection function and storage exception occurs;It, can also when for example detecting that the network connection of IOLOG memory space disconnects again
To determine that it is abnormal that storage occurs in continuous data protection function.
S203: when receiving backup functionality recovery instruction, determining target data address according to data variation information, synchronous
The corresponding delta data of target data address generates new current base point;
Wherein, due to not needing to synchronize complete target disk data, the generating process of new current base point quickly, makes
Obtaining CDP function can rapidly resume operation, and the IOLOG hereafter persistently recorded has relied on new current base point and (increases
Measure datum mark).
S204: virtual machine IO log is recorded using new current base point, to restore continuous data protection function.
Wherein, the IOLOG that virtual machine monitor VMM is recorded after this step all relies on this new current base point.
Above-described embodiment can reduce the data volume of synchronous target disk on a large scale, can quickly finish very much number
According to synchronization, reduce the lower deployment cost of user.Further, maintenance is responsible for by virtual machine monitor due to bitmap, without in guest
The driving of installation plug-in unit, avoids and makes to the performance and stability of guest operating system in operating system (client operating system)
At influence, and compatible all operating system versions, deployment are more convenient.
Fig. 5 is referred to, Fig. 5 shows for a kind of structure of system for restoring continuous data protection provided by the embodiment of the present application
It is intended to;
The system may include:
Logging modle 100, for being believed using the data variation of target disk in virtual machine monitor record target time section
Breath;Wherein, target time section is that current base point generates the corresponding period at moment to current time;
Synchronization module 200, for when receive backup functionality restore instruction when, according to data variation synchronizing information target magnetic
Delta data in disk generates new current base point;
Functional rehabilitation module 300, for recording virtual machine IO log using new current base point, to restore to continue number
According to defencive function.
The present embodiment records target disk using virtual machine monitor during continuous data protection function operates normally
Data variation information, when there is storage failure and after the storage Failure elimination only to data changed in target disk into
Row simultaneously operating generates new current base point, records virtual machine IO log using new current base point, to restore to continue
Data protection function.In above-mentioned continuous data protection functional rehabilitation scheme provided in this embodiment, it is only necessary to synchronous target magnetic
Changed data greatly reduce the workload for restoring process without the total data in synchronous target disk in disk.
Further, since the present embodiment is using the data variation information of virtual machine monitor record target disk, without being in operation
Plug-in unit driving is installed in system, avoids the influence to operating system performance and stability.Therefore, technical side provided in this embodiment
Case can be improved the working efficiency for restoring continuous data protection function, optimize the data backup process of virtual machine.
Further, logging modle 100 updates target magnetic in target time section particularly for using virtual machine monitor
The module of the corresponding bitmap of disk;Wherein, bitmap is used to record the variation of each disk partition of target disk in target time section
State.
Further, synchronization module 200 is specially when receiving backup functionality recovery instruction, according to data variation information
It determines target data address, synchronizes the module of the corresponding delta data of target data address.
Further, the system further include:
Judgment module, for judging it is abnormal whether continuous data protection function storage occurs;If so, stopping duration data
Defencive function simultaneously generates backup functionality recovery instruction.
Further, logging modle 100 is specially and is determined in target time section in target disk using virtual machine monitor
Delta data, and set item corresponding with delta data in bitmap to the module of target value.
Since the embodiment of components of system as directed is corresponded to each other with the embodiment of method part, the embodiment of components of system as directed is asked
Referring to the description of the embodiment of method part, wouldn't repeat here.
Present invention also provides a kind of computer readable storage mediums, have computer program thereon, the computer program
It is performed and step provided by above-described embodiment may be implemented.The storage medium may include: USB flash disk, mobile hard disk, read-only deposit
Reservoir (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or
The various media that can store program code such as CD.
Present invention also provides a kind of electronic equipment, may include memory and processor, have meter in the memory
Calculation machine program may be implemented provided by above-described embodiment when the processor calls the computer program in the memory
Step.Certain electronic equipment can also include various network interfaces, the components such as power supply.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For system disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.It should be pointed out that for those skilled in the art, under the premise of not departing from the application principle, also
Can to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the protection scope of the claim of this application
It is interior.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.Under the situation not limited more, the element limited by sentence "including a ..." is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Claims (10)
1. a kind of method for restoring continuous data protection characterized by comprising
Utilize the data variation information of the target disk in virtual machine monitor record target time section;Wherein, the target
Period is that current base point generates the corresponding period at moment to current time;
When receiving backup functionality recovery instruction, according to the variation number in target disk described in the data variation synchronizing information
According to generating new current base point;
Virtual machine IO log is recorded using the new current base point, to restore continuous data protection function.
2. method according to claim 1, which is characterized in that according in target disk described in the data variation synchronizing information
Delta data include:
Target data address is determined according to the data variation information, synchronizes the corresponding delta data of the target data address.
3. method according to claim 1, which is characterized in that further include:
It is abnormal to judge whether the continuous data protection function storage occurs;
If so, stopping the continuous data protection function and generating the backup functionality recovery instruction.
4. method according to any one of the claim 1 to 3, which is characterized in that described to record target using virtual machine monitor
The data variation information of the target disk includes: in period
Utilize the corresponding bitmap of target disk described in the virtual machine monitor update target time section;Wherein, described
Bitmap is used to record the variable condition of each disk partition of the target disk in the target time section.
5. method according to claim 4, which is characterized in that update the target time section using the virtual machine monitor
The corresponding bitmap of the interior target disk includes:
The delta data in the target time section in the target disk is determined using the virtual machine monitor, and will be described
Item corresponding with the delta data is set as target value in bitmap.
6. a kind of system for restoring continuous data protection characterized by comprising
Logging modle, for the data variation information using the target disk in virtual machine monitor record target time section;
Wherein, the target time section is that current base point generates the corresponding period at moment to current time;
Synchronization module, for when receive backup functionality restore instruction when, according to target described in the data variation synchronizing information
Delta data in disk generates new current base point;
Functional rehabilitation module, for recording virtual machine IO log using the new current base point, to restore duration data
Defencive function.
7. system according to claim 6, which is characterized in that the logging modle is supervised particularly for using the virtual machine
Visual organ updates the module of the corresponding bitmap of the target disk in the target time section;Wherein, the bitmap is for recording institute
State the variable condition of each disk partition of the target disk in target time section.
8. system according to claim 6, which is characterized in that the synchronization module is specially to work as to receive backup functionality recovery
When instruction, target data address is determined according to the data variation information, synchronizes the corresponding variation number of the target data address
According to module.
9. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program is realized when the computer program is executed by processor and restores continuous data protection as described in any one of claim 1 to 5
Method the step of.
10. a kind of electronic equipment characterized by comprising
Memory, for storing computer program;
Processor realizes that restoring duration data as described in any one of claim 1 to 5 protects when for executing the computer program
The step of method of shield.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910309922.3A CN110032477B (en) | 2019-04-17 | 2019-04-17 | Method, system and related components for recovering continuous data protection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910309922.3A CN110032477B (en) | 2019-04-17 | 2019-04-17 | Method, system and related components for recovering continuous data protection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110032477A true CN110032477A (en) | 2019-07-19 |
CN110032477B CN110032477B (en) | 2023-12-29 |
Family
ID=67238901
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910309922.3A Active CN110032477B (en) | 2019-04-17 | 2019-04-17 | Method, system and related components for recovering continuous data protection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110032477B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111858173A (en) * | 2020-07-16 | 2020-10-30 | 苏州浪潮智能科技有限公司 | Data recovery method, device, equipment and medium |
CN113886143A (en) * | 2021-10-19 | 2022-01-04 | 深圳市木浪云科技有限公司 | Virtual machine continuous data protection method and device and data recovery method and device |
CN114816250A (en) * | 2022-04-15 | 2022-07-29 | 北京志凌海纳科技有限公司 | Continuous data protection method under distributed storage system |
CN116149800A (en) * | 2023-04-18 | 2023-05-23 | 成都云祺科技有限公司 | KVM virtual machine application layer proxy-free CDP method, system and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101329642A (en) * | 2008-06-11 | 2008-12-24 | 华中科技大学 | Method for protecting and recovering continuous data based on time stick diary memory |
CN105302668A (en) * | 2015-10-21 | 2016-02-03 | 上海爱数信息技术股份有限公司 | Method for optimizing block device data access performance in object-based storage system |
CN105389230A (en) * | 2015-10-21 | 2016-03-09 | 上海爱数信息技术股份有限公司 | Continuous data protection system and method combining with snapshot technology |
CN106919466A (en) * | 2015-12-28 | 2017-07-04 | 湖南百里目科技有限责任公司 | A kind of computer disk data sustainable protection method |
-
2019
- 2019-04-17 CN CN201910309922.3A patent/CN110032477B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101329642A (en) * | 2008-06-11 | 2008-12-24 | 华中科技大学 | Method for protecting and recovering continuous data based on time stick diary memory |
CN105302668A (en) * | 2015-10-21 | 2016-02-03 | 上海爱数信息技术股份有限公司 | Method for optimizing block device data access performance in object-based storage system |
CN105389230A (en) * | 2015-10-21 | 2016-03-09 | 上海爱数信息技术股份有限公司 | Continuous data protection system and method combining with snapshot technology |
CN106919466A (en) * | 2015-12-28 | 2017-07-04 | 湖南百里目科技有限责任公司 | A kind of computer disk data sustainable protection method |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111858173A (en) * | 2020-07-16 | 2020-10-30 | 苏州浪潮智能科技有限公司 | Data recovery method, device, equipment and medium |
CN113886143A (en) * | 2021-10-19 | 2022-01-04 | 深圳市木浪云科技有限公司 | Virtual machine continuous data protection method and device and data recovery method and device |
CN113886143B (en) * | 2021-10-19 | 2022-09-13 | 深圳市木浪云科技有限公司 | Virtual machine continuous data protection method and device and data recovery method and device |
CN114816250A (en) * | 2022-04-15 | 2022-07-29 | 北京志凌海纳科技有限公司 | Continuous data protection method under distributed storage system |
CN114816250B (en) * | 2022-04-15 | 2022-10-25 | 北京志凌海纳科技有限公司 | Continuous data protection method under distributed storage system |
CN116149800A (en) * | 2023-04-18 | 2023-05-23 | 成都云祺科技有限公司 | KVM virtual machine application layer proxy-free CDP method, system and storage medium |
CN116149800B (en) * | 2023-04-18 | 2023-06-23 | 成都云祺科技有限公司 | KVM virtual machine application layer proxy-free CDP method, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110032477B (en) | 2023-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110032477A (en) | A kind of method, system and associated component for restoring continuous data protection | |
CN103970585B (en) | Create the method and device of virtual machine | |
CN102917072B (en) | For carrying out the equipment of Data Migration, system and method between data server cluster | |
US7698545B1 (en) | Computer configuration chronology generator | |
CN102981931B (en) | Backup method and device for virtual machine | |
CN101770410B (en) | System reducing method based on client operating system, virtual machine manager and system | |
US8868858B2 (en) | Method and apparatus of continuous data backup and access using virtual machines | |
US7370164B1 (en) | Backup of virtual machines from the base machine | |
EP1907935B1 (en) | System and method for virtualizing backup images | |
CN103970481A (en) | Method and device for reconstructing memory array | |
CN103946846A (en) | Use of virtual drive as hot spare for RAID group | |
CN102982085A (en) | System and method of data migration | |
JP2010086516A (en) | Method for analyzing fault caused in virtualized environment, management server, and program | |
CN107391195A (en) | A kind of method that SSD FW upgradings are carried out under linux | |
CN103516736A (en) | Data recovery method of distributed cache system and a data recovery device of distributed cache system | |
CN102411523A (en) | Method and device for storing file backups and backup method for file systems | |
US10402264B2 (en) | Packet-aware fault-tolerance method and system of virtual machines applied to cloud service, computer readable record medium and computer program product | |
CN105022678A (en) | Data backup method and apparatus for virtual machine | |
CN110058813A (en) | It is a kind of that management method is locally stored based on the storage of cloud platform block | |
CN110187841A (en) | A kind of method, apparatus and storage server of system management memory disk | |
CN103795742B (en) | Isomery storage and disaster tolerance management system and method | |
US10545788B2 (en) | Physical to virtual scheduling system and method | |
US9250942B2 (en) | Hardware emulation using on-the-fly virtualization | |
US7600151B2 (en) | RAID capacity expansion interruption recovery handling method and system | |
US20230281167A1 (en) | Hybrid synchronization using a shadow component |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |