CN107544870A - A kind of disk backup method of virtue machine and device - Google Patents
A kind of disk backup method of virtue machine and device Download PDFInfo
- Publication number
- CN107544870A CN107544870A CN201710447626.0A CN201710447626A CN107544870A CN 107544870 A CN107544870 A CN 107544870A CN 201710447626 A CN201710447626 A CN 201710447626A CN 107544870 A CN107544870 A CN 107544870A
- Authority
- CN
- China
- Prior art keywords
- block
- backup
- disk
- file
- piece
- 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
Links
Abstract
The present invention, which provides a kind of disk backup method of virtue machine and device, methods described, to be included:When needing to carry out the Disk Backup of specified type to target virtual machine, built-in snapshot corresponding to the target virtual machine is created, and parses L1, L2 table of the built-in snapshot;The Disk Backup of the specified type includes incremental backup or differential backup;Compare L1, L2 table of L1, L2 table and built-in snapshot during last Disk Backup of the built-in snapshot, to determine to occur the block number of the disk block of block modification;The block number for the disk block changed according to the generation block generates backup file.Backup performance can be improved using the embodiment of the present invention, reduces system pressure.
Description
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of disk backup method of virtue machine and device.
Background technology
At present, magnetic disk of virtual machine backup mainly includes three kinds of backup modes:Full backup, incremental backup and difference are standby
Part.Wherein:
Full backup refers to back up whole disk completely;
Incremental backup refers to that data that are increased or/and changing back up after being backed up to the last time;
Differential backup refers to back up data that are increased after last full backup or/and changing.
But realize and find, in existing incremental backup and differential backup scheme, the magnetic disk of virtual machine that is backed up for needs,
Need to travel through all disk blocks, calculate the check code of the data in each disk block, by comparing the every of two disk mirroring files
The check code of data in individual disk block determines difference, is then backed up, and backup performance is poor, and system pressure is larger.
The content of the invention
The present invention provides a kind of disk backup method of virtue machine and device, to solve in existing magnetic disk of virtual machine backup scenario
The problem of backup performance is poor, and system pressure is larger.
According to the first aspect of the invention, there is provided a kind of disk backup method of virtue machine, including:
When needing to carry out the Disk Backup of specified type to target virtual machine, create in corresponding to the target virtual machine
Snapshot is put, and parses L1, L2 table of the built-in snapshot;The Disk Backup of the specified type includes incremental backup or difference
Backup;
Compare L1, L2 table of L1, L2 table and built-in snapshot during last Disk Backup of the built-in snapshot, to determine
The block number of the disk block of block modification occurs;
The block number for the disk block changed according to the generation block generates backup file.
According to the second aspect of the invention, there is provided a kind of magnetic disk of virtual machine back-up device, including:
Creating unit, for when needing to carry out the Disk Backup of specified type to target virtual machine, creating the target
Built-in snapshot corresponding to virtual machine;The Disk Backup of the specified type includes incremental backup or differential backup;
Resolution unit, for parsing L1, L2 table of the built-in snapshot;
Comparing unit, L1, L2 table for the built-in snapshot and built-in snapshot during last Disk Backup
L1, L2 table, to determine to occur the block number of the disk block of block modification;
Generation unit, the block number for the disk block changed according to the generation block generate backup file.
Using technical scheme disclosed by the invention, when needing to carry out the Disk Backup of specified type to target virtual machine,
Built-in snapshot corresponding to target virtual machine is created, and parses L1, L2 table of built-in snapshot;Compare L1, L2 of the built-in snapshot
L1, L2 table of table and built-in snapshot during last Disk Backup, to determine to occur the block number of the disk block of block modification, and then,
Block number according to the disk block that block is changed occurs generates backup file, improves backup performance, reduces system pressure.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of disk backup method of virtue machine provided in an embodiment of the present invention;
Fig. 2 is a kind of structural representation of magnetic disk of virtual machine back-up device provided in an embodiment of the present invention;
Fig. 3 is the structural representation of another magnetic disk of virtual machine back-up device provided in an embodiment of the present invention;
Fig. 4 is the structural representation of another magnetic disk of virtual machine back-up device provided in an embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, and make of the invention real
Apply the above-mentioned purpose of example, feature and advantage can be more obvious understandable, below in conjunction with the accompanying drawings to technical side in the embodiment of the present invention
Case is described in further detail.
Fig. 1 is referred to, is a kind of schematic flow sheet of disk backup method of virtue machine provided in an embodiment of the present invention, its
In, the disk backup method of virtue machine can apply to be deployed with the main frame of virtual machine (for ease of describing hereinafter directly description
For main frame), as shown in figure 1, the disk backup method of virtue machine may comprise steps of:
Step 101, when needing to carry out the Disk Backup of specified type to target virtual machine, it is corresponding to create target virtual machine
Built-in snapshot, and parse L1, L2 table of the built-in snapshot;The Disk Backup of the specified type includes incremental backup or difference
Backup.
In the embodiment of the present invention, target virtual machine and the virtual machine for being not specific to a certain fixation, but may refer on main frame
Any virtual machine of deployment, the embodiment of the present invention are subsequently no longer repeated.
In the embodiment of the present invention, when main frame needs to carry out incremental backup or differential backup to target virtual machine, main frame can
To create built-in snapshot corresponding to target virtual machine, and the built-in snapshot is parsed, parse L1, L2 of the built-in snapshot
Table.
Wherein, the L1 tables of built-in snapshot are an array, each element in the array for a L2 table position letter
Breath, the L2 tables according to corresponding to can navigating to the positional information;L2 tables are used for the address offset and Qcow2 texts for recording virtual disk
The relation of the address offset of part.
Built-in snapshot corresponding to main frame establishment target virtual machine refers to the disk mirroring document creation phase to target virtual machine
The built-in snapshot answered.
Wherein, disk mirroring document creation accordingly built-in snapshot, and parsing built in soon of the main frame to target virtual machine
According to the specific implementation of L1, L2 table may refer to associated description in existing related procedure, the embodiment of the present invention is not done superfluous herein
State.
What deserves to be explained is in embodiments of the present invention, when needing to carry out full backup to target virtual machine, main frame can
Directly to create built-in snapshot corresponding to target virtual machine, and the built-in snapshot is converted into disk file, and the disk is literary
Part saves as the backup file of this time backup.
L1, L2 table of L1, L2 table and built-in snapshot during last Disk Backup of snapshot built in step 102, comparison, with
It is determined that the block number of the disk block of block modification occurs.
, can be with after aster Resolution obtains L1, L2 table of built-in snapshot corresponding to target virtual machine in the embodiment of the present invention
Compare L1, L2 table of the built-in snapshot and built-in snapshot when last Disk Backup (Disk Backup for being directed to target virtual machine)
L1, L2 table, with determine occur block modification disk block block number.
Wherein, the disk block that block modification occurs refers to newly-increased data or/and changed the disk block of data.
Preferably, in embodiments of the present invention, can be with after main frame determines the block number for the disk block that block modification occurs
The built-in snapshot created during last Disk Backup is deleted, to save memory space, improves memory space utilization rate.
Step 103, according to the block number for the disk block changed generate backup file.
In the embodiment of the present invention, after main frame determines the block number for the disk block changed, it can be repaiied according to this
The block number of the disk block changed generates the backup file of this Disk Backup.
Wherein, in embodiments of the present invention, backup file can include the text of the block number for the disk block that record is changed
The file of data in part (referred to herein as block file), and the disk block changed of record (referred to herein as backs up
Data file).
As an alternative embodiment, in embodiments of the present invention, when the Disk Backup of above-mentioned specified type is increasing
It is above-mentioned that backup file is generated according to the block number that the disk block that block is changed occurs during amount backup, it can include:
The block number for the disk block that block modification occurs is saved as into the first piece of number file, and by the disk block that block modification occurs
Data save as the first backup data files.
In this embodiment, due to incremental backup only need backup after being backed up relative to the last time it is increased and/or repair
The data corrected one's mistakes, therefore, when main frame needs to carry out incremental backup to target virtual machine, and the disk that block modification occurs is determined
After the block number of block, the block number of the disk block of generation block modification directly can be saved as into block file (referred to herein as the
One piece of number file), and the data that will occur in the disk block of block modification save as backup data files and (it is standby to be referred to herein as first
Part data file).Wherein, the first piece of number file and the first backup data files are the backup text of this incremental backup
Part.
As an alternative embodiment, in embodiments of the present invention, when the Disk Backup of above-mentioned specified type is poor
It is above-mentioned that backup file is generated according to the block number that the disk block that block is changed occurs during different backup, it can include:
When last Disk Backup is full backup, the block number for the disk block that block modification occurs is saved as the second piece number
File, and the data in the disk block that block modification will occur save as the second backup data files;
When last Disk Backup is differential backup, the 3rd piece is saved as according to the block number that the disk block that block is changed occurs
Number file, the object block Piece file mergence obtained during by three piece of number file and last Disk Backup is four piece of number file,
And the data in disk block corresponding to block number that four piece of number file includes are saved as into the 3rd backup data files.
In this embodiment, because differential backup needs to back up relative to increased after last full backup and/or
The data changed, therefore, when main frame needs to carry out differential backup to target virtual machine, main frame may determine that last disk
Backup is full backup or differential backup.
When last Disk Backup is full backup, main frame directly can protect the block number for the disk block that block modification occurs
Block file (referred to herein as the second piece of number file) is saved as, and the data in the disk block that block modification will occur save as backup
Data file (referred to herein as the second backup data files).Wherein, the second piece of number file and the second backup data files
The as backup file of this differential backup.
When last Disk Backup is differential backup, L1, L2 of built-in snapshot when main frame is by relatively this time backing up
The disk block for the generation block modification that the mode of table and L1, L2 table of built-in snapshot during last Disk Backup determines is to enter twice
The disk block of data increase or/and modification has been carried out during row differential backup, and has been not this Disk Backup relative to upper one
The disk block of data increase or/and modification during secondary full backup, thus, the built-in snapshot when main frame is by relatively this time backing up
L1, L2 table and last Disk Backup when built-in snapshot L1, L2 table the disk block that block modification occurs that determines of mode
Block number after, it is also necessary to according to this Disk Backup determine occur block change disk block block number and last disk it is standby
The block number of the disk block of the generation block modification determined during part obtains this Disk Backup relative to data during last full backup
Increase or/and the disk block of modification.
In this case, the block number for the disk block that main frame can determine this Disk Backup to change saves as pair
The block file (referred to herein as three piece of number file) answered, and to three piece of number file with being obtained during last Disk Backup
Block file (referred to herein as object block file) merge, to obtain this Disk Backup relative to last full dose
Occur block file (referred to herein as four piece of number file) corresponding to the block number of the disk block of block modification during backup, and by this
Data in disk block corresponding to the block number that four pieces of numbers files include save as corresponding backup data files (referred to herein as
3rd backup data files).Wherein, four piece of number file and the 3rd backup data files are the standby of this differential backup
Part file.
In one of embodiment preferably, it is above-mentioned by three piece of number file with being obtained during last Disk Backup
The object block Piece file mergence arrived is four piece of number file, can be included:
Compare three piece of number file and object block file;
When block number is present in object block file, but is not present in three piece of number file, the block number is added to
Four piece of number file;
When block number is present in three piece of number file, but is not present in object block file, the block number is added to
Four piece of number file;
When block number is present in object block file, and is present in three piece of number file, the block number is added to institute
State four piece of number file.
In this embodiment, after main frame obtains three piece of number file, three piece of number file and last time can be compared
The object block file obtained during Disk Backup, three piece of number file is merged with object block file.
For any block number occurred in three piece of number file and object block file, when the block number exists only in wherein
When in one block file (three piece of number file or object block file), after the block number directly can be added to merging by main frame
Block file (i.e. four piece of number file) in;When the block number is present in two block files (three piece of number file and mesh simultaneously
Mark block file) in when, the block number is added in the block file after merging by main frame.
It can be seen that in the method flow shown in Fig. 1, determine to occur what block was changed by L1, L2 table of snapshot built in comparison
The block number of disk block, and the block number for the disk block changed according to identified generation block generates backup file, and in the prior art
The mode for traveling through the data in all disk blocks is compared, and improves backup performance, reduces system pressure.
Further, in embodiments of the present invention, it is contemplated that determined by way of L1, L2 table of snapshot built in comparison
Occur that amended data and the duplicate disk block of original data may be included in the disk block of block modification, and for
Such disk block, directly progress data backup can cause the Data duplication in the disk block of the type, therefore, in order to keep away
The situation for exempting from Data duplication occurs, and main frame is completed after Disk Backup, it is also necessary to carries out Data duplication repair place to backup file
Reason.
Correspondingly, it is above-mentioned standby according to the block number generation that the disk block that block is changed occurs in a kind of optional embodiment
After part file, it can also include:
Compare the backup file generated when backup file and last Disk Backup;
It is identical to there is block number in the backup file generated when the backup file and last Disk Backup, and corresponding magnetic
Data in disk block also identical target disk block when, the data in the block number of target disk block and target disk block are standby from this
Deleted in part file.
In this embodiment, after main frame generates the backup file of this Disk Backup, backup text can be compared
The backup file (including block file and backup data files) generated when part and last Disk Backup, to determine backup text
Backup file (hereinafter referred to the second backup generated when part (hereinafter referred to the first backup file) and last Disk Backup
File) in the presence or absence of block number it is identical, and the data in corresponding disk block also identical disk block (referred to herein as target magnetic
Disk block), if in the presence of main frame can be deleted from the first backup file in the block number and target disk block of the target disk block
Data (will delete, by target disk block in block file that the block number of target disk block includes from the first backup file
Deleted in the backup data files that data include from the first backup file), to avoid the occurrence of the situation of Data duplication.
In order that those skilled in the art more fully understand technical scheme provided in an embodiment of the present invention, with reference to specific
Example technical scheme provided in an embodiment of the present invention is illustrated.
First, full backup
1st, snapshot snap1 built in creating, is converted to disk mirroring file by the built-in snapshot, is saved as full backup
Backup file (hereinafter referred to as file1).
Wherein, the block file in the backup file of full backup can consider the block of whole disk blocks including virtual machine
Number, backup data files include the data in whole disk blocks of virtual machine.
What deserves to be explained is if non-specified otherwise, disk mirroring file mentioned in this article refers both to the disk of QCOW2 forms
Image file.
, can be by way of incremental backup again after main frame carries out full backup to virtual machine in the embodiment of the present invention
It is secondary that Disk Backup is carried out to virtual machine, Disk Backup can also be carried out to virtual machine again by way of differential backup.
2nd, incremental backup scene
1st, when main frame carries out first time incremental backup to target virtual machine, snapshot snap2 built in establishment;
2nd, snap2 L1, L2 table is parsed, and compares snap2 L1, L2 table and snap1 L1, L2 table, to determine to occur
The block number of the disk block of block modification, is saved as block file cbt1, and delete snap1;
3rd, the data in disk block corresponding to cbt1 are saved as into file2, i.e., the backup text that first time incremental backup obtains
Part includes cbt1 and file2;
4th, when main frame carries out second of incremental backup to target virtual machine, snapshot snap3 built in establishment;
5th, snap3 L1, L2 table is parsed, and compares snap3 L1, L2 table and snap2 L1, L2 table, to determine to occur
The block number of the disk block of block modification, is saved as block file cbt2, and delete snap2;
6th, the data in disk block corresponding to cbt2 are saved as into file3, i.e., the backup text that first time incremental backup obtains
Part includes cbt2 and file3;
7th, the handling process of subsequent incremental backup is by that analogy.
3rd, differential backup scene
1st, when main frame carries out first time differential backup to target virtual machine, snapshot snap4 built in establishment;
2nd, snap4 L1, L2 table is parsed, and compares snap4 L1, L2 table and snap1 L1, L2 table, to determine to occur
The block number of the disk block of block modification, is saved as block file cbt3, and delete snap1;
3rd, the data in disk block corresponding to cbt3 are saved as into file4, i.e., the backup text that first time differential backup obtains
Part includes cbt3 and file4;
4th, when main frame carries out second of differential backup to target virtual machine, snapshot snap5 built in establishment;
5th, snap5 L1, L2 table is parsed, and compares snap5 L1, L2 table and snap4 L1, L2 table, to determine to occur
The block number of the disk block of block modification, is saved as block file cbt4, and delete snap4;
6th, cbt4 and cbt3 is merged and saves as block file cbt4fix;
Merge rule:
Block number present in cbt3, the block number being not present in cbt4, the cbt4fix after merging include the block number;
Block number present in cbt3, in cbt4 there is also block number, the cbt4fix after merging includes the block number;
Block number present in the block number that is not present in cbt3, cbt4, the cbt4fix after merging include the block number;
7th, snapshot snap4 is deleted;
8th, the data in disk block corresponding to cbt4fix are saved as into file5, i.e., the backup that second of differential backup obtains
File includes cbt4fix and file5;
9th, the handling process of follow-up differential backup is by that analogy.
4th, Data duplication reparation
1st, incremental backup scene:During second of incremental backup, compare cbt1, file2 and cbt2, file3, by block phase
Together, when the data and in corresponding disk block are also identical, the block number is deleted from cbt2, and by corresponding data from file3
Middle deletion;
2nd, differential backup scene:During second of differential backup, compare cbt3, file4 and cbt4fix, file5, by block number
It is identical, and when data in corresponding disk block are also identical, the block number is deleted from cbt4fix, and by corresponding data from
Deleted in file5.
By above description as can be seen that in technical scheme provided in an embodiment of the present invention, when needing to destination virtual
When machine carries out the Disk Backup of specified type, create built-in snapshot corresponding to target virtual machine, and parse built-in snapshot L1,
L2 tables;Compare L1, L2 table of L1, L2 table and built-in snapshot during last Disk Backup of the built-in snapshot, to determine to occur
The block number of the disk block of block modification, and then, backup file is generated according to the block number that the disk block that block is changed occurs, improves backup
Performance, reduce system pressure.
Fig. 2 is referred to, a kind of structural representation of magnetic disk of virtual machine back-up device is provided for the embodiment of the present invention, wherein,
The main frame that the device can apply in above method embodiment, as shown in Fig. 2 the device can include:
Creating unit 210, for when needing to carry out the Disk Backup of specified type to target virtual machine, creating the mesh
Mark built-in snapshot corresponding to virtual machine;The Disk Backup of the specified type includes incremental backup or differential backup;
Resolution unit 220, for parsing L1, L2 table of the built-in snapshot;
Comparing unit 230, L1, L2 table for the built-in snapshot and built-in snapshot during last Disk Backup
L1, L2 table, with determine occur block modification disk block block number;
Generation unit 240, the block number for the disk block changed according to the generation block generate backup file.
In an alternative embodiment, the generation unit 240, specifically for being increment when the Disk Backup of the specified type
During backup, the block number of the disk block of the generation block modification is saved as into the first piece of number file, and the generation block is changed
Data in disk block save as the first backup data files.
In an alternative embodiment, the generation unit 240, specifically for being difference when the Disk Backup of the specified type
Backup, and when last Disk Backup be full backup, the block number for the disk block that the generation block is changed saves as second piece
Number file, and the data in the disk block of the generation block modification are saved as into the second backup data files;When the specified class
The Disk Backup of type is differential backup, and when last Disk Backup is differential backup, the disk changed according to the generation block
The block number of block saves as three piece of number file.
Please also refer to Fig. 3, for the structural representation of another magnetic disk of virtual machine back-up device provided in an embodiment of the present invention
Figure, as shown in figure 3, on the basis of magnetic disk of virtual machine back-up device shown in Fig. 2, the device shown in Fig. 3 also includes:
Combining unit 250, for by the 3rd piece of number file and the object block text obtained during last Disk Backup
Part merges into four piece of number file;
The generation unit 240, it is additionally operable in disk block corresponding to the block number that includes the 4th piece of number file
Data save as the 3rd backup data files.
In an alternative embodiment, the combining unit 250, specifically for the 3rd piece of number file and the target
Block file;When block number is present in the object block file, but is not present in the 3rd piece of number file, by the block
Number it is added to the 4th piece of number file;When block number is present in the 3rd piece of number file, but it is not present in the object block
When in number file, the block number is added to the 4th piece of number file;When block number is present in the object block file, and deposit
When in the 3rd piece of number file, the block number that the 3rd piece of number file includes is added to the 4th piece of number text
Part.
In an alternative embodiment, the comparing unit 230, it is standby specifically for the backup file and last disk
The backup file generated during part;
Please also refer to Fig. 4, for the structural representation of another magnetic disk of virtual machine back-up device provided in an embodiment of the present invention
Figure, as shown in figure 4, on the basis of magnetic disk of virtual machine back-up device shown in Fig. 2, the device shown in Fig. 4 also includes:
Unit 260 is deleted, for existing in the backup file that generates when the backup file and last Disk Backup
Block number is identical, and the data in corresponding disk block also identical target disk block when, by the block number of the target disk block and
Data in target disk block are deleted from the backup file.
The function of unit and the implementation process of effect specifically refer to and step are corresponded in the above method in said apparatus
Implementation process, it will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component
The unit of explanation can be or may not be physically separate, can be as the part that unit is shown or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Need to select some or all of module therein to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
As seen from the above-described embodiment, when needing to carry out the Disk Backup of specified type to target virtual machine, target is created
Built-in snapshot corresponding to virtual machine, and parse L1, L2 table of built-in snapshot;Compare L1, L2 table and upper one of the built-in snapshot
L1, L2 table of built-in snapshot during secondary Disk Backup, to determine to occur the block number of the disk block of block modification, and then, according to generation
The block number generation backup file of the disk block of block modification, improves backup performance, reduces system pressure.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein
Its embodiment.The application be intended to the present invention any modification, purposes or adaptations, these modifications, purposes or
Person's adaptations follow the general principle of the present invention and including undocumented common knowledges in the art of the invention
Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.
Claims (10)
- A kind of 1. disk backup method of virtue machine, it is characterised in that including:When needing to carry out the Disk Backup of specified type to target virtual machine, create built-in fast corresponding to the target virtual machine According to, and parse L1, L2 table of the built-in snapshot;The Disk Backup of the specified type includes incremental backup or difference is standby Part;Compare L1, L2 table of L1, L2 table and built-in snapshot during last Disk Backup of the built-in snapshot, to determine to occur The block number of the disk block of block modification;The block number for the disk block changed according to the generation block generates backup file.
- 2. according to the method for claim 1, it is characterised in that when the Disk Backup of the specified type is incremental backup When, the block number of the disk block changed according to the generation block generates backup file, including:The block number of the disk block of the generation block modification is saved as into the first piece of number file, and the disk that the generation block is changed Data in block save as the first backup data files.
- 3. according to the method for claim 1, it is characterised in that when the Disk Backup of the specified type is differential backup When, the block number of the disk block changed according to the generation block generates backup file, including:When last Disk Backup is full backup, the block number of the disk block of the generation block modification is saved as the second piece number File, and the data in the disk block of the generation block modification are saved as into the second backup data files;When last Disk Backup is differential backup, the block number for the disk block changed according to the generation block saves as the 3rd piece Number file, the object block Piece file mergence obtained during by the 3rd piece of number file and last Disk Backup is four piece of number text Part, and the data in disk block corresponding to block number that the 4th piece of number file includes are saved as into the 3rd Backup Data text Part.
- 4. according to the method for claim 3, it is characterised in that described that the 3rd piece of number file and last disk is standby The object block Piece file mergence obtained during part is four piece of number file, including:Compare the 3rd piece of number file and the object block file;When block number is present in the object block file, but is not present in the 3rd piece of number file, the block number is added It is added to the 4th piece of number file;When block number is present in the 3rd piece of number file, but is not present in the object block file, the block number is added It is added to the 4th piece of number file;When block number is present in the object block file, and is present in the 3rd piece of number file, the block number is added To the 4th piece of number file.
- 5. according to the method for claim 1, it is characterised in that the block number of the disk block changed according to the generation block After generating backup file, in addition to:Compare the backup file generated when the backup file and last Disk Backup;It is identical to there is block number in the backup file generated when the backup file and last Disk Backup, and corresponding disk Data in block also identical target disk block when, by the data in the block number of the target disk block and target disk block from institute State and deleted in backup file.
- A kind of 6. magnetic disk of virtual machine back-up device, it is characterised in that including:Creating unit, for when needing to carry out the Disk Backup of specified type to target virtual machine, creating the destination virtual Built-in snapshot corresponding to machine;The Disk Backup of the specified type includes incremental backup or differential backup;Resolution unit, for parsing L1, L2 table of the built-in snapshot;Comparing unit, L1, L2 for L1, L2 table and built-in snapshot during last Disk Backup of the built-in snapshot Table, to determine to occur the block number of the disk block of block modification;Generation unit, the block number for the disk block changed according to the generation block generate backup file.
- 7. device according to claim 6, it is characterised in thatThe generation unit, specifically for when the Disk Backup of the specified type is incremental backup, the generation block is repaiied The block number of the disk block changed saves as the first piece of number file, and the data in the disk block of the generation block modification are saved as into the One backup data files.
- 8. device according to claim 6, it is characterised in thatThe generation unit, specifically for being differential backup when the Disk Backup of the specified type, and last Disk Backup For full backup when, the block number of the disk block of the generation block modification is saved as into the second piece of number file, and by the generation block Data in the disk block of modification save as the second backup data files;When the Disk Backup of the specified type is standby for difference Part, and when last Disk Backup be differential backup, the 3rd piece is saved as according to the block number of the disk block of the generation block modification Number file;Described device also includes:Combining unit, for being with the object block Piece file mergence obtained during last Disk Backup by the 3rd piece of number file Four piece of number file;The generation unit, the data being additionally operable in disk block corresponding to the block number that includes the 4th piece of number file preserve For the 3rd backup data files.
- 9. device according to claim 8, it is characterised in thatThe combining unit, specifically for the 3rd piece of number file and the object block file;When block number is present in In the object block file, but when being not present in the 3rd piece of number file, the block number is added to described 4th piece number File;When block number is present in the 3rd piece of number file, but is not present in the object block file, the block number is added It is added to the 4th piece of number file;When block number is present in the object block file, and it is present in the 3rd piece of number file When middle, the block number is added to the 4th piece of number file.
- 10. device according to claim 6, it is characterised in thatThe comparing unit, specifically for the backup file generated when the backup file and last Disk Backup;Described device also includes:Unit is deleted, for block phase be present in the backup file that generates when the backup file and last Disk Backup Together, and the data in corresponding disk block also identical target disk block when, by the block number of the target disk block and target magnetic Data in disk block are deleted from the backup file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710447626.0A CN107544870A (en) | 2017-06-14 | 2017-06-14 | A kind of disk backup method of virtue machine and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710447626.0A CN107544870A (en) | 2017-06-14 | 2017-06-14 | A kind of disk backup method of virtue machine and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107544870A true CN107544870A (en) | 2018-01-05 |
Family
ID=60970592
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710447626.0A Pending CN107544870A (en) | 2017-06-14 | 2017-06-14 | A kind of disk backup method of virtue machine and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107544870A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109164988A (en) * | 2018-08-30 | 2019-01-08 | 上海交通大学 | Processor-based virtual machine snapshot method and system |
CN109388524A (en) * | 2018-10-09 | 2019-02-26 | 郑州云海信息技术有限公司 | The addressing method and computer readable storage medium of virtual disk format |
CN109634713A (en) * | 2018-11-02 | 2019-04-16 | 新华三云计算技术有限公司 | A kind of virtual machine starting method and device |
CN110515767A (en) * | 2019-08-09 | 2019-11-29 | 济南浪潮数据技术有限公司 | Snapshot data backup method, device, equipment and readable storage medium storing program for executing |
CN111797057A (en) * | 2020-06-30 | 2020-10-20 | 苏州三六零智能安全科技有限公司 | Snapshot difference data generation method, terminal device, storage medium and device |
CN112380069A (en) * | 2020-12-04 | 2021-02-19 | 海光信息技术股份有限公司 | Virtual machine fault-tolerant system and fault-tolerant method thereof |
CN113626256A (en) * | 2021-07-16 | 2021-11-09 | 济南浪潮数据技术有限公司 | Virtual machine disk data backup method, device, terminal and storage medium |
CN113626261A (en) * | 2021-10-13 | 2021-11-09 | 苏州浪潮智能科技有限公司 | Data backup method, device and equipment and computer readable storage medium |
CN114328026A (en) * | 2021-12-30 | 2022-04-12 | 苏州浪潮智能科技有限公司 | Virtual disk backup method, device, equipment and medium |
CN117762695A (en) * | 2024-02-22 | 2024-03-26 | 成都云祺科技有限公司 | Agent-free CDP method, system and storage medium for Hyper-V |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019888A (en) * | 2012-12-21 | 2013-04-03 | 华为技术有限公司 | Backup method and device |
CN103699459A (en) * | 2013-12-31 | 2014-04-02 | 汉柏科技有限公司 | Method and system for incremental backup of virtual machine data based on Qcow2 snapshots |
US20140136484A1 (en) * | 2011-01-07 | 2014-05-15 | Symantec Corporation | Method and system of performing incremental sql server database backups |
-
2017
- 2017-06-14 CN CN201710447626.0A patent/CN107544870A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140136484A1 (en) * | 2011-01-07 | 2014-05-15 | Symantec Corporation | Method and system of performing incremental sql server database backups |
CN103019888A (en) * | 2012-12-21 | 2013-04-03 | 华为技术有限公司 | Backup method and device |
CN103699459A (en) * | 2013-12-31 | 2014-04-02 | 汉柏科技有限公司 | Method and system for incremental backup of virtual machine data based on Qcow2 snapshots |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109164988A (en) * | 2018-08-30 | 2019-01-08 | 上海交通大学 | Processor-based virtual machine snapshot method and system |
CN109388524A (en) * | 2018-10-09 | 2019-02-26 | 郑州云海信息技术有限公司 | The addressing method and computer readable storage medium of virtual disk format |
CN109388524B (en) * | 2018-10-09 | 2021-10-01 | 郑州云海信息技术有限公司 | Virtual disk format addressing method and computer readable storage medium |
CN109634713A (en) * | 2018-11-02 | 2019-04-16 | 新华三云计算技术有限公司 | A kind of virtual machine starting method and device |
CN109634713B (en) * | 2018-11-02 | 2020-12-08 | 新华三云计算技术有限公司 | Virtual machine starting method and device |
CN110515767A (en) * | 2019-08-09 | 2019-11-29 | 济南浪潮数据技术有限公司 | Snapshot data backup method, device, equipment and readable storage medium storing program for executing |
CN111797057B (en) * | 2020-06-30 | 2022-11-04 | 苏州三六零智能安全科技有限公司 | Snapshot difference data generation method, terminal device, storage medium and device |
CN111797057A (en) * | 2020-06-30 | 2020-10-20 | 苏州三六零智能安全科技有限公司 | Snapshot difference data generation method, terminal device, storage medium and device |
CN112380069A (en) * | 2020-12-04 | 2021-02-19 | 海光信息技术股份有限公司 | Virtual machine fault-tolerant system and fault-tolerant method thereof |
CN113626256A (en) * | 2021-07-16 | 2021-11-09 | 济南浪潮数据技术有限公司 | Virtual machine disk data backup method, device, terminal and storage medium |
CN113626256B (en) * | 2021-07-16 | 2023-12-22 | 济南浪潮数据技术有限公司 | Virtual machine disk data backup method, device, terminal and storage medium |
CN113626261A (en) * | 2021-10-13 | 2021-11-09 | 苏州浪潮智能科技有限公司 | Data backup method, device and equipment and computer readable storage medium |
CN114328026A (en) * | 2021-12-30 | 2022-04-12 | 苏州浪潮智能科技有限公司 | Virtual disk backup method, device, equipment and medium |
CN114328026B (en) * | 2021-12-30 | 2023-11-14 | 苏州浪潮智能科技有限公司 | Virtual disk backup method, device, equipment and medium |
CN117762695A (en) * | 2024-02-22 | 2024-03-26 | 成都云祺科技有限公司 | Agent-free CDP method, system and storage medium for Hyper-V |
CN117762695B (en) * | 2024-02-22 | 2024-04-26 | 成都云祺科技有限公司 | Agent-free CDP method, system and storage medium for Hyper-V |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107544870A (en) | A kind of disk backup method of virtue machine and device | |
CN107544871A (en) | A kind of disk backup method of virtue machine and device | |
EP2731013B1 (en) | Backing up method, device, and system for virtual machine | |
US6557089B1 (en) | Backup by ID-suppressed instant virtual copy then physical backup copy with ID reintroduced | |
CN100440155C (en) | Method and apparatus for creating a virtual data copy | |
US6694447B1 (en) | Apparatus and method for increasing application availability during a disaster fail-back | |
CN103473277B (en) | The Snapshot Method and device of file system | |
US9563517B1 (en) | Cloud snapshots | |
US6581143B2 (en) | Data processing method and apparatus for enabling independent access to replicated data | |
US7613806B2 (en) | System and method for managing replication sets of data distributed over one or more computer systems | |
EP3435604A1 (en) | Service processing method, device, and system | |
CN100429628C (en) | Method for rebuilding directory structure and recovering data in NTFS volume | |
CN104965771A (en) | Method and system for verifying remote disaster recovery data consistency | |
CN102402562A (en) | Database remote disaster tolerant method and system | |
CN106776130A (en) | A kind of journal recovery method, storage device and memory node | |
CN107111531A (en) | Use the data recovery of distribution diagram | |
JP2009093315A (en) | Capacity expansion control method for storage system | |
EP3474143B1 (en) | Method and apparatus for incremental recovery of data | |
US9009431B2 (en) | Virtual snapshot system and method | |
US20190052709A1 (en) | Clustered storage system synchronization | |
CN104461773A (en) | Backup deduplication method of virtual machine | |
CN104794119A (en) | Middleware message storage and transmission method and system | |
US20130013566A1 (en) | Storage group synchronization in data replication environments | |
CN105376329A (en) | Remote online backup method for virtual machine | |
CN108255638A (en) | A kind of snapshot rollback method and 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: 20180105 |
|
RJ01 | Rejection of invention patent application after publication |