CN106227621B - The data back up method and system of logic-based volume management simplification volume - Google Patents

The data back up method and system of logic-based volume management simplification volume Download PDF

Info

Publication number
CN106227621B
CN106227621B CN201610592735.7A CN201610592735A CN106227621B CN 106227621 B CN106227621 B CN 106227621B CN 201610592735 A CN201610592735 A CN 201610592735A CN 106227621 B CN106227621 B CN 106227621B
Authority
CN
China
Prior art keywords
backup
data
comparisons
image document
incremental
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.)
Expired - Fee Related
Application number
CN201610592735.7A
Other languages
Chinese (zh)
Other versions
CN106227621A (en
Inventor
陈杰
沈伟亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING FORTUNET INFORMATION TECHNOLOGY CO LTD
Original Assignee
BEIJING FORTUNET INFORMATION TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING FORTUNET INFORMATION TECHNOLOGY CO LTD filed Critical BEIJING FORTUNET INFORMATION TECHNOLOGY CO LTD
Priority to CN201610592735.7A priority Critical patent/CN106227621B/en
Publication of CN106227621A publication Critical patent/CN106227621A/en
Application granted granted Critical
Publication of CN106227621B publication Critical patent/CN106227621B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

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 the backup method and system of a kind of logic-based volume management simplification volume.Wherein method includes: the partial data table of comparisons or the incremental data table of comparisons for obtaining logical volume management simplification volume;Backup image document is created, and backup image document hang is loaded in network control techology;Backup Data is read from logical volume management simplification volume according to the partial data table of comparisons or the incremental data table of comparisons;Backup Data is written in the backup image document in network control techology by carrying out write operation to network control techology.It carries out full backup to logical volume is simplified according to the partial data table of comparisons when needing to carry out partial data backup, usual full backup need to only carry out once, incremental backup is carried out to logical volume is simplified according to the incremental data table of comparisons when not needing to carry out full backup, therefore space can be effectively saved, keeps the space of backup image document smaller.

Description

The data back up method and system of logic-based volume management simplification volume
Technical field
The present invention relates to computer equipment fields, more particularly to a kind of data backup of logic-based volume management simplification volume Method and system.
Background technique
For the logical volume management essence to be researched and developed based on LVM (Logical Volume Manager, logical volume management) Letter volume (LVM Thin Volume) makees cloud hard disk under openstack (cloud computing of an open source manages platform project) environment When schedule backup, full backup is usually periodically done, does full backup very wasting space every time in this way, and export RAW lattice The backup of formula does not have the function of snapshot (snapshot), is unfavorable for empty machine user (VM User) and opens this backup inspecting The demand of system, because making to open empty machine to the backup file of output, the data that will cause backup file are modified, thus not Meet the backup purpose of data consistency.
Summary of the invention
In consideration of it, providing a kind of base it is necessary to aiming at the problem that tradition periodically does full backup wasting space to cloud hard disk In the data back up method and system of logical volume management simplification volume, full backup is done when needing to do full backup, is not being needed Incremental backup is only done when doing full backup, can efficiently reduce and do full backup bring space waste every time.
To reach goal of the invention, a kind of data back up method of logic-based volume management simplification volume, the method packet are provided It includes:
Obtain the partial data table of comparisons or the incremental data table of comparisons of logical volume management simplification volume;
Backup image document is created, and the backup image document hang is loaded in network control techology;
It is read from the logical volume management simplification volume according to the partial data table of comparisons or the incremental data table of comparisons Take Backup Data;
The Backup Data is written in the network control techology by carrying out write operation to the network control techology In the backup image document.
It is patrolled in one of the embodiments, according to the partial data table of comparisons or the incremental data table of comparisons from described Collecting the step of Backup Data is read in volume management simplification volume includes:
If what is obtained is the partial data table of comparisons, full back-up data is had recorded described in the partial data table of comparisons The BACKUP TIME of the storage location of logical volume management simplification volume and full back-up data point, and reaching the BACKUP TIME The full back-up data is read from the storage location when point;Wherein, the full back-up data includes the partial data All data in the storage location recorded in the table of comparisons;
If what is obtained is the incremental data table of comparisons, incremental backup data is had recorded described in the incremental data table of comparisons The BACKUP TIME of the storage location of logical volume management simplification volume and incremental backup data point, and reaching the BACKUP TIME The incremental backup data is read from the storage location when point;Wherein, the incremental backup data includes the incremental data Difference section of the data in storage location recorded in the table of comparisons at current backup time point and upper primary BACKUP TIME point.
The backup image document created in one of the embodiments, is the backup image text based on qcow2 format Shelves, the institute by being written to the Backup Data to network control techology progress write operation in the network control techology After stating the step in backup image document, further includes:
The snapshot of the backup image document based on qcow2 format is created, the snapshot record is described to be based on qcow2 lattice The backup completion status of the backup image document of formula;
When the logical volume management simplification volume breaks down, according to the snapshot by described based on the standby of qcow2 format Part mirror image Document retrieval is to the backup completion status;
The backup image document hang based on qcow2 format for being restored to the backup completion status is loaded in the network block In equipment;
The backup mirror based on qcow2 format for being restored to the backup completion status by operating the network control techology As other logical volume management simplification volume is written in the data in document.
The step of the snapshot of backup image document described in the creation based on qcow2 format in one of the embodiments, Suddenly include:
The complete snapshot of the backup image document based on qcow2 format after full backup is completed in creation, described complete fast According to the full backup completion status of middle backup image document of the record based on qcow2 format;
The incremental snapshot of the backup image document based on qcow2 format after incremental backup is completed in creation, and the increment is fast According to the incremental backup completion status of middle backup image document of the record based on qcow2 format.
It is described by carrying out write operation for the backup to the network control techology in execution in one of the embodiments, When data are written to the step in the backup image document in the network control techology, further includes:
By the storage position of the Backup Data recorded in the partial data table of comparisons or the incremental data table of comparisons It sets and BACKUP TIME point is written in the backup image document by the network control techology;
Described in also record has when creating the snapshot of the backup image document based on qcow2 format, in the snapshot Storage location and BACKUP TIME point.
The Virtual Space size of the backup image file is simplified with the logical volume management in one of the embodiments, The logical space size of volume is identical.
The present invention also provides a kind of data backup system of logic-based volume management simplification volume, the system comprises:
Module is obtained, for obtaining the partial data table of comparisons or the incremental data table of comparisons of logical volume management simplification volume;
Carry module is created, for creating backup image document, and the backup image document hang is loaded in network block and is set In standby;
Read module, for according to the partial data table of comparisons or the incremental data table of comparisons from the logic pipe crimping Backup Data is read in reason simplification volume;
First writing module, for the Backup Data to be written to institute by carrying out write operation to the network control techology It states in the backup image document in network control techology.
The read module includes: in one of the embodiments,
First reading unit has recorded in the partial data table of comparisons if being the partial data table of comparisons for what is obtained Full back-up data in the storage location of the logical volume management simplification volume and the BACKUP TIME point of the full back-up data, and The full back-up data is read from the storage location when reaching the BACKUP TIME point;Wherein, the full backup number According to all data in the storage location including being recorded in the partial data table of comparisons;
Second reading unit has recorded in the incremental data table of comparisons if being the incremental data table of comparisons for what is obtained Incremental backup data in the storage location of the logical volume management simplification volume and the BACKUP TIME point of the incremental backup data, And the incremental backup data is read from the storage location when reaching the BACKUP TIME point;Wherein, the incremental backup Data include data in the storage location recorded in the incremental data table of comparisons in current point in time and upper primary backup Between the difference section put.
The backup image document created in one of the embodiments, is the backup image text based on qcow2 format Shelves;The system also includes:
Snapshot module is created, for creating the snapshot of the backup image document based on qcow2 format, the snapshot note Record the backup completion status of the backup image document based on qcow2 format;
Recovery module, for being based on by described according to the snapshot when the logical volume management simplification volume breaks down The backup image Document retrieval of qcow2 format is to the backup completion status;
Carry module, for being restored to the backup image document hang based on qcow2 format of the backup completion status It is loaded in the network control techology;
Second writing module, for by operate the network control techology be restored to the backup completion status based on Other logical volume management simplification volume is written in data in the backup image document of qcow2 format.
The creation snapshot module includes: in one of the embodiments,
Complete snapshot unit is created, for creating the backup image document based on qcow2 format after completing full backup Complete snapshot, the full backup completion status of the backup image document based on qcow2 format is recorded in the complete snapshot;
Incremental snapshot unit is created, for creating the backup image document based on qcow2 format after completing incremental backup Incremental snapshot, the incremental backup completion status of the backup image document based on qcow2 format is recorded in the incremental snapshot.
First writing module in one of the embodiments, being also used to will be by the partial data table of comparisons or institute The storage location and BACKUP TIME point for stating the Backup Data recorded in the incremental data table of comparisons pass through the network control techology It is written in the backup image document;
There is also record in the snapshot of the backup image document based on qcow2 format of the creation snapshot module creation The storage location and BACKUP TIME point.
The Virtual Space size of the backup image file is simplified with the logical volume management in one of the embodiments, The logical space size of volume is identical.
The beneficial effect comprise that
The data back up method and system of above-mentioned logic-based volume management simplification volume, when needing to carry out partial data backup Full backup is carried out to logical volume management simplification volume according to the partial data table of comparisons, usual full backup need to only carry out once, Incremental backup is carried out to logical volume management simplification volume according to the incremental data table of comparisons when not needing to carry out full backup, i.e., is only backed up The difference section at current backup time point and last BACKUP TIME point in logical volume management simplification volume, therefore keep backup image literary The space of shelves is smaller, can effectively save space, also, the output format backed up is the qcow2 format with snapshot functions, Backup archives are smaller, can restore function after opening empty machine and terminating and shut down using snapshot, enable Backup and Restore to initial shape State, it is ensured that the consistency of data.
Detailed description of the invention
Fig. 1 is the flow diagram of the data back up method of the logic-based volume management simplification volume in one embodiment;
Fig. 2 is the flow diagram of the data back up method of the logic-based volume management simplification volume in another embodiment;
Fig. 3 is the structural schematic diagram of the data backup system of the logic-based volume management simplification volume in one embodiment;
Fig. 4 is full backup and incremental backup logical relation schematic diagram in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, right with reference to the accompanying drawings and embodiments The present invention is based on the data back up method of logical volume management simplification volume and system to be further elaborated.It should be appreciated that this Place is described, and specific examples are only used to explain the present invention, is not intended to limit the present invention.
In one embodiment, as shown in Figure 1, providing a kind of data backup side of logic-based volume management simplification volume Method, method includes the following steps:
S100 obtains the partial data table of comparisons or the incremental data table of comparisons of logical volume management simplification volume.
S200 creates backup image document, and backup image document hang is loaded in network control techology.
S300 reads backup number according to the partial data table of comparisons or the incremental data table of comparisons from logical volume management simplification volume According to.
S400 passes through the backup image being written to Backup Data to network control techology progress write operation in network control techology In document.
In the present embodiment, when logical volume management simplification volume (LVM Thin Volumes) has just established no any data write-in When, the corresponding partial data table of comparisons and the incremental data table of comparisons are sky, but have data write-in logical volume management essence When letter volume, can also there are data, i.e. partial data accordingly in the corresponding partial data table of comparisons and the incremental data table of comparisons The table of comparisons and the incremental data table of comparisons are able to reflect the real-time status of logical volume management simplification volume, such as: the partial data table of comparisons In have recorded data in logical volume management simplification volume BACKUP TIME point and the storage locations of data (data are in logical volume management The corresponding physical address of logical address and logical address in simplification volume), when having recorded current backup in the incremental data table of comparisons Between the difference section of data of the point with last BACKUP TIME point and the storage location where the data of difference section, therefore, The partial data table of comparisons or the incremental data table of comparisons are obtained by Application Programming Interface (REST API), is obtaining logical volume management After the partial data table of comparisons or the incremental data table of comparisons of simplification volume, according in the partial data table of comparisons or the incremental data table of comparisons 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 When, the data backed up to current logic volume management simplification volume can be restored to and other not have faulty logical volume management In simplification volume, guarantee has the logical volume management simplification volume that normally can be used always.
LVM (Logic Volume Manager, logical volume management) is to be managed under Linux environment to disk partition A kind of mechanism jumps out hard drive space from the way to manage of physical hard disk, carries out that unified management is facilitated to distribute, logical volume It is the virtual disk formed by logic magnetic disc.Thin Volume (simplification volume) utilizes thin provisioning (Thin- Provisioning the logical volume) obtained, thin provisioning are a capacity distribution techniques, will not disposably be divided A certain application is given in excessive space, but applies practically necessary capacity according to this, multiple a small amount of to distribute to application Program, when the volume space that the application generates data growth distribution is not enough, system can be again from the storage pool of rear end The memory space of supplement distribution a part, it is possible to the sufficiently volume space of allotment hard disk.And the data to virtual machine into When row backup, needs first to create a backup image document, logical volume management can be backed up in this backup image document and simplified Data of volume, but since backup image document is an extremely complex file format system, usually can not to its directly into Row read-write operation is needed using tool qemu-ndb (a kind of analog processor) that backup image is literary through Application Programming Interface at this time For shelves carry in network control techology (Network Block Device), network control techology can be by the disk of a distance host Space is come as a block device using the hard drive space of another server very easily can be increased to local by user On server, network control techology provides a block device, this block device can be formatted into various types by client Subregion, the use for the user that is more convenient for.Backup image document is operated by accessing the catalogue of network control techology, so as to incite somebody to action The Backup Data write-in backup read from logical volume management simplification volume according to the partial data table of comparisons or the incremental data table of comparisons In mirror image document, complete logical volume management simplification volume backup, due to do not need carry out full backup when according to incremental data The table of comparisons carries out incremental backup, i.e. only current backup time point in backup logical volume management simplification volume to logical volume management simplification volume With the difference section of data when last BACKUP TIME point, therefore space can be effectively saved, make the sky of backup image document Between it is smaller.
Wherein, the Virtual Space for creating backup image document is greater than the logical space of logical volume management simplification volume, to guarantee Backup Data is gone on smoothly.Preferably, in one embodiment, the Virtual Space size of backup image document and logic pipe crimping The logical space size for managing simplification volume is identical, has both been not in because the case where small backup of backup image document space is overflowed, protects Card can smoothly be completed to back up, and not will cause the waste in space.
In one embodiment, referring to fig. 2, step S100 includes:
Whether S110, decision logic volume management simplification volume need to carry out full backup;If so, obtaining logical volume management essence The partial data table of comparisons of letter volume;If it is not, then obtaining the incremental data table of comparisons of logical volume management simplification volume.
In logical volume management simplification volume schedule backup process, usually only it is in first time backup or a preceding Backup Data Empty situation just does full backup, is all then incremental backup, first judges whether to need to carry out full backup, obtains as needed The partial data table of comparisons of logical volume management simplification volume or the incremental data table of comparisons of logical volume management simplification volume improve logical volume Manage the backup efficiency of simplification volume.And the corresponding relevant parameter of the incremental data table of comparisons recording increment data, also save one Fixed memory space reduces the waste for recording space caused by all data every time.
In one embodiment, step S300 includes:
S310 has recorded full back-up data and is patrolling if what is obtained is the partial data table of comparisons in the partial data table of comparisons The storage location of volume management simplification volume and the BACKUP TIME point of full back-up data are collected, and when reaching BACKUP TIME point from storage Read full back-up data in position;Wherein, full back-up data includes in the storage location recorded in the partial data table of comparisons All data.
S320 has recorded incremental backup data and is patrolling if what is obtained is the incremental data table of comparisons in the incremental data table of comparisons The storage location of volume management simplification volume and the BACKUP TIME point of incremental backup data are collected, and when reaching BACKUP TIME point from storage Read incremental backup data in position;Wherein, incremental backup data includes in the storage location recorded in the incremental data table of comparisons Difference section of the data at current backup time point and upper primary BACKUP TIME point.
If what is obtained is the partial data table of comparisons, according to depositing for the BACKUP TIME of the data in Intact control table point and data Storage space is set, and reads Backup Data from the corresponding storage location of logical volume management simplification volume 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, complete logic pipe crimping Manage the full backup of simplification volume.If what is obtained is the incremental data table of comparisons, according to data in the increment table of comparisons in current backup Between point and the difference section of last BACKUP TIME point and the data of difference section storage location, reaching the current backup time Difference section is read from the corresponding storage location of logical volume management simplification volume when point, as incremental backup data, and by increment Backup Data is written in backup image document by network control techology.When due to Backup Data by the way of incremental backup, Therefore the waste for carrying out space caused by partial data backup every time can be reduced.
Full backup and incremental backup are described in detail below:
Referring to fig. 4, in Fig. 4 full backup s1 represent be BACKUP TIME point 1 (snap1) data mode, and increment is standby Part s1_s3 must exist simultaneously the data mode that could indicate BACKUP TIME point 3 (snap3) with full backup s1, similarly, increase Amount backup s3_s4 must be existed simultaneously with incremental backup s1_s3 and full backup s1 could indicate BACKUP TIME point 4 (snap4) Data mode.Backing is meant that this incremental backup is only described from last BACKUP TIME point to current backup in Fig. 4 The residual quantity at time point.
In one embodiment, the backup image document of creation is the backup image document based on qcow2 format, is based on The backup image document of qcow2 format has the function of snapshot.
In one embodiment, after step S400, further includes:
S500, creates the snapshot of the backup image document based on qcow2 format, and snapshot is recorded based on the standby of qcow2 format The backup completion status of part mirror image document.
S600, when logical volume management simplification volume breaks down, according to snapshot by the backup mirror based on qcow2 format As Document retrieval to backup completion status.
S700, the backup image document hang based on qcow2 format for being restored to backup completion status are loaded in network block and set In standby.
S800, the backup image based on qcow2 format for being restored to backup completion status by operating network control techology Other logical volume management simplification volume is written in data in document.
After the Backup Data write-in in logical volume management simplification volume is based on qcow2 format backup image document every time, Using the snapshot functions of the backup image document based on qcow2 format, the fast of the backup image document based on qcow2 format is created According to the backup completion status of backup image document of the record based on qcow2 format.And backup image document is equipped 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 It, can be just to guarantee to exist in this way if when current logic volume management simplification volume breaks down as the modification of data in document The logical volume management simplification volume being often used needs for the data in backup image document to be restored to other normal logical volume managements In simplification volume, but need to open empty machine in practical operation in order to inspect this backup image document, and open empty machine it will cause Backup image document in data modification, in order to guarantee data being restored in other normal logic volume management simplification volumes and former The consistency of the data of the logical volume management simplification volume of the failure come, needs using the backup image based on qcow2 format The snapshot when snapshot functions of document create backup completion status for it, thus according to snapshot by the data in backup image document It is restored to backup good working condition.
Wherein, it should be noted that if user can guarantee the backup mirror based on qcow2 format after the completion of backup As document will not do any write-in, breakdown action, then above-mentioned snapshot functions are not required to.
Further, the step of snapshot of backup image document of the creation based on qcow2 format includes:
The complete snapshot of the backup image document based on qcow2 format after full backup, the complete snapshot are completed in creation The full backup completion status of middle backup image document of the record based on qcow2 format.
The incremental snapshot of the backup image document based on qcow2 format after incremental backup, the incremental snapshot are completed in creation The incremental backup completion status of middle backup image document of the record based on qcow2 format.Wherein, standby if carrying out multiple incremental Part, then after incremental backup of every progress, all create an incremental snapshot.
The complete snapshot and incremental snapshot for creating the backup image document based on qcow2 format, if user wants to be restored to When full backup completion status, the backup image Document retrieval of qcow2 format to full backup is completed by shape according to complete snapshot State, if user wants to be restored to some incremental backup completion status, according to some incremental snapshot by the backup mirror of qcow2 format Picture Document retrieval meets user and arrives the backup image Document retrieval based on qcow2 format to some incremental backup completion status The demand of different conditions.
Preferably, the step of creating the snapshot of the backup image document based on qcow2 format only includes creation and completes completely The complete snapshot of the backup image document based on qcow2 format after backup not only can guarantee the consistency of data in this way, but also save Space, and relatively easy implement.
In one embodiment, when executing step S400, further includes: compare the partial data table of comparisons or incremental data Storage location and the BACKUP TIME point of the Backup Data recorded in table are written in backup image document by network control techology.At this time Also record has storage location and BACKUP TIME point in the snapshot of the backup image document based on qcow2 format of creation.
In this way when current logical volume management simplification volume breaks down, need the Backup Data in backup image document It is restored in other good logical volume management simplification volume, when restoring Backup Data, according to the Backup Data recorded in snapshot Storage location and BACKUP TIME point Backup Data is write back to one by one in other trouble-free logical volume management simplification volumes, thus Restore logical volume management simplification volume as before.
Wherein, it should be noted that according to complete snapshot above-mentioned and incremental snapshot, can also restore in different complete Logical volume management simplification volume when at state (complete completion status or increment completion status), to meet the different demands of user.
In one embodiment, after step S400, further includes: cancel the extension of backup image document and network control techology It carries.
Further, after step S800, further includes: cancel the carry of backup image document and network control techology.It avoids Client is written and read backup image document by network control techology, guarantees the safety of backup image document.Wherein, Connection is cut off by Application Programming Interface between backup image document and network control techology.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
In one embodiment, as shown in figure 3, additionally providing a kind of data backup system of logic-based volume management simplification volume System, which includes: to obtain module 100, for obtaining the partial data table of comparisons or incremental data of logical volume management simplification volume The table of comparisons.Carry module 200 is created, is loaded in network control techology for creating backup image document, and by backup image document hang In.Read module 300, for being read from logical volume management simplification volume according to the partial data table of comparisons or the incremental data table of comparisons Backup Data.First writing module 400, for Backup Data to be written to network block by carrying out write operation to network control techology In backup image document in equipment.
The data backup system of logic-based volume management simplification volume in the present embodiment is needing to carry out partial data backup When full backup carried out to logical volume management simplification volume according to the partial data table of comparisons, usual full backup need to only carry out once, Incremental backup is carried out to logical volume management simplification volume according to the incremental data table of comparisons when not needing to carry out full backup, i.e., it is only standby The difference section at current backup time point and last BACKUP TIME point in part logical volume management simplification volume, therefore can be effective Space is saved, keeps the space of backup image document smaller.
In one embodiment, read module 300 includes: the first reading unit 310, if being partial data for what is obtained The table of comparisons has recorded full back-up data in the partial data table of comparisons in the storage location of the logical volume management simplification volume and complete The BACKUP TIME point of whole Backup Data, and the full backup number is read from the storage location when reaching BACKUP TIME point According to;Wherein, full back-up data includes all data in the storage location recorded in the partial data table of comparisons.Second reads Unit 320 is taken, if being the incremental data table of comparisons for what is obtained, incremental backup data is had recorded in the incremental data table of comparisons in institute The storage location of logical volume management simplification volume and the BACKUP TIME point of the incremental backup data are stated, and is reaching BACKUP TIME point When from storage location read incremental backup data;Wherein, incremental backup data includes recording in the incremental data table of comparisons The difference section of data in storage location in current point in time and upper primary BACKUP TIME point.
In one embodiment, the backup image document of creation is the backup image document based on qcow2 format.Institute State system further include: creation snapshot module 500, for creating the snapshot of the backup image document based on qcow2 format, snapshot note Record the backup completion status of the backup image document based on qcow2 format.Recovery module 600, for being simplified when logical volume management When volume breaks down, according to snapshot by the backup image Document retrieval based on qcow2 format to backup completion status.Carry module 700, the backup image document hang based on qcow2 format for being restored to backup completion status is loaded in network control techology. Second writing module 800, for by operate network control techology be restored to backup completion status based on the standby of qcow2 format Other logical volume management simplification volume is written in data in part mirror image document.
In one embodiment, creation snapshot module 500 includes: the complete snapshot unit 510 of creation, has been completed for creating The complete snapshot of the backup image document based on qcow2 format after reorganizing and outfit part, record is based on qcow2 format in complete snapshot The full backup completion status of backup image document.Incremental snapshot unit 520 is created, for creating the base after completing incremental backup The backup image document based on qcow2 format is recorded in the incremental snapshot of the backup image document of qcow2 format, incremental snapshot Incremental backup completion status.In one embodiment, the first writing module 400 is also used to the partial data table of comparisons or increasing Backup image is written by network control techology in the storage location and BACKUP TIME point of the Backup Data recorded in the amount data table of comparisons In document.Also record has described deposit in the snapshot for the backup image document based on qcow2 format that creation snapshot module 500 creates Storage space is set and BACKUP TIME point.
In one embodiment, the logical space of the Virtual Space size Yu logical volume management simplification volume of backup image file Size is identical.
The principle solved the problems, such as due to this system and a kind of aforementioned data back up method of logic-based volume management simplification volume It is similar, therefore the implementation of the system may refer to the implementation of preceding method, overlaps will not be repeated.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of data back up method of logic-based volume management simplification volume, which is characterized in that the described method includes:
Obtain the partial data table of comparisons or the incremental data table of comparisons of logical volume management simplification volume;
Backup image document is created, and the backup image document hang is loaded in network control techology;
It is read from the logical volume management simplification volume according to the partial data table of comparisons or the incremental data table of comparisons standby Part data;
By being carried out described in the Backup Data is written in the network control techology by write operation to the network control techology In backup image document;
The Virtual Space size of the backup image file is identical as the logical space size of the logical volume management simplification volume.
2. the data back up method of logic-based volume management simplification volume according to claim 1, which is characterized in that according to institute State the step that the partial data table of comparisons or the incremental data table of comparisons read Backup Data from the logical volume management simplification volume Suddenly include:
If what is obtained is the partial data table of comparisons, full back-up data is had recorded in the partial data table of comparisons in the logic The BACKUP TIME of the storage location of volume management simplification volume and full back-up data point, and when reaching the BACKUP TIME point The full back-up data is read from the storage location;Wherein, the full back-up data includes the partial data control All data in the storage location recorded in table;
If what is obtained is the incremental data table of comparisons, incremental backup data is had recorded in the incremental data table of comparisons in the logic The BACKUP TIME of the storage location of volume management simplification volume and incremental backup data point, and when reaching the BACKUP TIME point The incremental backup data is read from the storage location;Wherein, the incremental backup data includes the incremental data control Difference section of the data in storage location recorded in table at current backup time point and upper primary BACKUP TIME point.
3. the data back up method of logic-based volume management simplification volume according to claim 1, which is characterized in that creation The backup image document is the backup image document based on qcow2 format, described by writing to the network control techology After operating the step being written to the Backup Data in the backup image document in the network control techology, also wrap It includes:
The snapshot of the backup image document based on qcow2 format is created, the snapshot record is described based on qcow2 format The backup completion status of backup image document;
When the logical volume management simplification volume breaks down, according to the snapshot by the backup mirror based on qcow2 format As Document retrieval to the backup completion status;
The backup image document hang based on qcow2 format for being restored to the backup completion status is loaded in the network control techology In;
The backup image text based on qcow2 format for being restored to the backup completion status by operating the network control techology Other logical volume management simplification volume is written in data in shelves.
4. the data back up method of logic-based volume management simplification volume according to claim 3, which is characterized in that the wound The step of building the snapshot of the backup image document based on qcow2 format include:
The complete snapshot of the backup image document based on qcow2 format after full backup is completed in creation, in the complete snapshot Record the full backup completion status of the backup image document based on qcow2 format;
The incremental snapshot of the backup image document based on qcow2 format after incremental backup is completed in creation, in the incremental snapshot Record the incremental backup completion status of the backup image document based on qcow2 format.
5. the data back up method of logic-based volume management simplification volume according to claim 4, which is characterized in that executing It is described by being carried out described in the Backup Data is written in the network control techology by write operation to the network control techology When step in backup image document, further includes:
By the storage location of the Backup Data recorded in the partial data table of comparisons or the incremental data table of comparisons and BACKUP TIME point is written in the backup image document by the network control techology;
When creating the snapshot of the backup image document based on qcow2 format, also record has the storage in the snapshot Position and BACKUP TIME point.
6. a kind of data backup system of logic-based volume management simplification volume, which is characterized in that the system comprises:
Module is obtained, for obtaining the partial data table of comparisons or the incremental data table of comparisons of logical volume management simplification volume;
Carry module is created, is loaded in network control techology for creating backup image document, and by the backup image document hang;
Read module, for smart from the logical volume management according to the partial data table of comparisons or the incremental data table of comparisons Backup Data is read in letter volume;
First writing module, for the Backup Data to be written to the net by carrying out write operation to the network control techology In the backup image document in network block device;
The Virtual Space size of the backup image file is identical as the logical space size of the logical volume management simplification volume.
7. the data backup system of logic-based volume management simplification volume according to claim 6, which is characterized in that the reading Modulus block includes:
First reading unit has recorded complete if being the partial data table of comparisons for what is obtained in the partial data table of comparisons Backup Data is being reached in the storage location of the logical volume management simplification volume and the BACKUP TIME point of the full back-up data The full back-up data is read from the storage location when to the BACKUP TIME point;Wherein, the full back-up data packet Include all data in the storage location recorded in the partial data table of comparisons;
Second reading unit has recorded increment in the incremental data table of comparisons if being the incremental data table of comparisons for what is obtained Backup Data is being reached in the storage location of the logical volume management simplification volume and the BACKUP TIME point of the incremental backup data The incremental backup data is read from the storage location when to the BACKUP TIME point;Wherein, the incremental backup data packet The data in the storage location recorded in the incremental data table of comparisons are included in current point in time and upper primary BACKUP TIME point Difference section.
8. the data backup system of logic-based volume management simplification volume according to claim 6, which is characterized in that creation The backup image document is the backup image document based on qcow2 format;The system also includes:
Snapshot module is created, for creating the snapshot of the backup image document based on qcow2 format, the snapshot records institute State the backup completion status of the backup image document based on qcow2 format;
Recovery module, for described qcow2 will to be based on according to the snapshot when the logical volume management simplification volume breaks down The backup image Document retrieval of format is to the backup completion status;
Carry module, the backup image document hang based on qcow2 format for being restored to the backup completion status are loaded in In the network control techology;
Second writing module, for by operate the network control techology be restored to the backup completion status based on Other logical volume management simplification volume is written in data in the backup image document of qcow2 format.
9. the data backup system of logic-based volume management simplification volume according to claim 8, which is characterized in that the wound Building snapshot module includes:
Complete snapshot unit is created, for creating the complete of the backup image document based on qcow2 format after completing full backup Whole snapshot records the full backup completion status of the backup image document based on qcow2 format in the complete snapshot;
Incremental snapshot unit is created, for creating the increasing of the backup image document based on qcow2 format after completing incremental backup Snapshot is measured, the incremental backup completion status of the backup image document based on qcow2 format is recorded in the incremental snapshot.
10. the data backup system of logic-based volume management simplification volume according to claim 9, which is characterized in that described First writing module is also used to the backup that will will be recorded in the partial data table of comparisons or the incremental data table of comparisons Storage location and the BACKUP TIME point of data are written in the backup image document by the network control techology;
Described in also record has in the snapshot of the backup image document based on qcow2 format of the creation snapshot module creation Storage location and BACKUP TIME point.
CN201610592735.7A 2016-07-25 2016-07-25 The data back up method and system of logic-based volume management simplification volume Expired - Fee Related CN106227621B (en)

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 CN106227621A (en) 2016-12-14
CN106227621B true 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)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
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
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
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
US11436092B2 (en) * 2020-04-20 2022-09-06 Hewlett Packard Enterprise Development Lp Backup objects for fully provisioned volumes with thin lists of chunk signatures
CN112817797A (en) * 2021-02-07 2021-05-18 上海英方软件股份有限公司 Backup data management method and system
CN113722149B (en) * 2021-07-23 2023-06-16 苏州浪潮智能科技有限公司 Data backup method and device and related components

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100483365C (en) * 2003-08-05 2009-04-29 赛帕顿有限公司 Emulated storage system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN106227621A (en) 2016-12-14

Similar Documents

Publication Publication Date Title
CN106227621B (en) The data back up method and system of logic-based volume management simplification volume
CN101311911B (en) Staging memory system and data migration method thereof
CN102841761B (en) Storage system
CN106062742B (en) System and method for improving snapshot performance
CN102959518B (en) The method and system that file system recovery performs to the computing machine of target memory
US8438346B2 (en) Synchronization of a virtual storage system and an actual storage system
US7461201B2 (en) Storage control method and system for performing backup and/or restoration
US7136977B2 (en) Backup acquisition method and disk array apparatus
US20060047926A1 (en) Managing multiple snapshot copies of data
CN103514249B (en) A kind of automatic data reduction and system and storage device
CN102096561B (en) Hierarchical data storage processing method, device and storage equipment
US20150081971A1 (en) Storage system and storage control method
CN103455577A (en) Multi-backup nearby storage and reading method and system of cloud host mirror image file
CN109086425A (en) Data processing method and device for database
CN111989656A (en) Configurable recovery state
CN109902034A (en) Snapshot creation method, device, electronic equipment and machine readable storage medium
CN102939593A (en) Endless memory
US7844776B2 (en) RAID capacity expansion handling method and system with concurrent data access capability
CN108595119A (en) A kind of method of data synchronization and distributed system
JP5956971B2 (en) WORM cartridge support realized by LTFS (LinearTapeFileSystem)
CN106104515A (en) Utilize File system design and the fault recovery method of nonvolatile memory
US20070061530A1 (en) Method for storage of digital data in a mainframe data center and associated device
US9372700B2 (en) Network boot system
CN109508140B (en) Storage resource management method and device, electronic equipment and system
CN106951189B (en) A kind of method of online depth erasing FLASH file

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