CN106227621A - The data back up method of logic-based volume management simplification volume and system - Google Patents
The data back up method of logic-based volume management simplification volume and system Download PDFInfo
- Publication number
- CN106227621A CN106227621A CN201610592735.7A CN201610592735A CN106227621A CN 106227621 A CN106227621 A CN 106227621A CN 201610592735 A CN201610592735 A CN 201610592735A CN 106227621 A CN106227621 A CN 106227621A
- Authority
- CN
- China
- Prior art keywords
- backup
- data
- image document
- incremental
- volume
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000007726 management method Methods 0.000 claims description 116
- 238000003860 storage Methods 0.000 claims description 55
- 238000013500 data storage Methods 0.000 claims description 2
- 230000006870 function Effects 0.000 description 7
- 239000002699 waste material Substances 0.000 description 4
- 238000002788 crimping Methods 0.000 description 3
- 238000009826 distribution Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
Classifications
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides backup method and the system of a kind of logic-based volume management simplification volume.Wherein method includes: obtain partial data synopsis or the incremental data synopsis of logical volume management simplification volume;Create backup image document, and backup image document hang is loaded in network control techology;From logical volume management simplification volume, Backup Data is read according to partial data synopsis or incremental data synopsis;By network control techology is carried out in the backup image document that Backup Data is written in network control techology by write operation.It carries out full backup according to partial data synopsis to simplifying logical volume when needs carry out partial data backup, generally full backup only need to be carried out once, incremental backup is carried out according to incremental data synopsis to simplifying logical volume when being made without full backup, therefore can effectively save space, the space making backup image document is less.
Description
Technical field
The present invention relates to computer equipment field, particularly relate to the data backup of a kind of logic-based volume management simplification volume
Method and system.
Background technology
For the logical volume management essence with research and development based on LVM (Logical Volume Manager, logical volume management)
Letter volume (LVM Thin Volume) makees cloud hard disk under openstack (the cloud computing management platform project that is increased income) environment
During schedule backup, it is common that periodically do full backup, do full backup very wasting space the most every time, and export RAW lattice
The backup of formula does not have the function of snapshot (snapshot), is unfavorable for that empty machine user (VM User) is opened this backup and inspected
The demand of system, because making to open empty machine to the backup file of output, can cause the data of backup file to be modified, the most not
Meet the backup purpose of data consistency.
Summary of the invention
In consideration of it, the problem being necessary, for tradition, cloud hard disk is periodically done full backup wasting space, it is provided that Yi Zhongji
In data back up method and the system of logical volume management simplification volume, do full backup when needs do full backup, need not
Incremental backup is only done, it is possible to efficiently reduce and do the space waste that full backup is brought every time when doing full backup.
For reaching goal of the invention, it is provided that the data back up method of a kind of logic-based volume management simplification volume, described method bag
Include:
Obtain partial data synopsis or the incremental data synopsis of logical volume management simplification volume;
Create backup image document, and described backup image document hang is loaded in network control techology;
Read from described logical volume management simplification volume according to described partial data synopsis or described incremental data synopsis
Take Backup Data;
By described network control techology is carried out write operation, described Backup Data is written in described network control techology
In described backup image document.
Wherein in an embodiment, patrol from described according to described partial data synopsis or described incremental data synopsis
The step reading Backup Data in volume volume management simplification volume includes:
If obtain is partial data synopsis, described partial data synopsis have recorded full back-up data described
The storage position of logical volume management simplification volume and the BACKUP TIME point of described full back-up data, and reaching described BACKUP TIME
Read described full back-up data from described storage position during point;Wherein, described full back-up data includes described partial data
All data in the storage position of record in synopsis;
If obtain is incremental data synopsis, described incremental data synopsis have recorded incremental backup data described
The storage position of logical volume management simplification volume and the BACKUP TIME point of described incremental backup data, and reaching described BACKUP TIME
Read described incremental backup data from described storage position during point;Wherein, described incremental backup data includes described incremental data
In synopsis the data in the storage position of record current backup time point with on the difference section of once BACKUP TIME point.
Wherein in an embodiment, the described backup image document of establishment is backup image based on qcow2 form literary composition
Shelves, described by described network control techology being carried out the institute that described Backup Data is written in described network control techology by write operation
After stating the step in backup image document, also include:
Create the snapshot of described backup image document based on qcow2 form, based on qcow2 lattice described in described snapshot record
The backup completion status of the backup image document of formula;
When described logical volume management simplification volume breaks down, according to described snapshot by described based on qcow2 form standby
Part mirror image Document retrieval is to described backup completion status;
The backup image document hang based on qcow2 form being restored to described backup completion status is loaded in described network block
In equipment;
The backup mirror based on qcow2 form of described backup completion status it is restored to by operating described network control techology
As the logical volume management simplification volume that the data write in document is other.
Wherein in an embodiment, the step of the snapshot of backup image document based on qcow2 form described in described establishment
Suddenly include:
Create the complete snapshot of the backup image document based on qcow2 form after full backup, described complete fast
Full backup completion status according to middle record backup image based on qcow2 form document;
Having created the incremental snapshot of the backup image document based on qcow2 form after incremental backup, described increment is fast
Incremental backup completion status according to middle record backup image based on qcow2 form document.
Wherein in an embodiment, described by described network control techology is carried out write operation by described backup in execution
During step in the described backup image document that data are written in described network control techology, also include:
By the storage position of the described Backup Data of record in described partial data synopsis or described incremental data synopsis
Put and BACKUP TIME point is write in described backup image document by described network control techology;
When creating the snapshot of described backup image document based on qcow2 form, in described snapshot, also record has described
Storage position and described BACKUP TIME point.
Wherein in an embodiment, the Virtual Space size of described backup image file is simplified with described logical volume management
The logical space size of volume is identical.
The present invention also provides for the data backup system of a kind of logic-based volume management simplification volume, and described system includes:
Acquisition module, for obtaining partial data synopsis or the incremental data synopsis of logical volume management simplification volume;
Create carry module, be used for creating backup image document, and described backup image document hang is loaded in network block sets
In Bei;
Read module, for according to described partial data synopsis or described incremental data synopsis from described logic pipe crimping
Reason simplification volume reads Backup Data;
First writing module, for being written to institute by described Backup Data by described network control techology is carried out write operation
State in the described backup image document in network control techology.
Wherein in an embodiment, described read module includes:
First reads unit, if being partial data synopsis for obtain, have recorded in described partial data synopsis
Full back-up data in the storage position and the BACKUP TIME point of described full back-up data of described logical volume management simplification volume, and
Read described full back-up data from described storage position when reaching described BACKUP TIME point;Wherein, described full backup number
According to all data in the storage position including record in described partial data synopsis;
Second reads unit, if being incremental data synopsis for obtain, have recorded in described incremental data synopsis
Incremental backup data in the storage position and the BACKUP TIME point of described incremental backup data of described logical volume management simplification volume,
And read described incremental backup data from described storage position when reaching described BACKUP TIME point;Wherein, described incremental backup
Data include in described incremental data synopsis data in the storage position of record current point in time with on once back up time
Between point difference section.
Wherein in an embodiment, the described backup image document of establishment is backup image based on qcow2 form literary composition
Shelves;Described system also includes:
Creating snapshot module, for creating the snapshot of described backup image document based on qcow2 form, described snapshot is remembered
The backup completion status of the described backup image document based on qcow2 form of record;
Recover module, for when described logical volume management simplification volume breaks down, according to described snapshot by described based on
The backup image Document retrieval of qcow2 form is to described backup completion status;
Carry module, for being restored to the backup image document hang based on qcow2 form of described backup completion status
It is loaded in described network control techology;
Second writing module, for by operate described network control techology be restored to described backup completion status based on
Data in the backup image document of qcow2 form write other logical volume management simplification volume.
Wherein in an embodiment, described establishment snapshot module includes:
Create complete snapshot unit, the backup image document based on qcow2 form after having created full backup
Complete snapshot, described complete snapshot records the full backup completion status of backup image document based on qcow2 form;
Create incremental snapshot unit, the backup image document based on qcow2 form after having created incremental backup
Incremental snapshot, described incremental snapshot records the incremental backup completion status of backup image document based on qcow2 form.
Wherein in an embodiment, described first writing module, it is additionally operable to the most described partial data synopsis or institute
Storage position and the BACKUP TIME point of stating the described Backup Data of record in incremental data synopsis pass through described network control techology
Write in described backup image document;
In the snapshot of described based on qcow2 form the backup image document that described establishment snapshot module creates, also record has
Described storage position and described BACKUP TIME point.
Wherein in an embodiment, the Virtual Space size of described backup image file is simplified with described logical volume management
The logical space size of volume is identical.
The beneficial effect comprise that
The data back up method of above-mentioned logic-based volume management simplification volume and system, when needs carry out partial data backup
According to partial data synopsis, logical volume management simplification volume being carried out full backup, usual full backup only need to be carried out once,
It is made without during full backup, according to incremental data synopsis, logical volume management simplification volume is carried out incremental backup, the most only backs up
In logical volume management simplification volume, current backup time point and the difference section of last BACKUP TIME point, therefore make backup image literary composition
The space of shelves is less, can effectively save space, and, the output format of backup is to have the qcow2 form of snapshot functions,
Backup archives are less, after can terminating in opening empty machine and shut down, use snapshot to recover function, make Backup and Restore arrive initial shape
State, it is ensured that the concordance of data.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the data back up method of the logic-based volume management simplification volume in an embodiment;
Fig. 2 is the schematic flow sheet of the data back up method of the logic-based volume management simplification volume in another embodiment;
Fig. 3 is the structural representation of the data backup system of the logic-based volume management simplification volume in an embodiment;
Fig. 4 is the full backup in an embodiment and incremental backup logical relation schematic diagram.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples pair
Data back up method and the system of logic-based volume management simplification volume of the present invention are further elaborated.Should be appreciated that this
Specific embodiment described by place only in order to explain the present invention, is not intended to limit the present invention.
In one embodiment, as shown in Figure 1, it is provided that the data backup side of a kind of logic-based volume management simplification volume
Method, the method comprises the following steps:
S100, obtains partial data synopsis or the incremental data synopsis of logical volume management simplification volume.
S200, creates backup image document, and is loaded in network control techology by backup image document hang.
S300, reads backup number according to partial data synopsis or incremental data synopsis from logical volume management simplification volume
According to.
S400, by carrying out, to network control techology, the backup image that Backup Data is written in network control techology by write operation
In document.
In the present embodiment, just set up when logical volume management simplification volume (LVM Thin Volumes) and do not had any data to write
When, its corresponding partial data synopsis and incremental data synopsis are empty, but have data write logical volume management essence
During letter volume, the partial data synopsis of its correspondence and incremental data synopsis also can exist data, i.e. partial data accordingly
Synopsis and incremental data synopsis can reflect the real-time status of logical volume management simplification volume, such as: partial data synopsis
In have recorded the storage position of the BACKUP TIME point of data in logical volume management simplification volume and data (data be at logical volume management
Logical address in simplification volume and physical address corresponding to logical address), when incremental data synopsis have recorded current backup
Between the storage position at data place of the difference section of point and the data of last BACKUP TIME point and difference section, therefore,
Obtain partial data synopsis or incremental data synopsis by application programming interface (REST API), obtain logical volume management
After the partial data synopsis of simplification volume or incremental data synopsis, according in partial data synopsis or incremental data synopsis
The content of record just can complete the backup to logical volume management simplification volume, to break down in current logic volume management simplification volume
Time, the data backing up current logic volume management simplification volume can be returned to other do not have out of order logical volume management
In simplification volume, it is ensured that have the logical volume management simplification volume that can use normally all the time.
LVM (Logic Volume Manager, logical volume management) is under Linux environment to be managed disk partition
A kind of mechanism, jumps out hard drive space from the way to manage of physical hard disk, carries out facilitating unified management to distribute, logical volume
It it is the virtual disk formed by logic magnetic disc.Thin Volume (simplification volume) utilizes thin provisioning (Thin-
Provisioning) logical volume obtained, thin provisioning is a capacity distribution technique, will not disposably divide
A certain application is given in excessive space, but according to this practically necessary capacity of application, and repeatedly a small amount of distributes to application
Program, increases when this application produces data, and the when that the volume space of distribution being not enough, system can be again from the storage pool of rear end
Supplement the memory space of a distribution part, it is possible to fully allocate the volume space of hard disk.And the data of virtual machine are being entered
During row backup, need first to create a backup image document, this backup image document can back up logical volume management and simplify
The data of volume, but owing to backup image document is an extremely complex file format system, generally it directly cannot be entered
Row read-write operation, now needs to use instrument qemu-ndb (a kind of analog processor) by backup image literary composition through application programming interface
Shelves carry is in network control techology (Network Block Device), and network control techology can be by the disk of a distance host
Space uses as a block device, and the hard drive space of another station server can be increased to this locality by user very easily
On server, network control techology provides a block device, and client can be formatted into all kinds this block device
Subregion, the use of the user that is more convenient for.Backup image document is operated by the catalogue accessing network control techology, such that it is able to will
The Backup Data write backup read from logical volume management simplification volume according to partial data synopsis or incremental data synopsis
In mirror image document, the backup of completion logic volume management simplification volume, due to when being made without full backup according to incremental data
Synopsis carries out incremental backup, the most only current backup time point in backup logical volume management simplification volume to logical volume management simplification volume
With the difference section of data during last BACKUP TIME point, therefore can effectively save space, make the sky of backup image document
Between less.
Wherein, create the Virtual Space logical space more than logical volume management simplification volume of backup image document, to ensure
Being smoothed out of Backup Data.Preferably, in one embodiment, the Virtual Space size of backup image document and logic pipe crimping
The logical space size of reason simplification volume is identical, had not both had because the situation of backup image document space little backup spilling, and had protected
Card can complete backup smoothly, and does not results in the waste in space.
In one embodiment, seeing Fig. 2, step S100 includes:
S110, it is judged that logical volume management simplification volume is the need of carrying out full backup;The most then obtain logical volume management essence
The partial data synopsis of letter volume;If it is not, then obtain the incremental data synopsis of logical volume management simplification volume.
When logical volume management simplification volume schedule backup process, at backup or a front Backup Data for the first time it is the most only
Empty situation just does full backup, is the most all incremental backup, first judges whether to need to carry out full backup, obtain as required
The partial data synopsis of logical volume management simplification volume or the incremental data synopsis of logical volume management simplification volume, improve logical volume
The backup efficiency of management simplification volume.And the relevant parameter that incremental data synopsis recording increment data are corresponding, also save one
Fixed memory space, reduces the waste every time recording the space that all of data cause.
In one embodiment, step S300 includes:
S310, if obtain is partial data synopsis, have recorded full back-up data and is patrolling in partial data synopsis
Collect storage position and the BACKUP TIME point of full back-up data of volume management simplification volume, and when reaching BACKUP TIME point from storage
Full back-up data is read in position;Wherein, during full back-up data includes partial data synopsis in the storage position of record
All data.
S320, if obtain is incremental data synopsis, have recorded incremental backup data and is patrolling in incremental data synopsis
Collect storage position and the BACKUP TIME point of incremental backup data of volume management simplification volume, and when reaching BACKUP TIME point from storage
Incremental backup data is read in position;Wherein, during incremental backup data includes incremental data synopsis in the storage position of record
Data current backup time point with on the difference section of once BACKUP TIME point.
If obtain is partial data synopsis, according to the BACKUP TIME point of the data in Intact control table and depositing of data
Storage space is put, and reads Backup Data from the storage position that logical volume management simplification volume is corresponding when reaching BACKUP TIME point, as
Full back-up data, and full back-up data is written in backup image document by network control techology, completion logic pipe crimping
The full backup of reason simplification volume.If obtain is incremental data synopsis, according to data in increment synopsis when current backup
Between the storage position of data of the difference section of point and last BACKUP TIME point and difference section, reaching the current backup time
From the storage position that logical volume management simplification volume is corresponding, difference section is read, as incremental backup data, and by increment during point
Backup Data is written in backup image document by network control techology.Owing to using the mode of incremental backup during Backup Data,
Therefore the waste every time carrying out the space that partial data backup causes can be reduced.
Hereinafter full backup and incremental backup are described in detail:
Seeing Fig. 4, in Fig. 4, what full backup s1 represented is the data mode of BACKUP TIME point 1 (snap1), and increment is standby
Must there is the data mode that could represent BACKUP TIME point 3 (snap3) in part s1_s3, similarly, increase with full backup s1 simultaneously
Amount backup s3_s4 must exist with incremental backup s1_s3 and full backup s1 simultaneously could represent BACKUP TIME point 4 (snap4)
Data mode.In Fig. 4, backing is meant that this incremental backup only describes from last BACKUP TIME point to current backup
The residual quantity of time point.
In one embodiment, the backup image document of establishment is backup image document based on qcow2 form, based on
The backup image document of qcow2 form has the function of snapshot.
In one embodiment, after step S400, also include:
S500, creates the snapshot of backup image document based on qcow2 form, and snapshot record is based on qcow2 form standby
The backup completion status of part mirror image document.
S600, when logical volume management simplification volume breaks down, according to snapshot by described backup mirror based on qcow2 form
As Document retrieval is to backup completion status.
S700, the backup image document hang based on qcow2 form being restored to back up completion status is loaded in network block and sets
In Bei.
S800, is restored to back up the backup image based on qcow2 form of completion status by operation network control techology
Data in document write other logical volume management simplification volume.
After Backup Data in logical volume management simplification volume being write based on qcow2 form backup image document every time,
Utilize the snapshot functions of backup image document based on qcow2 form, create the fast of backup image document based on qcow2 form
According to, record the backup completion status of backup image document based on qcow2 form.And backup image document is provided with any
The equipment of qemu-kvm (VME operating system based on kernel) can open empty machine, and open empty chance and cause backup mirror
As the amendment of data in document, if so when current logic volume management simplification volume breaks down, for ensureing that existence can be just
The logical volume management simplification volume often used, needs to return to the data in backup image document other normal logical volume management
In simplification volume, but in order to inspect this backup image document empty machine of needs unlatching in practical operation, open empty machine and then can cause
Backup image document in the amendment of data, in order to ensure that the data returning in other normal logic volume management simplification volume are with former
The concordance of the data of the logical volume management simplification volume broken down come, needs to use backup image based on qcow2 form
The snapshot functions of document is that it creates snapshot when backing up completion status, thus according to snapshot by the data in backup image document
Return to back up good working condition.
Wherein it is desired to explanation, if user ensure that the backup mirror based on qcow2 form after having backed up
As document will not do any write, breakdown action, then it is not required to above-mentioned snapshot functions.
Further, the step of the snapshot creating backup image document based on qcow2 form includes:
The complete snapshot of the backup image document based on qcow2 form after full backup, this complete snapshot are created
The full backup completion status of middle record backup image based on qcow2 form document.
The incremental snapshot of the backup image document based on qcow2 form after incremental backup, this incremental snapshot are created
The incremental backup completion status of middle record backup image based on qcow2 form document.Wherein, standby if carried out multiple incremental
Part, after the most often carrying out an incremental backup, all create an incremental snapshot.
Create complete snapshot and the incremental snapshot of backup image document based on qcow2 form, if user wants to return to
During full backup completion status, according to complete snapshot, the backup image Document retrieval of qcow2 form is completed shape to full backup
State, if user wants to return to certain incremental backup completion status, according to certain incremental snapshot by the backup mirror of qcow2 form
As Document retrieval is to certain incremental backup completion status, meets user and backup image Document retrieval based on qcow2 form is arrived
The demand of different conditions.
Preferably, the step of the snapshot creating backup image document based on qcow2 form only includes establishment and completes completely
The complete snapshot of the backup image document based on qcow2 form after backup, the most both can guarantee that the concordance of data, had saved again
Space, and relatively easily implement.
In one embodiment, when performing step S400, also include: partial data synopsis or incremental data are compareed
In table, storage position and the BACKUP TIME point of the Backup Data of record are write in backup image document by network control techology.Now
In the snapshot of the backup image document based on qcow2 form created, also record has storage position and BACKUP TIME point.
So when current logical volume management simplification volume breaks down, need the Backup Data in backup image document
Return in other good logical volume management simplification volume, when recovering Backup Data, according to the Backup Data of record in snapshot
Storage position and BACKUP TIME point Backup Data is write back to one by one in other trouble-free logical volume management simplification volume, thus
Restore logical volume management simplification volume as before.
Wherein it is desired to explanation, according to aforesaid complete snapshot and incremental snapshot, it is also possible to restore be in different complete
Logical volume management simplification volume during one-tenth state (complete completion status or increment completion status), to meet the different demands of user.
In one embodiment, after step S400, also include: cancel the extension of backup image document and network control techology
Carry.
Further, after step S800, also include: cancel the carry of backup image document and network control techology.Avoid
Backup image document is written and read operating by client by network control techology, it is ensured that the safety of backup image document.Wherein,
Link between backup image document and network control techology and cut off by application programming interface.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, be permissible
Instructing relevant hardware by computer program to complete, described program can be stored in a computer read/write memory medium
In, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access
Memory, RAM) etc..
In one embodiment, as it is shown on figure 3, additionally provide the data backup system of a kind of logic-based volume management simplification volume
System, this system includes: acquisition module 100, for obtaining partial data synopsis or the incremental data of logical volume management simplification volume
Synopsis.Create carry module 200, be used for creating backup image document, and backup image document hang is loaded in network control techology
In.Read module 300, for reading from logical volume management simplification volume according to partial data synopsis or incremental data synopsis
Backup Data.First writing module 400, for being written to network block by Backup Data by network control techology is carried out write operation
In backup image document in equipment.
The data backup system of the logic-based volume management simplification volume in the present embodiment, carries out partial data backup at needs
Time according to partial data synopsis, logical volume management simplification volume is carried out full backup, usual full backup only need to be carried out once,
According to incremental data synopsis, logical volume management simplification volume is carried out incremental backup when being made without full backup, the most standby
Current backup time point and the difference section of last BACKUP TIME point in part logical volume management simplification volume, therefore can be effective
Saving space, the space making backup image document is less.
In one embodiment, read module 300 includes: first reads unit 310, if being partial data for obtain
Synopsis, have recorded full back-up data in the storage position of described logical volume management simplification volume and complete in partial data synopsis
The BACKUP TIME point of whole Backup Data, and read described full backup number from described storage position when reaching BACKUP TIME point
According to;Wherein, all data in the storage position of record during full back-up data includes described partial data synopsis.Second reads
Taking unit 320, if being incremental data synopsis for obtain, incremental data synopsis have recorded incremental backup data in institute
State storage position and the BACKUP TIME point of described incremental backup data of logical volume management simplification volume, and reach BACKUP TIME point
Time from storage position read incremental backup data;Wherein, record during incremental backup data includes described incremental data synopsis
Data in storage position current point in time with on the difference section of once BACKUP TIME point.
In one embodiment, the described backup image document of establishment is backup image document based on qcow2 form.Institute
System of stating also includes: create snapshot module 500, and for creating the snapshot of backup image document based on qcow2 form, snapshot is remembered
Record the backup completion status of backup image document based on qcow2 form.Recover module 600, for simplifying when logical volume management
When volume breaks down, according to snapshot by backup image Document retrieval based on qcow2 form to backup completion status.Carry module
700, it is loaded in network control techology for being restored to back up the backup image document hang based on qcow2 form of completion status.
Second writing module 800, for being restored to back up the based on qcow2 form standby of completion status by operation network control techology
Data in part mirror image document write other logical volume management simplification volume.
In one embodiment, create snapshot module 500 to include: create complete snapshot unit 510, completed for establishment
Reorganize and outfit the complete snapshot of the backup image document based on qcow2 form after part, complete snapshot records based on qcow2 form
The full backup completion status of backup image document.Create incremental snapshot unit 520, the base after having created incremental backup
In the incremental snapshot of the backup image document of qcow2 form, incremental snapshot records backup image document based on qcow2 form
Incremental backup completion status.In one embodiment, the first writing module 400, it is additionally operable to partial data synopsis or increasing
In amount data synopsis, storage position and the BACKUP TIME point of the Backup Data of record write backup image by network control techology
In document.The snapshot of the backup image document based on qcow2 form creating snapshot module 500 establishment also records and deposits described in having
Storage space is put and described BACKUP TIME point.
In one embodiment, the Virtual Space size of backup image file and the logical space of logical volume management simplification volume
Size is identical.
The principle of problem and the data back up method of aforementioned a kind of logic-based volume management simplification volume is solved due to this system
Similar, therefore the enforcement of this system may refer to the enforcement of preceding method, repeats no more in place of repetition.
Each technical characteristic of embodiment described above can combine arbitrarily, for making description succinct, not to above-mentioned reality
The all possible combination of each technical characteristic executed in example is all described, but, as long as the combination of these technical characteristics is not deposited
In contradiction, all it is considered to be the scope that this specification is recorded.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes more concrete and detailed, but also
Can not therefore be construed as limiting the scope of the patent.It should be pointed out that, come for those of ordinary skill in the art
Saying, without departing from the inventive concept of the premise, it is also possible to make some deformation and improvement, these broadly fall into the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.
Claims (12)
1. the data back up method of a logic-based volume management simplification volume, it is characterised in that described method includes:
Obtain partial data synopsis or the incremental data synopsis of logical volume management simplification volume;
Create backup image document, and described backup image document hang is loaded in network control techology;
Read standby from described logical volume management simplification volume according to described partial data synopsis or described incremental data synopsis
Number evidence;
By described network control techology being carried out described in described Backup Data is written in described network control techology by write operation
In backup image document.
The data back up method of logic-based volume management simplification volume the most according to claim 1, it is characterised in that according to institute
State partial data synopsis or described incremental data synopsis from described logical volume management simplification volume, read the step of Backup Data
Suddenly include:
If obtain is partial data synopsis, described partial data synopsis have recorded full back-up data in described logic
The storage position of volume management simplification volume and the BACKUP TIME point of described full back-up data, and when reaching described BACKUP TIME point
Described full back-up data is read from described storage position;Wherein, described full back-up data includes that described partial data compares
All data in the storage position of record in table;
If obtain is incremental data synopsis, described incremental data synopsis have recorded incremental backup data in described logic
The storage position of volume management simplification volume and the BACKUP TIME point of described incremental backup data, and when reaching described BACKUP TIME point
Described incremental backup data is read from described storage position;Wherein, described incremental backup data includes that described incremental data compares
In table the data in the storage position of record current backup time point with on the difference section of once BACKUP TIME point.
The data back up method of logic-based volume management simplification volume the most according to claim 1, it is characterised in that establishment
Described backup image document is backup image document based on qcow2 form, described by writing described network control techology
After step in the described backup image document that described Backup Data is written in described network control techology by operation, also wrap
Include:
Create the snapshot of described backup image document based on qcow2 form, based on qcow2 form described in described snapshot record
The backup completion status of backup image document;
When described logical volume management simplification volume breaks down, according to described snapshot by described backup mirror based on qcow2 form
As Document retrieval is to described backup completion status;
The backup image document hang based on qcow2 form being restored to described backup completion status is loaded in described network control techology
In;
Backup image based on the qcow2 form literary composition of described backup completion status it is restored to by operating described network control techology
Data in Dang write other logical volume management simplification volume.
The data back up method of logic-based volume management simplification volume the most according to claim 3, it is characterised in that described wound
The step of the snapshot building described backup image document based on qcow2 form includes:
Create the complete snapshot of the backup image document based on qcow2 form after full backup, in described complete snapshot
Record the full backup completion status of backup image document based on qcow2 form;
Create the incremental snapshot of the backup image document based on qcow2 form after incremental backup, in described incremental snapshot
Record the incremental backup completion status of backup image document based on qcow2 form.
The data back up method of logic-based volume management simplification volume the most according to claim 4, it is characterised in that performing
Described by described network control techology being carried out described in described Backup Data is written in described network control techology by write operation
During step in backup image document, also include:
By in described partial data synopsis or described incremental data synopsis record described Backup Data storage position and
BACKUP TIME point is write in described backup image document by described network control techology;
When creating the snapshot of described backup image document based on qcow2 form, in described snapshot, also record has described storage
Position and described BACKUP TIME point.
6., according to the data back up method of the logic-based volume management simplification volume described in any one of claim 1 to 5, its feature exists
In, the Virtual Space size of described backup image file is identical with the logical space size of described logical volume management simplification volume.
7. the data backup system of a logic-based volume management simplification volume, it is characterised in that described system includes:
Acquisition module, for obtaining partial data synopsis or the incremental data synopsis of logical volume management simplification volume;
Create carry module, be used for creating backup image document, and described backup image document hang is loaded in network control techology;
Read module, for smart from described logical volume management according to described partial data synopsis or described incremental data synopsis
Letter volume reads Backup Data;
First writing module, for being written to described net by described Backup Data by described network control techology is carried out write operation
In described backup image document in network block device.
The data backup system of logic-based volume management simplification volume the most according to claim 7, it is characterised in that described reading
Delivery block includes:
First reads unit, if being partial data synopsis for obtain, have recorded complete in described partial data synopsis
Backup Data is at the storage position of described logical volume management simplification volume and the BACKUP TIME point of described full back-up data, and is reaching
To reading described full back-up data during described BACKUP TIME point from described storage position;Wherein, described full back-up data bag
Include all data in the storage position of record in described partial data synopsis;
Second reads unit, if being incremental data synopsis for obtain, have recorded increment in described incremental data synopsis
Backup Data is at the storage position of described logical volume management simplification volume and the BACKUP TIME point of described incremental backup data, and is reaching
To reading described incremental backup data during described BACKUP TIME point from described storage position;Wherein, described incremental backup data bag
Include in described incremental data synopsis data in the storage position of record current point in time with on once BACKUP TIME point
Difference section.
The data backup system of logic-based volume management simplification volume the most according to claim 7, it is characterised in that establishment
Described backup image document is backup image document based on qcow2 form;Described system also includes:
Create snapshot module, for creating the snapshot of described backup image document based on qcow2 form, described snapshot record institute
State the backup completion status of backup image document based on qcow2 form;
Recover module, for when described logical volume management simplification volume breaks down, according to described snapshot by described based on qcow2
The backup image Document retrieval of form is to described backup completion status;
Carry module, is loaded in for being restored to the backup image document hang based on qcow2 form of described backup completion status
In described network control techology;
Second writing module, for by operate described network control techology be restored to described backup completion status based on
Data in the backup image document of qcow2 form write other logical volume management simplification volume.
The data backup system of logic-based volume management simplification volume the most according to claim 9, it is characterised in that described
Establishment snapshot module includes:
Create complete snapshot unit, be used for the complete of the backup image document based on qcow2 form after having created full backup
Whole snapshot, records the full backup completion status of backup image document based on qcow2 form in described complete snapshot;
Create incremental snapshot unit, the increasing of the backup image document based on qcow2 form after having created incremental backup
Amount snapshot, records the incremental backup completion status of backup image document based on qcow2 form in described incremental snapshot.
The data backup system of 11. logic-based volume management simplification volume according to claim 10, it is characterised in that described
First writing module, is additionally operable in the most described partial data synopsis or described incremental data synopsis the described backup of record
The storage position of data and BACKUP TIME point are write in described backup image document by described network control techology;
In the snapshot of described based on qcow2 form the backup image document that described establishment snapshot module creates, also record has described
Storage position and described BACKUP TIME point.
12. according to the data backup system of the logic-based volume management simplification volume described in any one of claim 7 to 11, its feature
Being, the Virtual Space size of described backup image file is identical with the logical space size of described logical volume management simplification volume.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610592735.7A CN106227621B (en) | 2016-07-25 | 2016-07-25 | The data back up method and system of logic-based volume management simplification volume |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610592735.7A CN106227621B (en) | 2016-07-25 | 2016-07-25 | The data back up method and system of logic-based volume management simplification volume |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106227621A true CN106227621A (en) | 2016-12-14 |
CN106227621B CN106227621B (en) | 2019-03-01 |
Family
ID=57533902
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610592735.7A Expired - Fee Related CN106227621B (en) | 2016-07-25 | 2016-07-25 | The data back up method and system of logic-based volume management simplification volume |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106227621B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391310A (en) * | 2017-07-30 | 2017-11-24 | 安徽云帮邦网络技术有限公司 | A kind of computer data cloud service backup method |
CN109460187A (en) * | 2018-11-09 | 2019-03-12 | 郑州云海信息技术有限公司 | A kind of qcow2 file data consistency verification method and verifying terminal |
CN109802976A (en) * | 2017-11-16 | 2019-05-24 | 航天信息股份有限公司 | Cloud hard disk dynamic dispatching method, device and the electronic system of Open Stack cloud platform |
CN110321251A (en) * | 2019-06-03 | 2019-10-11 | 平安科技(深圳)有限公司 | Data back up method, device, equipment and storage medium based on network control techology |
CN110633260A (en) * | 2019-08-07 | 2019-12-31 | 上海爱数信息技术股份有限公司 | NAS storage data continuous protection method and protection system |
CN111090549A (en) * | 2019-12-27 | 2020-05-01 | 航天壹进制(南京)数据科技有限公司 | Volume CBT drive-based method for incrementally migrating volume-level data back to original machine |
CN111209250A (en) * | 2019-12-26 | 2020-05-29 | 天津中科曙光存储科技有限公司 | Disk file management method and system |
CN112817797A (en) * | 2021-02-07 | 2021-05-18 | 上海英方软件股份有限公司 | Backup data management method and system |
CN113535467A (en) * | 2020-04-20 | 2021-10-22 | 慧与发展有限责任合伙企业 | Backup objects with block-signed compact lists for fully pre-allocated volumes |
CN113722149A (en) * | 2021-07-23 | 2021-11-30 | 苏州浪潮智能科技有限公司 | Data backup method and device and related components |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070112896A1 (en) * | 2003-08-05 | 2007-05-17 | Miklos Sandorfi | Emulated storage system |
CN102150124A (en) * | 2008-10-02 | 2011-08-10 | 日立系统解决方案有限公司 | Information backup/restoration processing apparatus and information backup/restoration processing system |
CN103019890A (en) * | 2012-12-24 | 2013-04-03 | 清华大学 | Block-level disk data protection system and method thereof |
US8938638B2 (en) * | 2011-06-06 | 2015-01-20 | Microsoft Corporation | Recovery service location for a service |
CN104714859A (en) * | 2013-12-17 | 2015-06-17 | 南京壹进制信息技术有限公司 | Rapid backup and recovery method of mass files |
CN105740101A (en) * | 2016-01-29 | 2016-07-06 | 青岛海尔智能家电科技有限公司 | Automatic backup and automatic restoration method and apparatus for MySQL database |
-
2016
- 2016-07-25 CN CN201610592735.7A patent/CN106227621B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070112896A1 (en) * | 2003-08-05 | 2007-05-17 | Miklos Sandorfi | Emulated storage system |
CN102150124A (en) * | 2008-10-02 | 2011-08-10 | 日立系统解决方案有限公司 | Information backup/restoration processing apparatus and information backup/restoration processing system |
US8938638B2 (en) * | 2011-06-06 | 2015-01-20 | Microsoft Corporation | Recovery service location for a service |
CN103019890A (en) * | 2012-12-24 | 2013-04-03 | 清华大学 | Block-level disk data protection system and method thereof |
CN104714859A (en) * | 2013-12-17 | 2015-06-17 | 南京壹进制信息技术有限公司 | Rapid backup and recovery method of mass files |
CN105740101A (en) * | 2016-01-29 | 2016-07-06 | 青岛海尔智能家电科技有限公司 | Automatic backup and automatic restoration method and apparatus for MySQL database |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391310A (en) * | 2017-07-30 | 2017-11-24 | 安徽云帮邦网络技术有限公司 | A kind of computer data cloud service backup method |
CN109802976A (en) * | 2017-11-16 | 2019-05-24 | 航天信息股份有限公司 | Cloud hard disk dynamic dispatching method, device and the electronic system of Open Stack cloud platform |
CN109460187B (en) * | 2018-11-09 | 2022-05-03 | 郑州云海信息技术有限公司 | Verification method and verification terminal for data consistency of qcow2 file |
CN109460187A (en) * | 2018-11-09 | 2019-03-12 | 郑州云海信息技术有限公司 | A kind of qcow2 file data consistency verification method and verifying terminal |
CN110321251A (en) * | 2019-06-03 | 2019-10-11 | 平安科技(深圳)有限公司 | Data back up method, device, equipment and storage medium based on network control techology |
CN110321251B (en) * | 2019-06-03 | 2023-06-20 | 平安科技(深圳)有限公司 | Data backup method, device, equipment and storage medium based on network block equipment |
CN110633260B (en) * | 2019-08-07 | 2023-06-06 | 上海爱数信息技术股份有限公司 | NAS storage data continuous protection method and protection system |
CN110633260A (en) * | 2019-08-07 | 2019-12-31 | 上海爱数信息技术股份有限公司 | NAS storage data continuous protection method and protection system |
CN111209250A (en) * | 2019-12-26 | 2020-05-29 | 天津中科曙光存储科技有限公司 | Disk file management method and system |
CN111090549B (en) * | 2019-12-27 | 2022-04-05 | 南京壹进制信息科技有限公司 | Volume CBT drive-based method for incrementally migrating volume-level data back to original machine |
CN111090549A (en) * | 2019-12-27 | 2020-05-01 | 航天壹进制(南京)数据科技有限公司 | Volume CBT drive-based method for incrementally migrating volume-level data back to original machine |
CN113535467A (en) * | 2020-04-20 | 2021-10-22 | 慧与发展有限责任合伙企业 | Backup objects with block-signed compact lists for fully pre-allocated volumes |
CN113535467B (en) * | 2020-04-20 | 2023-07-18 | 慧与发展有限责任合伙企业 | Method, machine-readable storage medium, and computing device for backing up objects |
CN112817797A (en) * | 2021-02-07 | 2021-05-18 | 上海英方软件股份有限公司 | Backup data management method and system |
CN113722149A (en) * | 2021-07-23 | 2021-11-30 | 苏州浪潮智能科技有限公司 | Data backup method and device and related components |
CN113722149B (en) * | 2021-07-23 | 2023-06-16 | 苏州浪潮智能科技有限公司 | Data backup method and device and related components |
Also Published As
Publication number | Publication date |
---|---|
CN106227621B (en) | 2019-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106227621B (en) | The data back up method and system of logic-based volume management simplification volume | |
CN105612503B (en) | Persistent data structure | |
US8805902B2 (en) | Managing snapshot storage pools | |
CN102841761B (en) | Storage system | |
US6473775B1 (en) | System and method for growing differential file on a base volume of a snapshot | |
US8438346B2 (en) | Synchronization of a virtual storage system and an actual storage system | |
US8521986B2 (en) | Allocating storage memory based on future file size or use estimates | |
CN101311911B (en) | Staging memory system and data migration method thereof | |
CN105718217B (en) | A kind of method and device of simplify configuration storage pool data sign processing | |
US7461201B2 (en) | Storage control method and system for performing backup and/or restoration | |
US20050163014A1 (en) | Duplicate data storing system, duplicate data storing method, and duplicate data storing program for storage device | |
CN105159818A (en) | Log recovery method in memory data management and log recovery simulation system in memory data management | |
CN110175001A (en) | A kind of NOR-FLASH date storage method, computer equipment and storage medium | |
CN103793258A (en) | Hypervisor-based server duplication system and method | |
CN106062742A (en) | Systems and methods for improving snapshot performance | |
US6952757B2 (en) | Method, system, and program for managing storage units in storage pools | |
CN106126439A (en) | Variable partition in mixing storage subsystem | |
CN104679668B (en) | Storage system and control method thereof | |
CN109558457A (en) | A kind of method for writing data, device, equipment and storage medium | |
CN109522154A (en) | Data reconstruction method and relevant device and system | |
CN100530069C (en) | Virtualizing system and method for non-homogeny storage device | |
CN103678149A (en) | Data processing method and device | |
CN106293497B (en) | Watt record filesystem-aware in junk data recovery method and device | |
CN104272242A (en) | Creating encrypted storage volumes | |
CN109902034A (en) | Snapshot creation method, device, electronic equipment and machine readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190301 |