CN107402839A - A kind of method and system of Backup Data - Google Patents

A kind of method and system of Backup Data Download PDF

Info

Publication number
CN107402839A
CN107402839A CN201610332557.4A CN201610332557A CN107402839A CN 107402839 A CN107402839 A CN 107402839A CN 201610332557 A CN201610332557 A CN 201610332557A CN 107402839 A CN107402839 A CN 107402839A
Authority
CN
China
Prior art keywords
data
snapshot
backed
clone
backup
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
Application number
CN201610332557.4A
Other languages
Chinese (zh)
Other versions
CN107402839B (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.)
Shenzhen Shenxinfu Electronic Technology Co Ltd
Original Assignee
Shenzhen Shenxinfu Electronic 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 Shenzhen Shenxinfu Electronic Technology Co Ltd filed Critical Shenzhen Shenxinfu Electronic Technology Co Ltd
Priority to CN201610332557.4A priority Critical patent/CN107402839B/en
Publication of CN107402839A publication Critical patent/CN107402839A/en
Application granted granted Critical
Publication of CN107402839B publication Critical patent/CN107402839B/en
Active 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/1479Generic software techniques for error detection or fault masking
    • G06F11/1482Generic software techniques for error detection or fault masking by means of middleware or OS functionality
    • G06F11/1484Generic software techniques for error detection or fault masking by means of middleware or OS functionality involving virtual machines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking
    • G06F11/1489Generic software techniques for error detection or fault masking through recovery blocks

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)
  • Retry When Errors Occur (AREA)

Abstract

The embodiment of the invention discloses a kind of method and system of Backup Data, when having uniformity for detecting snapshot and data to be backed up, just store snapshot, so as to avoid the waste of memory space, and have better met the demand of user.Present invention method includes:Backup instruction, the application for determining to run on target virtual machine and target virtual machine according to backup instruction are obtained, and determines the data to be backed up of application;Snapshot is obtained according to data to be backed up;Snapshot is cloned, generates clone data;Detect whether snapshot and data to be backed up have uniformity according to clone data;If so, then snapshot is stored into backup storage.

Description

A kind of method and system of Backup Data
Technical field
The present invention relates to technical field of virtualization, more particularly to a kind of method and system of Backup Data.
Background technology
Server virtualization, desktop virtualization and application virtualization be limitation it is computer virtualized in it is three big Virtualization technology.An and important technology of following cloud computing.At present the whole world industry-by-industry, The popularization of technology through having started virtualization, and gradually in being come into one's own in IT industries.Virtualized environment In data backup become more and more important.Currently, the backup in server virtualization environment is usually to tie Close the snapshot realization of virtual machine or bottom storage.Store snapping technique SNIA (Storage Networking Industry Association) definition to snapshot is:On specifying one of data acquisition system completely available to copy Shellfish, the copy include image of the corresponding data at some time point (time point that copy starts), snapshot Can be a copy of the data represented by it or a duplicate of data.
The method of existing Backup Data is:When needing to be backed up, backup instruction is sent, according to backup While instructing and determine data to be backed up, and treat Backup Data progress snapshot, virtualized server system Silent processing data to be backed up and snapshot data is in coherency state, snapshot is transferred into backup deposits Chu Zhong.
But virtualized environment is typically extremely complex, and some application (numbers such as such as Oracle, Mysql According to storehouse) it is very high to coherence request, and the snapshot data obtained after silent processing and data to be backed up are not Uniformity is can guarantee that, if inconsistent, after the snapshot data in recovering backup storage, it may appear that should With can not normal operation, or using normal operation, application data and the inconsistent situation of data to be backed up, It thus can not meet the demand of necessary strict conformance after user recovers for data to be backed up and snapshot, and And cause the waste of memory space.
The content of the invention
The embodiments of the invention provide a kind of method and system of Backup Data, for detect snapshot with treat it is standby When part data have uniformity, snapshot is just stored, so as to avoid the waste of memory space, and more preferably The demand for meeting user.
Aspect of the invention provides a kind of method of Backup Data, described standby applied to the system of Backup Data The system of part data, which includes server, production inventory and backup storage, the method for the Backup Data, to be included:
Backup instruction is obtained, is determined according to the backup instruction on target virtual machine and the target virtual machine The application of operation, and determine the data to be backed up of the application;
Snapshot is obtained according to the data to be backed up;
The snapshot is cloned, generates clone data;
Detect whether the snapshot and the data to be backed up have uniformity according to the clone data;
If so, then the snapshot is stored into backup storage.
In terms of the present invention, in present invention aspect embodiment, methods described also includes:
If the snapshot does not have uniformity with the data to be backed up, obtained according to the data to be backed up To new snapshot.
With reference to present invention aspect embodiment, in aspect second embodiment of the invention, described in the basis Clone data detects whether the snapshot and the data to be backed up have uniformity, including:
Clone's virtual machine is started according to the clone data, clone's virtual machine is provided with the application;
Judge it is described clone virtual machine whether normal operation;
If clone's non-normal operation of virtual machine, it is determined that the snapshot does not have with the data to be backed up There is uniformity;
If clone's virtual machine normal operation, start the application of clone's virtual machine, and sentence The disconnected application whether normal operation;
If the non-normal operation of application, it is determined that the snapshot is with the data to be backed up without consistent Property;
If described apply normal operation, whether the application data for detecting the application of operation is treated with described Backup Data is consistent;
If the application data of the application is consistent with the data to be backed up, it is determined that the snapshot with it is described Data to be backed up have uniformity;
If the application data of the application and the data to be backed up are inconsistent, it is determined that the snapshot and institute State data to be backed up and do not have uniformity.
With reference to present invention aspect, aspect embodiment or aspect second embodiment, present invention aspect the 3rd It is described to detect whether the snapshot has with the data to be backed up according to the clone data in embodiment Have after uniformity and it is described the snapshot is stored to backup store in before, in addition to:
Delete the clone data.
With reference to the 3rd embodiment in terms of the present invention, in the present invention the 4th embodiment of aspect, methods described Also include:
Obtain and recover instruction, recover to instruct the snapshot determined in the backup storage according to described;
The snapshot is recovered to the production inventory;
Or,
The snapshot is transmitted to the server, is restored data according to the snapshot, the recovery Data are consistent with the clone data.
Second aspect of the present invention provides a kind of system of Backup Data, including:
Server, production inventory and backup storage, the server are provided with virtual machine manager Hypervisor and virtual machine, the virtual machine are at least one, application program are provided with the virtual machine Unit and VME operating system;
The server, for obtaining backup instruction, according to the backup instruction from the virtual machine really Set the goal the application run on virtual machine and the target virtual machine, and determines the number to be backed up of the application According to;
The server, it is additionally operable to obtain snapshot according to the data to be backed up;
The server, it is additionally operable to clone the snapshot, generates clone data;
The server, it is additionally operable to detect the snapshot and the data to be backed up according to the clone data Whether there is uniformity;
The production inventory, for when the snapshot and the data to be backed up have uniformity, by institute Snapshot is stated to store into the backup storage.
With reference to second aspect of the present invention, in second aspect of the present invention embodiment,
The server, it is additionally operable to when the snapshot does not have uniformity with the data to be backed up, root New snapshot is obtained according to the data to be backed up.
With reference to second aspect of the present invention embodiment, in second aspect of the present invention second embodiment,
The server, it is additionally operable to start clone's virtual machine according to the clone data, the clone is virtual Machine is provided with the application;
The server, be additionally operable to judge clone's virtual machine whether normal operation;
The server, be additionally operable to when clone's non-normal operation of virtual machine, determine the snapshot with The data to be backed up do not have uniformity;
The server, it is additionally operable to, when clone's virtual machine normal operation, it is virtual to start the clone The application of machine, and judge it is described application whether normal operation;
The server, it is additionally operable to, when the non-normal operation of the application, determine that the snapshot is treated with described Backup Data does not have uniformity;
The server, be additionally operable to when it is described application normal operation when, detect operation the application should It is whether consistent with the data to be backed up with data;
The server, be additionally operable to application data when the application it is consistent with the data to be backed up when, Determine that the snapshot and the data to be backed up have uniformity;
The server, it is additionally operable to when the application data and the inconsistent data to be backed up of the application, Determine that the snapshot does not have uniformity with the data to be backed up.
With reference to second aspect of the present invention, second aspect embodiment or second aspect second embodiment, sheet During invention second aspect the 3rd is implemented,
The production inventory, it is additionally operable to delete the clone data.
With reference to the embodiment of second aspect of the present invention the 3rd, in the embodiment of second aspect of the present invention the 4th,
The backup storage, is additionally operable to acquisition and recovers instruction, recovers the instruction determination backup according to described The snapshot in storage;
The backup storage, is additionally operable to recover the snapshot to the production inventory;
Or,
The backup storage, is additionally operable to transmit the snapshot to the server, is obtained according to the snapshot To data are recovered, the recovery data are consistent with the clone data.
In summary, the embodiment of the present invention has advantages below:
Backup instruction is obtained, is answered according to what backup instruction determined to run on target virtual machine and target virtual machine With, and the data to be backed up of application are determined, snapshot is obtained according to data to be backed up, snapshot is cloned, Clone data is generated, detects whether snapshot and data to be backed up have uniformity according to clone data, if so, Then snapshot is stored to backup in storing, compared with prior art, by detecting snapshot and data to be backed up Whether there is uniformity, to determine whether to store snapshot, when only snapshot data to be backed up have uniformity, Snapshot can be just stored, so as to avoid the snapshot data of snapshot that is obtained after silent handle and number to be backed up According to inconsistent, snapshot is but stored, so as to cause snapshot situation inconsistent with data to be backed up after recovering, So avoid to store useless snapshot, memory space can be saved, and better meet user couple The demand consistent with data to be backed up after snapshot recovery.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment and prior art The required accompanying drawing used is briefly described in description, it should be apparent that, drawings in the following description are only Only it is some embodiments of the present invention, for those of ordinary skill in the art, is not paying creativeness On the premise of work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of the system of the Backup Data in virtualized environment;
Fig. 2 is one embodiment schematic diagram of the method for Backup Data in the embodiment of the present invention;
Fig. 3 is another embodiment schematic diagram of the method for Backup Data in the embodiment of the present invention;
Fig. 4 is another embodiment schematic diagram of the method for Backup Data in the embodiment of the present invention;
Fig. 5 is one embodiment schematic diagram of the system of Backup Data in the embodiment of the present invention.
Embodiment
The embodiments of the invention provide a kind of method and system of Backup Data, for detect snapshot with treat it is standby When part data have uniformity, snapshot is just stored, so as to avoid the waste of memory space, and more preferably The demand for meeting user.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with of the invention real The accompanying drawing in example is applied, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that Described embodiment only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained under the premise of creative work is not made The every other embodiment obtained, should all belong to the scope of protection of the invention.
The structure of the system of Backup Data in virtualized environment is as shown in figure 1, including server, production Storage and backup storage, server provide virtual machine physical movement environment, and server has Virtual Machine Manager Device Hypervisor, Hypervisor can by computer virtual the computer simulation Cheng Duotai of a physics, And the software of operating system is run inside the environment of virtualization, typical represent has VMware companies ESX and ESXi series, can allow virtual machine to share same physical computer by Hypervisor, but For virtual machine, as oneself having monopolized whole computer.2 void are included in Fig. 1 servers Plan machine, in a practical situation, virtual machine can be one or more than two.
Server can be one in single or server cluster, server cluster it is good Place is, can by unified management come distribution server, for example, it is desired to when performing a certain task, from The relatively idle server of business is selected in multiple servers.
If system is super fusion all-in-one environment, server merges with production inventory and backup storage Together.Super fusion all-in-one is by basic courses departments such as virtual management software, virtual memory and virtual networks Part is fused together, using the server hardware of standard x 86 carry virtual management software, virtual memory and The IT infrastructure part of the softwares such as virtual network, storage use distributed storage framework, needed before use First set up cluster, the physical disk of all all-in-ones is invented memory resource pool in cluster, then to virtual Change management software and storage service is provided.
Production inventory can be had in storage device or the super fusion all-in-one of store function Virtual memory.
Backup storage can have the External memory equipment of store function, external storage servers either Virtual memory in super fusion all-in-one.
Server can pass through Internet small computer system interfaces (Internet Small Computer System Interface, iSCSI) or NFS (Network File System, NFS) access Data in production inventory.ISCSI is also known as IP-SAN, is that one kind is based on internet and SCSI-3 agreements Under memory technology.NFS is a kind of distributed file system agreement, initially by Sun Microsystems Company develops, and is issued in 1984, and its function is intended to allow server to be locally stored one as accessing Sample passes through the data in network access production inventory.
Below by specific embodiment, the method for the Backup Data of the system based on above-mentioned Backup Data is entered Row describes in detail.
Referring to Fig. 2, one embodiment of the method for Backup Data includes in the embodiment of the present invention:
201st, backup instruction is obtained, determines to run on target virtual machine and target virtual machine according to backup instruction Application, and determine application data to be backed up;
In the present embodiment, when user needs to back up virtual machine, or the backup according to preset software When task needs to back up virtual machine, server gets backup instruction, is being taken according to backup instruction It is engaged in finding the virtual machine for needing to back up in multiple virtual machines of device as target virtual machine, and determines target The application to be backed up on virtual machine, the application data being applied, as data to be backed up.
Specifically, it is determined that after target virtual machine, target virtual machine silence is handled, if target is empty The VME operating system of plan machine is Windows systems, and the volume provided using Microsoft's Windows systems is reflected Copy service (Volume Shadow copy Service, VSS) is penetrated to freeze IO in target virtual machine and incite somebody to action For IO cache flush to disk, this is done to the moment for obtaining obtaining backup instruction can obtain number to be backed up According to so as to ensure the application uniformity of the snapshot data of snapshot obtained according to data to be backed up;If Linux system, fsfreeze orders can be used to carry out silent processing, the IO in suspense file system is grasped Make.
202nd, snapshot is obtained according to data to be backed up;
In the present embodiment, snapshot operation is carried out using the Hypervisor of server, obtains snapshot, if It is that super fusion all-in-one can also be obtained soon using the storage progress snapshot operation of the bottom of virtual memory According in snapshot processes, being generally adopted by COW (Copy-On-Write) technologies or ROW (Redirect-On-Write) technology, therefore, snapshot processes can typically be completed in moment, and soon According to operation completed by operation metadata, metadata is also known as broker data and relaying data, is description number According to data, the information of data attribute is mainly described.
203rd, snapshot is cloned, generates clone data;
In the present embodiment, generally set in snapshot be read-only, it is necessary to after cloning could by read-write operation, Therefore need to clone snapshot, generate clone data, clone operations are also by operation metadata wink Between complete.
204th, detect whether snapshot and data to be backed up have uniformity according to clone data, if so, then holding Row step 205;
In the present embodiment, server is accessed in production inventory by way of iSCSI or NFS carries and cloned Data, and detect whether snapshot and data to be backed up have uniformity according to clone data, if so, then Perform step 205.
205th, snapshot is stored to backup in storing.
, will be fast in production inventory if snapshot has uniformity with data to be backed up in the present embodiment In being stored according to storage to backup.
In the embodiment of the present invention, backup instruction is obtained, target virtual machine and target are determined according to backup instruction The application run on virtual machine, and determine the data to be backed up of application;Snapshot is obtained according to data to be backed up; Snapshot is cloned, generates clone data;Whether snapshot and data to be backed up are detected according to clone data With uniformity;If so, then storing snapshot into backup storage, compared with prior art, pass through inspection Survey whether clone data reaches preset backup condition, to determine whether to store snapshot, only detect snapshot When there is uniformity with data to be backed up, snapshot is just stored, so as to avoid the waste of memory space, and And the demand of user is better met
Snapshot and situation of the data to be backed up without uniformity are not illustrated in above-described embodiment, because For without uniformity then need not backup snapshots, but thus can not meet backup require that, under Snapshot and situation of the data to be backed up without uniformity are described in detail by embodiment for face.
Referring to Fig. 3, another embodiment of the method for Backup Data includes in the embodiment of the present invention:
301st, backup instruction is obtained, determines to run on target virtual machine and target virtual machine according to backup instruction Application, and determine application data to be backed up;
It for further details, please refer to described in step 201.
302nd, snapshot is obtained according to data to be backed up;
It for further details, please refer to described in step 202.
303rd, snapshot is cloned, generates clone data;
It for further details, please refer to described in step 203.
304th, detect whether snapshot and data to be backed up have uniformity according to clone data, if so, then holding Row step 305;If it is not, then perform step 302;
In the present embodiment, server is accessed in production inventory by way of iSCSI or NFS carries and cloned Data, detect whether snapshot and data to be backed up have uniformity according to clone data, if snapshot is with treating Backup Data has uniformity, then performs step 305;If snapshot does not have uniformity with data to be backed up, Step 302 is then performed, i.e., obtains new snapshot according to data to be backed up.
305th, snapshot is stored to backup in storing.
It for further details, please refer to described in step 205.
It should be noted that in order to save the memory space of production inventory, it is not up to preset in clone data Backup condition after, it is necessary to which clone data and snapshot are deleted.
It should be noted that in order to save the memory space of production inventory, it is fast being detected according to clone data There is uniformity afterwards, it is necessary to which clone data is deleted according to data to be backed up.
In the embodiment of the present invention, when snapshot and data to be backed up do not have uniformity, step is re-executed 302 obtain new snapshot, and untill snapshot and data to be backed up have uniformity, such one surely meets The backup requirements of user.
Below by embodiment to detecting whether snapshot and data to be backed up have uniformity according to clone data It is described in detail.
Referring to Fig. 4, another embodiment of the method for Backup Data includes in the embodiment of the present invention:
401st, backup instruction is obtained, determines to run on target virtual machine and target virtual machine according to backup instruction Application, and determine application data to be backed up;
It for further details, please refer to described in step 201.
402nd, snapshot is obtained according to data to be backed up;
It for further details, please refer to described in step 202.
403rd, snapshot is cloned, generates clone data;
It for further details, please refer to described in step 203.
404th, clone's virtual machine is started according to clone data;
In the present embodiment, server is accessed in production inventory by way of iSCSI or NFS carries and cloned Data, a conduct clone's virtual machine for being mounted with to apply on target virtual machine is selected from multiple virtual machines, And clone's virtual machine is started according to clone data.
405th, judge clone virtual machine whether normal operation, if clone the non-normal operation of virtual machine, perform Step 402;If cloning virtual machine normal operation, step 406 is performed;
In the present embodiment, by Hypervisor detect clone virtual machine whether normal operation, if clone The non-normal operation of virtual machine, perform step 402;If cloning virtual machine normal operation, step 406 is performed.
406th, start clone virtual machine application, and judge using whether normal operation, if using abnormal Operation, then perform step 402;If using normal operation, step 407 is performed;
In the present embodiment, after cloning virtual machine normal operation, started according to clone data on clone's virtual machine The application consistent with the application for needing to back up on target virtual machine, if using non-normal operation, perform step Rapid 402;If using normal operation, step 407 is performed.
407th, whether the application data of the application of detection operation is consistent with data to be backed up, if inconsistent, Perform step 402;If consistent, step 408 is performed;
In the present embodiment, using the data that are applied after normal operation, judge application data whether with treat it is standby Part data are consistent, if inconsistent, perform step 402;If consistent, step 408 is performed.
408th, snapshot is stored to backup in storing.
It for further details, please refer to described in step 205.
It should be noted that in order to save the memory space of production inventory, in snapshot and data to be backed up not With uniformity afterwards, it is necessary to which clone data and snapshot are deleted.
It should be noted that in order to save the memory space of production inventory, have in snapshot and data to be backed up There is uniformity afterwards, it is necessary to which clone data is deleted.
In the embodiment of the present invention, to detecting whether snapshot and data to be backed up have unanimously according to clone data Property is described in detail so that scheme is more specific.
Optionally, in some embodiments of the present invention, the method for Backup Data also includes:
Obtain and recover instruction, the snapshot determined in backup storage is instructed according to recovery;
Snapshot is recovered to production inventory;
Or,
Snapshot is transmitted to server, is restored data according to snapshot, recovers data and clone data one Cause.
In present invention implementation, when needing to recover snapshot, obtain and recover instruction, according to recovery instruction standby Part storage in find snapshot, if user environment is the production inventory of carry, snapshot is directly recovered to Production inventory;If user environment is to be locally stored, snapshot is transmitted to server, further according to snapshot Be restored data.Backup storage can also be entered in server snapshots by iSCSI or NFS Row disaster tolerance so that scheme is more perfect.
The method that the Backup Data of the embodiment of the present invention is described in above-described embodiment, below by embodiment The system of Backup Data is described in detail.
Referring to Fig. 5, one embodiment of the system of Backup Data includes in the embodiment of the present invention:
Server 501, production inventory 502 and backup storage 503, server 501 is provided with virtual machine pipe Reason device Hypervisor and virtual machine, virtual machine are at least one, and application program list is provided with virtual machine Member and VME operating system;
Server 501, for obtaining backup instruction, destination virtual is determined from virtual machine according to backup instruction The application run on machine and target virtual machine, and determine the data to be backed up of application;
Server 501, it is additionally operable to obtain snapshot according to data to be backed up;
Server 501, it is additionally operable to clone snapshot, generates clone data;
Server 501, it is additionally operable to detect whether snapshot and data to be backed up have unanimously according to clone data Property;
Production inventory 502, for when snapshot has uniformity with data to be backed up, snapshot to be stored to standby In part storage 503.
In the embodiment of the present invention, server 501 obtains backup instruction, and target void is determined according to backup instruction The application run on plan machine and target virtual machine, and the data to be backed up of application are determined, according to number to be backed up According to snapshot is obtained, snapshot is cloned, generates clone data, snapshot is detected with treating according to clone data Whether Backup Data has uniformity, if so, then production inventory 502 stores snapshot to backup storage 503 In, compared with prior art, by detecting whether snapshot and data to be backed up have one according to clone data Cause property, to determine whether to store snapshot, when only snapshot has uniformity with data to be backed up, it can just deposit Snapshot is stored up, the snapshot data of the snapshot so as to avoid obtaining after silent handle differs with data to be backed up Cause, but store snapshot, so as to cause snapshot situation inconsistent with data to be backed up after recovering, so Avoid to store useless snapshot, memory space can be saved, and better meet user for fast According to demand consistent with data to be backed up after recovery.
Optionally, in some embodiments of the present invention,
Server 501, it is additionally operable to when snapshot does not have uniformity with data to be backed up, according to number to be backed up According to obtaining new snapshot.
In the embodiment of the present invention, server 501 increases when not having uniformity to snapshot and data to be backed up Processing so that scheme one surely meets the backup requirements of user.
Optionally, in some embodiments of the present invention,
Server 501, it is additionally operable to start clone's virtual machine according to clone data, clone's virtual machine is provided with should With;
Server 501, be additionally operable to judge to clone virtual machine whether normal operation;
Server 501, it is additionally operable to, when the non-normal operation of clone's virtual machine, determine snapshot and data to be backed up Without uniformity;
Server 501, it is additionally operable to when cloning virtual machine normal operation, starts the application of clone's virtual machine, And judge using whether normal operation;
Server 501, it is additionally operable to, when the non-normal operation of application, determine that snapshot does not have with data to be backed up Uniformity;
Server 501, be additionally operable to when application normal operation when, detect operation application application data whether It is consistent with data to be backed up;
Server 501, be additionally operable to when application data is consistent with data to be backed up, determine snapshot with it is to be backed up Data have uniformity;
Server 501, be additionally operable to when application data and data to be backed up it is inconsistent when, determine snapshot with treat it is standby Part data do not have uniformity.
In the embodiment of the present invention, whether snapshot and data to be backed up, which have uniformity, is detected to server 501 It is described in detail so that scheme is more specific.
Optionally, in some embodiments of the present invention,
Production inventory 502, it is additionally operable to delete clone data.
In the embodiment of the present invention, detect whether snapshot and data to be backed up have uniformity according to clone data Afterwards, generation storage 502 needs to delete clone data, saves the memory space of production inventory.
Optionally, in some embodiments of the present invention,
Storage 503 is backed up, acquisition is additionally operable to and recovers instruction, is instructed according to recovery fast in determination backup storage According to;
Backup storage 503, is additionally operable to recover snapshot to production inventory;
Or,
Backup storage 503, is additionally operable to transmit snapshot to server 501, is restored data according to snapshot, It is consistent with clone data to recover data..
In the embodiment of the present invention, unloading and the disaster tolerance of snapshot are realized by backing up storage 503 so that scheme It is more perfect.
It is apparent to those skilled in the art that for convenience and simplicity of description, it is above-mentioned to retouch The specific work process of the system stated, equipment and unit, it may be referred to the correspondence in preceding method embodiment Process, it will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, equipment and Method, it can realize by another way.For example, apparatus embodiments described above are only to show Meaning property, for example, the division of the unit, only a kind of division of logic function can when actually realizing To there is other dividing mode, such as multiple units or component can combine or be desirably integrated into another System, or some features can be ignored, or not perform.Another, shown or discussed is mutual Coupling or direct-coupling or communication connection can be INDIRECT COUPLING by some interfaces, equipment or unit Or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, make It can be for the part that unit is shown or may not be physical location, you can with positioned at a place, Or it can also be distributed on multiple NEs.Can select according to the actual needs part therein or Person's whole unit realizes the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, Can also be that unit is individually physically present, can also two or more units be integrated in a list In member.Above-mentioned integrated unit can both be realized in the form of hardware, can also use software function list The form of member is realized.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing Or in use, it can be stored in a computer read/write memory medium.Based on such understanding, sheet Part that the technical scheme of invention substantially contributes to prior art in other words or the technical scheme It can completely or partially be embodied in the form of software product, the computer software product is stored in one In storage medium, including some instructions to cause a computer equipment (can be personal computer, Server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention Suddenly.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD Etc. it is various can be with the medium of store program codes.
Described above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations; Although the present invention is described in detail with reference to the foregoing embodiments, one of ordinary skill in the art should Work as understanding:It can still modify to the technical scheme described in foregoing embodiments, or to it Middle some technical characteristics carry out equivalent substitution;And these modifications or replacement, do not make appropriate technical solution Essence depart from various embodiments of the present invention technical scheme spirit and scope.

Claims (10)

  1. A kind of 1. method of Backup Data, it is characterised in that described standby applied to the system of Backup Data The system of part data, which includes server, production inventory and backup storage, the method for the Backup Data, to be included:
    Backup instruction is obtained, is determined according to the backup instruction on target virtual machine and the target virtual machine The application of operation, and determine the data to be backed up of the application;
    Snapshot is obtained according to the data to be backed up;
    The snapshot is cloned, generates clone data;
    Detect whether the snapshot and the data to be backed up have uniformity according to the clone data;
    If so, then the snapshot is stored into backup storage.
  2. 2. the method for Backup Data according to claim 1, it is characterised in that methods described is also wrapped Include:
    If the snapshot does not have uniformity with the data to be backed up, obtained according to the data to be backed up To new snapshot.
  3. 3. the method for Backup Data according to claim 2, it is characterised in that described in the basis Clone data detects whether the snapshot and the data to be backed up have uniformity, including:
    Clone's virtual machine is started according to the clone data, clone's virtual machine is provided with the application;
    Judge it is described clone virtual machine whether normal operation;
    If clone's non-normal operation of virtual machine, it is determined that the snapshot does not have with the data to be backed up There is uniformity;
    If clone's virtual machine normal operation, start the application of clone's virtual machine, and sentence The disconnected application whether normal operation;
    If the non-normal operation of application, it is determined that the snapshot is with the data to be backed up without consistent Property;
    If described apply normal operation, whether the application data for detecting the application of operation is treated with described Backup Data is consistent;
    If the application data of the application is consistent with the data to be backed up, it is determined that the snapshot with it is described Data to be backed up have uniformity;
    If the application data of the application and the data to be backed up are inconsistent, it is determined that the snapshot and institute State data to be backed up and do not have uniformity.
  4. 4. the method for Backup Data according to any one of claim 1 to 3, it is characterised in that It is described according to the clone data detect the snapshot and the data to be backed up whether have uniformity it Afterwards, in addition to:
    Delete the clone data.
  5. 5. according to the method for the Backup Data described in claim 4, it is characterised in that methods described is also Including:
    Obtain and recover instruction, recover to instruct the snapshot determined in the backup storage according to described;
    The snapshot is recovered to the production inventory;
    Or,
    The snapshot is transmitted to the server, is restored data according to the snapshot, the recovery Data are consistent with the clone data.
  6. A kind of 6. system of Backup Data, it is characterised in that including:
    Server, production inventory and backup storage, the server are provided with virtual machine manager Hypervisor and virtual machine, the virtual machine are at least one, application program are provided with the virtual machine Unit and VME operating system;
    The server, for obtaining backup instruction, according to the backup instruction from the virtual machine really Set the goal the application run on virtual machine and the target virtual machine, and determines the number to be backed up of the application According to;
    The server, it is additionally operable to obtain snapshot according to the data to be backed up;
    The server, it is additionally operable to clone the snapshot, generates clone data;
    The server, it is additionally operable to detect the snapshot and the data to be backed up according to the clone data Whether there is uniformity;
    The production inventory, for when the snapshot and the data to be backed up have uniformity, by institute Snapshot is stated to store into the backup storage.
  7. 7. the system of Backup Data according to claim 6, it is characterised in that
    The server, it is additionally operable to when the snapshot does not have uniformity with the data to be backed up, root New snapshot is obtained according to the data to be backed up.
  8. 8. the system of Backup Data according to claim 7, it is characterised in that
    The server, it is additionally operable to start clone's virtual machine according to the clone data, the clone is virtual Machine is provided with the application;
    The server, be additionally operable to judge clone's virtual machine whether normal operation;
    The server, be additionally operable to when clone's non-normal operation of virtual machine, determine the snapshot with The data to be backed up do not have uniformity;
    The server, it is additionally operable to, when clone's virtual machine normal operation, it is virtual to start the clone The application of machine, and judge it is described application whether normal operation;
    The server, it is additionally operable to, when the non-normal operation of the application, determine that the snapshot is treated with described Backup Data does not have uniformity;
    The server, be additionally operable to when it is described application normal operation when, detect operation the application should It is whether consistent with the data to be backed up with data;
    The server, be additionally operable to application data when the application it is consistent with the data to be backed up when, Determine that the snapshot and the data to be backed up have uniformity;
    The server, it is additionally operable to when the application data and the inconsistent data to be backed up of the application, Determine that the snapshot does not have uniformity with the data to be backed up.
  9. 9. the system of the Backup Data according to any one of claim 6 to 8, it is characterised in that
    The production inventory, it is additionally operable to delete the clone data.
  10. 10. according to the system of the Backup Data described in claim 9, it is characterised in that
    The backup storage, is additionally operable to acquisition and recovers instruction, recovers the instruction determination backup according to described The snapshot in storage;
    The backup storage, is additionally operable to recover the snapshot to the production inventory;
    Or,
    The backup storage, is additionally operable to transmit the snapshot to the server, is obtained according to the snapshot To data are recovered, the recovery data are consistent with the clone data.
CN201610332557.4A 2016-05-18 2016-05-18 Method and system for backing up data Active CN107402839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610332557.4A CN107402839B (en) 2016-05-18 2016-05-18 Method and system for backing up data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610332557.4A CN107402839B (en) 2016-05-18 2016-05-18 Method and system for backing up data

Publications (2)

Publication Number Publication Date
CN107402839A true CN107402839A (en) 2017-11-28
CN107402839B CN107402839B (en) 2021-03-09

Family

ID=60394211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610332557.4A Active CN107402839B (en) 2016-05-18 2016-05-18 Method and system for backing up data

Country Status (1)

Country Link
CN (1) CN107402839B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144776A (en) * 2018-07-20 2019-01-04 新华三技术有限公司 Virtual machine image file processing method and processing device
CN109558215A (en) * 2018-12-10 2019-04-02 深圳市木浪云数据有限公司 Backup method, restoration methods, device and the backup server cluster of virtual machine
CN111104404A (en) * 2019-12-04 2020-05-05 星辰天合(北京)数据科技有限公司 Data storage method and device based on distributed objects
CN112181720A (en) * 2020-09-11 2021-01-05 济南浪潮数据技术有限公司 Virtual data center backup method and device based on cloud management platform

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101495970A (en) * 2005-06-24 2009-07-29 信科索尔特公司 System and method for high performance enterprise data protection
CN102012789A (en) * 2009-09-07 2011-04-13 云端容灾有限公司 Centralized management type backup and disaster recovery system
CN104182184A (en) * 2014-08-27 2014-12-03 浪潮电子信息产业股份有限公司 Distributed block storing and cloning method
CN104572353A (en) * 2015-01-21 2015-04-29 浪潮(北京)电子信息产业有限公司 Disaster recovery fusion management method and system
CN104615508A (en) * 2015-03-03 2015-05-13 浪潮电子信息产业股份有限公司 Method for recovering LVM configuration under Linux system
CN104809020A (en) * 2013-11-20 2015-07-29 华为技术有限公司 Snapshot generating method, system and device
CN104899332A (en) * 2015-06-24 2015-09-09 浪潮(北京)电子信息产业有限公司 Cross-platform migrating method and system for Sybase database
CN104965771A (en) * 2015-07-29 2015-10-07 浪潮(北京)电子信息产业有限公司 Method and system for verifying remote disaster recovery data consistency
CN105446831A (en) * 2015-11-09 2016-03-30 上海爱数信息技术股份有限公司 Server-Free backup method in conjunction with SAN
US20160092313A1 (en) * 2014-09-25 2016-03-31 Empire Technology Development Llc Application Copy Counting Using Snapshot Backups For Licensing

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101495970A (en) * 2005-06-24 2009-07-29 信科索尔特公司 System and method for high performance enterprise data protection
CN102012789A (en) * 2009-09-07 2011-04-13 云端容灾有限公司 Centralized management type backup and disaster recovery system
CN104809020A (en) * 2013-11-20 2015-07-29 华为技术有限公司 Snapshot generating method, system and device
CN104182184A (en) * 2014-08-27 2014-12-03 浪潮电子信息产业股份有限公司 Distributed block storing and cloning method
US20160092313A1 (en) * 2014-09-25 2016-03-31 Empire Technology Development Llc Application Copy Counting Using Snapshot Backups For Licensing
CN104572353A (en) * 2015-01-21 2015-04-29 浪潮(北京)电子信息产业有限公司 Disaster recovery fusion management method and system
CN104615508A (en) * 2015-03-03 2015-05-13 浪潮电子信息产业股份有限公司 Method for recovering LVM configuration under Linux system
CN104899332A (en) * 2015-06-24 2015-09-09 浪潮(北京)电子信息产业有限公司 Cross-platform migrating method and system for Sybase database
CN104965771A (en) * 2015-07-29 2015-10-07 浪潮(北京)电子信息产业有限公司 Method and system for verifying remote disaster recovery data consistency
CN105446831A (en) * 2015-11-09 2016-03-30 上海爱数信息技术股份有限公司 Server-Free backup method in conjunction with SAN

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144776A (en) * 2018-07-20 2019-01-04 新华三技术有限公司 Virtual machine image file processing method and processing device
WO2020015709A1 (en) * 2018-07-20 2020-01-23 新华三技术有限公司 Virtual machine mirror image file processing method and device
CN109558215A (en) * 2018-12-10 2019-04-02 深圳市木浪云数据有限公司 Backup method, restoration methods, device and the backup server cluster of virtual machine
CN111104404A (en) * 2019-12-04 2020-05-05 星辰天合(北京)数据科技有限公司 Data storage method and device based on distributed objects
CN111104404B (en) * 2019-12-04 2021-10-01 星辰天合(北京)数据科技有限公司 Data storage method and device based on distributed objects
CN112181720A (en) * 2020-09-11 2021-01-05 济南浪潮数据技术有限公司 Virtual data center backup method and device based on cloud management platform

Also Published As

Publication number Publication date
CN107402839B (en) 2021-03-09

Similar Documents

Publication Publication Date Title
US11513926B2 (en) Systems and methods for instantiation of virtual machines from backups
US10678656B2 (en) Intelligent restore-container service offering for backup validation testing and business resiliency
CN114341792B (en) Data partition switching between storage clusters
US10169173B2 (en) Preserving management services with distributed metadata through the disaster recovery life cycle
US8407182B1 (en) Systems and methods for facilitating long-distance live migrations of virtual machines
US8527990B1 (en) Systems and methods for migrating virtual machines
JP6186374B2 (en) System and method for secure migration to a virtualized platform
US10831665B2 (en) Preservation of modified cache data in local non-volatile storage following a failover
EP3750066B1 (en) Protection of infrastructure-as-a-service workloads in public cloud
CN106528327A (en) Data processing method and backup server
US20180260128A1 (en) Consistent replication of virtual computing instance data
US11012508B2 (en) Region-based distributed information management system
CN106777394B (en) Cluster file system
CN107544864A (en) A kind of virtual-machine data copy method and virtual-machine data copy system
US10055307B2 (en) Workflows for series of snapshots
CN107402839A (en) A kind of method and system of Backup Data
US11182081B2 (en) Performing a recovery copy command to restore a safeguarded copy backup to a production volume
US10120598B2 (en) Validation of write data subsequent to destaging to auxiliary storage for completion of peer to peer remote copy
US11175999B2 (en) Management of backup volume extents via a tiered storage mechanism
US10209907B2 (en) Secure removal of sensitive data
US11656947B2 (en) Data set recovery from a point-in-time logical corruption protection copy
US11775395B2 (en) Withdrawing a point-in-time snapshot copy operation within a data consistency application
US20240143759A1 (en) Analysis of backup copies to identify malware-encrypted primary data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518000 the first floor of A1 building, Nanshan Zhiyuan 1001, Nanshan District Xue Yuan Avenue, Shenzhen, Guangdong.

Applicant after: SANGFOR TECHNOLOGIES Inc.

Address before: 518055 First Floor, Building A1, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: Sangfor Technologies Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant