CN109298977A - A kind of virtual machine business quick recovery method, system, device and storage medium - Google Patents
A kind of virtual machine business quick recovery method, system, device and storage medium Download PDFInfo
- Publication number
- CN109298977A CN109298977A CN201811223522.2A CN201811223522A CN109298977A CN 109298977 A CN109298977 A CN 109298977A CN 201811223522 A CN201811223522 A CN 201811223522A CN 109298977 A CN109298977 A CN 109298977A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- data
- backup
- business
- replacement
- 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.)
- Pending
Links
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/1458—Management of the backup or restore process
-
- 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/1479—Generic software techniques for error detection or fault masking
- G06F11/1482—Generic software techniques for error detection or fault masking by means of middleware or OS functionality
- G06F11/1484—Generic software techniques for error detection or fault masking by means of middleware or OS functionality involving virtual machines
-
- 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/45583—Memory management, e.g. access or allocation
-
- 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/45591—Monitoring or debugging support
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/815—Virtual
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
This application discloses a kind of virtual machine business quick recovery methods, for the considerations of simplifying as far as possible, Backup Data generally can not initial data of the image position in virtual machine image it is the same by extraneous normal access, the related functional components for carrying out data backup are only provided come the progress data transfer use when initial data can not be accessed, the application is by adding data communication component for Backup Data, so that it is can be used as an accessed object and normally receives read request to handle the data that originally there is, and the data being newly written can be write direct in the virtual machine image of replacement virtual machine, due to being completed without waiting for data transfer, and the addition of communication part is not related to data volume, it is time-consuming extremely short, business recovery time-consuming can be substantially reduced, user experience is more preferably, satisfaction is higher.The application further simultaneously discloses a kind of virtual machine business quick recovery system, device and computer readable storage medium, has above-mentioned beneficial effect.
Description
Technical field
This application involves malfunctioning nodes to restore field, in particular to a kind of virtual machine business quick recovery method, system, dress
It sets and computer readable storage medium.
Background technique
In the current information age, the convenient service for supporting people to complete task in every particular is all mentioned by its product or service provider
For the availability of these services or business is also ensured that, according to the magnitude of audient, provider can be selectable by provider
The server cluster of single server or plural number is selected to provide business and ensure the high availability of business.
It can also be using virtually in the case where a physical machine performance is more than needed for the availability for promoting server apparatus
One physical machine is virtually that more virtual machines are made by the way that different virtual hardware parameters is arranged for every virtual machine by change technology
A variety of different business can be carried by obtaining a physical machine, be able to be obviously improved the utilization rate of equipment performance, by plural physical mechanism
In the business cluster built, there can be more virtual machines.
When carrying a certain business or aiming at a certain fixed area user and provide the virtual machine of business and go offline because of failure, can make
Operational using interrupting herein at all users in the business or the region, in this case, service provider is in order to fill
Code insurance has customer flow and usage experience, and most worried is how to restore the business, and traditional mode is that event occur by original
The Backup Data of the virtual machine of barrier is transferred in the virtual machine image of another available virtual machine by way of copy, to complete
After data transfer, which provides the business for fault virtual machine is substituted again.
If the data volume in Backup Data is larger, it will lead to entire data transfer process time-consuming and extremely grow, cause to replace by the way
Process of the virtual machine based on the data of this magnitude in startup self-detection also accordingly extends, this also means that user will appear for a long time
Service terminal, this will be that most of user is insufferable, while can also deepen distrust of the user to the service provider
With suspection degree.
Therefore, how to overcome items technological deficiency present in existing business reset mode, provide no matter one kind backs up number
According to middle data volume how much can the virtual machine business quick recovery method of fast quick-recovery business be that those skilled in the art urgently solve
Certainly the problem of.
Summary of the invention
The purpose of the application is to provide a kind of virtual machine business quick recovery method, standby for the considerations of simplifying as far as possible
Part data generally can not initial data of the image position in virtual machine image it is the same by extraneous normal access, only provide carry out data
The related functional components of backup use to carry out data transfer when initial data can not be accessed, and it is backup number that the application, which passes through,
According to addition data communication component, so that it is can be used as an accessed object and normally receive read request come to the number that originally there is
It can be write direct according to the data for being handled, and being newly written in the virtual machine image of replacement virtual machine, due to without waiting for data
Transfer is completed, and the addition of communication part is not related to data volume, time-consuming extremely short, can be substantially reduced business recovery time-consuming, be used
Family usage experience more preferably, satisfaction it is higher.
The another object of the application is the provision of a kind of virtual machine business quick recovery system, device and computer-readable
Storage medium.
To achieve the above object, the application provides a kind of virtual machine business quick recovery method, comprising:
Increase data communication component for the Backup Data of fault virtual machine, obtaining can backup communication data;
The data access request of the fault virtual machine is received, and determines the type of the data access request;
When the data access request is write request, by the corresponding new data write-in replacement virtual machine of the write request
Virtual machine image;
When the data access request is read request, can be chosen and the read request pair in backup communication data from described
The target data answered, and return to the target data.
Optionally, the virtual machine business quick recovery method further include:
The Backup Data is synchronized in the virtual machine image of the replacement virtual machine with pre-determined synchronization speed.
Optionally, the virtual machine business quick recovery method further include:
After in the virtual machine image of the Backup Data replacement virtual machine, returned by preset path
It returns replacement virtual machine and synchronously completes signal;
Signal is synchronously completed according to the replacement virtual machine, and the transmitting path of the read request is revised as the virtual machine
Mirror image.
Optionally, the virtual machine business quick recovery method further include:
The backup blank virtual machine of preset quantity is created, and controls the backup blank virtual machine and is in low-power consumption standby shape
State obtains backup virtual machine pond;
When former business virtual machine failure, optional backup blank virtual machine, is obtained from the backup virtual machine pond
The replacement virtual machine;
It establishes and records the fallback relationship between the former business virtual machine and the replacement virtual machine.
To achieve the above object, present invention also provides a kind of virtual machine business quick recovery systems, comprising:
Can communication processing unit, for for fault virtual machine Backup Data increase data communication component, obtain to communicate
Backup Data;
Request receives and type determining units, for receiving the data access request of the fault virtual machine, and determines institute
State the type of data access request;
Write request processing unit is used for when the data access request is write request, and the write request is corresponding new
The virtual machine image of data write-in replacement virtual machine;
Read request processing unit, for when the data access request be read request when, from it is described can backup communication data
It is middle to choose target data corresponding with the read request, and return to the target data.
Optionally, the virtual machine business quick recovery system further include:
Data synchronisation unit, for the Backup Data to be synchronized to the void of the replacement virtual machine with pre-determined synchronization speed
In quasi- machine mirror image.
Optionally, the virtual machine business quick recovery system further include:
Signal transmitting unit is synchronously completed, for replacing the virtual of virtual machine when the Backup Data is fully synchronized to described
After in machine mirror image, replacement virtual machine is returned to by preset path and synchronously completes signal;
Read request transmitting path modifies unit, for synchronously completing signal for the read request according to the replacement virtual machine
Transmitting path be revised as the virtual machine image.
Optionally, the virtual machine business quick recovery system further include:
Backup virtual machine creating unit, for creating the backup blank virtual machine of preset quantity, and it is empty to control the backup
White virtual machine is in low-power consumption standby state, obtains backup virtual machine pond;
Virtual machine selection unit is replaced, is used for when former business virtual machine failure, from the backup virtual machine pond optionally
Backup blank virtual machine obtains the replacement virtual machine;
Fallback relationship is established and recording unit, for establishing and recording the former business virtual machine and the replacement virtual machine
Between fallback relationship.
To achieve the above object, present invention also provides a kind of virtual machine business Quick recovery devices, comprising:
Memory, for storing computer program;
Processor realizes that the virtual machine business as described in above content is quickly extensive when for executing the computer program
The step of compound method.
To achieve the above object, described computer-readable to deposit present invention also provides a kind of computer readable storage medium
It is stored with computer program on storage media, the void as described in above content is realized when the computer program is executed by processor
The step of quasi- machine business quick recovery method.
Obviously, a kind of virtual machine business quick recovery method provided herein, it is standby for the considerations of simplifying as far as possible
Part data generally can not initial data of the image position in virtual machine image it is the same by extraneous normal access, only provide carry out data
The related functional components of backup use to carry out data transfer when initial data can not be accessed, and it is backup number that the application, which passes through,
According to addition data communication component, so that it is can be used as an accessed object and normally receive read request come to the number that originally there is
It can be write direct according to the data for being handled, and being newly written in the virtual machine image of replacement virtual machine, due to without waiting for data
Transfer is completed, and the addition of communication part is not related to data volume, time-consuming extremely short, can be substantially reduced business recovery time-consuming, be used
Family usage experience more preferably, satisfaction it is higher.The application additionally provide simultaneously a kind of virtual machine business quick recovery system, device and
Computer readable storage medium has above-mentioned beneficial effect, and details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, 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 application 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 flow chart of virtual machine business quick recovery method provided by the embodiments of the present application;
Fig. 2 is the flow chart of another virtual machine business quick recovery method provided by the embodiments of the present application;
Fig. 3 is a kind of schematic illustration of virtual machine business quick recovery method provided by the embodiments of the present application;
Fig. 4 is a kind of flow chart for creating virtual machine provided by the embodiments of the present application;
Fig. 5 is the flow chart that a kind of Hypervisor provided by the embodiments of the present application handles read request;
Fig. 6 is a kind of structural block diagram of virtual machine business quick recovery system provided by the embodiments of the present application.
Specific embodiment
The core of the application is to provide a kind of virtual machine business quick recovery method, system, device and computer-readable deposits
Storage media, for the considerations of simplifying as far as possible, Backup Data generally can not initial data of the image position in virtual machine image it is the same
By extraneous normal access, the related functional components of progress data backup are only provided when progress can not be accessed in initial data
Data transfer uses, and the application makes it can be used as an accessed object by adding data communication component for Backup Data
Replacement virtual machine can be write direct come the data that the data that originally there is are handled, and are newly written by normally receiving read request
Virtual machine image in, due to completing without waiting for data transfer, and the addition of communication part is not related to data volume, time-consuming
It is extremely short, can substantially reduce business recovery time-consuming, user experience more preferably, satisfaction it is higher.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
All other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Embodiment one
Below in conjunction with Fig. 1, Fig. 1 is a kind of process of virtual machine business quick recovery method provided by the embodiments of the present application
Figure, specifically includes the following steps:
S101: increase data communication component for the Backup Data of fault virtual machine, obtaining can backup communication data;
This step is intended to so that the Backup Data that originally may do not have accessed ability has as where initial data
The same ability of virtual machine image, can access of the backup communication data realization to data with existing in order to be directly based upon.
Backup Data inherently causes initial data that can not access a kind of solution that phenomenon provides because abnormal in order to prevent
Scheme, it is generally the case that the storage position of Backup Data is different from the storage position of initial data, especially by more physics
In the cluster that machine, multiple hard disks are constituted, Backup Data can be respectively present in the hard disk different with two from initial data, to prevent
The Backup Data occurred when causing entire hard disk to damage because of failure also not available situation.
Meanwhile for Reduced Design, usual Backup Data is only the mirror image of initial data, and is not had as initial data one
The practical external request of sample and the ability for carrying out related read-write operation at most only have data synchronization, increment synchronization, consistency
Differentiate etc. for realizing data backup the most basic function, when former virtual machine goes offline because of failure, the normal use of Backup Data
Method is such just as described in background technology part: finding a replacement virtual machine, Backup Data is usually copied
Mode is transferred in the virtual machine image of replacement virtual machine, then the prior fault that can be carried after the self-check program by being routinely switched on
The business of virtual machine, under such mode, with the increase of data volume in Backup Data, the point from business fault point to business recovery
Time span (RTO) greatly, and the usage experience for causing user poor.
It is different from the prior art, this step is intended to perform some processing Backup Data, makes it without that must pass through copy
It is just played a role into the virtual machine image of replacement virtual machine, i.e., by carrying out some component Configurations or adjustment, makes it can
Normally to accept request from the external access as virtual machine image, due under different actual scenes to the function of Backup Data
It can define and be not quite similar, it is possible that can not determine which specifically need handle, abstract processing can carried out according to the actual situation
(being abstracted as a kind of empty machine mirror image that can be accessed) increases and is flexibly selected in communication part and other aid in treatment modes
It selects, herein and is not specifically limited, it is therefore intended that so that Backup Data after treatment can be normal as virtual machine image
Request from the external access is accepted, so that the business that fault virtual machine is carried is able to fast quick-recovery.
S102: the data access request of fault virtual machine is received, and determines the type of data access request;
On the basis of S101, this step is intended to receive the data access request that should be handled by fault virtual machine, goes forward side by side one
Step determines the type of each data access request, in order to take different modes to realize according to the difference of data access request type
Data access purpose, specifically, data access request can be divided into read request and write request two major classes, wherein the main base of read request
The operation such as inquired, indexed in data with existing, it will usually require return target data, and write request is generally included to having number
According to modification, new data increase, exactly because the demand of this two classes data access request to data with existing is different, it is subsequent will
Be respectively adopted replacement virtual machine virtual machine image and can backup communication data realize two different demands respectively, with fast
Speed, the complete business restoring fault virtual machine and being carried.
S103: when data access request is write request, by the void of the corresponding new data write-in replacement virtual machine of write request
Quasi- machine mirror image;
This step is established on the basis of the type of data access request is specially write request in S102, it is intended to will be write with this
It requests in the corresponding virtual machine image for writing data write-in replacement virtual machine, wherein replacement virtual machine is for replacing failure void
One available virtual machine of quasi- machine.
S104: when data access request is read request, from mesh corresponding with read request can be chosen in backup communication data
Data are marked, and return to target data.
This step is established on the basis of the type of the data access request of S102 is specially read request, it is intended to from can communicate
Target data corresponding with the read request, and the target data that the backtracking read request is desired are chosen in Backup Data.
It should be noted that can be seen that S103 from Fig. 1 and to the description of S103, S104 and S104 be based on S104 have
Two parallel branch that body provides, although between the two and sequencing is not present herein using the statement of S103 and S104.
Also it should be clear that, although have passed through above-mentioned processing, enable the data with existing based on backup data store is used
It in normal processing of the realization to read request, but is not the normal use method of replacement virtual machine after all, and due to many differences
In the presence of so that aforesaid way is only applicable to the fast quick-recovery of business in a short time, in order to enable complete data access request can base
It is realized in the virtual machine image of replacement virtual machine, it can also be on backstage in a manner of slowly synchronizing, by what is stored in Backup Data
Data are slowly synchronized in virtual machine image, can really realize that the virtual machine replacement of same business is made after completing data and synchronizing
Industry.
Wherein, the synchronizing speed of data can according to the actual situation lower processing read request to can backup communication data influence journey
The factors flexible setting such as degree, available bandwidth, herein and is not specifically limited.
Further, a notification signal can also be fed back after data synchronously complete, to receive the notification signal
Afterwards, disconnect and can connection between backup communication data, and withdraw it is former transfer to can backup communication data processing read request, it is unified by
The synchronous replacement virtual machine image of data is completed to be handled.
It, can be in addition, in order to further speed up the service resumption speed in the virtual machine catastrophic failure of bearer service
It, can base when the better backup available virtual machine for possessing blank virtual machine image is pre-created, and occurring needing the case where replacing
In certain selection rule choose corresponding data available virtual machine as replacement virtual machine use, in such cases, due to unlike
Copy has the virtual machine image of former Backup Data, and the process of startup self-detection can also be greatly speeded up.Wherein, selection rule include but
Be not limited to: rule, priority-based selection rule, by number selection rule etc. nearby are also not specifically limited herein, can
Flexible choice according to the actual situation.
Based on the above-mentioned technical proposal, a kind of virtual machine business quick recovery method provided by the embodiments of the present application, for the greatest extent
The considerations of may simplifying, Backup Data generally can not initial data of the image position in virtual machine image it is the same by extraneous positive frequentation
It asks, only provide the related functional components of progress data backup makes to carry out data transfer when initial data can not be accessed
With the application makes it can be used as an accessed object and normally receive reading by adding data communication component for Backup Data
The data for requesting that the data that originally there is are handled, and are newly written can write direct the virtual machine mirror of replacement virtual machine
As in, due to completing without waiting for data transfer, and the addition of communication part is not related to data volume, time-consuming extremely short, can show
Write that reduce business recovery time-consuming, user experience more preferably, satisfaction it is higher.
Embodiment two
Below in conjunction with Fig. 2, Fig. 2 is the process of another virtual machine business quick recovery method provided by the embodiments of the present application
Figure, on the basis of example 1, virtual machine can only be passed through to the present embodiment by additionally providing one kind by S205, S206 and S207
The method that mirror image completes the processing of all types data access request, in the applicable finishing service in a short time that embodiment one provides
It, must be so that business persistence, specific implementation step be as follows on the basis of the method for fast quick-recovery:
S201: increase data communication component for the Backup Data of fault virtual machine, obtaining can backup communication data;
S202: the data access request of fault virtual machine is received, and determines the type of data access request;
S203: when data access request is write request, by the void of the corresponding new data write-in replacement virtual machine of write request
Quasi- machine mirror image;
S204: when data access request is read request, from mesh corresponding with read request can be chosen in backup communication data
Data are marked, and return to target data;
S205: Backup Data is synchronized in the virtual machine image of replacement virtual machine with pre-determined synchronization speed;
S206: it after in the fully synchronized virtual machine image to replacement virtual machine of Backup Data, is returned by preset path
Replacement virtual machine synchronously completes signal;
S207: signal is synchronously completed according to replacement virtual machine, the transmitting path of read request is revised as virtual machine image.
The present embodiment after receiving in the fully synchronized virtual machine image to replacement virtual machine of Backup Data by returning
Replacement virtual machine synchronously complete signal, the transmitting path of read request is revised as virtual machine image, i.e., is needed from original by depositing
Contain data with existing can backup communication data realize, all types of data access can be completed by virtual machine image at this time and are asked
The processing asked.
In another embodiment of application, additionally provide that a kind of how to create replaces backup virtual machine, and in above-mentioned reality
The method to play a role in each step of example offer is applied, specific implementation step includes:
The backup blank virtual machine of preset quantity is created, and controls backup blank virtual machine and is in low-power consumption standby state,
Obtain backup virtual machine pond;When former business virtual machine failure, the optional backup blank virtual machine from backup virtual machine pond,
Obtain replacement virtual machine;It establishes and records former business virtual machine and replace the fallback relationship between virtual machine.
Wherein, record fallback relationship is the handover for clear business, in order to subsequent tracing.
Embodiment three
Fig. 3 is referred to, the present embodiment combines specific virtual machine creating process and specifically for realizing business recovery
Tool gives a kind of more concrete implementation mode, and Fig. 3 is the schematic illustration of implementation provided in this embodiment:
It is explained first to by the term of design below:
Empty mirror image: without the virtual disk mirror image of any data;
Virtual machine image: it is established in virtual machine environment owned for storing the virtual magnetic of data after virtual machine
Disk mirroring;
Copy mirror image: agent data service herein is externally presented after being abstracted to Backup Data and virtual machine image
The duplicate virtual disk mirror image of size is asked so that Backup Data can handle data access as normal virtual machine image
It asks;
Hypervisor: virtual machine monitor, the virtualization for computer system.
Target Backup Data is externally abstracted the copy mirror image for being rendered as a virtual machine image, copy by agent data service
The size of mirror image and the size of virtual machine image are just the same, and all data of virtual machine all exist under the init state of recovery
In copy mirror image (i.e. Backup Data), actual virtual machine image is only the empty mirror image of not no data.Agent data clothes
Business process externally provides the ability of access copy mirror image by network, provides the reading copy image file uncorrected data of the network edition
Interface (parameter is mainly file offset address and data volume), and agent data service inside addresses and maps Backup Data
The process external world is not required to perceive.
There is the driver of an access virtual machine image in Hypervisor, pair is accessed by network by driver
The process of this mirror image be for Hypervisor it is transparent, Hypervisor be only only considered that its access be exactly a common void
Quasi- disk, then can walk network call rather than local when Block Device Driver layer initiates and reads the calling of copy image file data
File system call;Restore the process of Backup Data when Hypervisor is run by copying and continuing when Copy on write, reading
Data carry three kinds of means of task come realize shadow mirror image data (i.e. Backup Data) arrive virtual machine image carrying.
A kind of replacement also provided below creation method and method for reading data of virtual machine, respectively corresponds Fig. 4 and figure
5, wherein the creation method of replacement virtual machine is as shown in Figure 4, the specific steps are as follows:
1, the request for restoring to specify Backup Data is initiated to agent data service, agent data service can be by specified backup point
Relevant data abstraction becomes a copy mirror image;
2, virtual machine image of the empty mirror image as replacement virtual machine is created, the inside does not have any data;
3, Hypervisor establishes the mapping relations of copy mirror image and virtual machine image;
Under init state, the virtual machine image that step 2 creates is actually empty mirror image, so to establish the association of the two
Relationship, can thus be accessed the Backup Data in copy mirror image, and access process is shown in reading data process as shown in Figure 5.
4, power-on operation is executed, replacement is just behaved after having carried out conventional self-test operations with virtual machine.
It is as shown in Figure 5 as the method for reading data of executing subject using Hypervisor, the specific steps are as follows:
1, Hypervisor initiates data in magnetic disk read requests;
2, judge that target data whether in virtual machine image, if going to step 3 in virtual machine image, is otherwise gone to step
5;
3, existing target data in virtual machine image, directly reads;
4, the target data read is returned;
5, target data is not present in virtual machine image, illustrates target data in Backup Data, so from copy mirror image
Middle reading target data;
6, the target data read is written in virtual machine image, this operation completes target data from backup number
According to the carrying for arriving virtual machine image;
7, the target data read is returned.
A kind of method for persistently shifting the data with existing stored in Backup Data to virtual machine image, tool has been also provided below
Body is as follows:
1, the carrying for judging whether to have completed entire Backup Data, terminates process if being completed, otherwise jumps to
Step 2;
2, the target data not copied is selected, copy function is initiated, by target data copies to virtual machine image, circulation step
Rapid 2, until completing the copy function of all data.
Compared to traditional business restoration methods, the present embodiment by the operation of restored virtual machine establish Backup Data it
On, the access module to Backup Data is a reading mode, and virtual machine can only read required data from Backup Data, and newly
Data change is then written in the virtual machine image of virtual machine itself, and during virtual machine operation, will gradually back up number
According to copying in the actual mirror image of virtual machine, to be finally reached the purpose for restoring Backup Data.
Based on aforesaid operations, may make the RTO for restoring virtual machine very short, restore within 1 minute the operation of business virtual machine at
To be possible, and the time-consuming resumed operation will not increase as backup data quantity increases, and be conceptualized as disk in Backup Data
During mirror image, the organizational form and Store form of Backup Data be for Hypervisor it is transparent,
Details of the Hypervisor without perceiving backup, the two, which realizes, is clearly isolated, and maintainability and scalability are more preferably.
Because situation is complicated, it can not enumerate and be illustrated, those skilled in the art should be able to recognize according to the application
The basic skills principle combination actual conditions of offer may exist many examples, in the case where not paying enough creative works,
It should within the scope of protection of this application.
Fig. 6 is referred to below, and Fig. 6 is a kind of structure of virtual machine business quick recovery system provided by the embodiments of the present application
Block diagram, the system may include:
Can communication processing unit 100, for for fault virtual machine Backup Data increase data communication component, obtain to lead to
Interrogate Backup Data;
Request receives and type determining units 200, for receiving the data access request of fault virtual machine, and determines data
The type of access request;
Write request processing unit 300, for when data access request is write request, the corresponding new data of write request to be write
Enter to replace the virtual machine image of virtual machine;
Read request processing unit 400, for when data access request is read request, from can be chosen in backup communication data
Target data corresponding with read request, and return to target data.
Further, which can also include:
Data synchronisation unit, for Backup Data to be synchronized to the virtual machine image of replacement virtual machine with pre-determined synchronization speed
In;
Signal transmitting unit is synchronously completed, for when in the fully synchronized virtual machine image to replacement virtual machine of Backup Data
Afterwards, replacement virtual machine is returned to by preset path and synchronously completes signal;
Read request transmitting path modifies unit, for synchronously completing transmission road of the signal by read request according to replacement virtual machine
Diameter is revised as virtual machine image.
Further, which can also include:
Backup virtual machine creating unit, for creating the backup blank virtual machine of preset quantity, and it is empty to control backup blank
Quasi- machine is in low-power consumption standby state, obtains backup virtual machine pond;
Virtual machine selection unit is replaced, for optionally being backed up from backup virtual machine pond when former business virtual machine failure
Blank virtual machine obtains replacement virtual machine;
Fallback relationship is established and recording unit, for establishing and recording former business virtual machine and replace the replacement between virtual machine
Relationship.
Based on the above embodiment, present invention also provides a kind of virtual machine business Quick recovery device, which be can wrap
Include memory and processor, wherein have computer program in the memory, which calls the computer in the memory
When program, step provided by above-described embodiment may be implemented.Certainly, which can also include that various necessary networks connect
Mouth, power supply and other components etc..
Present invention also provides a kind of computer readable storage mediums, have computer program thereon, the computer program
Step provided by above-described embodiment may be implemented when being performed terminal or processor execution.The storage medium may include: U
Disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access
Memory, RAM), the various media that can store program code such as magnetic or disk.
Specific examples are used herein to illustrate the principle and implementation manner of the present application, and between each embodiment
For progressive relationship, each embodiment focuses on the differences from other embodiments, identical between each embodiment
Similar portion may refer to each other.For the device disclosed in the embodiment, reference can be made to corresponding method part illustration.The above reality
The explanation for applying example is merely used to help understand the present processes and its core concept.For the ordinary skill people of the art
Member for, under the premise of not departing from the application principle, can also to the application, some improvement and modification can also be carried out, these improve and
Modification is also fallen into the protection scope of the claim of this application.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also other elements including being not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or equipment for including element.
Claims (10)
1. a kind of virtual machine business quick recovery method characterized by comprising
Increase data communication component for the Backup Data of fault virtual machine, obtaining can backup communication data;
The data access request of the fault virtual machine is received, and determines the type of the data access request;
When the data access request is write request, by the virtual of the corresponding new data write-in replacement virtual machine of the write request
Machine mirror image;
When the data access request is read request, from it is described can choose in backup communication data it is corresponding with the read request
Target data, and return to the target data.
2. virtual machine business quick recovery method according to claim 1, which is characterized in that further include:
The Backup Data is synchronized in the virtual machine image of the replacement virtual machine with pre-determined synchronization speed.
3. virtual machine business quick recovery method according to claim 2, which is characterized in that further include:
After in the virtual machine image of the Backup Data replacement virtual machine, replaced by preset path return
It changes virtual machine and synchronously completes signal;
Signal is synchronously completed according to the replacement virtual machine, and the transmitting path of the read request is revised as the virtual machine image.
4. virtual machine business quick recovery method according to any one of claims 1 to 3, which is characterized in that further include:
The backup blank virtual machine of preset quantity is created, and controls the backup blank virtual machine and is in low-power consumption standby state,
Obtain backup virtual machine pond;
When former business virtual machine failure, the optional backup blank virtual machine from the backup virtual machine pond is obtained described
Replace virtual machine;
It establishes and records the fallback relationship between the former business virtual machine and the replacement virtual machine.
5. a kind of virtual machine business quick recovery system characterized by comprising
Can communication processing unit, for for fault virtual machine Backup Data increase data communication component, obtaining can backup communication
Data;
Request receives and type determining units, for receiving the data access request of the fault virtual machine, and determines the number
According to the type of access request;
Write request processing unit is used for when the data access request is write request, by the corresponding new data of the write request
The virtual machine image of write-in replacement virtual machine;
Read request processing unit, for that can be selected in backup communication data from described when the data access request is read request
Target data corresponding with the read request is taken, and returns to the target data.
6. virtual machine business quick recovery system according to claim 5, which is characterized in that further include:
Data synchronisation unit, for the Backup Data to be synchronized to the virtual machine of the replacement virtual machine with pre-determined synchronization speed
In mirror image.
7. virtual machine business quick recovery system according to claim 5, which is characterized in that further include:
Signal transmitting unit is synchronously completed, for the virtual machine mirror when the Backup Data replacement virtual machine
After as in, replacement virtual machine is returned to by preset path and synchronously completes signal;
Read request transmitting path modifies unit, for synchronously completing signal for the hair of the read request according to the replacement virtual machine
Path is sent to be revised as the virtual machine image.
8. according to the described in any item virtual machine business quick recovery systems of claim 5 to 7, which is characterized in that further include:
Backup virtual machine creating unit, for creating the backup blank virtual machine of preset quantity, and it is empty to control the backup blank
Quasi- machine is in low-power consumption standby state, obtains backup virtual machine pond;
Virtual machine selection unit is replaced, for optionally being backed up from the backup virtual machine pond when former business virtual machine failure
Blank virtual machine obtains the replacement virtual machine;
Fallback relationship is established and recording unit, for establishing and recording between the former business virtual machine and the replacement virtual machine
Fallback relationship.
9. a kind of virtual machine business Quick recovery device characterized by comprising
Memory, for storing computer program;
Processor is realized when for executing the computer program as the described in any item virtual machine business of Claims 1-4 are fast
The step of quick-recovery method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program is realized when the computer program is executed by processor as the described in any item virtual machine business of Claims 1-4 are quick
The step of restoration methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811223522.2A CN109298977A (en) | 2018-10-19 | 2018-10-19 | A kind of virtual machine business quick recovery method, system, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811223522.2A CN109298977A (en) | 2018-10-19 | 2018-10-19 | A kind of virtual machine business quick recovery method, system, device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109298977A true CN109298977A (en) | 2019-02-01 |
Family
ID=65157384
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811223522.2A Pending CN109298977A (en) | 2018-10-19 | 2018-10-19 | A kind of virtual machine business quick recovery method, system, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109298977A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112395050A (en) * | 2020-11-30 | 2021-02-23 | 深信服科技股份有限公司 | Virtual machine backup method and device, electronic equipment and readable storage medium |
WO2023151547A1 (en) * | 2022-02-14 | 2023-08-17 | 华为技术有限公司 | Data processing system and method, and device |
CN117370079A (en) * | 2023-10-30 | 2024-01-09 | 广州鼎甲计算机科技有限公司 | Data recovery method, apparatus, device, storage medium and computer program product |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102081552A (en) * | 2009-12-01 | 2011-06-01 | 华为技术有限公司 | Method, device and system for transferring from physical machine to virtual machine on line |
CN104572274A (en) * | 2013-10-18 | 2015-04-29 | 宇宙互联有限公司 | Cross-cloud-node migration system and cross-cloud-node migration method |
US20160012071A1 (en) * | 2014-07-11 | 2016-01-14 | Quantum Corporation | Immediate Recovery Of Virtual Machine Using Deduplication Device and Snapshots |
CN105339903A (en) * | 2013-06-03 | 2016-02-17 | 惠普发展公司,有限责任合伙企业 | Restoring a file system object |
CN105630632A (en) * | 2015-12-25 | 2016-06-01 | 华为技术有限公司 | Virtual machine recovery method and virtual machine management device |
CN106708603A (en) * | 2016-12-28 | 2017-05-24 | 平安科技(深圳)有限公司 | Virtual machine quick recovery method and device |
-
2018
- 2018-10-19 CN CN201811223522.2A patent/CN109298977A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102081552A (en) * | 2009-12-01 | 2011-06-01 | 华为技术有限公司 | Method, device and system for transferring from physical machine to virtual machine on line |
CN105339903A (en) * | 2013-06-03 | 2016-02-17 | 惠普发展公司,有限责任合伙企业 | Restoring a file system object |
CN104572274A (en) * | 2013-10-18 | 2015-04-29 | 宇宙互联有限公司 | Cross-cloud-node migration system and cross-cloud-node migration method |
US20160012071A1 (en) * | 2014-07-11 | 2016-01-14 | Quantum Corporation | Immediate Recovery Of Virtual Machine Using Deduplication Device and Snapshots |
CN105630632A (en) * | 2015-12-25 | 2016-06-01 | 华为技术有限公司 | Virtual machine recovery method and virtual machine management device |
CN106708603A (en) * | 2016-12-28 | 2017-05-24 | 平安科技(深圳)有限公司 | Virtual machine quick recovery method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112395050A (en) * | 2020-11-30 | 2021-02-23 | 深信服科技股份有限公司 | Virtual machine backup method and device, electronic equipment and readable storage medium |
CN112395050B (en) * | 2020-11-30 | 2024-02-23 | 深信服科技股份有限公司 | Virtual machine backup method and device, electronic equipment and readable storage medium |
WO2023151547A1 (en) * | 2022-02-14 | 2023-08-17 | 华为技术有限公司 | Data processing system and method, and device |
CN117370079A (en) * | 2023-10-30 | 2024-01-09 | 广州鼎甲计算机科技有限公司 | Data recovery method, apparatus, device, storage medium and computer program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7640411B2 (en) | Remote copy method and remote copy system | |
US10091120B2 (en) | Secondary input queues for maintaining a consistent network state | |
US7461201B2 (en) | Storage control method and system for performing backup and/or restoration | |
US20060047926A1 (en) | Managing multiple snapshot copies of data | |
CN106446159B (en) | A kind of method of storage file, the first virtual machine and name node | |
WO2010040768A2 (en) | Method for optimizing cleaning of maps in flashcopy cascades containing incremental maps | |
CN108932338A (en) | Data-updating method, device, equipment and medium | |
CN103677659B (en) | Messaging device and duplicating control method | |
CN109298977A (en) | A kind of virtual machine business quick recovery method, system, device and storage medium | |
CN107817951B (en) | Method and device for realizing Ceph cluster fusion | |
CN104378423A (en) | Metadata cluster distribution storage system and storage data reading and writing method | |
CN111880956B (en) | Data synchronization method and device | |
CN108512693A (en) | A kind of trans-regional disaster recovery method and device | |
CN103780417A (en) | Database failure transfer method based on cloud hard disk and device thereof | |
CN111367856B (en) | Data copying method, device, electronic equipment and machine-readable storage medium | |
CN108595119A (en) | A kind of method of data synchronization and distributed system | |
CN111240901B (en) | Node dynamic expansion system, method and equipment of distributed block storage system | |
CN112181723A (en) | Financial disaster recovery method and device, storage medium and electronic equipment | |
CN103544081B (en) | The management method of double base data server and device | |
CN102025758A (en) | Method, device and system fore recovering data copy in distributed system | |
CN104484354B (en) | Ensure the Snapshot Method and storage device of data consistency | |
CN107404511A (en) | The replacement method and equipment of server in cluster | |
CN104866245A (en) | Method and device for synchronous snapshot between cache equipment and storage system | |
CN112162886B (en) | Back-end storage device switching method, device, equipment and medium | |
CN110704239B (en) | Data copying method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190201 |
|
RJ01 | Rejection of invention patent application after publication |