CN106294018A - A kind of virtual machine restoration methods and device - Google Patents

A kind of virtual machine restoration methods and device Download PDF

Info

Publication number
CN106294018A
CN106294018A CN201610657790.XA CN201610657790A CN106294018A CN 106294018 A CN106294018 A CN 106294018A CN 201610657790 A CN201610657790 A CN 201610657790A CN 106294018 A CN106294018 A CN 106294018A
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.)
Granted
Application number
CN201610657790.XA
Other languages
Chinese (zh)
Other versions
CN106294018B (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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201610657790.XA priority Critical patent/CN106294018B/en
Publication of CN106294018A publication Critical patent/CN106294018A/en
Application granted granted Critical
Publication of CN106294018B publication Critical patent/CN106294018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, 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

Disclosure one virtual machine restoration methods, including: obtain the virtual machine recovery instruction that user sends;Recover instruction according to described virtual machine in the creation data storage device that user selects, set up the intermediate medium disk of virtual machine;Start described virtual machine based on described intermediate medium disk, and the multiple backup snapshots files in backup data store equipment are merged, obtain the backup for recovering virtual machine and merge file;By described backup merge file be copied in described creation data storage device, and will replicate after backup merge file merge with described intermediate medium disk.Virtual machine restoration methods improves virtual machine resume speed, greatly reduces recovery virtual machine duration.The application is also disclosed a kind of virtual machine recovery device.

Description

A kind of virtual machine restoration methods and device
Technical field
The present invention relates to field of computer technology, more particularly, it relates to a kind of virtual machine restoration methods, further relate to one Virtual machine recovery device.
Background technology
Along with the extensive application of Intel Virtualization Technology, virtual machine backup scenario and backup platform sending out also with virtual platform Exhibition is raised to a new height.In virtual machine recovery process, tradition recovery scheme is closed by backup server end snapshot And it is copied to the manufacturing side with disk full dose, and generally require and expend the long time, according to experiment, traditional scheme recovers 40G magnetic Dish is time-consumingly at 25-40 minute.Therefore, virtual machine of the prior art is long for recovery time.
Therefore, how shortening virtual machine recovery time is those skilled in the art's urgency technical issues that need to address.
Summary of the invention
For solving above-mentioned technical problem, the present invention provides a kind of virtual machine restoration methods, it is possible to effectively shorten virtual machine extensive The multiple time.
For achieving the above object, the present invention provides following technical scheme:
A kind of virtual machine restoration methods, including:
Obtain the virtual machine recovery instruction that user sends;
Recover instruction according to described virtual machine in the creation data storage device that user selects, set up the centre of virtual machine Media disks;
Described virtual machine is started based on described intermediate medium disk, and by fast for the multiple backups in backup data store equipment Merge according to file, obtain the backup for recovering virtual machine and merge file;
By described backup merge file be copied in described creation data storage device, and will replicate after backup merge literary composition Part merges with described intermediate medium disk.
Preferably, in above-mentioned virtual machine restoration methods, described will replicate after backup merge file with described in the middle of be situated between Before matter disk merges, also include:
The read-write performing described intermediate medium disk redirects so that backup after described duplication merge file with described in Between media disks association.
Preferably, in above-mentioned virtual machine restoration methods, described in obtain backup and merge after file, also include:
Set up management net tunnel, described backup is merged file by described management net tunnel thermophoresis to described production number According in storage device.
Present invention also offers a kind of virtual machine recovery device, including:
Recovering order acquisition module, the virtual machine sent for obtaining user recovers instruction;
Module set up by disk, for recovering instruction in the creation data storage device that user selects according to described virtual machine Set up the intermediate medium disk of virtual machine;
Migrate and control service module, for the multiple backup snapshots files in backup data store equipment are merged, Obtain the backup for recovering virtual machine and merge file;
Recovery management service module, is copied in described creation data storage device for described backup is merged file, And the backup after replicating merges file and merges with described intermediate medium disk.
Preferably, in above-mentioned virtual machine recovery device, the described control service module that migrates is additionally operable to perform described centre The read-write of media disks redirects so that the backup after described duplication merges file and associates with described intermediate medium disk.
From technique scheme it can be seen that a kind of virtual machine restoration methods provided by the present invention, including:
Obtain the virtual machine recovery instruction that user sends;The production number that instruction selects is recovered user according to described virtual machine According to the intermediate medium disk setting up virtual machine in storage device;Described virtual machine is started based on described intermediate medium disk, and will Multiple backup snapshots files in backup data store equipment merge, and obtain backup and merge file;Described backup is merged File is copied in described creation data storage device, and the backup after replicating merges file and described intermediate medium disk and closes And.
The present invention is by setting up intermediate medium disk in creation data storage device, it is possible to virtual machine operates in this magnetic On dish, intermediate medium disk is also not take up being provided with the host resource of virtual machine, after starting virtual machine, is deposited by Backup Data Multiple backup snapshots Piece file mergences in storage equipment, obtain backup and merge file, described backup is merged file and is copied to described In creation data storage device, and will replicate after backup merge file merged virtual machine with described intermediate medium disk Recover, realize digital independent owing to intermediate medium disk and backup merge to set up to be flexible coupling between file, and create intermediate medium Disk only needs 1-2 time second, can start virtual machine, this improves virtual machine resume speed, significantly drop after creating successfully Low recovery virtual machine duration.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to according to The accompanying drawing provided obtains other accompanying drawing.
A kind of virtual machine restoration methods schematic diagram that Fig. 1 provides for the embodiment of the present invention;
A kind of virtual machine recovery device schematic diagram that Fig. 2 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise Embodiment, broadly falls into the scope of protection of the invention.
Refer to a kind of virtual machine restoration methods schematic diagram that Fig. 1, Fig. 1 provide for the embodiment of the present invention;
In a kind of detailed description of the invention, it is provided that a kind of virtual machine restoration methods, including:
Step S1: obtain the virtual machine recovery instruction that user sends.
Can obtain the virtual machine recovery instruction that user sends, it can be that current virtual machine recovers instruction that virtual machine recovers instruction Recover instruction with new virtual machine, or single disk of virtual machine recovers to instruct the many disks with virtual machine and recovers instruction, user When sending virtual machine recovery instruction, the maximum quantity of the virtual machine controlling recovery arranges threshold value less than system.Intermediate medium magnetic The amount of capacity of dish determines based on snapshot or bitmap snapshot data.
Step S2: recover instruction according to described virtual machine and set up virtual machine in the creation data storage device that user selects Intermediate medium disk;
The creation data storage device of target selected according to user, sets up intermediate medium disk, and controls virtual machine and open Move on intermediate medium disk, send to backup data store and merge Backup Data request.
Step S3: start described virtual machine based on described intermediate medium disk, and by many in backup data store equipment Individual backup snapshots file merges, and obtains the backup for recovering virtual machine and merges file;
After receiving merging Backup Data request, merge multiple backup snapshots file to migrating preparation catalogue, after having merged Set up management plane migrating channels, and replicate the backup file after merging to creation data storage device specified path.
Step S4: by described backup merge file be copied in described creation data storage device, and will replicate after standby Part merges file and merges with described intermediate medium disk.
Copy backup merges file to after creation data storage device specified path, by virtual machine IO suspension, sends out afterwards Rise redirect intermediate medium disk read-write source file action, perform intermediate medium read-write source file amendment, successfully modified after amendment After success first by virtual machine IO solve hang, then by intermediate medium disk with merge after backup Piece file mergence, recovery process is complete Become.Merging for the first time is to incorporate all backup snapshots files in backup storage, does not comprise intermediate medium disk, whole extensive During Fu, virtual machine is running status, the data that virtual machine produces in this process, records at intermediate medium disk, because of This, so after completing backup and merging file migration, only operating in the effect on one piece of new disk to reach virtual machine Really, need to delete the intermediate medium disk temporarily creating out, the most namely intermediate medium disk and its data are merged The backup entering to migrate to creation data storage device merges in file.
The present invention is by setting up intermediate medium disk in creation data storage device, it is possible to virtual machine operates in this magnetic On dish, intermediate medium disk is also not take up being provided with the host resource of virtual machine, after starting virtual machine, is deposited by Backup Data Multiple backup snapshots Piece file mergences in storage equipment, obtain backup and merge file, described backup is merged file and is copied to described In creation data storage device, and will replicate after backup merge file merged virtual machine with described intermediate medium disk Recover, realize digital independent owing to intermediate medium disk and backup merge to set up to be flexible coupling between file, and create intermediate medium Disk only needs 1-2 time second, can start virtual machine, this improves virtual machine resume speed, significantly drop after creating successfully Low recovery virtual machine duration.
Based on above-mentioned any technical scheme, described will replicate after backup merge file and merge with described intermediate medium disk Before, also include:
The read-write performing described intermediate medium disk redirects so that backup after described duplication merge file with described in Between media disks association.
Wherein, the detailed process of the read-write redirection performing intermediate medium disk is, by intermediate medium disk BackingFile points to a new file, revises the backup after described duplication and merges father's snapshot document that file relies on originally, Amendment his father's snapshot document is intermediate medium disk so that the backup after described duplication merges file and described intermediate medium disk Association.
Based on above-mentioned any technical scheme, in above-mentioned virtual machine restoration methods, described in obtain backup and merge after file, Also include:
Set up management net tunnel, described backup is merged file by described management net tunnel thermophoresis to described production number According in storage device.
Wherein, management net tunnel is set up, it is possible to effectively the migration thermophoresis of backup snapshots file chain set to data storage In Bei, accelerate migration velocity.
As in figure 2 it is shown, a kind of virtual machine recovery device schematic diagram that Fig. 2 provides for the embodiment of the present invention.
In another kind of specific embodiment, additionally provide a kind of virtual machine recovery device, including:
Recovering order acquisition module 01, the virtual machine sent for obtaining user recovers instruction;
Module 02 set up by disk, for recovering, according to described virtual machine, the creation data storage device that instruction selects user The middle intermediate medium disk setting up virtual machine;
Migrate and control service module 03, for the multiple backup snapshots files in backup data store equipment are closed And, obtain the backup for recovering virtual machine and merge file;
Recovery management service module 04, is copied to described creation data storage device for described backup is merged file In, and will replicate after backup merge file merge with described intermediate medium disk.
Further, in above-mentioned virtual machine recovery device, the described control service module 03 that migrates is additionally operable to described in execution The read-write of intermediate medium disk redirects so that the backup after described duplication merges file and associates with described intermediate medium disk.
In this specification, each embodiment uses the mode gone forward one by one to describe, and what each embodiment stressed is and other The difference of embodiment, between each embodiment, identical similar portion sees mutually.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention. Multiple amendment to these embodiments will be apparent from for those skilled in the art, as defined herein General Principle can realize without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention It is not intended to be limited to the embodiments shown herein, and is to fit to and principles disclosed herein and features of novelty phase one The widest scope caused.

Claims (5)

1. a virtual machine restoration methods, it is characterised in that including:
Obtain the virtual machine recovery instruction that user sends;
Recover instruction according to described virtual machine in the creation data storage device that user selects, set up the intermediate medium of virtual machine Disk;
Described virtual machine is started based on described intermediate medium disk, and by the multiple backup snapshots literary composition in backup data store equipment Part merges, and obtains the backup for recovering virtual machine and merges file;
By described backup merge file be copied in described creation data storage device, and will replicate after backup merge file with Described intermediate medium disk merges.
2. virtual machine restoration methods as claimed in claim 1, it is characterised in that described will replicate after backup merge file with Before described intermediate medium disk merges, also include:
The read-write performing described intermediate medium disk redirects so that the backup after described duplication merges file and is situated between in the middle of described Matter disk associates.
3. virtual machine restoration methods as claimed in claim 2, it is characterised in that described in obtain the backup for recovering virtual machine After merging file, also include:
Set up management net tunnel, described backup is merged file and is deposited by described management net tunnel thermophoresis to described creation data In storage equipment.
4. a virtual machine recovery device, it is characterised in that including:
Recovering order acquisition module, the virtual machine sent for obtaining user recovers instruction;
Module set up by disk, sets up in the creation data storage device that user selects for recovering instruction according to described virtual machine The intermediate medium disk of virtual machine;
Migrate and control service module, for the multiple backup snapshots files in backup data store equipment are merged, obtain File is merged for recovering the backup of virtual machine;
Recovery management service module, is copied in described creation data storage device for described backup is merged file, and will Backup after duplication merges file and merges with described intermediate medium disk.
5. virtual machine recovery device as claimed in claim 4, it is characterised in that described migration controls service module and is additionally operable to hold The read-write of the described intermediate medium disk of row redirects so that the backup after described duplication merges file and described intermediate medium disk Association.
CN201610657790.XA 2016-08-11 2016-08-11 A kind of virtual machine restoration methods and device Active CN106294018B (en)

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 true CN106294018A (en) 2017-01-04
CN106294018B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122267A (en) * 2017-05-31 2017-09-01 广州鼎甲计算机科技有限公司 A kind of Windows operating system carry restoration methods
CN109032762A (en) * 2018-08-09 2018-12-18 腾讯科技(深圳)有限公司 Virtual machine retrogressive method and relevant device
CN109684028A (en) * 2017-10-18 2019-04-26 中兴通讯股份有限公司 A kind of method, device and equipment that operating system is separated with user data
CN109726041A (en) * 2017-10-27 2019-05-07 伊姆西Ip控股有限责任公司 Restore method, equipment and the computer-readable medium of the file in magnetic disk of virtual machine
CN109726039A (en) * 2017-10-27 2019-05-07 伊姆西Ip控股有限责任公司 Method and apparatus for managing virtual machine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130019240A1 (en) * 2011-07-11 2013-01-17 Michael Tsirkin Mechanism for Virtual Machine (VM)-Based Disk Rescue
CN103902407A (en) * 2012-12-31 2014-07-02 华为技术有限公司 Virtual machine recovery method and server
US20140337594A1 (en) * 2009-08-03 2014-11-13 Quantum Corporation Systems and methods for collapsing a derivative version of a primary storage volume
CN105022656A (en) * 2014-04-21 2015-11-04 中国电信股份有限公司 Management method and device of virtual machine snapshot

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140337594A1 (en) * 2009-08-03 2014-11-13 Quantum Corporation Systems and methods for collapsing a derivative version of a primary storage volume
US20130019240A1 (en) * 2011-07-11 2013-01-17 Michael Tsirkin Mechanism for Virtual Machine (VM)-Based Disk Rescue
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)

* Cited by examiner, † Cited by third party
Title
服务器之家: "VirtualBox虚拟机数据恢复的两种方法", 《服务器之家》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122267A (en) * 2017-05-31 2017-09-01 广州鼎甲计算机科技有限公司 A kind of Windows operating system carry restoration methods
CN107122267B (en) * 2017-05-31 2021-03-30 广州鼎甲计算机科技有限公司 Windows operating system mount recovery method
CN109684028A (en) * 2017-10-18 2019-04-26 中兴通讯股份有限公司 A kind of method, device and equipment that operating system is separated with user data
CN109684028B (en) * 2017-10-18 2024-04-12 中兴通讯股份有限公司 Method, device and equipment for separating operating system from user data
CN109726041A (en) * 2017-10-27 2019-05-07 伊姆西Ip控股有限责任公司 Restore method, equipment and the computer-readable medium of the file in magnetic disk of virtual machine
CN109726039A (en) * 2017-10-27 2019-05-07 伊姆西Ip控股有限责任公司 Method and apparatus for managing virtual machine
CN109726041B (en) * 2017-10-27 2023-09-08 伊姆西Ip控股有限责任公司 Method, apparatus and computer readable medium for restoring files in a virtual machine disk
CN109032762A (en) * 2018-08-09 2018-12-18 腾讯科技(深圳)有限公司 Virtual machine retrogressive method and relevant device
CN109032762B (en) * 2018-08-09 2022-01-25 腾讯科技(深圳)有限公司 Virtual machine backtracking method and related equipment

Also Published As

Publication number Publication date
CN106294018B (en) 2019-11-01

Similar Documents

Publication Publication Date Title
CN106294018A (en) A kind of virtual machine restoration methods and device
US9092378B2 (en) Restoring computing environments, such as autorecovery of file systems at certain points in time
US9400611B1 (en) Data migration in cluster environment using host copy and changed block tracking
CN104166606B (en) File backup method and main storage device
KR101442370B1 (en) Multiple cascaded backup process
KR101476018B1 (en) Buffer disk in flashcopy cascade
CN100570575C (en) A kind of method of data backup and device
CN106874066B (en) Virtual machine migration method and device and electronic equipment
CN104375877A (en) Virtual machine online snapshot generating and deleting method
CN105022656B (en) virtual machine snapshot management method and device
US7996611B2 (en) Backup data management system and backup data management method
US8527720B2 (en) Methods of capturing and naming dynamic storage tiering configurations to support data pre-staging
US20150172120A1 (en) Managing non-conforming entities in information management systems, including enforcing conformance with a model entity
JP5984151B2 (en) Data recovery method, program, and data processing system
US20130185719A1 (en) Throttling guest write ios based on destination throughput
CN101945131B (en) Storage virtualization-based data migration method
US20140059003A1 (en) Automated migration to a new target volume via merged bitmaps to maintain consistency
JP2018518734A (en) Resynchronization to the first storage system after failover to a second storage system that mirrors the first storage system
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
CN103885719B (en) Device, system and method for online storage migration of virtual machine system
CN109388347A (en) A kind of data migration method and device
JP6070146B2 (en) Information processing apparatus and backup method
CN103842954A (en) Data processing method, device and system in storage system
CN109614268A (en) A kind of restoration methods of cloud Backup Data, apparatus and system

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