Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is described.
The feature and exemplary embodiment of various aspects of the invention is described more fully below.In following detailed description
In, it is proposed that many details, to provide complete understanding of the present invention.But, to those skilled in the art
It will be apparent that the present invention can be implemented in the case of some details in not needing these details.Below to implementing
The description of example is better understood from just for the sake of being provided by showing example of the invention to of the invention.The present invention is never limited
In any concrete configuration set forth below and algorithm, but cover under the premise of without departing from the spirit of the present invention element,
Any modification, replacement and the improvement of part and algorithm.In the the accompanying drawings and the following description, known structure and skill is not shown
Art, to avoid that unnecessary obscuring is caused to the present invention.
Additionally, described feature, structure or characteristic can be combined in one or more implementations in any suitable manner
In example.In the following description, there is provided many details fully understand so as to be given to embodiments of the invention.However,
It will be appreciated by persons skilled in the art that technical scheme can be put into practice without in the specific detail or more
It is many, or can be using other methods, constituent element, material etc..In other cases, be not shown in detail or describe known features,
Material or operation to avoid obscuring major technique intention of the invention it should be noted that in the case where not conflicting, this Shen
Please in embodiment and the feature in embodiment can be mutually combined.
Fig. 1 shows a kind of method flow diagram of the data processing method for Visualized data centre according to embodiment.
As shown in figure 1, the method comprises the following steps:S110, accesses host, and the virtual machine storage disk to being deployed in host is created
Build virtual machine snapshot and generate backup.S120, judges whether backup is to back up completely, when being that itself is created when backing up completely
First snapshot simultaneously sets up the index of virtual machine snapshot, the first snapshot and the two creation time, when not being when backing up completely, to itself
Create N snapshots and set up the index of virtual machine snapshot, N snapshots and the two creation time, wherein, N is the integer more than 2,
N snapshots include increment disk file of the virtual machine from after the N-1 times backup.It should be understood that the increment disk can represent virtual
Difference between the situation existed when the present situation of disk and last time execution snapshot.If there is multiple snapshots, then increment magnetic
Disk can represent the difference between each snapshot.If Client OS writes each block of virtual disk, increment disk
File with Quick Extended and can become identical with the size of whole virtual disk.S130, obtains standby comprising the N-1 times according to index
The N-1 snapshots of the full dose disk file of part and the N snapshots comprising the increment disk file after the N-1 times backup.S140, base
Merge full dose disk file and increment disk file in N-1 snapshots and N snapshots.S150, deletes the virtual machine in virtual machine
Snapshot.Virtual machine storage disk by accessing host and to being deployed in host creates snapshot and backs up, and sets up certainly
The index of body snapshot, virtual machine snapshot and the two creation time, the full dose magnetic comprising last full backup is obtained according to the index
The snapshot of disk file and the snapshot comprising the increment disk file from after last full backup, with to full dose disk file and increment
Disk file is merged, and the disk file after merging maintains the data consistency of same magnetic disk of virtual machine file, optimizes disk
Data, improve the access speed of disk file, are produced during the backup completely stored in deleting virtual machine after disk file merging
Snapshot, breach 32 limitations of snapshot of every virtual machine such that it is able to create the protection that unlimited snapshot completes virtual machine.
In some instances, S140 can also include the position according to increment disk file and the data block of full dose disk file
Confidence ceases to obtain increment disk relative to the data block changing content of full dose disk file to complete full dose disk file and increasing
Measure the merging of disk file.
In some instances, the method can also include updating full dose disk file and increment disk file after merging
Positional information.
In some instances, above-mentioned positional information can include original position, data offset and data block size.
When virtual machine breaks down or other reasonses result in the need for carrying out data recovery to virtual machine, it is used for based on above-mentioned
The data processing method of Visualized data centre, in certain embodiments, the method can also include according to the index selection time
The snapshot of the virtual machine storage disk of point rollback itself storage, the fast of virtual machine storage disk is extracted according to index selection time point
According to.In some instances, the method can also include the mirror image of the snapshot for creating virtual machine storage disk, during according to index selection
Between put extract virtual machine storage disk snapshot.The data recovery of virtual machine storage disk can be carried out by the above method,
In one example, the method can also include existing the newly-built virtual machine of the snapshot importing of virtual machine storage disk or direct carry
On former virtual machine, to carry out the data recovery of virtual machine storage disk.
Above in conjunction with Fig. 1, describe in detail at the data for Visualized data centre according to embodiments of the present invention
Reason method, below in conjunction with Fig. 2 and Fig. 3, describe in detail is used at the data of Visualized data centre according to embodiments of the present invention
Reason device.
Fig. 2 shows a kind of structured flowchart of the data processing equipment for being used for Visualized data centre according to embodiment.Such as Fig. 2
Shown, the device 200 can include:Access unit 210, judging unit 220, processing unit 230 and combining unit 240.The visit
Ask that unit 210 can be configured as accessing host, the virtual machine storage disk to being deployed in host creates virtual machine snapshot
And generate backup.The judging unit 220 can be configured as judging whether backup is to back up completely, right when being when backing up completely
Itself create the first snapshot and set up the index of virtual machine snapshot, the first snapshot and the two creation time, when not being to back up completely
When, N snapshots are created to itself and the index of virtual machine snapshot, N snapshots and the two creation time is set up, wherein, N be more than
2 integer, N snapshots include increment disk file of the virtual machine from after the N-1 times backup.The processing unit 230 can be matched somebody with somebody
Be set to according to index obtain comprising the N-1 time backup full dose disk file N-1 snapshots and comprising the N-1 times back up after
The N snapshots of increment disk file.The combining unit 240 can be configured as merging full dose based on N-1 snapshots and N snapshots
Disk file and increment disk file.Wherein, the virtual machine that the processing unit 230 can be additionally configured to delete in virtual machine is fast
According to.In one example, can be by calling access interface, such as VMware vStorage API, to access host and right
The virtual machine creating snapshot that is deployed in the host is simultaneously backed up completely.It should be understood that above-mentioned API full name are
Application Programming Interface, can be expressed as application programming interface, be that some are pre-defined
Function, it is therefore an objective to application program is provided and is able to access one group of ability of routine based on certain software or hardware with developer, and
Source code, or the details for understanding internal work mechanism need not be accessed.The device 200 can set as virtual machine protection storage
It is standby, or be arranged in the protection storage device, can be by the device 200, after completion virtual machine is backed up completely, program is to protecting
The file system that disk file is deposited in shield storage device creates snapshot and sets up file system snapshot index simultaneously in data magnetic
Virtual machine snapshot is deleted after disk Piece file mergence.The device 200 can be by accessing host and to being deployed in host
Virtual machine storage disk create and snapshot and backed up, set up the rope of itself snapshot, virtual machine snapshot and the two creation time
Draw, the snapshot of the full dose disk file comprising last full backup is obtained and comprising from after last full backup according to the index
The snapshot of increment disk file, is merged with to full dose disk file and increment disk file, and the disk file after merging is protected
The data consistency with magnetic disk of virtual machine file is held, has optimized data in magnetic disk, improved the access speed of disk file, in disk text
Part deletes the snapshot produced when backing up completely stored in virtual machine after merging, breach 32 limitations of snapshot of every virtual machine
Such that it is able to create the protection that unlimited snapshot completes virtual machine.
In some instances, the combining unit 240 of the device 200 can be additionally configured to according to increment disk file and complete
The positional information of data block of disk file is measured to obtain data block changing content of the increment disk relative to full dose disk file
To complete the merging of full dose disk file and increment disk file.In some instances, the device can also include updating block
The positional information of the full dose disk file and increment disk file that are configured as updating after merging.In some instances, upper rheme
Confidence breath can include original position, data offset and data block size.For example, combining unit is additionally configured to according to index
Original position, the data-bias of the full dose disk file in increment disk file and the N-1 snapshots in N snapshots are obtained respectively
Amount and data block size obtain data block changing content of the increment disk relative to full dose disk file.In one example, should
Storage device can carry out the merging of above-mentioned virtual machine increment disk file for virtual machine carry at any time.
When virtual machine breaks down or other reasonses result in the need for carrying out data recovery to virtual machine, it is used for based on above-mentioned
The data processing equipment of Visualized data centre, Fig. 3 shows to be used for the data of Visualized data centre according to another embodiment
The structured flowchart of processing unit.As shown in figure 3, the device 300 can include that access unit 310, judging unit 320, treatment are single
Unit 330, combining unit 340 and recovery unit 350.The recovery unit 350 is configured as according to index selection time point rollback certainly
The mirror image of the snapshot of the virtual machine storage disk of body storage or the snapshot of establishment virtual machine storage disk, according to the index selection time
Point extracts the snapshot of virtual machine storage disk.In one example, the recovery unit 350 in the device 300 can also be configured
It is that the snapshot of virtual machine storage disk is imported into newly-built virtual machine or direct carry on former virtual machine.
Data processing equipment for Visualized data centre according to embodiments of the present invention may correspond to according to the present invention
Executive agent in the data processing method for Visualized data centre of embodiment, and for Visualized data centre
Above and other operation and/or function of the modules in data processing equipment is respectively in order to realize the phase of the method in Fig. 1
Flow is answered, for sake of simplicity, will not be repeated here.
Fig. 4 shows the computing device reality of the data processing equipment for Visualized data centre according to another embodiment
Existing structural representation.As shown in figure 4, the data processing side for Visualized data centre described with reference to Fig. 1, Fig. 2 and Fig. 3
Method and at least a portion for the data processing equipment of Visualized data centre can be realized by computing device, including memory
404th, processor 403 and bus 410;The memory 404 and processor 403 are connected by bus 410 and completed mutual leading to
Letter;The memory 404 is used for store program codes;The processor 430 is by reading the executable program stored in memory 404
Code runs program corresponding with executable program code, as shown in Figure 1 for Visualized data centre for performing
Data processing method.In some instances, the computing device 400 can also include input equipment 401, input port 402, defeated
Exit port 405 and output equipment 906.Wherein, input port 402, processor 403, memory 404 and output port
405 are connected with each other by bus 410, and input equipment 401 and output equipment 406 pass through input port 402 and output port respectively
405 are connected with bus 410, and then are connected with the other assemblies of computing device 400.It should be noted that output interface here
Can also be represented with I/O interfaces with input interface.Specifically, input equipment 401 is received from outside input information, and is passed through
Input port 402 will be input into information transmission to processor 403;The computer that processor 403 is based on being stored in memory 404 can be held
Row instruction is processed to generate output information input information, and output information is temporarily or permanently stored in memory
In 404, output information is then sent to by output equipment 406 by output port 405;Output equipment 406 is defeated by output information
Go out to the outside of computing device 400.
Above-mentioned memory 404 includes the mass storage for data or instruction.For example it is unrestricted, memory
404 may include HDD, floppy disk, flash memory, CD, magneto-optic disk, tape or USB (USB) driver or two
Individual or more the combination of the above.In a suitable case, memory 404 may include removable or non-removable (or solid
Medium calmly).In a suitable case, memory 404 can be inside or outside computing device 400.In a particular embodiment,
Memory 404 is non-volatile solid state memory.In a particular embodiment, memory 404 includes read-only storage (ROM).
In the case of suitable, the ROM can be the ROM of masked edit program, programming ROM (PROM), erasable PROM (EPROM), electricity can
Erasing PROM (EEPROM), electrically-alterable ROM (EAROM) or the combination of flash memory or two or more the above.
Bus 410 includes hardware, software or both, and the part of computing device 400 is coupled to each other together.For example
And it is unrestricted, bus 410 may include AGP (AGP) or other graphics bus, enhancing Industry Standard Architecture (EISA)
Bus, Front Side Bus (FSB), super transmission (HT) interconnection, the interconnection of Industry Standard Architecture (ISA) bus, infinite bandwidth, low pin count
(LPC) bus, memory bus, micro- channel architecture (MCA) bus, periphery component interconnection (PCI) bus, PCI-Express
(PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, local (VLB) bus of VESA or other conjunctions
The combination of suitable bus or two or more the above.In a suitable case, bus 410 may include one or more
Bus 410.Although the embodiment of the present invention has been described and illustrated specific bus, the present invention considers any suitable bus or mutual
Even.
At the data for Visualized data centre that combination Fig. 3 descriptions are realized by the computing device 400 shown in Fig. 4
During reason device, input equipment 401 is used to access host, and it is fast that the virtual machine storage disk to being deployed in host creates virtual machine
According to and generate backup, in a particular embodiment, the I/O interfaces being connected with output equipment can include hardware, software or both, carry
For one or more interfaces for the communication between computing device 400 and one or more I/O equipment.In suitable situation
Under, computing device 400 may include one or more of these I/O equipment.One or more of these I/O equipment can allow people and calculating
Communication between machine system 400.For example it is unrestricted, I/O equipment may include keyboard, keypad, microphone, monitor,
It is mouse, printer, scanner, loudspeaker, still camera, contact pilotage, handwriting pad, touch-screen, trace ball, video camera, another
The combination of one suitable I/O equipment or two or more the above.I/O equipment may include one or more sensors.
The embodiment of the present invention considers any suitable I/O equipment and any suitable I/O interfaces for them.In suitable situation
Under, I/O interfaces may include one or more devices or can allow for processor 403 to drive one or more of these I/O equipment
Software driver.In a suitable case, I/O interfaces may include one or more I/O interfaces.Although the embodiment of the present invention is described
With show specific I/O interfaces, but the embodiment of the present invention considers any suitable I/O interfaces.The processor 403 is based on storage
The computer executable instructions stored in device 404, judge whether backup is to back up completely, judge whether backup is to back up completely,
When being to create the first snapshot to itself and set up the rope of virtual machine snapshot, the first snapshot and the two creation time when backing up completely
Draw, when not being when backing up completely, to itself creating N snapshots and setting up virtual machine snapshot, N snapshots and the two creation time
Index, wherein, N is the integer more than 2, and N snapshots include increment disk file of the virtual machine from after the N-1 times backup;According to
Index obtain comprising the N-1 time backup full dose disk file N-1 snapshots and comprising the N-1 times back up after increment disk
The N snapshots of file;Full dose disk file and increment disk file are merged based on N-1 snapshots and N snapshots;And, delete
Virtual machine snapshot in virtual machine.Then can be when needed via output port 405 and output equipment 406 by the magnetic after merging
Disk file is exported.
In a suitable case, computer executable instructions may include one or more be based on semiconductor or other are integrated
Circuit (IC) (for example, such as field programmable gate array (FPGA) or application-specific integrated circuit (ASIC)), hard disk drive (HDD), mixing
Hard disk drive (HHD), CD, CD drive (ODD), magneto-optic disk, magneto optical driver, floppy disk, floppy disk
(FDD), tape, hologram memory medium, solid-state drive (SSD), ram driver, safe digital card or driving or other are suitable
Computer-readable non-transitory storage medium or two or more the above combination.
Need clearly, the invention is not limited in particular configuration that is described above and being shown in figure and treatment.Also,
For brevity, the detailed description to known method technology is omitted here.In the above-described embodiments, have been described and illustrated some
Specific step is as an example.But, method of the present invention process is not limited to described and illustrated specific steps, this area
Technical staff can understand it is of the invention spirit after be variously modified, change and add, or change step between
Sequentially.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Unit and algorithm steps, can be realized, with electronic hardware, computer software or the combination of the two in order to clearly demonstrate hardware
With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This
A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specially
Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not
It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that, for convenience of description and succinctly, foregoing description is
The specific work process of system, device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example multiple units or component
Can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.In addition, shown or beg for
The coupling each other of opinion or direct-coupling or communication connection can be the INDIRECT COUPLINGs by some ports, device or unit
Or communication connection, or electricity, machinery or other forms connections.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be according to the actual needs selected to realize embodiment of the present invention scheme
Purpose.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, or two or more units are integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced
Change, these modifications or replacement should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain be defined.