CN102981931A - Backup method and device for virtual machine - Google Patents

Backup method and device for virtual machine Download PDF

Info

Publication number
CN102981931A
CN102981931A CN2012105111764A CN201210511176A CN102981931A CN 102981931 A CN102981931 A CN 102981931A CN 2012105111764 A CN2012105111764 A CN 2012105111764A CN 201210511176 A CN201210511176 A CN 201210511176A CN 102981931 A CN102981931 A CN 102981931A
Authority
CN
China
Prior art keywords
virtual machine
snapshot
local
cloud storage
backup
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012105111764A
Other languages
Chinese (zh)
Other versions
CN102981931B (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201210511176.4A priority Critical patent/CN102981931B/en
Publication of CN102981931A publication Critical patent/CN102981931A/en
Application granted granted Critical
Publication of CN102981931B publication Critical patent/CN102981931B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a backup method and a backup device for a virtual machine. The method comprises the following steps of: acquiring information of at least one virtual machine on a physical machine; carrying out snapshot treatment on the information of the virtual machine and generating a local snapshot file; and uploading the local snapshot file into a cloud storage server so as to back up the local snapshot file in the cloud storage server. According to the backup method and the backup device for the virtual machine, which are provided by the invention, the information of the virtual machine is subjected to snapshot and the generated local snapshot file is uploaded into the cloud storage server to be backed up, so that the snapshot of the virtual machine cannot occupy a great amount of hard disk resources; and moreover, once a local hard disk goes wrong, the snapshot file of the virtual machine, which is stored in the cloud storage server, cannot be influenced, so that the virtual machine established on the local hard disk can be rapidly recovered and an interrupted service or lost data of a user is reduced.

Description

Virtual machine backup method and device
Technical field
The present invention relates to infotech, relate in particular to a kind of virtual machine backup method and device.
Background technology
Intel Virtualization Technology is one of technology of cloud computing epoch most critical.Intel Virtualization Technology is to fictionalize a plurality of operating systems a physical machine, and these systems are exactly so-called virtual machine.In actual production environment particularly in the system of publicly-owned cloud, virtual machine can be based upon physical server self with local hard drive in.
In the prior art, virtual machine is based upon on the local hard drive, this virtual machine is carried out snapshot after, the snapshot of virtual machine is left on the local hard drive.Yet the fast note of prior art virtual machine takies a large amount of hard disk resources, in case local hard drive breaks down, the snapshot that may cause depositing superincumbent virtual machine damages.
Summary of the invention
The invention provides a kind of virtual machine backup method and device, take a large amount of hard disk resources in order to the fast note that solves the virtual machine that exists in the prior art, in case local hard drive breaks down, may cause depositing the problem that the snapshot of superincumbent virtual machine damages.
On the one hand, the invention provides a kind of virtual machine backup method, comprising:
Obtain the information of at least one virtual machine on the physical machine;
The information of described virtual machine is carried out snapshot process, generate local snapshot document;
Described local express is shone File Upload in the cloud storage server, so that the described local snapshot document of backup in the described cloud storage server.
On the other hand, the invention provides a kind of virtual machine back-up device, comprising:
Acquisition module is for the information of obtaining at least one virtual machine on the physical machine;
Snapshot module is used for that the information of described virtual machine is carried out snapshot and processes, and generates local snapshot document;
Upper transmission module is used for described local express is shone File Upload to the cloud storage server, so that the described local snapshot document of backup in the described cloud storage server.
Virtual machine backup method provided by the invention and device, by obtaining the information of the virtual machine on the physical machine, information to virtual machine is carried out snapshot, and with the local express that generates according to File Upload in the cloud storage server, to back up this this locality snapshot document, so that the snapshot of virtual machine can not take a large amount of hard disk resources, in case and local hard drive breaks down, can not affect the snapshot document that leaves the virtual machine on the cloud storage server in, thereby quick-recovery is based upon the virtual machine above the local hard drive soon, business or user's missing data that reduction is interrupted.
Description of drawings
Fig. 1 is the schematic flow sheet of an embodiment of virtual machine backup method of the present invention;
Fig. 2 is a kind of system structural framework figure that realizes scene of virtual backup method embodiment illustrated in fig. 1;
Fig. 3 is the schematic flow sheet of another embodiment of virtual machine backup method of the present invention;
Fig. 4 is the schematic flow sheet of another embodiment of virtual machine backup method of the present invention;
Fig. 5 is the structural representation of an embodiment of virtual machine back-up device of the present invention;
Fig. 6 is the structural representation of another embodiment of virtual machine back-up device of the present invention.
Embodiment
The embodiment of the invention is stored based on cloud, to realize the backup to virtual machine.
The cloud storage is in the conceptive extension of cloud computing and development a kind of technology out, refer to by functions such as cluster application, gridding technique or distributed file systems, a large amount of various dissimilar memory devices in the network are gathered collaborative work by application software, data storage and Operational Visit function externally are provided jointly.When the core of cloud computing system computing and processing is the store and management of mass data, just need a large amount of memory device of configuration in the cloud computing system, cloud computing system just is transformed into a cloud storage system so, so the cloud storage is a cloud computing system take the data store and management as core, in the embodiment of the invention cloud storage is called the cloud storage server.
The cloud storage server is the distributed memory system of an object storage, usually can adopt three-decker: accumulation layer, operation layer, interface layer.Wherein but accumulation layer adopts the storage system of the deployment of height elasticity, transparent management, can store file and the index information of magnanimity, but so-called height elasticity is disposed namely when the cloud storage server is expanded, add a new node in existing cloud storage server, the cloud storage server can automatically be identified this machine, and data automatically is distributed on the node of this new adding; Operation layer mainly is to realize the functions such as data management (authority, classification, state), intelligent association (multi-source fusion, index), so-called multi-source fusion i.e. whatever application (such as file, video, picture, audio frequency etc.) in the store data, all is to deposit with the form of object on the cloud storage server; And interface layer provides application oriented application programming interfaces (Application Programming Interface, be called for short API), application programming interfaces API supports (SATA Revision 3.0, abbreviate SAT A3 or S3) OO memory interface of interfacing standard of relative standard.
Below by specific embodiment and accompanying drawing, technical scheme of the present invention is described in further detail.
Fig. 1 is the schematic flow sheet of an embodiment of virtual machine backup method of the present invention.As shown in Figure 1, what present embodiment was described is the information back-up process of virtual machine, the executive agent of following steps can be any physical machine in the server cluster, be specifically as follows the physical machine that virtualization software (for example VMware ESX) or XEN virtual platform are installed, the method may further comprise the steps:
S101 obtains the information of at least one virtual machine on the physical machine;
Particularly, in the server cluster that large-scale server forms, every physical machine can fictionalize a plurality of virtual machines.When virtual machine is backed up, can at predefined time point, obtain the information of the virtual machine on the physical machine according to user's needs, to realize the backup to virtual machine.Predefined time point can also can be the set time point of every day for after at every turn complete to virtual machine operations, and for example every day After Hours.
Wherein, the information of virtual machine can be the status information of virtual machine, the data message of virtual machine or the memory information of virtual machine etc.
S102 carries out snapshot to the information of virtual machine and processes, and generates local snapshot document;
Particularly, the appearance of snapping technique, so that the backup of virtual machine is easy to realize, especially for being based upon the virtual machine of sharing in the storage, but for the virtual machine that is based upon on the local hard drive, the information of virtual machine is carried out snapshot process, if the local snapshot document of generation is deposited to leave on the local hard drive.
Wherein, snapshot is processed and specifically can be carried out by the dos command line DOS instrument on the VMware ESX software control platform, and the Information encapsulation of virtual machine is become a local snapshot document.
S103 shines File Upload in the cloud storage server, so that backup local snapshot document in the cloud storage server with local express.
Particularly, with the local snapshot document that generates, the application programming interfaces API by the cloud storage server uploads in the cloud storage server, and this this locality snapshot document of backup in the cloud storage server is to realize the backup to virtual machine.Wherein, application programming interfaces API can shift (Representational State Transfer for the statement sexual state, abbreviation REST) Web server (Web Service), and software development data bag (Software Development Kit is called for short SDK) etc.
As a kind of feasible embodiment, the local snapshot document of generation can directly be uploaded to the cloud storage server; As the feasible embodiment of another kind, can also be stored in first the local snapshot document that generates on the local hard drive, again from local hard drive with local express according to File Upload to the cloud storage server, upload complete after, can delete the local snapshot document that leaves on the local hard drive.
Fig. 2 is a kind of system structural framework figure that realizes scene of virtual backup method embodiment illustrated in fig. 1.As shown in Figure 2, comprise physical machine 21, server cluster 22 and cloud storage server 23.Wherein physical machine 21 can be any physical machine in the server cluster 22.
After physical machine 21 is obtained the information of at least one virtual machine on it, the information of virtual machine is carried out snapshot to be processed, generate local snapshot document, again local express is shone File Upload in cloud storage server 23, thereby make backup local snapshot document in the cloud storage server 23.
The virtual machine backup method that the embodiment of the invention provides, by obtaining the information of the virtual machine on the physical machine, information to virtual machine is carried out snapshot, and with the local express that generates according to File Upload in the cloud storage server, to back up this this locality snapshot document, so that the snapshot of virtual machine can not take a large amount of hard disk resources, in case and local hard drive breaks down, can not affect the snapshot document that leaves the virtual machine on the cloud storage server in, thereby quick-recovery is based upon the virtual machine above the local hard drive soon, business or user's missing data that reduction is interrupted.
Fig. 3 is the schematic flow sheet of another embodiment of virtual machine backup method of the present invention.As shown in Figure 3, present embodiment is described is the detailed process of above-mentioned virtual machine backup method embodiment illustrated in fig. 1, and the method may further comprise the steps:
S301 obtains the information of at least one virtual machine on the physical machine;
S302, generating virtual machines snapshot state table comprises the sign of at least one virtual machine and the snapshot state information of correspondence thereof in the virtual machine snapshot state table; The virtual machine snapshot state table is as shown in table 1:
Table 1
Figure BDA00002514682200041
Particularly, obtain the information of the virtual machine that concrete time point is corresponding on the physical machine, the information of virtual machine can comprise the data message of virtual machine and/or the memory information of virtual machine, the quantity of record virtual machine, and the quantity of virtual machine is set to the quantity of snapshot and the quantity of transmission, the virtual machine snapshot state table of a sky of generation.Empty virtual machine snapshot state table comprises the sign (for example virtual machine account ID) of virtual machine and the snapshot state information of correspondence.Snapshot state information can comprise virtual machine snapshot name and state, and wherein virtual machine snapshot name, state are empty.
S303 carries out snapshot to the information of virtual machine and processes, and generates local snapshot document;
S304 upgrades the virtual machine snapshot state table;
S305, scanning virtual machine snapshot state table is determined to be uploadedly not upload local snapshot document in described cloud storage server according to snapshot state information;
S306 shines File Upload in the cloud storage server, so that backup local snapshot document in the cloud storage server with the local express of not uploading.
Particularly, the information of a virtual machine of every snapshot generates a local snapshot document, and the quantity of snapshot is subtracted one, judges whether the quantity of snapshot is 0, to continue or to finish the information of next virtual machine is carried out snapshot.Obtain the information of snapshot, the information that renewal virtual machine snapshot state table is about to snapshot writes in the virtual machine snapshot state table, comprises virtual machine snapshot name and the state of writing.Wherein, the virtual machine snapshot name comprises virtual machine account ID and time, and this time is the concrete time point that snapshot produces; Original state represents with 0.Scanning virtual machine snapshot state table, with what do not upload, namely state be local express corresponding to 0 virtual machine according to File Upload in the cloud storage server; After the local express that physical machine will not uploaded arrives the cloud storage server according to File Upload, can upgrade accordingly the virtual machine snapshot state table, particularly, whenever upload a local snapshot document, upgrade one time the virtual machine snapshot state table, the state that is about to corresponding virtual machine is set to 1, and the quantity with transmission subtracts one simultaneously, whether the quantity of judging transmission is 0, to continue or to finish the local snapshot document of the next one is transmitted.
The virtual machine backup method that the embodiment of the invention provides, by obtaining the information of the virtual machine on the physical machine, generating virtual machines snapshot state table, information to virtual machine is carried out snapshot, upgrade the virtual machine snapshot state table, scanning virtual machine snapshot state table, the local express of will not uploading according to snapshot state information shines File Upload in the cloud storage server, to back up this this locality snapshot document, and upgrade described virtual machine snapshot state table, so that carry out snapshot and upload the local snapshot document of generation more orderly to the information of virtual machine, and the snapshot of virtual machine can not take a large amount of hard disk resources, in case and local hard drive break down, can not affect the snapshot document that leaves the virtual machine on the cloud storage server in, thereby quick-recovery is based upon the virtual machine above the local hard drive soon, business or user's missing data that reduction is interrupted.
Fig. 4 is the schematic flow sheet of another embodiment of virtual machine backup method of the present invention.As shown in Figure 4, present embodiment is on the basis of Fig. 1 or virtual machine backup method embodiment illustrated in fig. 3, failover procedure in the virtual machine backup method implementation also further is provided, and the method can be carried out in Fig. 1 or virtual machine backup method embodiment illustrated in fig. 3 in real time.The method may further comprise the steps:
S401 monitors at least one virtual machine;
This step is specifically as follows: to physical machine and on network traffics and the resource utilization of at least one virtual machine monitor.
Particularly, situation (for example: network traffics and/or resource utilization) at least one physical machine at least one virtual machine in the same server cluster and place thereof is monitored, when unusual (for example: network traffics and/or resource utilization surpass setting threshold) appears in situation, send a warning message by modes such as note or alarms, can search the problem whether existence can cause virtual machine to break down in order to follow-up.
S402 if virtual machine breaks down, then obtains the local snapshot document of backup from the cloud storage server, and according to the local snapshot document of backup virtual machine is recovered.
This step is specifically as follows: if virtual machine breaks down, then determine the physical machine that breaks down and at least one virtual machine; According to the determined described physical machine that breaks down and at least one virtual machine, obtain the described local snapshot document of corresponding backup from described cloud storage server; Described local snapshot document according to the correspondence backup of obtaining from described cloud storage server recovers at least one virtual machine on the described physical machine that breaks down.
Particularly, when existence can cause problem (for example the physical machine at virtual machine place or the local hard drive on the physical machine break down) that virtual machine breaks down, can send solicited message, be that one or more virtual machines on which physical machine are (when the physical machine at virtual machine place or the local hard drive on the physical machine break down with the object that determine to need recovers, when causing virtual machine to break down, the object that then needs to recover is a plurality of virtual machines on the physical machine that breaks down), and the position of recovering is namely recovered these virtual machines in which physical machine, can recover in original physical machine, the physical machine of other that also can be in same server cluster is recovered (when the physical machine at virtual machine place or the local hard drive on the physical machine break down, when causing virtual machine to break down, the physical machine of other that then can only be in same server cluster is recovered).Can detect hard disk in this locality by physical machine and whether break down, perhaps can also adopt manual type whether to be broken down by the hard disk that the keeper searches every physical machine.The object that can recover as required and the position of recovery, from the cloud storage server, obtain the local snapshot document of backup corresponding to these virtual machines, and according to these backup snapshots files that from the cloud storage server, get access to, these virtual machines are recovered, and rejuvenation can also can singlely be recovered by batch save.
The virtual machine backup method that the embodiment of the invention provides, the situation of the physical machine by Real Time Monitoring virtual machine and place thereof, and when monitoring virtual machine and break down, from the cloud storage server, obtain the local snapshot document of backup, thereby can recover fast the virtual machine that breaks down, business or user's missing data that reduction is interrupted.
Fig. 5 is the structural representation of an embodiment of virtual machine back-up device of the present invention.As shown in Figure 5, this device comprises: acquisition module 51, snapshot module 52 and upper transmission module 53.
Wherein, acquisition module 51 is for the information of obtaining at least one virtual machine on the physical machine;
Particularly, in the server cluster that large-scale server forms, every physical machine can fictionalize a plurality of virtual machines.When virtual machine was backed up, acquisition module 51 can at predefined time point, obtain the information of the virtual machine on the physical machine according to user's needs, to realize the backup to virtual machine.Predefined time point can also can be the set time point of every day for after at every turn complete to virtual machine operations, and for example every day After Hours.
Wherein, the information of virtual machine can be the status information of virtual machine, the data message of virtual machine or the memory information of virtual machine.
Snapshot module 52 is carried out snapshot for the information of the virtual machine that acquisition module 51 is got access to and is processed, and generates local snapshot document;
Particularly, the appearance of snapping technique, so that the backup of virtual machine is easy to realize, especially for being based upon the virtual machine of sharing in the storage, but for the virtual machine that is based upon on the local hard drive, the information of the virtual machine that 52 pairs of acquisition modules 51 of snapshot module get access to is carried out the snapshot processing, if the local snapshot document of generation is deposited can only leave on the local hard drive.
Wherein, snapshot is processed and to be specifically as follows: snapshot module 52 is carried out snapshot by the dos command line DOS instrument on the VMware ESX software control platform and is processed, and the Information encapsulation of virtual machine is become a local snapshot document.
Upper transmission module 53 is used for the local express that snapshot module 52 generates is shone File Upload to the cloud storage server, so that backup local snapshot document in the cloud storage server.
Particularly, the local snapshot document that upper transmission module 53 generates snapshot module 52, the API by the cloud storage server uploads in the cloud storage server, and this this locality snapshot document of backup in the cloud storage server is to realize the backup to virtual machine.Wherein, API can be the Web Service of REST, and SDK etc.
As a kind of feasible embodiment, upper transmission module 53 can directly be uploaded to the cloud storage server with the local snapshot document that snapshot module 52 generates; As the feasible embodiment of another kind, upper transmission module 53 can also be stored in first the local snapshot document that snapshot module 52 generates on the local hard drive, from local hard drive, local express is shone File Upload to the cloud storage server again, upload complete after, can delete the local snapshot document that leaves on the local hard drive.
The virtual machine back-up device that the embodiment of the invention provides, the information of the virtual machine that gets access to by 52 pairs of acquisition modules 51 of snapshot module is carried out snapshot, and the local express that snapshot module 52 is generated by upper transmission module 53 according to File Upload in the cloud storage server, to back up this this locality snapshot document, so that the snapshot of virtual machine can not take a large amount of hard disk resources, in case and local hard drive breaks down, can not affect the snapshot document that leaves the virtual machine on the cloud storage server in, thereby quick-recovery is based upon the virtual machine above the local hard drive soon, business or user's missing data that reduction is interrupted.
Fig. 6 is the structural representation of another embodiment of virtual machine back-up device of the present invention.As shown in Figure 6, this device comprises: acquisition module 51, snapshot module 52, upper transmission module 53, monitoring module 54 and recovery module 55.
Wherein, acquisition module 51 is for the information of obtaining at least one virtual machine on the physical machine; Generating virtual machines snapshot state table comprises the sign of at least one virtual machine and the snapshot state information of correspondence thereof in the virtual machine snapshot state table.The virtual machine snapshot state table is as shown in Figure 3 above shown in the table 1 among the embodiment.
Particularly, acquisition module 51 obtains the information of the virtual machine that concrete time point is corresponding on the physical machine, the information of virtual machine can comprise the data message of virtual machine and/or the memory information of virtual machine, the quantity of record virtual machine, and the quantity of virtual machine is set to the quantity of snapshot and the quantity of transmission, the virtual machine snapshot state table of a sky of generation.Empty virtual machine snapshot state table comprises the sign (for example virtual machine account ID) of virtual machine and the snapshot state information of correspondence.Snapshot state information can comprise virtual machine snapshot name and state, and wherein virtual machine snapshot name, state are empty.
Snapshot module 52 is carried out snapshot for the information of the virtual machine that acquisition module 51 is got access to and is processed, and generates local snapshot document; Upgrade the virtual machine snapshot state table; Scanning virtual machine snapshot state table is determined to be uploadedly not upload local snapshot document in described cloud storage server according to snapshot state information.
Upper transmission module 53 is used for snapshot module 52 local expresses that generate, that do not upload are shone File Upload to the cloud storage server, so that backup local snapshot document in the cloud storage server;
Particularly, the information of a virtual machine of snapshot module 52 every snapshots generates a local snapshot document, and the quantity of snapshot is subtracted one, judges whether the quantity of snapshot is 0, to continue or to finish the information of next virtual machine is carried out snapshot.Snapshot module 52 is obtained the information of snapshot, and the information that renewal virtual machine snapshot state table is about to snapshot writes in the virtual machine snapshot state table, comprises virtual machine snapshot name and the state of writing.Wherein, the virtual machine snapshot name comprises virtual machine account ID and time, and this time is the concrete time point that snapshot produces; Original state represents with 0.Virtual machine snapshot state table after snapshot module 52 scanning is upgraded is that 0 local snapshot document corresponding to virtual machine is defined as local snapshot document to be uploaded with state; The local express to be uploaded that upper transmission module 53 is determined snapshot module 52 shines File Upload in the cloud storage server.Upper transmission module 53 is whenever uploaded a local snapshot document, snapshot module 52 is upgraded a virtual machine snapshot state table, the state that is about to corresponding virtual machine is set to 1, quantity with transmission subtracts one simultaneously, whether the quantity of judging transmission is 0, to continue or to finish the local snapshot document of the next one is transmitted.
Monitoring module 54 is used at least one virtual machine is monitored.Specifically can be used for: to physical machine and on network traffics and the resource utilization of at least one virtual machine monitor.
Particularly, the situation of at least one virtual machine in 54 pairs of same server clusters of monitoring module and at least one physical machine at place thereof (for example: network traffics and/or resource utilization) is monitored, when unusual (for example: network traffics and/or resource utilization surpass setting threshold) appears in situation, send a warning message by modes such as note or alarms, can search the problem whether existence can cause virtual machine to break down in order to follow-up.
Recover module 55, break down if be used for virtual machine, then from the cloud storage server, obtain the local snapshot document of backup, and according to the local snapshot document of backup virtual machine is recovered.Specifically can be used for: if virtual machine breaks down, then determine the physical machine that breaks down and at least one virtual machine; According to the determined physical machine that breaks down and at least one virtual machine, obtain the local snapshot document of corresponding backup from the cloud storage server; Local snapshot document according to the correspondence backup of obtaining from the cloud storage server recovers at least one virtual machine on the physical machine that breaks down.
Particularly, when existence can cause problem (for example the physical machine at virtual machine place or the local hard drive on the physical machine break down) that virtual machine breaks down, recover module 55 and can send solicited message, be that one or more virtual machines on which physical machine are (when the physical machine at virtual machine place or the local hard drive on the physical machine break down with the object that determine to need recovers, when causing virtual machine to break down, the object that then needs to recover is a plurality of virtual machines on the physical machine that breaks down), and the position of recovering is namely recovered these virtual machines in which physical machine, can recover in original physical machine, the physical machine of other that also can be in same server cluster is recovered (when the physical machine at virtual machine place or the local hard drive on the physical machine break down, when causing virtual machine to break down, the physical machine of other that then can only be in same server cluster is recovered).Can detect hard disk in this locality by physical machine and whether break down, perhaps can also adopt manual type whether to be broken down by the hard disk that the keeper searches every physical machine.The object that recovery module 55 can be recovered according to the needs of appointment and the position of recovery, from the cloud storage server, obtain the local snapshot document of backup corresponding to these virtual machines, and according to these backup snapshots files that from the cloud storage server, get access to, these virtual machines are recovered, and rejuvenation can also can singlely be recovered by batch save.
The virtual machine back-up device that the embodiment of the invention provides, the situation of the physical machine by monitoring module 54 Real Time Monitoring virtual machines and place thereof, and when monitoring virtual machine and break down, recover module 55 and from the cloud storage server, obtain the local snapshot document of backup, thereby can recover fast the virtual machine that breaks down, business or user's missing data that reduction is interrupted.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can be finished by the relevant hardware of programmed instruction.Aforesaid program can be stored in the computer read/write memory medium.This program is carried out the step that comprises above-mentioned each embodiment of the method when carrying out; And aforesaid storage medium comprises: the various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above each embodiment is not intended to limit only in order to technical scheme of the present invention to be described; Although with reference to aforementioned each embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment puts down in writing, and perhaps some or all of technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the scope of various embodiments of the present invention technical scheme.

Claims (11)

1. a virtual machine backup method is characterized in that, comprising:
Obtain the information of at least one virtual machine on the physical machine;
The information of described virtual machine is carried out snapshot process, generate local snapshot document;
Described local express is shone File Upload in the cloud storage server, so that the described local snapshot document of backup in the described cloud storage server.
2. virtual machine backup method according to claim 1 is characterized in that, after the described information of obtaining at least one virtual machine on the physical machine, also comprises:
Generating virtual machines snapshot state table comprises the sign of described at least one virtual machine and the snapshot state information of correspondence thereof in the described virtual machine snapshot state table;
Described information to described virtual machine carries out also comprising after the snapshot processing:
Upgrade described virtual machine snapshot state table;
Scan described virtual machine snapshot state table, determine to be uploadedly in described cloud storage server, not upload local snapshot document according to described snapshot state information.
3. virtual machine backup method according to claim 1 and 2 is characterized in that, the information of described virtual machine comprises: the data message of virtual machine and/or the memory information of virtual machine.
4. virtual machine backup method according to claim 1 and 2 is characterized in that, also comprises:
Described at least one virtual machine is monitored;
If described virtual machine breaks down, then from described cloud storage server, obtain the described local snapshot document of backup, and according to the described local snapshot document of backup described virtual machine is recovered.
5. virtual machine backup method according to claim 4 is characterized in that, the described described local snapshot document that from described cloud storage server, obtains backup, and according to the backup described local snapshot document described virtual machine is recovered, be specially:
Determine the physical machine that breaks down and at least one virtual machine;
According to the determined described physical machine that breaks down and at least one virtual machine, obtain the described local snapshot document of corresponding backup from described cloud storage server;
Described local snapshot document according to the correspondence backup of obtaining from described cloud storage server recovers at least one virtual machine on the described physical machine that breaks down.
6. virtual machine backup method according to claim 4 is characterized in that, described described at least one virtual machine is monitored, and is specially:
To described physical machine and on network traffics and the resource utilization of at least one described virtual machine monitor.
7. a virtual machine back-up device is characterized in that, comprising:
Acquisition module is for the information of obtaining at least one virtual machine on the physical machine;
Snapshot module is used for that the information of described virtual machine is carried out snapshot and processes, and generates local snapshot document;
Upper transmission module is used for described local express is shone File Upload to the cloud storage server, so that the described local snapshot document of backup in the described cloud storage server.
8. virtual machine back-up device according to claim 7, it is characterized in that, described acquisition module also is used for: after the information of at least one virtual machine on obtaining physical machine, generating virtual machines snapshot state table comprises the sign of described at least one virtual machine and the snapshot state information of correspondence thereof in the described virtual machine snapshot state table;
Described snapshot module also is used for: the information of described virtual machine is carried out upgrading described virtual machine snapshot state table after snapshot processes; Scan described virtual machine snapshot state table, determine to be uploadedly in described cloud storage server, not upload local snapshot document according to described snapshot state information.
9. according to claim 7 or 8 described virtual machine back-up devices, it is characterized in that, also comprise:
Monitoring module is used for described at least one virtual machine is monitored;
Recover module, break down if be used for described virtual machine, then from described cloud storage server, obtain the described local snapshot document of backup, and according to the described local snapshot document of backup described virtual machine is recovered.
10. virtual machine back-up device according to claim 9 is characterized in that, described recovery module specifically is used for:
If described virtual machine breaks down, then determine the physical machine that breaks down and at least one virtual machine; According to the determined described physical machine that breaks down and at least one virtual machine, obtain the described local snapshot document of corresponding backup from described cloud storage server; Described local snapshot document according to the correspondence backup of obtaining from described cloud storage server recovers at least one virtual machine on the described physical machine that breaks down.
11. virtual machine back-up device according to claim 9 is characterized in that, described monitoring module specifically is used for:
To described physical machine and on network traffics and the resource utilization of at least one described virtual machine monitor.
CN201210511176.4A 2012-12-03 2012-12-03 Backup method and device for virtual machine Active CN102981931B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210511176.4A CN102981931B (en) 2012-12-03 2012-12-03 Backup method and device for virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210511176.4A CN102981931B (en) 2012-12-03 2012-12-03 Backup method and device for virtual machine

Publications (2)

Publication Number Publication Date
CN102981931A true CN102981931A (en) 2013-03-20
CN102981931B CN102981931B (en) 2015-04-15

Family

ID=47855986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210511176.4A Active CN102981931B (en) 2012-12-03 2012-12-03 Backup method and device for virtual machine

Country Status (1)

Country Link
CN (1) CN102981931B (en)

Cited By (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440180A (en) * 2013-08-28 2013-12-11 浪潮电子信息产业股份有限公司 Cloud sea OS virtualization platform backup and recovering method
CN103729264A (en) * 2013-12-23 2014-04-16 国云科技股份有限公司 Method for backing up and restoring Windows virtual machine system disk
CN104111878A (en) * 2014-02-20 2014-10-22 西安未来国际信息股份有限公司 Automatic hadoop cluster restoration technology on basis of snapshots of virtual machines
CN104216801A (en) * 2014-09-04 2014-12-17 北京联创信安科技有限公司 Data copying method oriented to virtual environment and data copying system oriented to virtual environment
CN104348653A (en) * 2013-08-06 2015-02-11 中国电信股份有限公司 Method and system for realizing user task of cloud management platform as well as trigger
CN104461785A (en) * 2014-12-15 2015-03-25 中电长城网际系统应用有限公司 Data backup method, data recovery method and device of virtual machine and physic machine
CN104572340A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Incremental backup system and method
CN104793981A (en) * 2014-01-20 2015-07-22 联想(北京)有限公司 Online snapshot managing method and device for virtual machine cluster
WO2015150933A1 (en) * 2014-04-02 2015-10-08 International Business Machines Corporation Efficient point-in-time copy backup target volume allocation
CN105094897A (en) * 2015-07-02 2015-11-25 华为技术有限公司 Virtual machine starting method, cloud access equipment and cloud computing center
CN105224391A (en) * 2015-10-12 2016-01-06 浪潮(北京)电子信息产业有限公司 A kind of online backup method and system of virtual machine
CN105763560A (en) * 2016-04-15 2016-07-13 北京思特奇信息技术股份有限公司 Web Service interface flow real-time monitoring method and system
US9442664B2 (en) 2014-04-02 2016-09-13 International Business Machines Corporation Efficient flashcopy backup target volume allocation from a shared resource pool
US9454315B2 (en) 2014-04-02 2016-09-27 International Business Machines Corporation Efficient flashcopy backup target volume allocation from a shared resource pool while ingesting a flashcopy backup in a repository
CN106411832A (en) * 2016-03-30 2017-02-15 苏州美天网络科技有限公司 Cloud authentication hard disk recovery method
CN106598785A (en) * 2016-12-16 2017-04-26 广东美晨通讯有限公司 File system backup and restoration method and device
CN106909475A (en) * 2015-12-23 2017-06-30 中国移动通信集团重庆有限公司 Row data backup, the method and apparatus recovered are stored in based on object
CN107256185A (en) * 2017-06-05 2017-10-17 广西犇云科技有限公司 A kind of Cloud Server disk repair system
US9817724B2 (en) 2014-04-02 2017-11-14 International Business Machines Corporation Efficient FlashCopy backup target volume allocation with reuse and a shared resource pool
CN107463467A (en) * 2017-08-24 2017-12-12 浪潮(北京)电子信息产业有限公司 A kind of method and system that can quickly reduce virtual platform
CN107735779A (en) * 2015-07-29 2018-02-23 阿普福米克斯有限公司 Assess the running status of computing environment
CN108182128A (en) * 2017-12-29 2018-06-19 广州鼎甲计算机科技有限公司 Based on XEN without Agent virtual back-up restoring method
CN108958883A (en) * 2018-06-15 2018-12-07 北京奇艺世纪科技有限公司 The restoration methods and system of virtual machine in cloud computing cluster
CN109522154A (en) * 2015-09-10 2019-03-26 华为技术有限公司 Data reconstruction method and relevant device and system
CN109558213A (en) * 2018-11-30 2019-04-02 郑州云海信息技术有限公司 The method and apparatus for managing the virtual machine snapshot of OpenStack platform
CN110196749A (en) * 2018-02-26 2019-09-03 中兴通讯股份有限公司 The restoration methods and device of virtual machine, storage medium and electronic device
CN110442427A (en) * 2019-07-29 2019-11-12 腾讯科技(深圳)有限公司 A kind of virtual machine snapshot management method, device, equipment and storage medium
US10496599B1 (en) 2017-04-30 2019-12-03 EMC IP Holding Company LLC Cloud data archiving using chunk-object mapping and synthetic full backup
TWI693550B (en) * 2018-12-06 2020-05-11 中華電信股份有限公司 Backup method for supporting multi-dsik architecture of virtual machine
CN111190870A (en) * 2019-12-27 2020-05-22 山东乾云启创信息科技股份有限公司 Virtual storage method, device and medium based on spread spectrum processor
US10701153B1 (en) 2017-04-30 2020-06-30 EMC IP Holding Company LLC Cloud data archiving using latest snapshot metadata
CN111427721A (en) * 2020-03-05 2020-07-17 杭州宏杉科技股份有限公司 Exception recovery method and device
US10789205B1 (en) 2017-04-30 2020-09-29 EMC IP Holding Company LLC Cloud data archiving using promoted objects list
CN111858150A (en) * 2019-04-26 2020-10-30 Emc知识产权控股有限公司 System and method for management of large-scale data backup
CN112256400A (en) * 2020-10-29 2021-01-22 上海英方软件股份有限公司 Virtual machine snapshot management method and device
CN112783832A (en) * 2020-12-30 2021-05-11 上海鲲鲸云股份有限公司 Method and device for storing snapshot file
US11240128B2 (en) 2017-03-29 2022-02-01 Juniper Networks, Inc. Policy controller for distributed virtualization infrastructure element monitoring
CN114189528A (en) * 2020-08-24 2022-03-15 北京小米移动软件有限公司 Cloud storage method, device, server, terminal, cloud storage system and medium
US11323327B1 (en) 2017-04-19 2022-05-03 Juniper Networks, Inc. Virtualization infrastructure element monitoring and policy control in a cloud environment using profiles

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8219769B1 (en) * 2010-05-04 2012-07-10 Symantec Corporation Discovering cluster resources to efficiently perform cluster backups and restores
CN102576322A (en) * 2009-08-21 2012-07-11 赛门铁克公司 Proxy backup of virtual disk image files on NAS devices

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102576322A (en) * 2009-08-21 2012-07-11 赛门铁克公司 Proxy backup of virtual disk image files on NAS devices
US8219769B1 (en) * 2010-05-04 2012-07-10 Symantec Corporation Discovering cluster resources to efficiently perform cluster backups and restores

Cited By (53)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348653A (en) * 2013-08-06 2015-02-11 中国电信股份有限公司 Method and system for realizing user task of cloud management platform as well as trigger
CN103440180A (en) * 2013-08-28 2013-12-11 浪潮电子信息产业股份有限公司 Cloud sea OS virtualization platform backup and recovering method
CN104572340A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Incremental backup system and method
CN103729264B (en) * 2013-12-23 2016-07-13 国云科技股份有限公司 A kind of Windows virtual machine system disk backup and reduction method
CN103729264A (en) * 2013-12-23 2014-04-16 国云科技股份有限公司 Method for backing up and restoring Windows virtual machine system disk
CN104793981B (en) * 2014-01-20 2018-08-31 联想(北京)有限公司 A kind of online snapshot management method and device of cluster virtual machine
CN104793981A (en) * 2014-01-20 2015-07-22 联想(北京)有限公司 Online snapshot managing method and device for virtual machine cluster
CN104111878A (en) * 2014-02-20 2014-10-22 西安未来国际信息股份有限公司 Automatic hadoop cluster restoration technology on basis of snapshots of virtual machines
WO2015150933A1 (en) * 2014-04-02 2015-10-08 International Business Machines Corporation Efficient point-in-time copy backup target volume allocation
US9817724B2 (en) 2014-04-02 2017-11-14 International Business Machines Corporation Efficient FlashCopy backup target volume allocation with reuse and a shared resource pool
US9690500B2 (en) 2014-04-02 2017-06-27 International Business Machines Corporation Efficient flashcopy backup target volume allocation
US9442664B2 (en) 2014-04-02 2016-09-13 International Business Machines Corporation Efficient flashcopy backup target volume allocation from a shared resource pool
US9454315B2 (en) 2014-04-02 2016-09-27 International Business Machines Corporation Efficient flashcopy backup target volume allocation from a shared resource pool while ingesting a flashcopy backup in a repository
CN104216801A (en) * 2014-09-04 2014-12-17 北京联创信安科技有限公司 Data copying method oriented to virtual environment and data copying system oriented to virtual environment
CN104216801B (en) * 2014-09-04 2017-06-16 北京联创信安科技股份有限公司 The data copy method and system of a kind of Virtual environment
CN104461785A (en) * 2014-12-15 2015-03-25 中电长城网际系统应用有限公司 Data backup method, data recovery method and device of virtual machine and physic machine
CN105094897A (en) * 2015-07-02 2015-11-25 华为技术有限公司 Virtual machine starting method, cloud access equipment and cloud computing center
CN105094897B (en) * 2015-07-02 2019-05-28 华为技术有限公司 A kind of virtual machine starting method, cloud access equipment and cloud computing center
US11658874B2 (en) 2015-07-29 2023-05-23 Juniper Networks, Inc. Assessment of operational states of a computing environment
CN107735779A (en) * 2015-07-29 2018-02-23 阿普福米克斯有限公司 Assess the running status of computing environment
CN109522154A (en) * 2015-09-10 2019-03-26 华为技术有限公司 Data reconstruction method and relevant device and system
CN105224391B (en) * 2015-10-12 2018-10-12 浪潮(北京)电子信息产业有限公司 A kind of online backup method and system of virtual machine
CN105224391A (en) * 2015-10-12 2016-01-06 浪潮(北京)电子信息产业有限公司 A kind of online backup method and system of virtual machine
CN106909475A (en) * 2015-12-23 2017-06-30 中国移动通信集团重庆有限公司 Row data backup, the method and apparatus recovered are stored in based on object
CN106411832A (en) * 2016-03-30 2017-02-15 苏州美天网络科技有限公司 Cloud authentication hard disk recovery method
CN105763560A (en) * 2016-04-15 2016-07-13 北京思特奇信息技术股份有限公司 Web Service interface flow real-time monitoring method and system
CN106598785A (en) * 2016-12-16 2017-04-26 广东美晨通讯有限公司 File system backup and restoration method and device
US11888714B2 (en) 2017-03-29 2024-01-30 Juniper Networks, Inc. Policy controller for distributed virtualization infrastructure element monitoring
US11240128B2 (en) 2017-03-29 2022-02-01 Juniper Networks, Inc. Policy controller for distributed virtualization infrastructure element monitoring
US11323327B1 (en) 2017-04-19 2022-05-03 Juniper Networks, Inc. Virtualization infrastructure element monitoring and policy control in a cloud environment using profiles
US10701153B1 (en) 2017-04-30 2020-06-30 EMC IP Holding Company LLC Cloud data archiving using latest snapshot metadata
US10496599B1 (en) 2017-04-30 2019-12-03 EMC IP Holding Company LLC Cloud data archiving using chunk-object mapping and synthetic full backup
US10789205B1 (en) 2017-04-30 2020-09-29 EMC IP Holding Company LLC Cloud data archiving using promoted objects list
CN107256185A (en) * 2017-06-05 2017-10-17 广西犇云科技有限公司 A kind of Cloud Server disk repair system
CN107463467A (en) * 2017-08-24 2017-12-12 浪潮(北京)电子信息产业有限公司 A kind of method and system that can quickly reduce virtual platform
CN107463467B (en) * 2017-08-24 2020-10-02 浪潮(北京)电子信息产业有限公司 Method and system capable of quickly restoring virtualization platform
CN108182128A (en) * 2017-12-29 2018-06-19 广州鼎甲计算机科技有限公司 Based on XEN without Agent virtual back-up restoring method
CN110196749A (en) * 2018-02-26 2019-09-03 中兴通讯股份有限公司 The restoration methods and device of virtual machine, storage medium and electronic device
CN110196749B (en) * 2018-02-26 2023-11-17 中兴通讯股份有限公司 Virtual machine recovery method and device, storage medium and electronic device
CN108958883A (en) * 2018-06-15 2018-12-07 北京奇艺世纪科技有限公司 The restoration methods and system of virtual machine in cloud computing cluster
CN108958883B (en) * 2018-06-15 2021-04-09 北京奇艺世纪科技有限公司 Recovery method and system for virtual machine in cloud computing cluster
CN109558213A (en) * 2018-11-30 2019-04-02 郑州云海信息技术有限公司 The method and apparatus for managing the virtual machine snapshot of OpenStack platform
TWI693550B (en) * 2018-12-06 2020-05-11 中華電信股份有限公司 Backup method for supporting multi-dsik architecture of virtual machine
CN111858150A (en) * 2019-04-26 2020-10-30 Emc知识产权控股有限公司 System and method for management of large-scale data backup
CN110442427B (en) * 2019-07-29 2021-09-14 腾讯科技(深圳)有限公司 Virtual machine snapshot management method, device, equipment and storage medium
CN110442427A (en) * 2019-07-29 2019-11-12 腾讯科技(深圳)有限公司 A kind of virtual machine snapshot management method, device, equipment and storage medium
CN111190870A (en) * 2019-12-27 2020-05-22 山东乾云启创信息科技股份有限公司 Virtual storage method, device and medium based on spread spectrum processor
CN111427721A (en) * 2020-03-05 2020-07-17 杭州宏杉科技股份有限公司 Exception recovery method and device
CN111427721B (en) * 2020-03-05 2023-04-28 杭州宏杉科技股份有限公司 Abnormality recovery method and device
CN114189528A (en) * 2020-08-24 2022-03-15 北京小米移动软件有限公司 Cloud storage method, device, server, terminal, cloud storage system and medium
CN112256400A (en) * 2020-10-29 2021-01-22 上海英方软件股份有限公司 Virtual machine snapshot management method and device
CN112783832A (en) * 2020-12-30 2021-05-11 上海鲲鲸云股份有限公司 Method and device for storing snapshot file
CN112783832B (en) * 2020-12-30 2024-03-22 上海鲲鲸云股份有限公司 Method and device for storing snapshot file

Also Published As

Publication number Publication date
CN102981931B (en) 2015-04-15

Similar Documents

Publication Publication Date Title
CN102981931B (en) Backup method and device for virtual machine
CN111338854B (en) Kubernetes cluster-based method and system for quickly recovering data
EP3218810B1 (en) Virtual machine cluster backup
CN103608786B (en) Managing replicated virtual storage at recovery sites
US11397648B2 (en) Virtual machine recovery method and virtual machine management device
CN202798798U (en) High availability system based on cloud computing technology
CN103164254B (en) For maintaining the conforming method and system of memory storage in mirror image virtual environment
CN102594849B (en) Data backup and recovery method and device, virtual machine snapshot deleting and rollback method and device
US8949182B2 (en) Continuous and asynchronous replication of a consistent dataset
CN102902600A (en) Efficient application-aware disaster recovery
CN109582443A (en) Virtual machine standby system based on distributed storage technology
CN103970585A (en) Method and device for creating virtual machine
AU2012273366A1 (en) Managing replicated virtual storage at recovery sites
CN103810058A (en) Backup method, equipment and system for virtual machine
CN103473277A (en) Snapshot method and device for file systems
CN103793258A (en) Hypervisor-based server duplication system and method
CN103597463A (en) Automatic configuration of a recovery service
CN103399781A (en) Cloud server and virtual machine management method thereof
CN101937378B (en) Method for carrying out back-up protection on data of storage equipment and computer system
CN102025758B (en) Method, device and system for recovering data copy in distributed system
US20220261318A1 (en) Instant recovery of databases
CN104517067A (en) Method, device and system for data access
CN115080309A (en) Data backup system, method, storage medium, and electronic device
CN112256201B (en) Distributed block storage system and volume information management method thereof
CN101008908B (en) Synchronous data copy system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant