CN104809020A - Snapshot generating method, system and device - Google Patents

Snapshot generating method, system and device Download PDF

Info

Publication number
CN104809020A
CN104809020A CN201510217450.0A CN201510217450A CN104809020A CN 104809020 A CN104809020 A CN 104809020A CN 201510217450 A CN201510217450 A CN 201510217450A CN 104809020 A CN104809020 A CN 104809020A
Authority
CN
China
Prior art keywords
snapshot
virtual machine
multiple stage
instruction
application
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
CN201510217450.0A
Other languages
Chinese (zh)
Other versions
CN104809020B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510217450.0A priority Critical patent/CN104809020B/en
Priority claimed from CN201380002501.7A external-priority patent/CN103946807B/en
Publication of CN104809020A publication Critical patent/CN104809020A/en
Application granted granted Critical
Publication of CN104809020B publication Critical patent/CN104809020B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

An embodiment of the invention relates to a snapshot generating method, a computer system and a snapshot generating device. The snapshot generating method includes: determining a plurality of virtual machines for running applications and a deployment server used for deploying the plurality of virtual machines, and sending a snapshot instruction to the deployment server of the plurality of virtual machines to enable the deployment server of the plurality of virtual machines to start snapshot operation for the virtual machines at the consistent time according to the snapshot instruction and to generate snapshot documents of the plurality of virtual machines at the consistent time. Accordingly, unified snapshot for the plurality of virtual machines for running the applications can be achieved, and consistence of backup data of the applications is ensured.

Description

A kind of mthods, systems and devices of generating snapshot
Technical field
The present invention relates to computer technology, particularly a kind of mthods, systems and devices of generating snapshot.
Background technology
Intel Virtualization Technology is by being incorporated into multiple operating system on a high-performance deployment server, the maximized all resources that make use of hardware platform, more application can be realized by less input, not only can simplified system architecture, the difficulty of management resource can also be reduced, be widely used in computer system.
In virtualization computer system, application deployment is on one or more virtual machine, when application is deleted or when being damaged owing to suffering natural disaster as irresistible in fire, earthquake, war etc., if do not adopted an effective measure, the data of application are backed up in advance, the interruption of whole computer system application and the loss of data may be caused, even cannot recover application, great loss will be brought.
Prior art carries out disaster-tolerant backup to the application run on a virtual machine, determines the virtual machine running application, then successively to virtual machine creating snapshot, finally according to the snapshot of virtual machine, obtain the Backup Data of described virtual machine by keeper.Prior art is determined to apply relevant virtual machine by manual operation and is that granularity carries out snapshot operation with virtual machine, if keeper can not determine whole virtual machines, by not complete for the data backup likely making to apply, even if when determining whole virtual machines, the situation that the snapshot data of each virtual machine is inconsistent also likely can be caused.
Summary of the invention
The embodiment of the present invention proposes a kind of mthods, systems and devices of generating snapshot, to realize the consistance of the snapshot data applied.
First aspect, the embodiment of the present invention proposes a kind of method of generating snapshot, and the method comprises:
Be received as the request that application creates snapshot, the mark of described application is carried in the described request for application establishment snapshot, is used to indicate the data creation snapshot into described application;
According to the mark of described application, determine the multiple stage virtual machine running described application;
Determine the deployment server of described multiple stage virtual machine;
Deployment server to described multiple stage virtual machine sends snapshot instruction, and described snapshot instruction is used to indicate the data of described deployment server to described multiple stage virtual machine and carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine.
In conjunction with first aspect, in the implementation that the first is possible, indication information is also carried in the described request for application establishment snapshot, described indication information is used to indicate and carries out conforming snapshot operation to the data of described application, then the described deployment server to described multiple stage virtual machine sends snapshot instruction, comprise: according to described indication information, the deployment server to described multiple stage virtual machine sends described snapshot instruction.
In conjunction with first aspect, in the implementation that the second is possible, the method also comprises the snapshot policy of preset application, the snapshot policy instruction of described application carries out conforming snapshot operation to the data of described application, then the described deployment server to described multiple stage virtual machine sends snapshot instruction, comprise: according to the snapshot policy of described application, the deployment server to described multiple stage virtual machine sends described snapshot instruction.
In conjunction with first aspect, the first possible implementation of first aspect and the possible implementation of the second of first aspect, in the implementation that the third is possible, when determining that described multiple stage deploying virtual machine is on multiple stage deployment server, deployment server then to described multiple stage virtual machine sends snapshot instruction, comprise: at identical time point, described snapshot instruction is sent respectively to described multiple stage deployment server, wherein, mark and the first information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, the described first information indicates the processing priority of described snapshot operation for high, or send described snapshot instruction respectively to described multiple stage deployment server, wherein, mark and second information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, described second information instruction starts described snapshot operation in the identical time.
Second aspect, the embodiment of the present invention proposes a kind of method of generating snapshot, and the method comprises:
Receive backup instruction, described backup instruction carries the mark of described application, is used to indicate and backs up the data of described application;
Be sent as to cloud operations server the request that application creates snapshot, mark and the indication information of described application are carried in the described request for application establishment snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described application.
In conjunction with second aspect, in the first possible implementation, described reception backup instruction, comprising: receive the described backup instruction that user triggers, described backup instruction carries the mark of described application; Or according to the backup policy of the application pre-set, timing generates described backup instruction, and described backup instruction carries the mark of described application.
The third aspect, the embodiment of the present invention proposes a kind of method of generating snapshot, and the method comprises:
Be received as the request of virtual machine creating snapshot, mark and the indication information of multiple stage virtual machine are carried in the described request for virtual machine creating snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described multiple stage virtual machine;
Determine the deployment server of described multiple stage virtual machine;
According to described indication information, deployment server to described multiple stage virtual machine sends snapshot instruction, and described snapshot instruction is used to indicate the data of described deployment server to described multiple stage virtual machine and carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine.
In conjunction with the third aspect, in the implementation that the first is possible, when determining that described multiple stage deploying virtual machine is on multiple stage deployment server, deployment server then to described multiple stage virtual machine sends snapshot instruction, comprise: at identical time point, send described snapshot instruction respectively to described multiple stage deployment server, wherein, mark and the first information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, and the described first information indicates the processing priority of described snapshot operation for high; Or send described snapshot instruction respectively to described multiple stage deployment server, wherein, mark and second information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, described second information instruction starts described snapshot operation in the identical time.
Fourth aspect, the embodiment of the present invention proposes a kind of method of generating snapshot, and the method comprises:
Receive backup instruction, described backup instruction carries the mark of described application, is used to indicate and backs up the data of described application;
According to the mark of described application, determine the multiple stage virtual machine running described application;
The request of virtual machine creating snapshot is sent as to cloud operations server, mark and the indication information of described multiple stage virtual machine are carried in the described request for virtual machine creating snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described multiple stage virtual machine.
In conjunction with fourth aspect, in the implementation that the first is possible, described reception backup instruction, comprising: receive the described backup instruction that user triggers, described backup instruction carries the mark of described application; Or according to the backup policy of the application pre-set, timing generates described backup instruction, and described backup instruction carries the mark of described application.
5th aspect, the embodiment of the present invention proposes a kind of method of generating snapshot, and the method comprises:
Receive backup instruction, described backup instruction carries the mark of described application, is used to indicate and backs up the data of described application;
According to the mark of described application, determine the multiple stage virtual machine running described application;
Determine the deployment server of described multiple stage virtual machine;
Deployment server to described multiple stage virtual machine sends snapshot instruction, and described snapshot instruction is used to indicate the data of described deployment server to described multiple stage virtual machine and carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine.
In conjunction with the 5th aspect, in the implementation that the first is possible, when determining that described multiple stage deploying virtual machine is on multiple stage deployment server, deployment server then to described multiple stage virtual machine sends snapshot instruction, comprise: at identical time point, send described snapshot instruction respectively to described multiple stage deployment server, wherein, mark and the first information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, and the described first information indicates the processing priority of described snapshot operation for high; Or send described snapshot instruction respectively to described multiple stage deployment server, wherein, mark and second information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, described second information instruction starts described snapshot operation in the identical time.
In conjunction with the first possible implementation of the 5th aspect and the 5th aspect, in the implementation that the second is possible, described reception backup instruction, comprise the described backup instruction receiving user and trigger, described backup instruction carries mark and the indication information of described application, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described application; The described deployment server to described multiple stage virtual machine sends snapshot instruction, and comprising: according to described indication information, the deployment server to described multiple stage virtual machine sends described snapshot instruction.
In conjunction with the implementation that the second of the 5th aspect is possible, in the implementation that the third is possible, the method also comprises the backup policy of preset application and the snapshot policy of application, the snapshot policy instruction of described application carries out conforming snapshot operation to the data of described application, then described reception backup instruction comprises: according to the backup policy of described application, timing generates described backup instruction, and described backup instruction carries the mark of described application;
The described deployment server to described multiple stage virtual machine sends snapshot instruction, and comprising: according to the snapshot policy of described application, the deployment server to described multiple stage virtual machine sends described snapshot instruction.
6th aspect, the embodiment of the present invention proposes a kind of method of generating snapshot, and the method comprises:
Receive snapshot instruction, described snapshot instruction is used to indicate carries out conforming snapshot operation to multiple stage virtual machine, according to described snapshot instruction, hang up the write operation of described every platform virtual machine at conforming time point respectively, respectively snapshot is done to generate the snapshot document of described every platform virtual machine to the storage volume of described every platform virtual machine.
In conjunction with the 6th aspect, in the implementation that the first is possible, mark and the first information of virtual machine are carried in described snapshot instruction, and the described first information indicates the processing priority of described snapshot operation for high; Described according to described snapshot instruction, the write operation of described every platform virtual machine is hung up respectively at conforming time point, comprise: the processing priority according to described snapshot operation is height, is receiving the first moment of described snapshot instruction, is hanging up the write operation of described every platform virtual machine respectively.
In conjunction with the 6th aspect, in the implementation that the second is possible, mark and second information of virtual machine are carried in described snapshot instruction, and described second information instruction starts described snapshot operation in the identical time; Described according to described snapshot instruction, hang up the write operation of described every platform virtual machine at conforming time point respectively, comprising: according to described second information, in the described identical time, hang up the write operation of described every platform virtual machine respectively.
7th aspect, the embodiment of the present invention proposes a kind of device of generating snapshot, and this device comprises:
Receiving element, creates the request of snapshot for being received as application, the mark of described application is carried in the described request for application establishment snapshot, is used to indicate the data creation snapshot into described application;
Determining unit, for the mark according to described application, determines the multiple stage virtual machine running described application, and determines the deployment server of described multiple stage virtual machine;
Transmitting element, send snapshot instruction for the deployment server to described multiple stage virtual machine, described snapshot instruction is used to indicate the data of described deployment server to described multiple stage virtual machine and carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine.
In conjunction with the 7th aspect, in the implementation that the first is possible, indication information is also carried in the described request for application establishment snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described application; Described transmitting element is specifically for according to described indication information, and the deployment server to described multiple stage virtual machine sends described snapshot instruction.
In conjunction with the 7th aspect, in the implementation that the second is possible, described device also comprises: dispensing unit, and for the snapshot policy of preset application, the snapshot policy instruction of described application carries out conforming snapshot operation to the data of described application; Described transmitting element is specifically for the snapshot policy according to the preset application of described dispensing unit, and the deployment server to described multiple stage virtual machine sends described snapshot instruction.
In conjunction with the first possible implementation of the 7th aspect, the 7th aspect and the possible implementation of the second of the 7th aspect, in the implementation that the third is possible, described determining unit is specifically for determining that described multiple stage deploying virtual machine is on multiple stage deployment server; Then, described transmitting element specifically for: at identical time point, described snapshot instruction is sent respectively to described multiple stage deployment server, wherein, mark and the first information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, and the described first information indicates the processing priority of described snapshot operation for high; Or, described transmitting element specifically for: send described snapshot instruction respectively to described multiple stage deployment server, wherein, mark and second information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, and described second information instruction starts described snapshot operation in the identical time.
Eighth aspect, this device of device that the embodiment of the present invention proposes a kind of generating snapshot comprises:
Receiving element, for receiving backup instruction, described backup instruction carries the mark of described application, is used to indicate and backs up the data of described application;
Transmitting element, for the described backup instruction received according to described receiving element, the request that application creates snapshot is sent as to cloud operations server, mark and the indication information of described application are carried in the described request for application establishment snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described application.
In conjunction with eighth aspect, in the implementation that the first is possible, the described backup instruction that described receiving element triggers specifically for receiving user, described backup instruction carries the mark of described application; Or according to the backup policy of the application pre-set, timing generates described backup instruction, and described backup instruction carries the mark of described application.
9th aspect, this device of device that the embodiment of the present invention proposes a kind of generating snapshot comprises:
Receiving element, for being received as the request of virtual machine creating snapshot, mark and the indication information of multiple stage virtual machine are carried in the described request for virtual machine creating snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described multiple stage virtual machine;
Determining unit, for determining the deployment server of described multiple stage virtual machine;
Providing unit, for receive according to described receiving element for virtual machine creating snapshot request in indication information, deployment server to described multiple stage virtual machine sends snapshot instruction, and described snapshot instruction is used to indicate carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine to the data of described multiple stage virtual machine.
In conjunction with the 9th aspect, in the implementation that the first is possible, described determining unit is for determining that described multiple stage deploying virtual machine is at multiple stage deployment server; Then, described providing unit is specifically at identical time point, described snapshot instruction is sent respectively to described multiple stage deployment server, wherein, mark and the first information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, and the described first information indicates the processing priority of described snapshot operation for high; Or, described providing unit is specifically for sending described snapshot instruction respectively to described multiple stage deployment server, wherein, mark and second information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, and described second information instruction starts described snapshot operation in the identical time.
Tenth aspect, this device of device that the embodiment of the present invention proposes a kind of generating snapshot comprises:
Receiving element, for receiving backup instruction, described backup instruction carries the mark of described application, is used to indicate and backs up the data of described application;
Query unit, for the mark according to described application, determines the multiple stage virtual machine running described application;
Transmitting element, for being sent as the request of virtual machine creating snapshot to cloud operations server, mark and the indication information of described multiple stage virtual machine are carried in the described request for virtual machine creating snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described multiple stage virtual machine.
11 aspect, this device of device that the embodiment of the present invention proposes a kind of generating snapshot comprises:
Receiving element, for receiving backup instruction, described backup instruction carries the mark of described application, is used to indicate and backs up the data of described application;
Determining unit, for the mark according to described application, determines to run the multiple stage virtual machine of described application and the deployment server of described multiple stage virtual machine;
Transmitting element, send snapshot instruction for the deployment server to described multiple stage virtual machine, described snapshot instruction is used to indicate carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine to the data of described multiple stage virtual machine.
In conjunction with the 11 aspect, in the implementation that the first is possible, described determining unit is for determining that described multiple stage deploying virtual machine is at multiple stage deployment server; Then, described transmitting element is specifically at identical time point, described snapshot instruction is sent respectively to described multiple stage deployment server, wherein, mark and the first information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, and the described first information indicates the processing priority of described snapshot operation for high; Or, described transmitting element is specifically for sending described snapshot instruction respectively to described multiple stage deployment server, wherein, mark and second information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, and described second information instruction starts described snapshot operation in the identical time.
12 aspect, this device of device that the embodiment of the present invention proposes a kind of generating snapshot comprises:
Receiving element, for receiving snapshot instruction, described snapshot instruction is used to indicate carries out conforming snapshot operation to multiple stage virtual machine;
Snapshot unit, for according to described snapshot instruction, hangs up the write operation of described every platform virtual machine respectively at conforming time point, do snapshot to generate the snapshot document of described every platform virtual machine respectively to the storage volume of described every platform virtual machine.
13 aspect, this system of system that the embodiment of the present invention proposes a kind of generating snapshot comprises:
Backup server, creates the request of snapshot for being sent as application to cloud operations server, the mark of described application is carried in the described request for application establishment snapshot, is used to indicate the data creation snapshot into described application;
Described cloud operations server, for receiving the described request for application establishment snapshot, according to the mark of described application, determine the multiple stage virtual machine running described application, determine the deployment server of described multiple stage virtual machine, deployment server to described multiple stage virtual machine sends snapshot instruction, and described snapshot instruction is used to indicate the data of described deployment server to described multiple stage virtual machine and carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine;
Described deployment server, for receiving described snapshot instruction, according to described snapshot instruction, hang up the write operation of described every platform virtual machine respectively at conforming time point, respectively snapshot is done to generate the snapshot document of described every platform virtual machine to the storage volume of described every platform virtual machine.
Fourteenth aspect, this system of system that the embodiment of the present invention proposes a kind of generating snapshot comprises:
Backup server, for receiving backup instruction, described backup instruction carries the mark of described application, be used to indicate and the data of described application are backed up, according to the identified query cloud operations server of described application to determine the multiple stage virtual machine running described application, and the request of virtual machine creating snapshot is sent as to cloud operations server, mark and the indication information of described multiple stage virtual machine are carried in the described request for virtual machine creating snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described multiple stage virtual machine;
Described cloud operations server, for the described application identities of carrying according to the Query Information of described backup server, determine the mark of the multiple stage virtual machine running described application, receive the described request for virtual machine creating snapshot that described backup server sends, determine the deployment server of described multiple stage virtual machine, according to the indication information in the described request being virtual machine creating snapshot, deployment server to described multiple stage virtual machine sends snapshot instruction, described snapshot instruction is used to indicate the data of described deployment server to described multiple stage virtual machine and carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine,
Described deployment server, for receiving the described snapshot instruction that described cloud operations server sends, according to described snapshot instruction, hang up the write operation of described every platform virtual machine at conforming time point respectively, respectively snapshot is done to generate the snapshot document of described every platform virtual machine to the storage volume of described every platform virtual machine.
15 aspect, this system of system that the embodiment of the present invention proposes a kind of generating snapshot comprises:
Backup server, for receiving backup instruction, described backup instruction carries the mark of described application, be used to indicate and the data of described application are backed up, according to the identified query cloud operations server of described application to determine to run the multiple stage virtual machine of described application and the deployment server of described multiple stage virtual machine, and sending snapshot instruction to the deployment server of described multiple stage virtual machine, described snapshot instruction is used to indicate the data of described deployment server to described multiple stage virtual machine and carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine;
Described cloud operations server, for the mark of described application of carrying according to the Query Information of described backup server, determines the multiple stage virtual machine running described application, determines the deployment server of described multiple stage virtual machine;
Described deployment server, for receiving the described snapshot instruction that described backup server sends, according to described snapshot instruction, hang up the write operation of described every platform virtual machine at conforming time point respectively, respectively snapshot is done to generate the snapshot document of described every platform virtual machine to the storage volume of described every platform virtual machine.
In an embodiment of the invention, can realize being applied as granularity and carry out snapshot operation, after receiving the request for application establishment snapshot, automatically the deployment server disposed described in the multiple stage virtual machine that operation is applied and described multiple stage virtual machine is determined, and send snapshot instruction to the deployment server of described multiple stage virtual machine, make the deployment server of described multiple stage virtual machine can according to described snapshot instruction, the snapshot document of described multiple stage virtual machine is generated at identical or close time point, thus realize carrying out unified consistance snapshot to the data of application, ensure the consistance of the snapshot data of described application.
In another embodiment of the present invention, the request into virtual machine creating snapshot can be received, indication information is carried in this virtual machine snapshot request, described indication information is used to indicate and carries out conforming snapshot operation to the data of described multiple stage virtual machine, and according to the deployment server transmission snapshot instruction of this indication information to described multiple stage virtual machine, make the deployment server of described multiple stage virtual machine can according to described snapshot instruction, the snapshot document of described multiple stage virtual machine is generated at identical or close time point, thus realize carrying out unified consistance snapshot to the data of application, ensure the consistance of the snapshot data of described application.
In another embodiment of the present invention, after receiving the backup instruction of application, automatically the deployment server disposed described in the multiple stage virtual machine that operation is applied and described multiple stage virtual machine is determined, and send snapshot instruction to the deployment server of described multiple stage virtual machine, make the deployment server of described multiple stage virtual machine can according to described snapshot instruction, the snapshot document of described multiple stage virtual machine is generated at identical or close time point, thus realize carrying out unified consistance snapshot to the data of application, ensure the consistance of the snapshot data of described application.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in prior art or embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The system chart that Fig. 1 (a) and (b) provide for the embodiment of the present invention;
Fig. 2 is the method flow diagram of a kind of generating snapshot provided according to the embodiment of the present invention;
Fig. 3 is the method flow diagram of another generating snapshot provided according to the embodiment of the present invention;
Fig. 4 is the method flow diagram of another generating snapshot provided according to the embodiment of the present invention;
Fig. 5 is the method flow diagram of another generating snapshot provided according to the embodiment of the present invention;
Fig. 6 is the method flow diagram of another generating snapshot provided according to the embodiment of the present invention;
Fig. 7 is the method flow diagram of another generating snapshot provided according to the embodiment of the present invention;
Fig. 8 is the method flow diagram of another generating snapshot provided according to the embodiment of the present invention;
Fig. 9 is the method flow diagram of another generating snapshot provided according to the embodiment of the present invention;
Figure 10 is the method flow diagram of another generating snapshot provided according to the embodiment of the present invention;
Figure 11 is the device composition diagram of a kind of generating snapshot provided according to the embodiment of the present invention;
Figure 12 is the device composition diagram of another generating snapshot provided according to the embodiment of the present invention;
Figure 13 is the device composition diagram of another generating snapshot provided according to the embodiment of the present invention;
Figure 14 is the device composition diagram of another generating snapshot provided according to the embodiment of the present invention;
Figure 15 is the device composition diagram of another generating snapshot provided according to the embodiment of the present invention;
Figure 16 is the device composition diagram of another generating snapshot provided according to the embodiment of the present invention;
Figure 17 is the device composition diagram of another generating snapshot provided according to the embodiment of the present invention.
Embodiment
Embodiments provide a kind of mthods, systems and devices of generating snapshot, conforming snapshot operation can be carried out to each the virtual machine running application, thus snapshot operation is unified to each the virtual machine running application, achieve the consistance of Backup Data.
The time starting snapshot operation due to the main frame (deployment server at virtual machine place) performing snapshot operation can be decided according to the task of self execution, if determined to start the snapshot operation of the data of virtual machine according to the running status of self and task amount by the main frame (deployment server at virtual machine place) performing snapshot operation, the priority of snapshot behaviour may not be performed immediately lower than other task, due to every platform virtual machine place main frame performed by task all different with task amount, the deployment server at different virtual machine place may be caused to start the snapshot operation to virtual-machine data at different time points, therefore make the Backup Data of each virtual machine inconsistent.The consistance of the said snapshot operation of the embodiment of the present invention, mainly refers to the consistance of the time of snapshot operation, namely initiates snapshot operation in the identical or close time, avoids initiating snapshot operation at the time point of being separated by larger.It should be noted that, the embodiment of the present invention said consistance time point means identical or close time point, comprise identical time point but not only refer to definitely identical time point, the category of close time is the time error scope of the data consistency that those skilled in the art generally acknowledge, the time error of both embodiment of the present invention recommendations is within 30 seconds.
As shown in Fig. 1 (a), for implementing an example of the system of the embodiment of the present invention, this system comprises cloud operations server 101 and deployment server cluster 110 (also can be called the physical machine cluster of cloud computing), described deployment server cluster 110 is for providing calculating for described system, the resources such as storage and network, described cloud operations server 101 can manage the resource of described system and distribute, wherein, described deployment server cluster 110 can comprise one or more deployment server, Fig. 1 (a) illustrates with two deployment servers, i.e. deployment server A and deployment server B, the embodiment of the present invention is in this no limit.
Also virtualization modules is provided with in described deployment server 110, the virtualization modules 120 of such as deployment server A and the virtualization modules 130 of deployment server B, described virtualization modules is for (comprising processor by the calculating on deployment server, internal memory), storage and Internet resources are abstracted in multiple virtual machine, each virtual machine has processor, internal memory, storage volume is connected with network, respective operating system and application program can be run, such as, virtualization modules 120 by the Resource Abstract of described deployment server A to virtual machine (VirtualMachine, VM) VM0, in VM1 and VM2, virtualization modules 130 by the Resource Abstract of described deployment server B to virtual machine VM3, in VM4 and VM5, described VM0-VM5 has respective input/output and storage volume, respective application program can be run.
Described cloud operations server 101 can comprise cloud administration module and cloud platform, can dispose the application in described system and manage, be such as application deployment, for described application distributes virtual machine, and the resource such as the calculating of virtual machine and storage, wherein, described cloud administration module is for managing application, preserve the deployment descriptor of application, such as apply the virtual machine run, deploying virtual machine is on which deployment server, and described cloud platform is used for managing virtual machines, manages the virtual machine on deployment server cluster.Described cloud administration module and cloud platform can be integrated and be deployed on same station server, also can separately dispose, and the embodiment of the present invention is deployed as example to integrate.
Particularly, described cloud operations server 101 can utilize described virtualization modules 120, 130 by application deployment at one or more virtual machine, namely application is created in the system, such as, application APP1 can be deployed in VM1 by described cloud operations server 101, on VM2 and VM3, the data of described APP1 are stored in described VM1, in the storage volume of VM2 and VM3, described cloud operations server can also collect the configuration information of described application after disposing described application, such as run the information of the information of the virtual machine of described application and the deployment server of described virtual machine.
Described virtualization modules 120, 130 can also according to the instruction of described cloud operations server 101, snapshot operation is carried out to virtual machine, generate the snapshot document of this virtual machine, such as, virtualization modules 120 can do snapshot to the storage volume of VM1, generate the snapshot document of VM1, the snapshot document of described VM1 can be kept in the storage volume of described VM1, described snapshot document is essentially the specific file of read states, this virtual machine can be recorded in all data of snapshot time and information, therefore can back up the data of virtual machine according to the snapshot document of virtual machine.
In embodiments of the present invention, in order to realize the backup of application data, add backup server 102 in systems in which, described backup server 102 communicates to connect with described cloud operations server, as shown in Fig. 1 (a), then can by following three kinds of modes, each the virtual machine realized running application unifies snapshot operation, realizes the unified backup of application data.
First kind of way, in system shown in Fig. 1 (a), described backup server 102 is according to the demand backed up the data of application, the request that application creates snapshot is sent as to described cloud operations server 101, the mark of described application is carried in the described request for application establishment snapshot, make described cloud operations server 101 according to the described request for application establishment snapshot, determine to run the deployment server disposed described in the multiple stage virtual machine of described application and described multiple stage virtual machine, and indicate the deployment server disposed described in described multiple stage virtual machine to carry out conforming snapshot operation to described multiple stage virtual machine.
The second way, cloud operations server 101 shown in Fig. 1 (a) increases cloud management interface 103, described cloud operations server 101 is supported, and described backup server 102 is to the inquiry of the configuration information of the application of current operation, thus described backup server 102 can according to the demand backed up the data of application, the multiple stage virtual machine of described application is determined to run by inquiring about described cloud operations server, the request of virtual machine creating snapshot is sent as to described cloud operations server 101, the mark of described multiple stage virtual machine is carried in the described request for virtual machine creating snapshot, make described cloud operations server 101 according to the described request for virtual machine creating snapshot, the physical host disposed described in described multiple stage virtual machine is indicated to carry out conforming snapshot operation to described multiple stage virtual machine.
The third mode, in the system shown in Fig. 1 (a), described backup server indicates described deployment server to carry out snapshot operation by described cloud operations server, described backup server can also communicate to connect with described deployment server cluster 110, as shown in Fig. 1 (b), then described backup server 102 can according to the demand backed up the data of application, determine to run the multiple stage virtual machine of described application and the deployment server of described multiple stage virtual machine by inquiring about described cloud operations server, and indicate the deployment server of described multiple stage virtual machine to start the snapshot operation to described multiple stage virtual machine at conforming time point, generate the snapshot document of described multiple stage virtual machine at conforming time point.
Specific implementation specifically will be launched to introduce in subsequent embodiment.
A kind of method of generating snapshot
System architecture shown in composition graphs 1 (a), the embodiment of the present invention proposes a kind of method of generating snapshot, and as shown in Figure 2, described method can comprise:
S201: be received as the request that application creates snapshot, the mark of described application is carried in the described request for application establishment snapshot, is used to indicate the data creation snapshot into described application.
Such as, backup server can be sent as to cloud operations server the request that application APP1 creates snapshot, and described cloud operations server can receive the described request creating snapshot for applying APP1, starts the data creation snapshot to described APP1.
When described APP1 operates on multiple stage virtual machine, in order to ensure the snapshot document according to the multiple stage virtual machine running APP1, the Backup Data of the APP1 generated can be consistent, the multiple stage virtual machine to running described APP1 is needed to carry out conforming snapshot behaviour, make the snapshot document of the multiple stage virtual machine of APP1 at conforming time point, ensure the consistance of the Backup Data of described multiple stage virtual machine, now or described request can be able to be allowed to carry indication information for the snapshot policy of the preset application of described cloud operations server, described cloud operations server is indicated to carry out conforming snapshot operation to the data of described application.
S202: according to the mark of described application, determines the multiple stage virtual machine running described application.
Described cloud operations server is in systems in which after application deployment, the configuration information of this application can be collected, such as run the information of the deployment server disposed described in the information of the virtual machine of this application and described virtual machine, therefore, described cloud operations server according to the mark of described application, can determine the multiple stage virtual machine running described application.
S203: the deployment server determining described multiple stage virtual machine.
Described cloud operations server can determine the deployment server of described multiple stage virtual machine, so that the deployment server of the described multiple stage virtual machine of follow-up instruction, carries out snapshot operation to described multiple stage virtual machine.
S204: the deployment server to described multiple stage virtual machine sends snapshot instruction, and described snapshot instruction is used to indicate carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine to the data of described multiple stage virtual machine.
In order to snapshot operation can be unified to each the virtual machine running application, described cloud operations server can, by carrying some indication informations in described snapshot instruction, indicate the deployment server of described multiple stage virtual machine to start the snapshot operation to described multiple stage virtual machine at conforming time point.
In embodiments of the present invention, described cloud operations server can according to the described request for application establishment snapshot, determine to run the deployment server disposed described in the multiple stage virtual machine of described application and described multiple stage virtual machine, and send snapshot instruction to the deployment server of described multiple stage virtual machine, make the deployment server of described multiple stage virtual machine can according to described snapshot instruction, the snapshot operation to described multiple stage virtual machine is started at conforming time point, generate the snapshot document of described multiple stage virtual machine at conforming time point, thus each the virtual machine that can realize running described application unifies snapshot, ensure the consistance of the snapshot data of described application, being different from prior art is that granularity carries out snapshot operation and data backup with virtual machine, each the virtual machine that the embodiment of the present invention realizes running application unifies snapshot and backup, avoid with virtual machine the situation that snapshot data is inconsistent and Backup Data is inconsistent of each virtual machine of the same application of the issuable operation of snap shot being granularity.
System architecture shown in composition graphs 1 (a), the embodiment of the present invention proposes a kind of method of generating snapshot, and as shown in Figure 3, described method can comprise:
S301: receive backup instruction, described backup instruction carries the mark of described application, is used to indicate and backs up the data of described application.
Such as, described backup instruction can be triggered by user, described backup server is backed up according to the data of described backup instruction to described application, again such as, described backup instruction can be generated by the backup policy timing of the application pre-set in described backup server, starts and backs up the data of described application.
S302: be sent as the request that application creates snapshot to cloud operations server, mark and the indication information of described application are carried in the described request for application establishment snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described application.
Described backup server is after receiving described backup instruction, start and the data of described application are backed up, such as can be sent as to described cloud operations server the request that application creates snapshot, described indication information is carried in the described request for application establishment snapshot, make described cloud operations server according to indication information, conforming snapshot operation is carried out to the data of described application.
In embodiments of the present invention, described backup server can according to the backup instruction received, the request that application creates snapshot is sent as to cloud operations server, make the indication information that described cloud operations server can be carried according to the described request being application creates snapshot, conforming snapshot operation is carried out to the data of described application, thus can realize unifying snapshot to the data of described application, being different from prior art is that granularity carries out snapshot operation and data backup with virtual machine, each the virtual machine that the embodiment of the present invention realizes running application unifies snapshot and backup, avoid with virtual machine the situation that snapshot data is inconsistent and Backup Data is inconsistent of each virtual machine of the same application of the issuable operation of snap shot being granularity.
System architecture shown in composition graphs 1 (a), the embodiment of the present invention proposes a kind of method of generating snapshot, and as shown in Figure 4, described method can comprise:
S401: the request being received as virtual machine creating snapshot, mark and the indication information of multiple stage virtual machine are carried in the described request for virtual machine creating snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described multiple stage virtual machine.
Backup server can be sent as the request of virtual machine creating snapshot to cloud operations server, described request can carry mark and the indication information of multiple stage virtual machine, described cloud operations server can receive the described request for virtual machine creating snapshot, starts described multiple stage virtual machine creating snapshot at conforming time point.
The mark of described multiple stage virtual machine can be the mark of all virtual machines of operation one application, then described backup server can by described be the request of virtual machine creating snapshot, indicate described cloud operations server to start all virtual machine creating snapshots to running certain application.
S402: the deployment server determining described multiple stage virtual machine.
Described cloud operations server according to the mark of described multiple stage virtual machine, can determine the deployment server of described multiple stage virtual machine, so that the deployment server of the described multiple stage virtual machine of follow-up instruction, carries out snapshot operation to described multiple stage virtual machine.
S403: the deployment server to described multiple stage virtual machine sends snapshot instruction, and described snapshot instruction is used to indicate carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine to the data of described multiple stage virtual machine.
Indication information can be carried in the request for virtual machine creating snapshot that described cloud operations server receives, be used to indicate the data of described cloud operations server to described multiple stage virtual machine and carry out conforming snapshot operation, therefore, in order to snapshot operation can be unified to described multiple stage virtual machine, described cloud operations server can according to described indication information, indicates the deployment server of described multiple stage virtual machine to start snapshot operation to described multiple stage virtual machine by described snapshot instruction simultaneously.
In embodiments of the present invention, described cloud operations server can according to described be the request of virtual machine creating snapshot, determine the deployment server disposed described in multiple stage virtual machine, and send snapshot instruction to the deployment server of described multiple stage virtual machine, make the deployment server of described multiple stage virtual machine can according to described snapshot instruction, start the snapshot operation to described multiple stage virtual machine simultaneously, the snapshot document of described multiple stage virtual machine is generated at conforming time point, when described multiple stage virtual machine is all virtual machines of cloud certain application capable, each the virtual machine that described method can realize running described application unifies snapshot, ensure the consistance of the snapshot data of described application, being different from prior art is that granularity carries out snapshot operation and data backup with virtual machine, each the virtual machine that the embodiment of the present invention realizes running application unifies snapshot and backup, avoid with virtual machine the situation that snapshot data is inconsistent and Backup Data is inconsistent of each virtual machine of the same application of the issuable operation of snap shot being granularity.
System architecture shown in composition graphs 1 (a), the embodiment of the present invention proposes a kind of method of generating snapshot, and as shown in Figure 5, described method can comprise:
S501: receive backup instruction, described backup instruction carries the mark of described application, is used to indicate and backs up the data of described application.
Such as, described backup instruction can be triggered by user, described backup server is backed up according to the data of described backup instruction to described application, again such as, described backup instruction can be generated by the backup policy timing of the application pre-set in described backup server, starts and backs up the data of described application.
S502: according to the mark of described application, determines the multiple stage virtual machine running described application.
Described backup server can inquire about described cloud operations server by cloud management interface, determines the multiple stage virtual machine running described application, so that follow-up instruction carries out snapshot operation to described multiple stage virtual machine.
S503: the request being sent as virtual machine creating snapshot to cloud operations server, mark and the indication information of described multiple stage virtual machine are carried in the described request for virtual machine creating snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described multiple stage virtual machine.
Described backup server is after receiving described backup instruction, start and the data of described application are backed up, the request of virtual machine creating snapshot such as can be sent as to described cloud operations server, described request carries the mark of the multiple stage virtual machine running described application, make described cloud operations server can according to the described request for virtual machine creating snapshot, snapshot operation is carried out to the multiple stage virtual machine running described application, in addition, in order to realize carrying out conforming snapshot operation to the data of the multiple stage virtual machine running described application, the described request for virtual machine creating snapshot can also carry indication information, be used to indicate the data of described cloud operations server to the multiple stage virtual machine running described application and carry out conforming snapshot operation.
In embodiments of the present invention, described backup server can after the described backup instruction of reception, determine the multiple stage virtual machine machine running described application, be sent as the request of virtual machine creating snapshot, make described cloud operations server can according to the described request for virtual machine creating snapshot, conforming snapshot operation is carried out to the data of the multiple stage virtual machine running described application, thus each the virtual machine that can realize running described application unifies snapshot, ensure the consistance of the Backup Data of described application, being different from prior art is that granularity carries out snapshot operation and data backup with virtual machine, each the virtual machine that the embodiment of the present invention realizes running application unifies snapshot and backup, avoid with virtual machine the situation that snapshot data is inconsistent and Backup Data is inconsistent of each virtual machine of the same application of the issuable operation of snap shot being granularity.
System architecture shown in composition graphs 1 (b), the embodiment of the present invention proposes a kind of method of generating snapshot, and as shown in Figure 6, described method can comprise:
S601: receive backup instruction, described backup instruction carries the mark of described application, is used to indicate and backs up the data of described application.
Described backup instruction can be triggered by user, can also be generated, after described backup server receives described backup instruction, start and back up the data of described application by the backup policy timing of the application pre-set in described backup server.
Further, when described backup instruction is triggered by user, described backup instruction can also carry indication information, described indication information is used to indicate and carries out conforming snapshot operation to the data of described application, makes follow-up described backup server can carry out conforming snapshot operation to the data of described application.
When described backup instruction is generated by the backup policy timing of described application, can also the snapshot policy of preset application in described backup server, the snapshot policy instruction of described application carries out conforming snapshot operation to the data of described application, makes follow-up described backup server can carry out conforming snapshot operation to the data of described application.
S602: according to the mark of described application, determines the multiple stage virtual machine running described application.
Described backup server can inquire about described cloud operations server by cloud management interface, determines the multiple stage virtual machine running described application.
S603: the deployment server determining described multiple stage virtual machine.
Described backup server can determine the deployment server of described multiple stage virtual machine by the described cloud operations server of inquiry, so that the deployment server of follow-up instruction described multiple stage virtual machine carries out snapshot operation to described multiple stage virtual machine.
S604: the deployment server to described multiple stage virtual machine sends snapshot instruction, and described snapshot instruction is used to indicate carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine to the data of described multiple stage virtual machine.
In order to snapshot operation can be unified to described multiple stage virtual machine, described backup server can, according to the snapshot policy of described indication information or described application, indicate the deployment server of described multiple stage virtual machine to start the snapshot operation to described multiple stage virtual machine at conforming time point.
In embodiments of the present invention, described backup server can according to described backup instruction, start and the data of described application are backed up, determine to run the deployment server disposed described in the multiple stage virtual machine of described application and described multiple stage virtual machine, and send snapshot instruction to the deployment server of described multiple stage virtual machine, make the deployment server of described multiple stage virtual machine can according to described snapshot instruction, the snapshot operation to described multiple stage virtual machine is started at conforming time point, generate the snapshot document of described multiple stage virtual machine, thus each the virtual machine that can realize running described application unifies snapshot, ensure the consistance of the snapshot data of described application, being different from prior art is that granularity carries out snapshot operation and data backup with virtual machine, each the virtual machine that the embodiment of the present invention realizes running application unifies snapshot and backup, avoid with virtual machine the situation that snapshot data is inconsistent and Backup Data is inconsistent of each virtual machine of the same application of the issuable operation of snap shot being granularity.
Composition graphs 1 (a) or the system architecture shown in (b), the embodiment of the present invention proposes a kind of method of generating snapshot, and as shown in Figure 7, described method can comprise:
S701: receive snapshot instruction, described snapshot instruction is used to indicate carries out conforming snapshot operation to multiple stage virtual machine.
Backup server or cloud operations server can send snapshot instruction to deployment server, the mark of multiple stage virtual machine is carried in described snapshot instruction, described deployment server can according to described snapshot instruction, to described, conforming snapshot operation is carried out to multiple stage virtual machine, such as, described backup server can send described snapshot instruction to the deployment server A deploying VM1 and VM2, the mark of VM1 and VM2 is carried in described snapshot instruction, then described deployment server A is according to described snapshot instruction, carries out conforming snapshot operation to VM1 and VM2.
S702: according to described snapshot instruction, hangs up the write operation of described every platform virtual machine respectively at conforming time point.
Such as, the virtualization modules of described deployment server can hang up the write operation of described VM1 and VM2 at consistance time point, namely allow described VM1 and VM2 quit work simultaneously, the information of VM1 and VM2 that the storage volume of then now VM1 and VM2 is preserved is conforming time point, so that the conforming snapshot data of follow-up generation VM1 and VM2.
S703: respectively snapshot is done to generate the snapshot document of described every platform virtual machine to the storage volume of described every platform virtual machine.
The virtualization modules of described deployment server can carry out snapshot operation to the storage volume of VM1 and VM2 respectively, generate the snapshot document of VM1 and VM2, information due to VM1 and VM2 that the storage volume of VM1 and VM2 is preserved is consistance time point, achieves and carries out conforming snapshot operation to VM1 and VM2.
In embodiments of the present invention, described deployment server can receive snapshot instruction, the mark of multiple stage virtual machine is carried in described snapshot instruction, and according to described snapshot instruction, hang up the write operation of described multiple stage virtual machine at conforming time point after, conforming snapshot operation is carried out to described multiple stage virtual machine, thus can realize unifying snapshot operation to described multiple stage virtual machine, ensured the consistance of the snapshot data of described multiple stage virtual machine.
Specific embodiment one
System architecture shown in composition graphs 1 (a), the embodiment of the present invention proposes a kind of method of generating snapshot, as shown in Figure 8, for carrying out snapshot operation to the data of application, such as, the data of APP1 are backed up, described APP1 operates on VM1, VM2 and VM3, wherein VM1 and VM2 is deployed on deployment server A, and VM3 is deployed on deployment server B, and described method can comprise:
S801: backup server receives backup instruction, and described backup instruction carries the mark of APP1.
Described backup instruction carries the mark of application, the mark of such as APP1, after described backup server receives described backup instruction, starts and backs up the data of APP1, the mark of wherein said application can be the title of application or ID, and the embodiment of the present invention is in this no limit.
Described backup instruction can be triggered according to demand by user, such as, when needing to back up the data of APP1, user sends described backup instruction to described backup server, described backup instruction carries mark and the indication information of described APP1, described indication information is used to indicate and carries out conforming snapshot operation to the data of described application, and described backup server can receive the described backup instruction that user triggers, and backs up the data of APP1;
Described backup instruction can also be carry out timing by described backup server according to the backup policy of the application pre-set to generate, such as, the backup policy that user can pre-set APP1 in described backup server was: every 10 hours, the data of APP1 are once backed up, then described backup server was every 10 hours, generate once described backup instruction, described backup instruction carries the mark of APP1, then described backup server according to the described backup instruction of timing generation, can start and back up the data of APP1.
S802: described backup server is sent as to cloud operations server the request that application APP1 creates snapshot.
After receiving described backup instruction, described backup server is sent as to described cloud operations server the request that application APP1 creates snapshot, the mark of described APP1 is carried in the described request for application APP1 establishment snapshot, to indicate the data creation snapshot that described cloud operations server is APP1
The described request for application APP1 establishment snapshot is except carrying the mark of described APP1, also carry indication information, described indication information is used to indicate described cloud operations server and carries out conforming snapshot operation to the data of described APP1, thus realize unifying backup to each the virtual machine running APP1, ensure the consistance of Backup Data.
S803: described cloud operations server, according to the mark of described APP1, determines the multiple stage virtual machine running described APP1.
Described cloud operations server receives the described request for application establishment snapshot, and determines the multiple stage virtual machine running described APP1, so that the follow-up multiple stage virtual machine to running described APP1 carries out snapshot operation.
Described cloud operations server collects the configuration information of described APP1 after can disposing APP1 in system 1, and the configuration information of such as APP1 can comprise:
1) virtual machine running APP1 is: VM1, VM2 and VM3;
2) VM1 and VM2 is deployed on deployment server A;
3) VM3 is deployed on deployment server B;
Then described cloud operations server is according to the configuration information applied in the identified query system of APP1, can determine that the multiple stage virtual machine running described APP1 is: VM1, VM2 and VM3.
S804: described cloud operations server determines the deployment server of described multiple stage virtual machine.
Described cloud operations server can determine the deployment server of VM1, VM2 and VM3 further, so that the deployment server of follow-up instruction VM1, VM2 and VM3, VM1, VM2 and VM3 is carried out to the snapshot operation of synchronization.
By the configuration information inquiring about APP1, described cloud operations server can determine that the deployment server disposed described in VM1 and VM2 is deployment server A, determine that the deployment server of VM3 is deployment server B.
S805: described cloud operations server, according to described indication information, sends snapshot instruction to deployment server A and deployment server B.
Described cloud operations server can send snapshot instruction to the deployment server of described multiple stage virtual machine, namely send snapshot instruction respectively to deployment server A and deployment server B, described snapshot instruction is used to indicate carries out conforming snapshot operation to generate the snapshot document of VM1, VM2 and VM3 to the data of VM1, VM2 and VM3.
Particularly, described cloud operations server can according to described indication information, determine to need the data to VM1, VM2 and VM3 to carry out conforming snapshot operation, described cloud operations server can realize by the following two kinds mode the snapshot operation data of VM1, VM2 and VM3 being carried out to synchronization:
1) mode one
Described cloud operations server is at identical time point, described snapshot instruction is sent respectively to deployment server A and deployment server B, wherein, mark and the first information of VM1 and VM2 are carried in described snapshot instruction to deployment server A transmission, the mark of VM3 and the described first information are carried in the described snapshot instruction sent to deployment server B, the described first information is used to indicate after receiving described snapshot instruction, carry out this snapshot operation immediately, namely the processing priority of described snapshot operation is used to indicate for high, thus described deployment server A and deployment server B can receive described snapshot instruction at conforming time point, and according to the described first information, described snapshot operation is started at conforming time point.
2) mode two
Described cloud operations server can send described snapshot instruction respectively to deployment server A and deployment server B, wherein, mark and second information of VM1 and VM2 are carried in described snapshot instruction to deployment server A transmission, the mark of VM3 and described second information are carried in the described snapshot instruction sent to deployment server B, described second information instruction starts described snapshot operation in the identical time, such as described second information can indicate and start described snapshot operation that afternoon 4, then described will according to described second information to deployment server A and described deployment server B, described snapshot operation is started in the identical time.
By above-mentioned two kinds of modes, ensure that deployment server A and deployment server B starts snapshot operation at conforming time point, but owing to deploying two virtual machines in deployment server A, i.e. VM1 and VM2, also need to indicate described deployment server A to carry out snapshot operation at conforming time point to VM1 and VM2, can realize VM1, the data of VM2 and VM3 carry out conforming snapshot operation, therefore before described cloud operations server sends described snapshot instruction to the deployment server deploying at least two virtual machines, described snapshot instruction can be allowed to carry the 3rd information, the deployment server deploying at least two virtual machines described in described 3rd information is used to indicate starts described snapshot operation to different virtual machines in the identical time, such as, before described cloud operations server sends described snapshot instruction to deployment server A, described snapshot instruction is allowed also to carry described 3rd information, make described deployment server A can according to described 3rd information, the snapshot operation to VM1 and VM2 is started in the identical time.
Wherein, the mark of described virtual machine can be general unique identifier (the UniversallyUnique Identifier of described virtual machine, UUID), can also be uniform resource name (the Uniform ResourceName of described virtual machine, URN), the embodiment of the present invention is in this no limit.
In addition, in embodiments of the present invention, the indication information that described cloud operations server is carried according to the described request creating snapshot for applying APP1, conforming snapshot is carried out to the data of described APP1, certainly, the described request for application APP1 establishment snapshot can not also carry described indication information, user or described backup server can be the snapshot policy of the preset application of described cloud operations server, to refer to carry out conforming snapshot operation to the data of described APP1, described cloud operations server is after receiving the described request for application APP1 establishment snapshot, can according to the instruction of the snapshot policy of described application, to VM1, the data of VM2 and VM3 carry out conforming snapshot operation.
S806: described deployment server A and deployment server B, according to described snapshot instruction, generates the snapshot document of VM1, VM2 and VM3 respectively at conforming time point.
By known to the analysis of step 806, described deployment server A and deployment server B, after receiving described snapshot instruction, will start snapshot operation at conforming time point, generate the snapshot document of consistent time point.Particularly, the virtualization modules of described deployment server A and the virtualization modules of described deployment server B hang up VM1 at conforming time point, the write operation of VM2 and VM3, namely stop VM1 at conforming time point, all number of write access operations of VM2 and VM3, now VM1, data in the storage volume of VM2 and VM3 are conforming time point, then the virtualization modules of described deployment server A and the virtualization modules of described deployment server B can respectively to VM1, the storage volume of VM2 and VM3 does snapshot, to generate VM1, the snapshot document of VM2 and VM3, owing to having hung up VM1 at conforming time point, the input/output of VM2 and VM3, achieve and generate VM1, VM2 and VM3 is at the snapshot document of conforming time point, ensure VM1, the consistance of the Backup Data of VM2 and VM3.
S807: described deployment server A and deployment server B returns the information of the snapshot document of described VM1, VM2 and VM3 to described cloud operations server.
After the snapshot document generating described VM1, VM2 and VM3, the virtualization modules of described deployment server A and the virtualization modules of described deployment server B can send the information of the snapshot document of described VM1, VM2 and VM3 respectively to described cloud operations server, the information of described snapshot document can be the mark of described snapshot document in deployment server or path, and the information according to described snapshot document can obtain described snapshot document in this deployment server.
S808: the information of the snapshot document of VM1, VM2 and VM3 of described reception is returned to described backup server by described cloud operations server.
S809: described backup server, according to the information of the snapshot document of described VM1, VM2 and VM3, generates the Backup Data of VM1, VM2 and VM3.
Described backup server can according to the information of the snapshot document of described VM1, VM2 and VM3, the snapshot document of described VM1, VM2 and VM3 is backuped in described backup server, namely the Backup Data of VM1, VM2 and VM3 is generated, snapshot document due to described VM1, VM2 and VM3 is conforming time point, ensure that the consistance of the Backup Data of VM1, VM2 and VM3.In embodiments of the present invention, described backup server can be sent as the request that application creates snapshot, described cloud operations server can according to the mark of described application, determine the multiple stage virtual machine machine running described application, and according to the indication information that the described request being application creates snapshot is carried, deployment server to described multiple stage virtual machine sends snapshot instruction, the first information or the second information or the 3rd information are carried in described snapshot instruction, make the deployment server of described multiple stage virtual machine can according to the described first information or the second information or the 3rd information, the snapshot operation to described multiple stage virtual machine is started at conforming time point, generate the snapshot document of described multiple stage virtual machine at conforming time point, thus described backup server can according to the snapshot document of described multiple stage virtual machine, snapshot is unified to each the virtual machine running described application, ensure the consistance of the Backup Data of described application, being different from prior art is that granularity carries out snapshot operation and data backup with virtual machine, each the virtual machine that the embodiment of the present invention realizes running application unifies snapshot and backup, avoid with virtual machine the situation that snapshot data is inconsistent and Backup Data is inconsistent of each virtual machine of the same application of the issuable operation of snap shot being granularity.
Specific embodiment two
System architecture shown in composition graphs 1 (a), the embodiment of the present invention proposes a kind of method of generating snapshot, as shown in Figure 9, for carrying out snapshot operation to the data of application, such as, the data of APP1 are backed up, described APP1 operates on VM1, VM2 and VM3, wherein VM1 and VM2 is deployed on deployment server A, and VM3 is deployed on deployment server B, and described method can comprise:
S901: backup server receives backup instruction, and described backup instruction carries the mark of APP1.
Described backup instruction is used to indicate the data of described backup server to described APP1 and backs up.Embodiment and the step S801 of this step are similar, do not repeat them here.
S902: described backup server is according to the mark of described APP1, and inquiry runs the multiple stage virtual machine of described APP1.
Described backup server, after receiving described backup instruction, can run the multiple stage virtual machine of described APP1, so that the follow-up multiple stage virtual machine to running described APP1 carries out snapshot operation to described cloud operations server inquiry.
Particularly, after described cloud operations server can dispose described APP1 in systems in which, collect the configuration information of described APP1, such as run the information of the virtual machine of described APP1, described backup server can according to the mark of described APP1, run the mark of the multiple stage virtual machine of described APP1 to described cloud operations server inquiry by cloud management interface, thus the multiple stage virtual machine determining to run described APP1 is VM1, VM2 and VM3.
S903: described backup server is sent as virtual machine VM1, VM2 and VM3 to described cloud operations server and creates the request created.
Mark and the indication information of VM1, VM2 and VM3 are carried in the described request for virtual machine VM1, VM2 and VM3 establishment creation, and described indication information is used to indicate described cloud operations server and carries out conforming snapshot operation to the data of VM1, VM2 and VM3.
S904: described cloud operations server, according to the mark of described VM1, VM2 and VM3, determines the deployment server of VM1, VM2 and VM3.
Described cloud operations server can determine the deployment server of VM1, VM2 and VM3 further, so that the deployment server of follow-up instruction VM1, VM2 and VM3, carries out conforming snapshot operation to VM1, VM2 and VM3.
Described cloud operations server, according to the mark of described VM1, VM2 and VM3, can determine that the deployment server disposed described in VM1 and VM2 is deployment server A, determines that the deployment server of VM3 is deployment server B.
S905: described cloud operations server, according to described indication information, sends snapshot instruction to deployment server A and deployment server B.
S906: described deployment server A and deployment server B, according to described snapshot instruction, generates the snapshot document of VM1, VM2 and VM3 respectively at conforming time point.
S907: described deployment server A and deployment server B returns the information of the snapshot document of described VM1, VM2 and VM3 to described cloud operations server.
S908: the information of the snapshot document of VM1, VM2 and VM3 of described reception is returned to described backup server by described cloud operations server.
S909: described backup server, according to the information of the snapshot document of described VM1, VM2 and VM3, generates the Backup Data of VM1, VM2 and VM3.
Embodiment and the step S805-S809 of step S905-S909 are similar, and the embodiment of the present invention does not repeat them here.
In embodiments of the present invention, described backup server can after the described backup instruction of reception, determine the multiple stage virtual machine machine running described application, be sent as the request of virtual machine creating snapshot, the indication information that described cloud operations server can be carried according to the described request for virtual machine creating snapshot, deployment server to described multiple stage virtual machine sends snapshot instruction, the first information or the second information or the 3rd information are carried in described snapshot instruction, make the deployment server of described multiple stage virtual machine can according to the described first information or the second information or the 3rd information, the snapshot operation to described multiple stage virtual machine is started at conforming time point, generate the snapshot document of described multiple stage virtual machine at conforming time point, thus described backup server can according to the snapshot document of described multiple stage virtual machine, backup is unified to each the virtual machine running described application, ensure the consistance of the Backup Data of described application, being different from prior art is that granularity carries out snapshot operation and data backup with virtual machine, each the virtual machine that the embodiment of the present invention realizes running application unifies snapshot and backup, avoid the situation that snapshot data is inconsistent and Backup Data is inconsistent of each virtual machine of the same application of issuable operation in prior art.
Specific embodiment three
System architecture shown in composition graphs 1 (b), the embodiment of the present invention proposes a kind of method of generating snapshot, as shown in Figure 10, for carrying out snapshot operation to the data of application, such as, the data of APP1 are backed up, described APP1 operates on VM1, VM2 and VM3, wherein VM1 and VM2 is deployed on deployment server A, and VM3 is deployed on deployment server B, and described method can comprise:
S1001: backup server receives backup instruction, and described backup instruction carries the mark of APP1.
Described backup instruction is used to indicate the data of described backup server to described APP1 and backs up.Embodiment and the step S801 of this step are similar, do not repeat them here.
S1002: described backup server is according to the mark of described APP1, and inquiry runs the multiple stage virtual machine of described APP1 and the deployment server of described multiple stage virtual machine.
Described backup server is after receiving described backup instruction, the multiple stage virtual machine of described APP1 and the deployment server of described multiple stage virtual machine can be run to described cloud operations server inquiry, so that the deployment server of the described multiple stage virtual machine of follow-up instruction, snapshot operation is carried out to the multiple stage virtual machine running described APP1.
Particularly, after described cloud operations server can dispose described APP1 in systems in which, collect the configuration information of described APP1, such as run the information of the information of the virtual machine of described APP1 and the deployment server of described virtual machine, described backup server can according to the mark of described APP1, described cloud operations server is inquired about by cloud management interface, the multiple stage virtual machine determining to run described APP1 is VM1, VM2 and VM3, determine that the deployment server disposed described in VM1 and VM2 is deployment server A, determine that the deployment server of VM3 is deployment server B.
S1003: described backup server sends snapshot instruction to deployment server A and deployment server B.
Described backup server sends snapshot instruction respectively to deployment server A and deployment server B, carries out conforming snapshot operation to indicate described deployment server A and deployment server B to the data of VM1, VM2 and VM3.
Particularly, in order to realize VM1, the data of VM2 and VM3 carry out conforming snapshot operation, described backup server can at identical time point, described snapshot instruction is sent respectively to deployment server A and deployment server B, wherein, mark and the first information of VM1 and VM2 are carried in described snapshot instruction to deployment server A transmission, the mark of VM3 and the described first information are carried in the described snapshot instruction sent to deployment server B, the described first information is used to indicate after receiving described snapshot instruction, carry out this snapshot operation immediately, namely the processing priority of described snapshot operation is used to indicate for high, thus described deployment server A and deployment server B can receive described snapshot instruction at conforming time point, and according to the described first information, start described snapshot operation,
Or, it is all right,
Described snapshot instruction is sent respectively to deployment server A and deployment server B, wherein, mark and second information of VM1 and VM2 are carried in described snapshot instruction to deployment server A transmission, the mark of VM3 and described second information are carried in the described snapshot instruction sent to deployment server B, described second information instruction starts described snapshot operation in the identical time, such as described second information can indicate and start described snapshot operation that afternoon 4, then described will according to described second information to deployment server A and described deployment server B, described snapshot operation is started in the identical time.
By above-mentioned two kinds of modes, ensure that deployment server A and deployment server B starts snapshot operation simultaneously, but owing to deploying two virtual machines in deployment server A, i.e. VM1 and VM2, also need to indicate described deployment server A to carry out snapshot operation to VM1 and VM2 simultaneously, can realize VM1, the data of VM2 and VM3 carry out conforming snapshot operation, therefore before described backup server sends described snapshot instruction to the deployment server deploying at least two virtual machines, described snapshot instruction can be allowed to carry the 3rd information, the deployment server deploying at least two virtual machines described in described 3rd information is used to indicate starts described snapshot operation to different virtual machines in the identical time, such as, before described backup server sends described snapshot instruction to deployment server A, described snapshot instruction is allowed also to carry described 3rd information, make described deployment server A can according to described 3rd information, the snapshot operation to VM1 and VM2 is started in the identical time.
S1004: described deployment server A and deployment server B, according to described snapshot instruction, generates the snapshot document of VM1, VM2 and VM3 respectively at synchronization.
Embodiment and the step S806 of this step are similar, and the embodiment of the present invention repeats in this step.
S1005: described deployment server A and deployment server B returns the information of the snapshot document of described VM1, VM2 and VM3 to described backup server.
S1006: described backup server, according to the information of the snapshot document of described VM1, VM2 and VM3, generates the Backup Data of VM1, VM2 and VM3.
Described backup server can according to the information of the snapshot document of described VM1, VM2 and VM3, the snapshot document of described VM1, VM2 and VM3 is backuped in described backup server, because the snapshot document of described VM1, VM2 and VM3 generates at synchronization, ensure that the consistance of the Backup Data of VM1, VM2 and VM3.
In embodiments of the present invention, described backup server can after the described backup instruction of reception, determine to run the deployment server disposed described in the multiple stage virtual machine machine of described application and described multiple stage virtual machine, and send snapshot instruction to the deployment server of described multiple stage virtual machine, the first information or the second information or the 3rd information are carried in described snapshot instruction, make the deployment server of described multiple stage virtual machine can according to the described first information or the second information or the 3rd information, the snapshot operation to described multiple stage virtual machine is started at conforming time point, generate the snapshot document of described multiple stage virtual machine at consistance time point, thus described backup server can according to the snapshot document of described multiple stage virtual machine, snapshot is unified to each the virtual machine running described application, ensure the consistance of the Backup Data of described application, being different from prior art is that granularity carries out snapshot operation and data backup with virtual machine, each the virtual machine that the embodiment of the present invention realizes running application unifies snapshot and backup, avoid with virtual machine the situation that snapshot data is inconsistent and Backup Data is inconsistent of each virtual machine of the same application of the issuable operation of snap shot being granularity.
A kind of generating snapshot device
System architecture shown in composition graphs 1 (a), embodiments provides a kind of fast photographing device, and as shown in figure 11, described device can comprise receiving element 1101, determining unit 1102 and transmitting element 1103.
Described receiving element 1101, the request of snapshot is created for being received as application, the mark of described application is carried in the described request for application establishment snapshot, be used to indicate the data creation snapshot for described application, such as backup server can be sent as to cloud operations server the request that application APP1 creates snapshot, described cloud operations server can receive the described request for application APP1 establishment snapshot, start the data creation snapshot to described APP1, the described request for application establishment snapshot can also carry indication information, described indication information is used to indicate and carries out conforming snapshot operation to the data of described application.
Described determining unit 1102, for the mark of the described application that basis is carried for the request of applying establishment snapshot, determine the multiple stage virtual machine running described application, and determine the deployment server of described multiple stage virtual machine, after cloud operations server in systems in which application deployment, the configuration information of this application can be collected, such as run the information of the deployment server disposed described in the information of the virtual machine of this application and described virtual machine, described determining unit 1102 according to the mark of described application, can determine the multiple stage virtual machine running described application.
Described transmitting element 1103, snapshot instruction is sent for the deployment server to described multiple stage virtual machine, described snapshot instruction is used to indicate carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine to the data of described multiple stage virtual machine, particularly, described transmitting element 1103 can according to the indication information that the described request for application establishment snapshot is carried, deployment server to described multiple stage virtual machine sends described snapshot instruction, starts snapshot operation to indicate to described multiple stage virtual machine at conforming time point.
Further, described device can also comprise dispensing unit 1104, the described snapshot policy for preset application, the snapshot policy instruction of described application carries out conforming snapshot operation to the data of described application, then described transmitting element 1103 specifically can according to the snapshot policy of the preset application of described dispensing unit 1104, deployment server to described multiple stage virtual machine sends described snapshot instruction, starts snapshot operation to indicate to described multiple stage virtual machine at conforming time point.
When described determining unit 1102 determines that described multiple stage deploying virtual machine is on multiple stage deployment server, described multiple stage starts snapshot operation to described multiple stage virtual machine at conforming time point in order to indicate described multiple stage deployment server, described transmitting element 1103 can at identical time point, described snapshot instruction is sent respectively to described multiple stage deployment server, wherein, mark and the first information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, and the described first information indicates the processing priority of described snapshot operation for high; Or, described snapshot instruction is sent respectively to described multiple stage deployment server, wherein, mark and second information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, described second information instruction starts described snapshot operation in the identical time, thus ensures that described multiple stage deployment server starts snapshot operation simultaneously.
Further, when described determining unit 1102 determines at least one described deployment server deploy at least two virtual machines, such as, determine to dispose server A deploy VM1 and VM2, start snapshot to VM1 and VM2 in order to deployment server A can be allowed simultaneously, described transmitting element 1103 can also send described snapshot instruction to the described deployment server deploying at least two virtual machines, the 3rd information is also carried in described snapshot instruction, the deployment server deploying at least two virtual machines described in described 3rd information instruction starts described snapshot operation to different virtual machines in the identical time.
In embodiments of the present invention, the request for application establishment snapshot that described determining unit 1102 can receive according to described receiving element 1101, determine to run the deployment server disposed described in the multiple stage virtual machine of described application and described multiple stage virtual machine, make described transmitting element 1103 can send snapshot instruction to the deployment server of described multiple stage virtual machine, thus the deployment server of described multiple stage virtual machine can according to described snapshot instruction, the snapshot operation to described multiple stage virtual machine is started at conforming time point, generate the snapshot document of described multiple stage virtual machine at conforming time point, each the virtual machine realized running described application unifies snapshot, ensure the consistance of the snapshot data of described application, being different from prior art is that granularity carries out snapshot operation and data backup with virtual machine, each the virtual machine that the embodiment of the present invention realizes running application unifies snapshot and backup, avoid with virtual machine the situation that snapshot data is inconsistent and Backup Data is inconsistent of each virtual machine of the same application of the issuable operation of snap shot being granularity.
System architecture shown in composition graphs 1 (a), embodiments provides a kind of fast photographing device, and as shown in figure 12, described device can be backup server, and described device can comprise receiving element 1201 and transmitting element 1202.
Described receiving element 1201, for receiving backup instruction, described backup instruction carries the mark of described application, be used to indicate and the data of described application are backed up, described backup instruction can be triggered by user, the data of backup instruction to described application that described receiving element 1201 can trigger according to described user back up, and described backup instruction can also be generated by the backup policy timing of the application pre-set in described receiving element 1201, starts and backs up the data of described application.
Described transmitting element 1202, for the described backup instruction received according to described receiving element 1201, the request that application creates snapshot is sent as to cloud operations server, mark and the indication information of described application are carried in the described request for application establishment snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described application.
In embodiments of the present invention, the backup instruction that described transmitting element 1202 can receive according to described receiving element 1201, the request that application creates snapshot is sent as to cloud operations server, make the indication information that described cloud operations server can be carried according to the described request being application creates snapshot, conforming snapshot operation is carried out to the data of described application, thus can realize unifying snapshot to the data of described application, being different from prior art is that granularity carries out snapshot operation and data backup with virtual machine, each the virtual machine that the embodiment of the present invention realizes running application unifies snapshot and backup, avoid with virtual machine the situation that snapshot data is inconsistent and Backup Data is inconsistent of each virtual machine of the same application of the issuable operation of snap shot being granularity.
System architecture shown in composition graphs 1 (a), embodiments provides a kind of fast photographing device, and as shown in figure 13, for backing up the data of application, described device can comprise receiving element 1301, determining unit 1302 and providing unit 1303.
Described receiving element 1301, for being received as the request of virtual machine creating snapshot, mark and the indication information of multiple stage virtual machine are carried in the described request for virtual machine creating snapshot, described indication information is used to indicate and carries out conforming snapshot operation to the data of described multiple stage virtual machine, the mark of described multiple stage virtual machine can be the mark of all virtual machines of operation one application, then described backup server can by described be the request of virtual machine creating snapshot, described cloud operations server is indicated to start all virtual machine creating snapshots to running certain application at conforming time point.
Described determining unit 1302, for determining the deployment server of described multiple stage virtual machine, to indicate the deployment server of described multiple stage virtual machine, carries out snapshot operation to described multiple stage virtual machine.
Described providing unit 1303, snapshot instruction is sent for the deployment server to described multiple stage virtual machine, described snapshot instruction is used to indicate carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine to the data of described multiple stage virtual machine, particularly, in order to snapshot operation can be unified to described multiple stage virtual machine, described providing unit 1303 can, according to described indication information, indicate the deployment server of described multiple stage virtual machine to start the snapshot operation to described multiple stage virtual machine at conforming time point by described snapshot instruction
Because described multiple stage virtual machine can be deployed on one or more deployment server, when described determining unit 1302 determines that described multiple stage deploying virtual machine is on multiple stage deployment server, in order to indicate described multiple stage deployment server, at conforming time point, snapshot operation is started to described multiple stage virtual machine, described providing unit 1303 can at identical time point, described snapshot instruction is sent respectively to described multiple stage deployment server, wherein, mark and the first information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, the described first information indicates the processing priority of described snapshot operation for high, or, described snapshot instruction is sent respectively to described multiple stage deployment server, wherein, mark and second information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, described second information instruction starts described snapshot operation in the identical time, thus ensures that described multiple stage deployment server starts snapshot operation at conforming time point.
Further, when described determining unit 1302 determines at least one described deployment server deploy at least two virtual machines, such as, determine to dispose server A deploy VM1 and VM2, start snapshot to VM1 and VM2 in order to deployment server A can be allowed simultaneously, described providing unit 1303 can also send described snapshot instruction to the described deployment server deploying at least two virtual machines, the 3rd information is also carried in described snapshot instruction, the deployment server deploying at least two virtual machines described in described 3rd information instruction starts described snapshot operation to different virtual machines in the identical time.
In embodiments of the present invention, it is the request of virtual machine creating snapshot described in described determining unit 1302 can receive according to described receiving element 1301, determine the deployment server disposed described in multiple stage virtual machine, thus described providing unit 1303 can send snapshot instruction to the deployment server of described multiple stage virtual machine, make the deployment server of described multiple stage virtual machine can according to described snapshot instruction, start the snapshot operation to described multiple stage virtual machine simultaneously, the snapshot document of described multiple stage virtual machine is generated at conforming time point, when described multiple stage virtual machine is all virtual machines of cloud certain application capable, each the virtual machine that described method can realize running described application unifies snapshot, ensure the consistance of the snapshot data of described application, being different from prior art is that granularity carries out snapshot operation and data backup with virtual machine, each the virtual machine that the embodiment of the present invention realizes running application unifies snapshot and backup, avoid with virtual machine the situation that snapshot data is inconsistent and Backup Data is inconsistent of each virtual machine of the same application of the issuable operation of snap shot being granularity.
System architecture shown in composition graphs 1 (a), embodiments provides a kind of fast photographing device, and as shown in figure 14, described device can be backup server, and described device can comprise receiving element 1401, query unit 1402 and transmitting element 1403.
Receiving element 1401, for receiving backup instruction, described backup instruction carries the mark of described application, is used to indicate and backs up the data of described application; Described backup instruction can be triggered by user, the data of backup instruction to described application that described receiving element 1401 can trigger according to described user back up, described backup instruction can also be generated by the backup policy timing of the application pre-set in described receiving element 1401, starts and backs up the data of described application.
Query unit 1402, for the mark according to described application, determines the multiple stage virtual machine running described application, particularly, described determining unit can according to the mark of described application, and inquiry cloud operations server, obtains the mark of the multiple stage virtual machine running described application.
Transmitting element 1403, for being sent as the request of virtual machine creating snapshot to cloud operations server, mark and the indication information of described multiple stage virtual machine are carried in the described request for virtual machine creating snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described multiple stage virtual machine.
In embodiments of the present invention, described query unit 1402 can after described receiving element 1401 receives described backup instruction, determine the multiple stage virtual machine machine running described application, described transmitting element 1403 can be sent as the request of virtual machine creating snapshot, make described cloud operations server can according to the described request for virtual machine creating snapshot, conforming snapshot operation is carried out to the data of the multiple stage virtual machine running described application, thus each the virtual machine that can realize running described application unifies snapshot, ensure the consistance of the snapshot data of described application, being different from prior art is that granularity carries out snapshot operation and data backup with virtual machine, each the virtual machine that the embodiment of the present invention realizes running application unifies snapshot and backup, avoid with virtual machine the situation that snapshot data is inconsistent and Backup Data is inconsistent of each virtual machine of the same application of the issuable operation of snap shot being granularity.
System architecture shown in composition graphs 1 (b), embodiments provides a kind of fast photographing device, and as shown in figure 15, described device can be backup server, and described device can comprise receiving element 1501, determining unit 1502 and transmitting element 1503.
Described receiving element 1501, for receiving backup instruction, described backup instruction carries the mark of described application, be used to indicate and the data of described application are backed up, such as described backup instruction can be triggered by user, described backup instruction carries mark and the indication information of described application, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described application, the described backup instruction that described receiving element 1501 triggers for receiving user; Described backup instruction can also be generated by the backup policy timing of the application pre-set in described receiving element 1501.
Described determining unit 1502, for the mark according to described application, determine to run the multiple stage virtual machine of described application and the deployment server of described multiple stage virtual machine, particularly, described determining unit 1502, to inquire about described cloud operations server by cloud management interface, is determined to run the multiple stage virtual machine of described application and the deployment server of described multiple stage virtual machine.
Described transmitting element 1503, for the snapshot policy of the described indication information that carries according to described backup instruction or preset application, deployment server to described multiple stage virtual machine sends snapshot instruction, described snapshot instruction is used to indicate carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine to the data of described multiple stage virtual machine, and the snapshot policy instruction of described application carries out conforming snapshot operation to the data of described application.
Because described multiple stage virtual machine can be deployed on one or more deployment server, when described determining unit 1502 determines that described multiple stage deploying virtual machine is on multiple stage deployment server, described multiple stage starts snapshot operation to described multiple stage virtual machine at conforming time point in order to indicate described multiple stage deployment server, described transmitting element 1503 can at identical time point, described snapshot instruction is sent respectively to described multiple stage deployment server, wherein, mark and the first information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, the described first information indicates the processing priority of described snapshot operation for high, or, described snapshot instruction is sent respectively to described multiple stage deployment server, wherein, mark and second information of the virtual machine of every platform deployment server deploy are carried in described snapshot instruction, described second information instruction starts described snapshot operation in the identical time, thus ensures that described multiple stage deployment server starts snapshot operation at conforming time point.
Further, when described determining unit 1502 determines at least one described deployment server deploy at least two virtual machines, such as, determine to dispose server A deploy VM1 and VM2, the snapshot to VM1 and VM2 is started at conforming time point in order to deployment server A can be allowed, described transmitting element 1503 can also send described snapshot instruction to the described deployment server deploying at least two virtual machines, the 3rd information is also carried in described snapshot instruction, the deployment server deploying at least two virtual machines described in described 3rd information instruction starts described snapshot operation to different virtual machines in the identical time.
In embodiments of the present invention, the mark of the application that described determination module can carry according to described backup instruction, determine to run the deployment server disposed described in the multiple stage virtual machine of described application and described multiple stage virtual machine, described transmitting element 1503 can send snapshot instruction to the deployment server of described multiple stage virtual machine, make the deployment server of described multiple stage virtual machine can according to described snapshot instruction, the snapshot operation to described multiple stage virtual machine is started at conforming time point, generate the snapshot document of described multiple stage virtual machine at conforming time point, thus each the virtual machine that can realize running described application unifies snapshot, ensure the consistance of the Backup Data of described application, being different from prior art is that granularity carries out snapshot operation and data backup with virtual machine, each the virtual machine that the embodiment of the present invention realizes running application unifies snapshot and backup, avoid with virtual machine the situation that snapshot data is inconsistent and Backup Data is inconsistent of each virtual machine of the same application of the issuable operation of snap shot being granularity.
Composition graphs 1 (a) or the system architecture shown in (b), embodiments provide a kind of fast photographing device, and as shown in figure 16, described device can be deployment server, and described device can comprise receiving element 1601 and snapshot unit 1602.
Described receiving element 1601, for receiving snapshot instruction, described snapshot instruction is used to indicate carries out conforming snapshot operation to multiple stage virtual machine, described snapshot unit 1602 is for according to described snapshot instruction, the write operation of described every platform virtual machine is hung up respectively at conforming time point, and respectively snapshot is done to generate the snapshot document of described every platform virtual machine to the storage volume of described every platform virtual machine, particularly, described snapshot instruction can carry mark and the first information of virtual machine, the described first information indicates the processing priority of described snapshot operation for high, or, mark and second information of virtual machine are carried in described snapshot instruction, described second information instruction starts described snapshot unit 1602 described in described snapshot operation in the identical time can according to described snapshot instruction, or, the 3rd information is also carried in described snapshot instruction, described 3rd information instruction starts described snapshot operation to different virtual machines at synchronization, thus described snapshot unit 1602 can according to the described first information or described second information or described 3rd information, the write operation of described every platform virtual machine is hung up respectively at conforming time point, data due to the virtual machine that the storage volume of now described every platform virtual machine is preserved are conforming time point, then described snapshot unit 1602 does snapshot to the storage volume of described every platform virtual machine respectively, achieve and conforming snapshot operation is carried out to VM1 and VM2.
In embodiments of the present invention, described receiving element 1601 can receive snapshot instruction, the mark of multiple stage virtual machine is carried in described snapshot instruction, described snapshot unit 1602 can according to described snapshot instruction, hang up the write operation of described multiple stage virtual machine at conforming time point after, conforming snapshot operation is carried out to described multiple stage virtual machine, thus can realize unifying snapshot to described multiple stage virtual machine, ensured the consistance of the snapshot data of described multiple stage virtual machine.
The system of the generating snapshot that the embodiment of the present invention provides, as shown in Fig. 1 (a), described system comprises backup server 102, cloud operations server 101 and deployment server 110;
Described backup server 102, the request of snapshot is created for being sent as application to cloud operations server 101, the mark of described application is carried in the described request for application establishment snapshot, is used to indicate the data creation snapshot that described cloud operations server 101 is described application.
Described cloud operations server 101, for receiving the described request for application establishment snapshot, according to the mark of described application, determine the multiple stage virtual machine running described application, determine the deployment server 110 of described multiple stage virtual machine, deployment server 110 to described multiple stage virtual machine sends snapshot instruction, and described snapshot instruction is used to indicate the data of described deployment server 110 to described multiple stage virtual machine and carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine.
Described deployment server 110, for receiving the described snapshot instruction that described cloud operations server 101 sends, according to described snapshot instruction, hang up the write operation of described every platform virtual machine at conforming time point respectively, respectively snapshot is done to generate the snapshot document of described every platform virtual machine to the storage volume of described every platform virtual machine.
In embodiments of the present invention, described backup server 102 can be sent as the request that application creates snapshot, described cloud operations server 101 can according to the mark of described application, determine the multiple stage virtual machine machine running described application, and according to the indication information that the described request being application creates snapshot is carried, deployment server 110 to described multiple stage virtual machine sends snapshot instruction, make the deployment server 110 of described multiple stage virtual machine can according to described snapshot instruction, the write operation of described every platform virtual machine is hung up at conforming time point, the unified snapshot operation started described multiple stage virtual machine, generate the snapshot document of described multiple stage virtual machine at conforming time point, thus described backup server 102 can according to the snapshot document of described multiple stage virtual machine, snapshot is unified to each the virtual machine running described application, ensure the consistance of the Backup Data of described application, being different from prior art is that granularity carries out snapshot operation and data backup with virtual machine, each the virtual machine that the embodiment of the present invention realizes running application unifies snapshot and backup, avoid with virtual machine the situation that snapshot data is inconsistent and Backup Data is inconsistent of each virtual machine of the same application of the issuable operation of snap shot being granularity.
The system of the generating snapshot that the embodiment of the present invention provides, as described in Fig. 1 (a), described system comprises backup server 102, cloud operations server 101 and deployment server 110;
Described backup server 102, for receiving backup instruction, described backup instruction carries the mark of described application, be used to indicate and the data of described application are backed up, according to the identified query cloud operations server 101 of described application to determine the multiple stage virtual machine running described application, and the request of virtual machine creating snapshot is sent as to described cloud operations server 101, mark and the indication information of described multiple stage virtual machine are carried in the described request for virtual machine creating snapshot, described indication information is used to indicate and carries out conforming snapshot operation to the data of described multiple stage virtual machine.
Described cloud operations server 101, for the described application identities of carrying according to the Query Information of described backup server 102, determine the mark of the multiple stage virtual machine running described application, receive the described request for virtual machine creating snapshot that described backup server 102 sends, determine the deployment server 110 of described multiple stage virtual machine, according to the indication information in the described request being virtual machine creating snapshot, deployment server 110 to described multiple stage virtual machine sends snapshot instruction, described snapshot instruction is used to indicate the data of described deployment server 110 to described multiple stage virtual machine and carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine.
Described deployment server 110, for receiving the described snapshot instruction that described cloud operations server 101 sends, according to described snapshot instruction, hang up the write operation of described every platform virtual machine at conforming time point respectively, respectively snapshot is done to generate the snapshot document of described every platform virtual machine to the storage volume of described every platform virtual machine.
In embodiments of the present invention, described backup server 102 can after the described backup instruction of reception, determine the multiple stage virtual machine machine running described application, be sent as the request of virtual machine creating snapshot, the indication information that described cloud operations server 101 can be carried according to the described request for virtual machine creating snapshot, deployment server 110 to described multiple stage virtual machine sends snapshot instruction, make the deployment server 110 of described multiple stage virtual machine can according to described snapshot instruction, the write operation of described multiple stage virtual machine is hung up at conforming time point, the unified snapshot operation started described multiple stage virtual machine, generate the snapshot document of described multiple stage virtual machine at conforming time point, thus described backup server 102 can according to the snapshot document of described multiple stage virtual machine, backup is unified to each the virtual machine running described application, ensure the consistance of the Backup Data of described application, being different from prior art is that granularity carries out snapshot operation and data backup with virtual machine, each the virtual machine that the embodiment of the present invention realizes running application unifies snapshot and backup, avoid the situation that snapshot data is inconsistent and Backup Data is inconsistent of each virtual machine of the same application of issuable operation in prior art.
The system of the generating snapshot that the embodiment of the present invention provides, as shown in Fig. 1 (b), described system comprises cloud operations server 101, backup server 102 and deployment server 110;
Described backup server 102, for receiving backup instruction, described backup instruction carries the mark of described application, be used to indicate and the data of described application are backed up, according to the identified query cloud operations server 101 of described application to determine to run the multiple stage virtual machine of described application and the deployment server 110 of described multiple stage virtual machine, deployment server 110 to described multiple stage virtual machine sends snapshot instruction, described snapshot instruction is used to indicate the data of described deployment server 110 to described multiple stage virtual machine and carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine.
Described cloud operations server 101, for the mark of described application of carrying according to the Query Information of described backup server 102, determines the multiple stage virtual machine running described application, determines the deployment server 110 of described multiple stage virtual machine.
Described deployment server 110, for receiving the described snapshot instruction that described backup server 102 sends, according to described snapshot instruction, hang up the write operation of described every platform virtual machine at conforming time point respectively, respectively snapshot is done to generate the snapshot document of described every platform virtual machine to the storage volume of described every platform virtual machine.
In embodiments of the present invention, described backup server 102 can after the described backup instruction of reception, determine to run the deployment server 110 disposed described in the multiple stage virtual machine machine of described application and described multiple stage virtual machine, and send snapshot instruction to the deployment server 110 of described multiple stage virtual machine, the deployment server 110 of described multiple stage virtual machine can according to described snapshot instruction, the snapshot operation to described multiple stage virtual machine is started at conforming time point, generate the snapshot document of described multiple stage virtual machine at consistance time point, thus described backup server 102 can according to the snapshot document of described multiple stage virtual machine, snapshot is unified to each the virtual machine running described application, ensure the consistance of the Backup Data of described application, being different from prior art is that granularity carries out snapshot operation and data backup with virtual machine, each the virtual machine that the embodiment of the present invention realizes running application unifies snapshot and backup, avoid with virtual machine the situation that snapshot data is inconsistent and Backup Data is inconsistent of each virtual machine of the same application of the issuable operation of snap shot being granularity.
As Figure 17, the structure composition schematic diagram of the device of the generating snapshot provided for the embodiment of the present invention.The device of the generating snapshot that the embodiment of the present invention provides can comprise:
Processor 1701, storer 1702, system bus 1704 and communication interface 1705.Processor 1701, connected by system bus 1704 between storer 1702 and communication interface 1705 and complete mutual communication.
Processor 1701 may be monokaryon or multinuclear CPU (central processing unit), or is specific integrated circuit, or for being configured to the one or more integrated circuit implementing the embodiment of the present invention.
Storer 1702 can be high-speed RAM storer, also can be nonvolatile memory (non-volatilememory), such as at least one magnetic disk memory.
Storer 1702 is for computer executed instructions 1703.Concrete, can program code be comprised in computer executed instructions 1703.
When the plant running of described generating snapshot, processor 1701 moving calculation machine performs instruction 1703, can perform one of any described method flow of Fig. 2-Figure 10.
One of ordinary skill in the art will appreciate that the possible implementation of various aspects of the present invention or various aspects can be embodied as system, method or computer program.Therefore, the possible implementation of each aspect of the present invention or various aspects can adopt complete hardware embodiment, completely software implementation (comprising firmware, resident software etc.), or the form of the embodiment of integration software and hardware aspect, is all referred to as " circuit ", " module " or " system " here.In addition, the possible implementation of each aspect of the present invention or various aspects can adopt the form of computer program, and computer program refers to the computer readable program code be stored in computer-readable medium.
Computer-readable medium can be computer-readable signal media or computer-readable recording medium.Computer-readable recording medium is including but not limited to electronics, magnetic, optics, electromagnetism, infrared or semiconductor system, equipment or device, or aforesaid appropriately combined arbitrarily, as random access memory (RAM), ROM (read-only memory) (ROM), Erasable Programmable Read Only Memory EPROM (EPROM or flash memory), optical fiber, portable ROM (read-only memory) (CD-ROM).
Processor in computing machine reads the computer readable program code be stored in computer-readable medium, makes processor can perform the function action specified in the combination of each step or each step in flow charts; Generate the device implementing the function action specified in the combination of each block of block diagram or each piece.
Computer readable program code can perform completely on the computing machine of user, part performs on the computing machine of user, as independent software package, part on the computing machine of user and part on the remote computer, or to perform on remote computer or server completely.Also it should be noted that in some alternate embodiment, in flow charts in each step or block diagram each piece the function that indicates may not according to occurring in sequence of indicating in figure.Such as, depend on involved function, in fact two steps illustrated in succession or two blocks may be executed substantially concurrently, or these blocks sometimes may be performed by with reverse order.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.

Claims (20)

1. a method for generating snapshot, is characterized in that, described method comprises:
Be received as the request that application creates snapshot, the mark of described application is carried in the described request for application establishment snapshot, is used to indicate the data creation snapshot into described application;
According to the mark of described application, determine the multiple stage virtual machine running described application;
Determine the deployment server of described multiple stage virtual machine, wherein, described multiple stage deploying virtual machine is on a deployment server;
Snapshot instruction is sent to the described deployment server deploying described multiple stage virtual machine, the 3rd information is carried in described snapshot instruction, the deployment server deploying described multiple stage virtual machine described in described 3rd information instruction starts described snapshot operation to different virtual machines in the identical time, and the data of deployment server to described multiple stage virtual machine deploying described multiple stage virtual machine described in described snapshot instruction is used to indicate carry out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine.
2. method according to claim 1, is characterized in that, indication information is also carried in the described request for application establishment snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described application;
Described to the described deployment server transmission snapshot instruction deploying described multiple stage virtual machine, comprising:
According to described indication information, send described snapshot instruction to the described deployment server deploying described multiple stage virtual machine.
3. method according to claim 1, is characterized in that, also comprises:
The snapshot policy of preset application, the snapshot policy instruction of described application carries out conforming snapshot operation to the data of described application;
Described to the described deployment server transmission snapshot instruction deploying described multiple stage virtual machine, comprising:
According to the snapshot policy of described application, send described snapshot instruction to the described deployment server deploying described multiple stage virtual machine.
4. a method for generating snapshot, is characterized in that, described method comprises:
Be received as the request of virtual machine creating snapshot, mark and the indication information of multiple stage virtual machine are carried in the described request for virtual machine creating snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described multiple stage virtual machine;
Determine the deployment server of described multiple stage virtual machine, wherein, described multiple stage deploying virtual machine is on a deployment server;
According to described indication information, snapshot instruction is sent to the described deployment server deploying described multiple stage virtual machine, the 3rd information is carried in described snapshot instruction, the deployment server deploying described multiple stage virtual machine described in described 3rd information instruction starts described snapshot operation to different virtual machines in the identical time, and the data of deployment server to described multiple stage virtual machine deploying described multiple stage virtual machine described in described snapshot instruction is used to indicate carry out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine.
5. a method for generating snapshot, is characterized in that, described method comprises:
Receive backup instruction, described backup instruction carries the mark of described application, is used to indicate and backs up the data of described application;
According to the mark of described application, determine the multiple stage virtual machine running described application;
Determine the deployment server of described multiple stage virtual machine, wherein, described multiple stage deploying virtual machine is on a deployment server;
Snapshot instruction is sent to the described deployment server deploying described multiple stage virtual machine, the 3rd information is carried in described snapshot instruction, the deployment server deploying described multiple stage virtual machine described in described 3rd information instruction starts described snapshot operation to different virtual machines in the identical time, and the data of deployment server to described multiple stage virtual machine deploying described multiple stage virtual machine described in described snapshot instruction is used to indicate carry out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine.
6. method according to claim 5, it is characterized in that, described reception backup instruction, comprise the described backup instruction receiving user and trigger, described backup instruction carries mark and the indication information of described application, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described application; Described to the described deployment server transmission snapshot instruction deploying described multiple stage virtual machine, comprising:
According to described indication information, send described snapshot instruction to the described deployment server deploying described multiple stage virtual machine.
7. method according to claim 6, is characterized in that, also comprises:
The backup policy of preset application and the snapshot policy of application, the snapshot policy instruction of described application carries out conforming snapshot operation to the data of described application;
Then described reception backup instruction comprises: according to the backup policy of described application, and timing generates described backup instruction, and described backup instruction carries the mark of described application;
Described to the described deployment server transmission snapshot instruction deploying described multiple stage virtual machine, comprising: according to the snapshot policy of described application, send described snapshot instruction to the described deployment server deploying described multiple stage virtual machine.
8. a method for generating snapshot, is characterized in that, described method comprises:
Receive snapshot instruction, described snapshot instruction is used to indicate carries out conforming snapshot operation to multiple stage virtual machine, and mark and second information of virtual machine are carried in described snapshot instruction, and described second information instruction starts described snapshot operation in the identical time;
According to described second information, in the described identical time, hang up the write operation of described multiple stage virtual machine respectively;
Respectively snapshot is done to generate the snapshot document of described multiple stage virtual machine to the storage volume of described multiple stage virtual machine.
9. a device for generating snapshot, is characterized in that, described device comprises:
Receiving element, creates the request of snapshot for being received as application, the mark of described application is carried in the described request for application establishment snapshot, is used to indicate the data creation snapshot into described application;
Determining unit, for the mark according to described application, determines the multiple stage virtual machine running described application, and determines the deployment server of described multiple stage virtual machine, wherein, described multiple stage deploying virtual machine is on a deployment server;
Transmitting element, for sending snapshot instruction to the described deployment server deploying described multiple stage virtual machine, the 3rd information is carried in described snapshot instruction, the deployment server deploying described multiple stage virtual machine described in described 3rd information instruction starts described snapshot operation to different virtual machines in the identical time, and the data of deployment server to described multiple stage virtual machine deploying described multiple stage virtual machine described in described snapshot instruction is used to indicate carry out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine.
10. device according to claim 9, is characterized in that, indication information is also carried in the described request for application establishment snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described application;
Described transmitting element, specifically for according to described indication information, sends described snapshot instruction to the described deployment server deploying described multiple stage virtual machine.
11. devices according to claim 9, is characterized in that, described device also comprises:
Dispensing unit, for the snapshot policy of preset application, the snapshot policy instruction of described application carries out conforming snapshot operation to the data of described application;
Described transmitting element, specifically for the snapshot policy according to the preset application of described dispensing unit, sends described snapshot instruction to the described deployment server deploying described multiple stage virtual machine.
The device of 12. 1 kinds of generating snapshots, is characterized in that, described device comprises:
Receiving element, for being received as the request of virtual machine creating snapshot, mark and the indication information of multiple stage virtual machine are carried in the described request for virtual machine creating snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described multiple stage virtual machine;
Determining unit, for determining the deployment server of described multiple stage virtual machine, wherein, described multiple stage deploying virtual machine is on a deployment server;
Providing unit, for sending snapshot instruction to the described deployment server deploying described multiple stage virtual machine, the 3rd information is carried in described snapshot instruction, the deployment server deploying described multiple stage virtual machine described in described 3rd information instruction starts described snapshot operation to different virtual machines in the identical time, and described snapshot instruction is used to indicate carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine to the data of described multiple stage virtual machine.
The device of 13. 1 kinds of generating snapshots, is characterized in that, described device comprises:
Receiving element, for receiving backup instruction, described backup instruction carries the mark of described application, is used to indicate and backs up the data of described application;
Determining unit, for the mark according to described application, determine to run the multiple stage virtual machine of described application and the deployment server of described multiple stage virtual machine, wherein, described multiple stage deploying virtual machine is on a deployment server;
Transmitting element, for sending snapshot instruction to the described deployment server deploying described multiple stage virtual machine, the 3rd information is carried in described snapshot instruction, the deployment server deploying described multiple stage virtual machine described in described 3rd information instruction starts described snapshot operation to different virtual machines in the identical time, and described snapshot instruction is used to indicate carries out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine to the data of described multiple stage virtual machine.
14. devices according to any one of claim 13, it is characterized in that, the described backup instruction that described receiving element triggers specifically for receiving user, described backup instruction carries mark and the indication information of described application, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described application;
Then described transmitting element is specifically for according to described indication information, sends described snapshot instruction to the described deployment server deploying described multiple stage virtual machine.
15. devices according to claim 14, is characterized in that, described receiving element is also for the backup policy according to preset application, and timing generates described backup instruction, and described backup instruction carries the mark of described application;
Described transmitting element is also for the snapshot policy according to preset application, described snapshot instruction is sent to the described deployment server deploying described multiple stage virtual machine, wherein, the snapshot policy instruction of described application carries out conforming snapshot operation to the data of described application.
The device of 16. 1 kinds of generating snapshots, is characterized in that, described device comprises:
Receiving element, for receiving snapshot instruction, described snapshot instruction is used to indicate carries out conforming snapshot operation to multiple stage virtual machine, and mark and second information of virtual machine are carried in described snapshot instruction, and described second information instruction starts described snapshot operation in the identical time;
Snapshot unit, for according to described second information, in the described identical time, hangs up the write operation of described multiple stage virtual machine respectively, does snapshot to generate the snapshot document of described multiple stage virtual machine respectively to the storage volume of described multiple stage virtual machine.
The system of 17. 1 kinds of generating snapshots, is characterized in that, comprising:
Backup server, creates the request of snapshot for being sent as application to cloud operations server, the mark of described application is carried in the described request for application establishment snapshot, is used to indicate the data creation snapshot into described application;
Described cloud operations server, for receiving the described request for application establishment snapshot, according to the mark of described application, determine the multiple stage virtual machine running described application, determine the deployment server of described multiple stage virtual machine, wherein, described multiple stage deploying virtual machine is on a deployment server, snapshot instruction is sent to the described deployment server deploying described multiple stage virtual machine, the 3rd information is carried in described snapshot instruction, the deployment server deploying described multiple stage virtual machine described in described 3rd information instruction starts described snapshot operation to different virtual machines in the identical time, the data of deployment server to described multiple stage virtual machine deploying described multiple stage virtual machine described in described snapshot instruction is used to indicate carry out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine,
Described deployment server, for receiving described snapshot instruction, according to described snapshot instruction, hang up the write operation of described multiple stage virtual machine respectively at conforming time point, respectively snapshot is done to generate the snapshot document of described multiple stage virtual machine to the storage volume of described multiple stage virtual machine.
The system of 18. 1 kinds of generating snapshots, is characterized in that, comprising:
Backup server, for receiving backup instruction, described backup instruction carries the mark of described application, be used to indicate and the data of described application are backed up, according to the identified query cloud operations server of described application to determine the multiple stage virtual machine running described application, and the request of virtual machine creating snapshot is sent as to cloud operations server, mark and the indication information of described multiple stage virtual machine are carried in the described request for virtual machine creating snapshot, and described indication information is used to indicate and carries out conforming snapshot operation to the data of described multiple stage virtual machine;
Described cloud operations server, for the described application identities of carrying according to the Query Information of described backup server, determine the mark of the multiple stage virtual machine running described application, receive the described request for virtual machine creating snapshot that described backup server sends, determine the deployment server of described multiple stage virtual machine, wherein, described multiple stage deploying virtual machine is on a deployment server, according to the indication information in the described request being virtual machine creating snapshot, snapshot instruction is sent to the described deployment server deploying described multiple stage virtual machine, the 3rd information is carried in described snapshot instruction, the deployment server deploying described multiple stage virtual machine described in described 3rd information instruction starts described snapshot operation to different virtual machines in the identical time, the data of deployment server to described multiple stage virtual machine deploying described multiple stage virtual machine described in described snapshot instruction is used to indicate carry out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine,
Described deployment server, for receiving the described snapshot instruction that described cloud operations server sends, according to described snapshot instruction, hang up the write operation of described multiple stage virtual machine at conforming time point respectively, respectively snapshot is done to generate the snapshot document of described multiple stage virtual machine to the storage volume of described multiple stage virtual machine.
The system of 19. 1 kinds of generating snapshots, is characterized in that, comprising:
Backup server, for receiving backup instruction, described backup instruction carries the mark of described application, be used to indicate and the data of described application are backed up, according to the identified query cloud operations server of described application to determine to run the multiple stage virtual machine of described application and the deployment server of described multiple stage virtual machine, wherein, described multiple stage deploying virtual machine is on a deployment server, and send snapshot instruction to the described deployment server deploying described multiple stage virtual machine, the 3rd information is carried in described snapshot instruction, the deployment server deploying described multiple stage virtual machine described in described 3rd information instruction starts described snapshot operation to different virtual machines in the identical time, the data of deployment server to described multiple stage virtual machine deploying described multiple stage virtual machine described in described snapshot instruction is used to indicate carry out conforming snapshot operation to generate the snapshot document of described multiple stage virtual machine,
Described cloud operations server, for the mark of described application of carrying according to the Query Information of described backup server, determine the multiple stage virtual machine running described application, determine the deployment server of described multiple stage virtual machine, wherein, described multiple stage deploying virtual machine is on a deployment server;
Described deployment server, for receiving the described snapshot instruction that described backup server sends, according to described snapshot instruction, hang up the write operation of described multiple stage virtual machine at conforming time point respectively, respectively snapshot is done to generate the snapshot document of described multiple stage virtual machine to the storage volume of described multiple stage virtual machine.
The device of 20. 1 kinds of generating snapshots, is characterized in that, described device comprises processor, storer, bus and communication interface;
Described storer is for storing computer executed instructions, described processor is connected by described bus with described storer, when the plant running of described generating snapshot, described processor performs the described computer executed instructions that described storer stores, and performs method as the generating snapshot as described in arbitrary in claim 1-8 to make the device of described generating snapshot.
CN201510217450.0A 2013-11-20 2013-11-20 A kind of mthods, systems and devices for generating snapshot Active CN104809020B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510217450.0A CN104809020B (en) 2013-11-20 2013-11-20 A kind of mthods, systems and devices for generating snapshot

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510217450.0A CN104809020B (en) 2013-11-20 2013-11-20 A kind of mthods, systems and devices for generating snapshot
CN201380002501.7A CN103946807B (en) 2013-11-20 2013-11-20 A kind of mthods, systems and devices of generating snapshot

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201380002501.7A Division CN103946807B (en) 2013-11-20 2013-11-20 A kind of mthods, systems and devices of generating snapshot

Publications (2)

Publication Number Publication Date
CN104809020A true CN104809020A (en) 2015-07-29
CN104809020B CN104809020B (en) 2018-05-11

Family

ID=53716250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510217450.0A Active CN104809020B (en) 2013-11-20 2013-11-20 A kind of mthods, systems and devices for generating snapshot

Country Status (1)

Country Link
CN (1) CN104809020B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402839A (en) * 2016-05-18 2017-11-28 深圳市深信服电子科技有限公司 A kind of method and system of Backup Data
WO2018120680A1 (en) * 2016-12-30 2018-07-05 平安科技(深圳)有限公司 Virtual disk backup system, method, apparatus, service host and storage medium
CN108829813A (en) * 2018-06-06 2018-11-16 郑州云海信息技术有限公司 A kind of File Snapshot method and system based on distributed memory system
WO2020015751A1 (en) * 2018-07-20 2020-01-23 华为技术有限公司 Container service snapshot management method and apparatus
WO2022042334A1 (en) * 2020-08-28 2022-03-03 International Business Machines Corporation Compilation strategy for sharable application snapshot

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090037680A1 (en) * 2007-07-31 2009-02-05 Vmware, Inc. Online virtual machine disk migration
CN101421715A (en) * 2006-04-17 2009-04-29 微软公司 Creating host-level application-consistent backups of virtual machines
CN101443748A (en) * 2006-05-08 2009-05-27 微软公司 Converting machines to virtual machines
US20090216816A1 (en) * 2008-02-27 2009-08-27 Jason Ferris Basler Method for application backup in the vmware consolidated backup framework
US20110113206A1 (en) * 2009-11-11 2011-05-12 Red Hat Israel, Ltd. Method for obtaining a snapshot image of a disk shared by multiple virtual machines

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101421715A (en) * 2006-04-17 2009-04-29 微软公司 Creating host-level application-consistent backups of virtual machines
CN101443748A (en) * 2006-05-08 2009-05-27 微软公司 Converting machines to virtual machines
US20090037680A1 (en) * 2007-07-31 2009-02-05 Vmware, Inc. Online virtual machine disk migration
US20090216816A1 (en) * 2008-02-27 2009-08-27 Jason Ferris Basler Method for application backup in the vmware consolidated backup framework
US20110113206A1 (en) * 2009-11-11 2011-05-12 Red Hat Israel, Ltd. Method for obtaining a snapshot image of a disk shared by multiple virtual machines

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402839A (en) * 2016-05-18 2017-11-28 深圳市深信服电子科技有限公司 A kind of method and system of Backup Data
CN107402839B (en) * 2016-05-18 2021-03-09 深信服科技股份有限公司 Method and system for backing up data
WO2018120680A1 (en) * 2016-12-30 2018-07-05 平安科技(深圳)有限公司 Virtual disk backup system, method, apparatus, service host and storage medium
CN108829813A (en) * 2018-06-06 2018-11-16 郑州云海信息技术有限公司 A kind of File Snapshot method and system based on distributed memory system
WO2020015751A1 (en) * 2018-07-20 2020-01-23 华为技术有限公司 Container service snapshot management method and apparatus
CN110737503A (en) * 2018-07-20 2020-01-31 华为技术有限公司 Management method and device for container service snapshot
CN110737503B (en) * 2018-07-20 2021-09-14 华为技术有限公司 Management method and device for container service snapshot
WO2022042334A1 (en) * 2020-08-28 2022-03-03 International Business Machines Corporation Compilation strategy for sharable application snapshot
GB2613324A (en) * 2020-08-28 2023-05-31 Ibm Compilation strategy for sharable application snapshot

Also Published As

Publication number Publication date
CN104809020B (en) 2018-05-11

Similar Documents

Publication Publication Date Title
CN103946807B (en) A kind of mthods, systems and devices of generating snapshot
US10073747B2 (en) Reducing recovery time in disaster recovery/replication setup with multitier backend storage
US9727429B1 (en) Method and system for immediate recovery of replicated virtual machines
CN110196755B (en) Virtual machine snapshot management method and device, server and storage medium
US20190384678A1 (en) System and method for managing backup and restore of objects over cloud platforms
US9201736B1 (en) Methods and apparatus for recovery of complex assets in distributed information processing systems
CN106528327B (en) A kind of data processing method and backup server
JP2018531445A6 (en) Copy redirection on write
JP2018531445A (en) Copy redirection on write
US20150244802A1 (en) Importing and exporting virtual disk images
US10361995B2 (en) Management of clustered and replicated systems in dynamic computing environments
WO2011083673A1 (en) Configuration information management system, configuration information management method, and configuration information management-use program
CN104809020A (en) Snapshot generating method, system and device
US8495178B1 (en) Dynamic bandwidth discovery and allocation to improve performance for backing up data
CN106855834B (en) Data backup method, device and system
CN111656325A (en) Fast recovery from failure in a time-ordered log structured key-value storage system
KR101626067B1 (en) Apparatus and method for facilitating a transfer of container between slave nodes
AU2021236350B2 (en) Virtual machine perfect forward secrecy
CN112035062B (en) Migration method of local storage of cloud computing, computer equipment and storage medium
US9274724B1 (en) Distributed virtual tape library
CN103713952A (en) Virtual disk distributed-memory method based on UFS (Universal Flash Storage)
CN110870275B (en) Method and apparatus for shared memory file transfer
US10831621B2 (en) Policy-driven high availability standby servers
CN111656331B (en) Method and apparatus for recovering from failure during garbage collection processing in a system
US20210165720A1 (en) Backup system for an overlay network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant