CN106294018B - A kind of virtual machine restoration methods and device - Google Patents
A kind of virtual machine restoration methods and device Download PDFInfo
- Publication number
- CN106294018B CN106294018B CN201610657790.XA CN201610657790A CN106294018B CN 106294018 B CN106294018 B CN 106294018B CN 201610657790 A CN201610657790 A CN 201610657790A CN 106294018 B CN106294018 B CN 106294018B
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- backup
- file
- intermediate medium
- medium disk
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 238000011084 recovery Methods 0.000 claims abstract description 22
- 238000013500 data storage Methods 0.000 claims abstract description 16
- 238000007726 management method Methods 0.000 claims description 11
- 230000005012 migration Effects 0.000 claims description 10
- 238000013508 migration Methods 0.000 claims description 10
- 230000005540 biological transmission Effects 0.000 claims description 4
- 230000008878 coupling Effects 0.000 claims description 4
- 238000010168 coupling process Methods 0.000 claims description 4
- 238000005859 coupling reaction Methods 0.000 claims description 4
- 238000001089 thermophoresis Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 238000003860 storage Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45575—Starting, stopping, suspending or resuming virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application discloses a kind of virtual machine restoration methods, comprising: obtains the virtual machine that user sends and restores instruction;Restore the intermediate medium disk that virtual machine is established in instruction in the creation data storage equipment that user selects according to the virtual machine;Start the virtual machine based on the intermediate medium disk, and multiple backup snapshots files in backup data store equipment are merged, obtains the backup for restoring virtual machine and merge file;Backup merging file is copied in the creation data storage equipment, and the backup after duplication is merged into file and is merged with the intermediate medium disk.Virtual machine restoration methods improve virtual machine resume speed, greatly reduce and restore virtual machine duration.A kind of virtual machine recovery device is also disclosed in the application.
Description
Technical field
The present invention relates to field of computer technology to further relate to one kind more specifically to a kind of virtual machine restoration methods
Virtual machine recovery device.
Background technique
With the extensive use of virtualization technology, virtual machine backup scenario is with backup platform also with the hair of virtual platform
Exhibition is raised to a new height.In virtual machine recovery process, traditional recovery scheme is closed by backup server end snapshot
And it is copied to the manufacturing side with disk full dose, it generally requires to expend the long time, according to experiment, traditional scheme restores 40G magnetic
Disk time-consuming was at 25-40 minutes.Therefore, virtual machine recovery time in the prior art is long.
Therefore, how to shorten virtual machine recovery time is that those skilled in the art are badly in need of technical problems to be solved.
Summary of the invention
In order to solve the above technical problems, the present invention provides a kind of virtual machine restoration methods, the virtual machine that can effectively shorten is extensive
The multiple time.
To achieve the above object, the invention provides the following technical scheme:
A kind of virtual machine restoration methods, comprising:
It obtains the virtual machine that user sends and restores instruction;
Restore the centre that virtual machine is established in instruction in the creation data storage equipment that user selects according to the virtual machine
Media disks;
Start the virtual machine based on the intermediate medium disk, and multiple backups in backup data store equipment are fast
It is merged according to file, obtains the backup for restoring virtual machine and merge file;
Backup merging file is copied in the creation data storage equipment, and the backup after duplication is merged into text
Part merges with the intermediate medium disk.
Preferably, in above-mentioned virtual machine restoration methods, the backup by after duplication merges file and intermediate Jie
Before matter disk merges, further includes:
The read-write for executing the intermediate medium disk redirects so that backup after the duplication merge file and it is described in
Between media disks be associated with.
Preferably, in above-mentioned virtual machine restoration methods, it is described obtain backup merge file after, further includes:
Management net tunnel is established, backup merging file is passed through into the management net tunnel thermophoresis to the production number
According in storage equipment.
The present invention also provides a kind of virtual machine recovery devices, comprising:
Restore order and obtain module, the virtual machine for obtaining user's transmission restores instruction;
Disk establishes module, for restoring instruction in the creation data storage equipment that user selects according to the virtual machine
Establish the intermediate medium disk of virtual machine;
Migration control service module, for multiple backup snapshots files in backup data store equipment to be merged,
It obtains the backup for restoring virtual machine and merges file;
Recovery management service module, for backup merging file to be copied in the creation data storage equipment,
And the backup after duplication is merged into file and is merged with the intermediate medium disk.
Preferably, in above-mentioned virtual machine recovery device, the migration control service module is also used to execute the centre
The read-write of media disks redirects, so that the backup after the duplication merges file and is associated with the intermediate medium disk.
It can be seen from the above technical proposal that a kind of virtual machine restoration methods provided by the present invention, comprising:
It obtains the virtual machine that user sends and restores instruction;Restore the production number that instruction is selected in user according to the virtual machine
According to the intermediate medium disk for establishing virtual machine in storage equipment;Start the virtual machine based on the intermediate medium disk, and will
Multiple backup snapshots files in backup data store equipment merge, and obtain backup and merge file;The backup is merged
File is copied in the creation data storage equipment, and the backup after duplication is merged file and intermediate medium disk conjunction
And.
The present invention establishes intermediate medium disk by storing in equipment in creation data, can run virtual machine in this magnetic
On disk, intermediate medium disk is simultaneously not take up the host resource for being provided with virtual machine, and after starting virtual machine, Backup Data is deposited
Multiple backup snapshots file mergencess in equipment are stored up, backup is obtained and merges file, backup merging file are copied to described
Creation data stores in equipment, and the backup after duplication is merged file and merges completion virtual machine with the intermediate medium disk
Restore, realize reading data due to establishing to be flexible coupling between intermediate medium disk and backup merging file, and creates intermediate medium
Disk only needs 1-2 seconds time, can start virtual machine after creating successfully, and this improves virtual machine resume speeds, drops significantly
Low recovery virtual machine duration.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of virtual machine restoration methods schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of virtual machine recovery device schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, Fig. 1 is a kind of virtual machine restoration methods schematic diagram provided in an embodiment of the present invention;
In a specific embodiment, a kind of virtual machine restoration methods are provided, comprising:
Step S1: it obtains the virtual machine that user sends and restores instruction.
The virtual machine that user's transmission can be obtained restores instruction, and virtual machine, which restores instruction, can restore instruction for current virtual machine
The multiple disks for restoring instruction or single disk recovery instruction of virtual machine and virtual machine with new virtual machine restore instruction, in user
When sending virtual machine recovery instruction, the maximum quantity for controlling the virtual machine of recovery is no more than system and threshold value is arranged.Intermediate medium magnetic
The amount of capacity of disk is determined based on snapshot or bitmap snapshot data.
Step S2: restore to instruct according to the virtual machine and establish virtual machine in the creation data storage equipment that user selects
Intermediate medium disk;
Equipment is stored according to the creation data of the target of user's selection, establishes intermediate medium disk, and control virtual machine and open
It moves on intermediate medium disk, is sent to backup data store and merge Backup Data request.
Step S3: the virtual machine is started based on the intermediate medium disk, and will be more in backup data store equipment
A backup snapshots file merges, and obtains the backup for restoring virtual machine and merges file;
It receives after merging Backup Data request, merges multiple backup snapshots files to migration and prepare catalogue, after the completion of merging
Management plane migrating channels are established, and replicates the backup file after merging and stores equipment specified path to creation data.
Step S4: backup merging file is copied in the creation data storage equipment, and will be standby after duplication
Part merges file and merges with the intermediate medium disk.
After copy backup merges file to creation data storage equipment specified path, virtual machine IO is hung, Zhi Houfa
Redirection intermediate medium disk read-write source file movement is played, intermediate medium read-write source file modification, successfully modified rear modification are executed
Virtual machine IO is solved first after success and is hung, then by intermediate medium disk with merge after backup file mergences, recovery process is complete
At.Merging for the first time is all backup snapshots files incorporated in backup storage, does not include intermediate medium disk, entire extensive
During multiple, virtual machine is operating status, and the data that virtual machine generates in this process are recorded in intermediate medium disk, because
This, so after completing backup and merging file migration, in order to reach the effect that virtual machine only operates on one piece of new disk
Fruit needs temporarily to be created that the intermediate medium disk come is deleted, i.e., namely merges intermediate medium disk and its data
Enter to migrate to the backup of creation data storage equipment and merge in file.
The present invention establishes intermediate medium disk by storing in equipment in creation data, can run virtual machine in this magnetic
On disk, intermediate medium disk is simultaneously not take up the host resource for being provided with virtual machine, and after starting virtual machine, Backup Data is deposited
Multiple backup snapshots file mergencess in equipment are stored up, backup is obtained and merges file, backup merging file are copied to described
Creation data stores in equipment, and the backup after duplication is merged file and merges completion virtual machine with the intermediate medium disk
Restore, realize reading data due to establishing to be flexible coupling between intermediate medium disk and backup merging file, and creates intermediate medium
Disk only needs 1-2 seconds time, can start virtual machine after creating successfully, and this improves virtual machine resume speeds, drops significantly
Low recovery virtual machine duration.
Based on above-mentioned any technical solution, the backup by after duplication merges file and merges with the intermediate medium disk
Before, further includes:
The read-write for executing the intermediate medium disk redirects so that backup after the duplication merge file and it is described in
Between media disks be associated with.
Wherein, the detailed process for executing the read-write redirection of intermediate medium disk is, by intermediate medium disk
BackingFile is directed toward a new file, and the backup after modifying the duplication merges father's snapshot document that file relies on originally,
Modification his father's snapshot document is intermediate medium disk, so that the backup after the duplication merges file and the intermediate medium disk
Association.
It is described to obtain after backing up merging file in above-mentioned virtual machine restoration methods based on above-mentioned any technical solution,
Further include:
Management net tunnel is established, backup merging file is passed through into the management net tunnel thermophoresis to the production number
According in storage equipment.
Wherein, management net tunnel is established, can effectively be set migration thermophoresis to the data storage of backup snapshots file chain
In standby, accelerate migration velocity.
As shown in Fig. 2, Fig. 2 is a kind of virtual machine recovery device schematic diagram provided in an embodiment of the present invention.
In another specific embodiment, a kind of virtual machine recovery device is additionally provided, comprising:
Restore order and obtain module 01, the virtual machine for obtaining user's transmission restores instruction;
Disk establishes module 02, stores equipment in the creation data that user selects for restoring instruction according to the virtual machine
The middle intermediate medium disk for establishing virtual machine;
Migration control service module 03, for closing multiple backup snapshots files in backup data store equipment
And the backup obtained for restoring virtual machine merges file;
Recovery management service module 04 stores equipment for backup merging file to be copied to the creation data
In, and the backup after duplication is merged into file and is merged with the intermediate medium disk.
Further, in above-mentioned virtual machine recovery device, the migration control service module 03 is also used to execute described
The read-write of intermediate medium disk redirects, so that the backup after the duplication merges file and is associated with the intermediate medium disk.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (3)
1. a kind of virtual machine restoration methods characterized by comprising
It obtains the virtual machine that user sends and restores instruction;
Restore the intermediate medium that virtual machine is established in instruction in the creation data storage equipment that user selects according to the virtual machine
Disk;
Start the virtual machine based on the intermediate medium disk, and multiple backup snapshots in backup data store equipment are literary
Part merges, and obtains the backup for restoring virtual machine and merges file;
Backup merging file is copied in creation data storage equipment, and by the backup after duplication merge file with
The intermediate medium disk merges;
Wherein, before the backup merging file by after duplication merges with the intermediate medium disk, further includes:
The read-write for executing the intermediate medium disk redirects, so that the backup after the duplication merges file and intermediate Jie
The association of matter disk, the intermediate medium disk and the backup, which merge to establish to be flexible coupling between file, realizes reading data.
2. virtual machine restoration methods as described in claim 1, which is characterized in that described to obtain the backup for restoring virtual machine
After merging file, further includes:
Management net tunnel is established, the backup is merged into file and is deposited by the management net tunnel thermophoresis to the creation data
It stores up in equipment.
3. a kind of virtual machine recovery device characterized by comprising
Restore order and obtain module, the virtual machine for obtaining user's transmission restores instruction;
Disk establishes module, establishes in the creation data storage equipment that user selects for restoring to instruct according to the virtual machine
The intermediate medium disk of virtual machine;
Migration control service module, for starting the virtual machine based on the intermediate medium disk, and by backup data store
Multiple backup snapshots files in equipment merge, and obtain the backup for restoring virtual machine and merge file;
Recovery management service module, for backup merging file to be copied in the creation data storage equipment, and will
Backup after duplication merges file and merges with the intermediate medium disk;
Wherein, the read-write that the migration control service module is also used to execute the intermediate medium disk redirects, so that described
Backup after duplication merges file and is associated with the intermediate medium disk, and the intermediate medium disk and the backup merge file
Between establish and be flexible coupling and realize reading data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610657790.XA CN106294018B (en) | 2016-08-11 | 2016-08-11 | A kind of virtual machine restoration methods and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610657790.XA CN106294018B (en) | 2016-08-11 | 2016-08-11 | A kind of virtual machine restoration methods and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106294018A CN106294018A (en) | 2017-01-04 |
CN106294018B true CN106294018B (en) | 2019-11-01 |
Family
ID=57668818
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610657790.XA Active CN106294018B (en) | 2016-08-11 | 2016-08-11 | A kind of virtual machine restoration methods and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106294018B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107122267B (en) * | 2017-05-31 | 2021-03-30 | 广州鼎甲计算机科技有限公司 | Windows operating system mount recovery method |
CN109684028B (en) * | 2017-10-18 | 2024-04-12 | 中兴通讯股份有限公司 | Method, device and equipment for separating operating system from user data |
CN109726041B (en) * | 2017-10-27 | 2023-09-08 | 伊姆西Ip控股有限责任公司 | Method, apparatus and computer readable medium for restoring files in a virtual machine disk |
CN109726039B (en) * | 2017-10-27 | 2023-05-05 | 伊姆西Ip控股有限责任公司 | Method and apparatus for managing virtual machines |
CN109032762B (en) * | 2018-08-09 | 2022-01-25 | 腾讯科技(深圳)有限公司 | Virtual machine backtracking method and related equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103902407A (en) * | 2012-12-31 | 2014-07-02 | 华为技术有限公司 | Virtual machine recovery method and server |
CN105022656A (en) * | 2014-04-21 | 2015-11-04 | 中国电信股份有限公司 | Management method and device of virtual machine snapshot |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8732427B2 (en) * | 2009-08-03 | 2014-05-20 | Quantum Corporation | Systems and methods for collapsing a derivative version of a primary storage volume |
US8719631B2 (en) * | 2011-07-11 | 2014-05-06 | Red Hat Israel, Ltd. | Virtual machine (VM)-based disk rescue |
-
2016
- 2016-08-11 CN CN201610657790.XA patent/CN106294018B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103902407A (en) * | 2012-12-31 | 2014-07-02 | 华为技术有限公司 | Virtual machine recovery method and server |
CN105022656A (en) * | 2014-04-21 | 2015-11-04 | 中国电信股份有限公司 | Management method and device of virtual machine snapshot |
Non-Patent Citations (1)
Title |
---|
VirtualBox虚拟机数据恢复的两种方法;服务器之家;《服务器之家》;20140404;第1-2页 * |
Also Published As
Publication number | Publication date |
---|---|
CN106294018A (en) | 2017-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106294018B (en) | A kind of virtual machine restoration methods and device | |
US9823877B2 (en) | Virtual machine backup from storage snapshot | |
US9400611B1 (en) | Data migration in cluster environment using host copy and changed block tracking | |
US20190278671A1 (en) | Point-in-time copy restore | |
CN104407938B (en) | A kind of a variety of granularity restoration methods after virtual machine image level backup | |
US9223607B2 (en) | System for replicating or migrating virtual machine operations log by throttling guest write iOS based on destination throughput | |
CN104685476B (en) | For restoring the method, system and product of virtual machine | |
KR101442370B1 (en) | Multiple cascaded backup process | |
US20180260128A1 (en) | Consistent replication of virtual computing instance data | |
KR101693683B1 (en) | Virtual database rewind | |
US8793452B1 (en) | Method of guaranteeing replication of data written by a mainframe to a virtual tape | |
CN103763383A (en) | Integrated cloud storage system and storage method thereof | |
CN106062742A (en) | Systems and methods for improving snapshot performance | |
WO2016069030A1 (en) | Data restoration using allocation maps | |
US10922283B2 (en) | File synchronization | |
US9760449B2 (en) | Restoring a point-in-time copy | |
JP2017531892A (en) | Improved apparatus and method for performing a snapshot of a block level storage device | |
JP6070146B2 (en) | Information processing apparatus and backup method | |
US9760450B2 (en) | Restoring a clone point-in-time copy | |
CN109614268A (en) | A kind of restoration methods of cloud Backup Data, apparatus and system | |
CN106293535B (en) | NAS performance optimization method and device | |
CN109753381A (en) | Continuous data protection method based on object storage | |
CN104484354A (en) | Snapshot method for guaranteeing data consistency and storage equipment | |
TWI509426B (en) | System for achieving non-interruptive data reconstruction | |
KR101460452B1 (en) | Apparatus of generating snapshot image based on hibernation and method of the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |