CN106980528A - A kind of method and apparatus for recovering virtual machine - Google Patents

A kind of method and apparatus for recovering virtual machine Download PDF

Info

Publication number
CN106980528A
CN106980528A CN201610032981.7A CN201610032981A CN106980528A CN 106980528 A CN106980528 A CN 106980528A CN 201610032981 A CN201610032981 A CN 201610032981A CN 106980528 A CN106980528 A CN 106980528A
Authority
CN
China
Prior art keywords
virtual machine
mode
calculate node
strange land
node
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
Application number
CN201610032981.7A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610032981.7A priority Critical patent/CN106980528A/en
Priority to PCT/CN2016/107036 priority patent/WO2017124829A1/en
Publication of CN106980528A publication Critical patent/CN106980528A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • 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/1479Generic software techniques for error detection or fault masking
    • G06F11/1482Generic software techniques for error detection or fault masking by means of middleware or OS functionality
    • G06F11/1484Generic software techniques for error detection or fault masking by means of middleware or OS functionality involving virtual machines
    • 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
    • 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)
  • Supply And Distribution Of Alternating Current (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses a kind of method and apparatus for recovering virtual machine, including:Control node, which is detected, to be needed to live again to virtual machine progress strange land, in the corresponding relation between virtual machine, calculate node and mode of operation, and searching needs to carry out corresponding first mode of operation of virtual machine that strange land is lived again;It is dummy status to judge the first mode of operation found, and the corresponding calculate node of virtual machine for needing live again in strange land in corresponding relation is changed into target computing nodes;Control node is searched in corresponding relation to be needed to carry out corresponding second mode of operation of virtual machine that strange land is lived again, it is dummy status to judge the second mode of operation found, corresponding second mode of operation of virtual machine for needing live again in strange land in corresponding relation is changed to rebuild virtual machine, and the message that progress strange land is lived again is sent to purpose calculate node.The present invention reduces different two calculate node to conflicting caused by the recovery operation of same virtual machine.

Description

A kind of method and apparatus for recovering virtual machine
Technical field
The present invention relates to virtual technology, espespecially a kind of method and apparatus for recovering virtual machine.
Background technology
OpenStack is one by US National Aeronautics and Space Administration (NASA, National Aeronautics And Space) and Rackspace R & D Cooperations and initiate, it is soft with the freedom of Apache licensing mandates Part and open source code cloud computing management platform project, OpenStack are provided by various complementary services Infrastructure is the solution for servicing (IaaS), is one it is intended that public and private clound construction The open source projects of software are provided with management.
OpenStack is in the realization of virtual machine, when calculate node delays machine extremely, in calculate node Virtual machine can not be run, although the business of virtual machine may consider the switching of active and standby virtual machine, but also need The virtual machine on calculation of fault node, restarting is got up in available calculate node in time, this Virtual machine under scene is lived again, and is exactly that the strange land of virtual machine is lived again.Virtual machine can basis when strange land is lived again The raw information that this virtual machine is preserved in database, deployment is got up in purpose calculate node.
The existing method for recovering virtual machine is generally comprised:
After calculate node breaks down, control node receives the progress from the calculate node where user The request that strange land is lived again, judge meet carry out strange land live again condition (such as user whether have initiate it is different Whether authority that ground is lived again, virtual machine meet condition that strange land is lived again etc.), in virtual machine, calculate node In corresponding relation between mode of operation, search and lived again the need in the request that strange land is lived again The corresponding mode of operation of virtual machine, when the mode of operation found be dummy status when, by what is lived again The mode of operation in corresponding relation between virtual machine, calculate node and mode of operation is changed to rebuild Virtual machine, and send the message that progress strange land is lived again to purpose calculate node;Wherein, strange land is carried out to live again Message include the progress of the virtual machine that needs are lived again and live again required information;Purpose calculates section Information of the point according to required for living again the progress carried out in the message that strange land is lived again carries out living again for virtual machine, And by the calculate node in the corresponding relation between the virtual machine lived again, calculate node and mode of operation Change as purpose calculate node.
In the existing method for recovering virtual machine, during the living again of virtual machine is carried out, when breaking down Calculate node because it is electric under the non-computational such as power supply node reason itself when, may be in environment after a period of time Recover or human intervention in the case of re-power, calculate node in power up, virtual machine, In corresponding relation between calculate node, virtual machine state and mode of operation, it is itself to search calculate node, And virtual machine state is the corresponding virtual machine of running status and mode of operation, is by the mode of operation found The corresponding mode of operation of virtual machine of dummy status is changed to power-up state, and is the mode of operation found The virtual machine of dummy status is started up, so, may result in the calculate node broken down and purpose is calculated Node configures same virtual machine simultaneously, causes Internet protocol (IP, Internet Protocol) address Etc. a series of conflict of resources and flow, in some instances it may even be possible to which can cause the business of virtual machine can not normally run.
The content of the invention
In order to solve the above problems, the present invention proposes a kind of method and apparatus for recovering virtual machine, can Two different calculate nodes are reduced to conflicting caused by the recovery operation of same virtual machine.
In order to achieve the above object, the present invention proposes a kind of method for recovering virtual machine, including:
Control node, which is detected, to be needed to live again to virtual machine progress strange land, in virtual machine, calculate node and behaviour Make in the corresponding relation between state, search corresponding first operation of virtual machine for needing live again in strange land State;Judge that the first mode of operation found is dummy status, will need to carry out strange land in corresponding relation The corresponding calculate node of virtual machine lived again is changed to target computing nodes;
Control node searches corresponding second operation of virtual machine for needing live again in strange land in corresponding relation State, judges that the second mode of operation found is dummy status, will need to carry out strange land in corresponding relation Corresponding second mode of operation of virtual machine lived again is changed to rebuild virtual machine, and calculates section to purpose Point, which is sent, carries out the message that strange land is lived again.
Optionally, the control node, which is detected, needs to carry out virtual machine after strange land lives again, to look into described Looking for needs also to include before carrying out corresponding first mode of operation of virtual machine that strange land is lived again:
The control node is judged to meet the condition that strange land is lived again.
Optionally, when it is non-null states that the control node, which judges second mode of operation, the party Method also includes:
The corresponding calculate node of virtual machine for needing live again in strange land is changed to by the control node Calculate node before change.
Optionally, the corresponding relation also includes virtual machine state, and the control node detects needs pair Virtual machine carry out strange land live again including:
The control node detects electric under calculate node, electric calculating under being searched in the corresponding relation The corresponding virtual machine of node and virtual machine state, it is running status to judge the virtual machine state found, It is determined that needing to live again to the virtual machine progress strange land found.
The invention also provides a kind of method for recovering virtual machine, including:
Calculate node after breaking down during re-powering, in virtual machine, calculate node and operation shape In corresponding relation between state, corresponding first calculate node of virtual machine and the first mode of operation are searched;Sentence Breaking, the first calculate node for finding be itself, and the first mode of operation found is dummy status, will Corresponding first mode of operation of virtual machine is changed to power-up state;
Calculate node searches corresponding second calculate node of virtual machine and the second operation shape in corresponding relation State, it is itself to judge the second calculate node found, and the second mode of operation found is upper electricity State, starts virtual machine.
Optionally, when the calculate node judges that second calculate node is not itself, this method Also include:
Corresponding second mode of operation of the virtual machine is changed to dummy status by the calculate node.
Optionally, the corresponding relation also includes virtual machine state, the lookup virtual machine corresponding first Calculate node and the first mode of operation include:
The calculate node searches the virtual machine pair that virtual machine state is running status in the corresponding relation The first calculate node and the first running node answered.
The invention also provides a kind of control node, at least include:
Detection module, needs to live again to virtual machine progress strange land for detecting;
First searching modul, in the corresponding relation between virtual machine, calculate node and mode of operation, Searching needs to carry out corresponding first mode of operation of virtual machine that strange land is lived again;The first notification message is received, Being searched in corresponding relation needs to carry out corresponding second mode of operation of virtual machine that strange land is lived again;
First change module, the first mode of operation for judging to find is dummy status, by correspondence pass The corresponding calculate node of virtual machine live again in strange land is needed to be changed to target computing nodes, Xiang Cha in system Module is looked for send the first notification message;It is dummy status to judge the second mode of operation found, by correspondence Corresponding second mode of operation of virtual machine live again in strange land is needed to be changed to rebuild virtual in relation Machine, and send the message that progress strange land is lived again to purpose calculate node.
Optionally, first searching modul specifically for:
Judge to meet the condition that strange land is lived again, pair between virtual machine, calculate node and mode of operation In should being related to, searching needs to carry out corresponding first mode of operation of virtual machine that strange land is lived again;Receive One notification message, searches corresponding second operation of virtual machine for needing live again in strange land in corresponding relation State.
Optionally, the first change module is additionally operable to:
Judge second mode of operation be non-null states, by it is described need carry out strange land live again it is virtual The corresponding calculate node of machine is changed to the calculate node before change.
Optionally, the corresponding relation also include virtual machine state, the detection module specifically for:
Detect electric under calculate node, the electric corresponding void of calculate node under being searched in the corresponding relation Plan machine and virtual machine state, it is running status to judge the virtual machine state found, it is determined that needing to looking into The virtual machine found carries out strange land and lived again.
The invention also provides a kind of calculate node, at least include:
Second searching modul, for during being re-powered after breaking down, in virtual machine, calculating section In corresponding relation between point and mode of operation, corresponding first calculate node of virtual machine and the first behaviour are searched Make state;Second notification message is received, virtual machine corresponding second is searched in corresponding relation and calculates section Point and the second mode of operation;
Second change module, the first calculate node for judging to find is itself, and find First mode of operation is dummy status, and corresponding first mode of operation of virtual machine is changed into power-up state, to Second searching modul sends second notification message;It is itself to judge the second calculate node found, and The second mode of operation found is power-up state, starts virtual machine.
Optionally, the second change module is additionally operable to:
It is not itself to judge second calculate node, by corresponding second mode of operation of the virtual machine It is changed to dummy status.
Compared with prior art, technical scheme includes:Control node detects needs to virtual Machine carries out strange land and lived again, in the corresponding relation between virtual machine, calculate node and mode of operation, searches Need to carry out corresponding first mode of operation of virtual machine that strange land is lived again;Judge the first operation found State is dummy status, will need to carry out the corresponding calculate node of virtual machine lived again in strange land more in corresponding relation It is changed to target computing nodes;Control node is searched in corresponding relation to be needed to carry out the virtual machine that strange land is lived again Corresponding second mode of operation, judges that the second mode of operation found is dummy status, by corresponding relation Middle corresponding second mode of operation of virtual machine for needing live again in strange land is changed to rebuild virtual machine, And send the message that progress strange land is lived again to purpose calculate node.Pass through the solution of the present invention, control node Need to carry out first judging to need progress different before and after the corresponding calculate node of virtual machine that strange land is lived again in modification Whether the mode of operation for the virtual machine that ground is lived again is dummy status, if being dummy status, carries out strange land and lives again, Avoid the calculate node broken down and the virtual machine correspondence for needing live again in strange land is changed in control node Calculate node during modification need to carry out the mode of operation of virtual machine that strange land is lived again, so as to reduce Two different calculate nodes are to conflicting caused by the recovery operation of same virtual machine.
Brief description of the drawings
The accompanying drawing in the embodiment of the present invention is illustrated below, the accompanying drawing in embodiment is used for this hair Bright further understands, and is used to explain the present invention together with specification, does not constitute to present invention protection model The limitation enclosed.
Fig. 1 recovers the flow chart of the method for virtual machine for the present invention;
Fig. 2 is the flow chart of another method for recovering virtual machine of the present invention;
Fig. 3 is the structure composition schematic diagram of control node of the present invention;
Fig. 4 is the structure composition schematic diagram of calculate node of the present invention.
Embodiment
For the ease of the understanding of those skilled in the art, present invention work is further retouched below in conjunction with the accompanying drawings State, can not be used for limiting the scope of the invention.It should be noted that in the case where not conflicting, The various modes in embodiment and embodiment in the application can be mutually combined.
Referring to Fig. 1, the present invention proposes a kind of method for recovering virtual machine, including:
Step 100, control node, which are detected, to be needed to live again to virtual machine progress strange land, in virtual machine, meter In corresponding relation between operator node and mode of operation, the virtual machine correspondence for needing live again in strange land is searched The first mode of operation;Judge that the first mode of operation found is dummy status, will be needed in corresponding relation The corresponding calculate node of virtual machine live again in strange land is changed to target computing nodes.
In this step, control node can regularly detect whether to need to live again to virtual machine progress strange land.
In this step, corresponding relation also includes virtual machine state, and control node, which is detected, to be needed to virtual machine Carry out strange land live again including:
Control node detects electric under calculate node, electric calculate node correspondence under being searched in corresponding relation Virtual machine and virtual machine state, it is running status to judge the virtual machine state that finds, it is determined that needing Strange land is carried out to the virtual machine found to live again.
Wherein, control node can implement category using the whether lower electricity of outband management detection calculate node In the known technology of those skilled in the art, the protection domain being not intended to limit the present invention, here no longer Repeat.
In this step, control node is detected after needing to live again to virtual machine progress strange land, is needed searching Also include before corresponding first mode of operation of virtual machine that strange land is lived again:
The control node is judged to meet the condition that strange land is lived again.
Wherein, how to judge whether to meet the known skill that the condition lived again in strange land belongs to those skilled in the art Art, the protection domain being not intended to limit the present invention, is repeated no more here.
In this step, corresponding relation can be preserved by control node itself, can also be preserved in systems In the calculate node of one specialized user data storage.Control node can obtain correspondence to the calculate node Relation.
In this step, target computing nodes can be inputted by user, can also be distributed by control node.
In this step, when it is non-null states that control node, which judges the first mode of operation found, knot This flow of beam.
Step 101, control node search the virtual machine correspondence for needing live again in strange land in corresponding relation The second mode of operation, it is dummy status to judge the second mode of operation for finding, will be needed in corresponding relation Corresponding second mode of operation of virtual machine live again in strange land is changed to rebuild virtual machine, and to Purpose calculate node, which is sent, carries out the message that strange land is lived again.
In this step, when it is non-null states that control node, which judges the second mode of operation, control node will The corresponding calculate node of virtual machine for needing progress strange land to live again is changed to the calculate node before change. That is, if the second mode of operation is non-null states (such as creating virtual machine), it will need The corresponding calculate node of virtual machine that progress strange land is lived again is changed to the calculating section in step 100 before change Point, i.e., do not live again to the virtual machine progress strange land for needing live again in strange land.
In step 100 and step 101, the first mode of operation and the second mode of operation are just for the sake of difference The mode of operation for the virtual machine that different time is found, the first mode of operation and the second mode of operation may phases Together, it is also possible to different.
By the method for the present invention, control node needs the virtual machine live again in strange land corresponding in modification First judge whether the mode of operation for needing to carry out the virtual machine that strange land is lived again is sky shape before and after calculate node State, if be dummy status, carry out strange land and lives again, it is to avoid the calculate node broken down is saved in control Point modification needs modification during carrying out the corresponding calculate node of virtual machine that strange land is lived again to need progress different The mode of operation for the virtual machine that ground is lived again, so as to reduce two different calculate nodes to same virtual Conflict caused by the recovery operation of machine.
Referring to Fig. 2, the invention also provides a kind of method for recovering virtual machine, including:
Step 200, calculate node in virtual machine, calculate section during being re-powered after breaking down In corresponding relation between point and mode of operation, corresponding first calculate node of virtual machine and the first behaviour are searched Make state;Judge that the first calculate node for finding is itself, and the first mode of operation found is Dummy status, power-up state is changed to by corresponding first mode of operation of virtual machine.
In this step, calculate node searches corresponding first calculate node of virtual machine and in corresponding relation Itself corresponding virtual machine can be first searched before one mode of operation in corresponding relation, then it is determined that being Before the virtual machine that no startup is found, first carry out the virtual machine found corresponding first and calculate section The step of point and the first mode of operation.
Virtual machine corresponding first in all virtual machines that can also be in Ergodic Theory, lookup system is calculated Node and the first mode of operation, the present invention are not limited.
In this step, when the first calculate node found is not itself, terminate this flow.
In this step, corresponding relation also includes virtual machine state, searches virtual machine corresponding first and calculates section Point and the first mode of operation include:Calculate node searches virtual machine state for running status in corresponding relation Corresponding first calculate node of virtual machine and the first running node.
Step 201, calculate node search corresponding second calculate node of virtual machine and in corresponding relation Two modes of operation, judge that the second calculate node found is itself, and the second operation shape found State is power-up state, starts virtual machine.
In this step, when calculate node judges that the second calculate node is not itself, calculate node is by void Corresponding second mode of operation of plan machine is changed to dummy status.
In step 200 and step 201, the first calculate node and the second calculate node are just for the sake of difference The corresponding calculate node of virtual machine that different time is found, the first calculate node and the second calculate node can Can be identical, it is also possible to different;When first mode of operation and the second mode of operation are just for the sake of distinguishing different Between the mode of operation of virtual machine that finds, the first mode of operation and the second mode of operation may be identical, May be different.
By the method for the present invention, calculate node judges virtual before and after the mode of operation of modification virtual machine Whether the corresponding calculate node of machine is itself, if being itself, start virtual machine, it is to avoid control section Point is changed corresponding calculate of virtual machine during the corresponding mode of operation of calculate node modification virtual machine and saved Point, so as to reduce two different calculate nodes to conflicting caused by the recovery operation of same virtual machine.
The method for describing the present invention in detail below by several specific embodiments.
First embodiment, after some calculate node breaks down, control node detects needs to virtual Machine carries out strange land and lived again, and judges to meet the condition that strange land is lived again, in virtual machine, calculate node and operation In corresponding relation between state, the corresponding first operation shape of virtual machine for needing live again in strange land is searched State;Judge that the first mode of operation found is dummy status, will need to carry out strange land weight in corresponding relation The corresponding calculate node of raw virtual machine is changed to target computing nodes.
During the calculate node broken down is re-powered, being searched in corresponding relation needs to carry out strange land Corresponding first calculate node of virtual machine lived again and the first mode of operation, judge the first meter found Operator node is non-self for target computing nodes, terminates to start the stream for needing to carry out the virtual machine that strange land is lived again Journey.
Control node searches corresponding second operation of virtual machine for needing live again in strange land in corresponding relation State, judges that the second mode of operation found is dummy status, will need to carry out strange land in corresponding relation Corresponding second mode of operation of virtual machine lived again is changed to rebuild virtual machine, and calculates section to purpose Point, which is sent, carries out the message that strange land is lived again.
Second embodiment, after some calculate node breaks down, control node detects needs to virtual Machine carries out strange land and lived again, and judges to meet the condition that strange land is lived again, in virtual machine, calculate node and operation In corresponding relation between state, the corresponding first operation shape of virtual machine for needing live again in strange land is searched State.
During the calculate node broken down is re-powered, being searched in corresponding relation needs to carry out strange land Corresponding first calculate node of virtual machine lived again and the first mode of operation.
Control node judges that the first mode of operation for finding is dummy status, will be needed in corresponding relation into The corresponding calculate node of virtual machine that row strange land is lived again is changed to target computing nodes.The calculating broken down Node judges that the first calculate node found is itself, and the first mode of operation found is empty shape State, power-up state is changed to by corresponding first mode of operation of virtual machine.
Control node searches corresponding second operation of virtual machine for needing live again in strange land in corresponding relation State, it is non-null states to judge the second mode of operation found, terminates the flow that strange land is lived again.
The calculate node broken down searches corresponding second calculate node of virtual machine and in corresponding relation Two modes of operation, it is not itself to judge the second calculate node found, and terminating startup needs progress different The flow for the virtual machine that ground is lived again.
3rd embodiment, after some calculate node breaks down, during re-powering, in void In corresponding relation between plan machine, calculate node and mode of operation, search virtual machine corresponding first and calculate Node and the first mode of operation;It is itself to judge the first calculate node for finding, and the found One mode of operation is dummy status, and corresponding first mode of operation of virtual machine is changed into power-up state.
Control node, which is detected, to be needed to live again to virtual machine progress strange land, judges to meet the bar that strange land is lived again Part, searches corresponding first mode of operation of virtual machine in corresponding relation, judges the first behaviour found Make state for non-null states, terminate to carry out the flow that strange land is lived again.
Calculate node searches corresponding second calculate node of virtual machine and the second operation shape in corresponding relation State, it is itself to judge the second calculate node found, and the second mode of operation found is upper electricity State, starts virtual machine.
Referring to Fig. 3, the invention also provides a kind of control node, at least include:
Detection module, needs to live again to virtual machine progress strange land for detecting;
First searching modul, for judging to meet the condition that strange land is lived again, in virtual machine, calculate node In corresponding relation between mode of operation, searching needs to carry out the virtual machine corresponding first that strange land is lived again Mode of operation;The first notification message is received, being searched in corresponding relation needs to carry out the void that strange land is lived again Corresponding second mode of operation of plan machine;
First change module, the first mode of operation for judging to find is dummy status, by correspondence pass The corresponding calculate node of virtual machine live again in strange land is needed to be changed to target computing nodes, Xiang Cha in system Module is looked for send the first notification message;It is dummy status to judge the second mode of operation found, by correspondence Corresponding second mode of operation of virtual machine live again in strange land is needed to be changed to rebuild virtual in relation Machine, and send the message that progress strange land is lived again to purpose calculate node.
The present invention control node in, the first searching modul specifically for:
Judge to meet the condition that strange land is lived again, pair between virtual machine, calculate node and mode of operation In should being related to, searching needs to carry out corresponding first mode of operation of virtual machine that strange land is lived again;Receive One notification message, searches corresponding second operation of virtual machine for needing live again in strange land in corresponding relation State.
In the control node of the present invention, the first change module is additionally operable to:
It is non-null states to judge the second mode of operation, it would be desirable to which the virtual machine live again in strange land is corresponding Calculate node is changed to the calculate node before change.
The present invention control node in, corresponding relation also include virtual machine state, detection module specifically for:
Detect electric under calculate node, the electric corresponding virtual machine of calculate node under being searched in corresponding relation And virtual machine state, it is running status to judge the virtual machine state found, it is determined that needing to finding Virtual machine carry out strange land live again.
Referring to Fig. 4, the invention also provides a kind of calculate node, at least include:
Second searching modul, for during being re-powered after breaking down, in virtual machine, calculating section In corresponding relation between point and mode of operation, corresponding first calculate node of virtual machine and the first behaviour are searched Make state;Second notification message is received, virtual machine corresponding second is searched in corresponding relation and calculates section Point and the second mode of operation;
Second change module, the first calculate node for judging to find is itself, and find First mode of operation is dummy status, and corresponding first mode of operation of virtual machine is changed into power-up state, to Second searching modul sends second notification message;It is itself to judge the second calculate node found, and The second mode of operation found is power-up state, starts virtual machine.
In the calculate node of the present invention, the second change module is additionally operable to:
It is not itself to judge the second calculate node, and corresponding second mode of operation of virtual machine is changed into sky State.
It should be noted that embodiment described above be for only for ease of it will be understood by those skilled in the art that , the protection domain being not intended to limit the invention, in the premise for the inventive concept for not departing from the present invention Under, any obvious replacement and improvement that those skilled in the art are made to the present invention etc. is at this Within the protection domain of invention.

Claims (13)

1. a kind of method for recovering virtual machine, it is characterised in that including:
Control node, which is detected, to be needed to live again to virtual machine progress strange land, in virtual machine, calculate node and behaviour Make in the corresponding relation between state, search corresponding first operation of virtual machine for needing live again in strange land State;Judge that the first mode of operation found is dummy status, will need to carry out strange land in corresponding relation The corresponding calculate node of virtual machine lived again is changed to target computing nodes;
Control node searches corresponding second operation of virtual machine for needing live again in strange land in corresponding relation State, judges that the second mode of operation found is dummy status, will need to carry out strange land in corresponding relation Corresponding second mode of operation of virtual machine lived again is changed to rebuild virtual machine, and calculates section to purpose Point, which is sent, carries out the message that strange land is lived again.
2. according to the method described in claim 1, it is characterised in that the control node detects needs Virtual machine is carried out after strange land lives again, need to carry out the virtual machine lived again in strange land corresponding the in the lookup Also include before one mode of operation:
The control node is judged to meet the condition that strange land is lived again.
3. according to the method described in claim 1, it is characterised in that when the control node judges institute When stating the second mode of operation for non-null states, this method also includes:
The corresponding calculate node of virtual machine for needing live again in strange land is changed to by the control node Calculate node before change.
4. according to the method described in claim 1, it is characterised in that the corresponding relation also includes virtual Machine state, the control node detect need to virtual machine carry out strange land live again including:
The control node detects electric under calculate node, electric calculating under being searched in the corresponding relation The corresponding virtual machine of node and virtual machine state, it is running status to judge the virtual machine state found, It is determined that needing to live again to the virtual machine progress strange land found.
5. a kind of method for recovering virtual machine, it is characterised in that including:
Calculate node after breaking down during re-powering, in virtual machine, calculate node and operation shape In corresponding relation between state, corresponding first calculate node of virtual machine and the first mode of operation are searched;Sentence Breaking, the first calculate node for finding be itself, and the first mode of operation found is dummy status, will Corresponding first mode of operation of virtual machine is changed to power-up state;
Calculate node searches corresponding second calculate node of virtual machine and the second operation shape in corresponding relation State, it is itself to judge the second calculate node found, and the second mode of operation found is upper electricity State, starts virtual machine.
6. method according to claim 5, it is characterised in that when the calculate node judges institute When stating the second calculate node and being not itself, this method also includes:
Corresponding second mode of operation of the virtual machine is changed to dummy status by the calculate node.
7. the method according to claim 5 or 6, it is characterised in that the corresponding relation also includes Virtual machine state, corresponding first calculate node of the lookup virtual machine and the first mode of operation include:
The calculate node searches the virtual machine pair that virtual machine state is running status in the corresponding relation The first calculate node and the first running node answered.
8. a kind of control node, it is characterised in that at least include:
Detection module, needs to live again to virtual machine progress strange land for detecting;
First searching modul, in the corresponding relation between virtual machine, calculate node and mode of operation, Searching needs to carry out corresponding first mode of operation of virtual machine that strange land is lived again;The first notification message is received, Being searched in corresponding relation needs to carry out corresponding second mode of operation of virtual machine that strange land is lived again;
First change module, the first mode of operation for judging to find is dummy status, by correspondence pass The corresponding calculate node of virtual machine live again in strange land is needed to be changed to target computing nodes, Xiang Cha in system Module is looked for send the first notification message;It is dummy status to judge the second mode of operation found, by correspondence Corresponding second mode of operation of virtual machine live again in strange land is needed to be changed to rebuild virtual in relation Machine, and send the message that progress strange land is lived again to purpose calculate node.
9. control node according to claim 8, it is characterised in that the first searching modul tool Body is used for:
Judge to meet the condition that strange land is lived again, pair between virtual machine, calculate node and mode of operation In should being related to, searching needs to carry out corresponding first mode of operation of virtual machine that strange land is lived again;Receive One notification message, searches corresponding second operation of virtual machine for needing live again in strange land in corresponding relation State.
10. control node according to claim 8, it is characterised in that the first change module It is additionally operable to:
Judge second mode of operation be non-null states, by it is described need carry out strange land live again it is virtual The corresponding calculate node of machine is changed to the calculate node before change.
11. control node according to claim 8, it is characterised in that the corresponding relation is also wrapped Include virtual machine state, the detection module specifically for:
Detect electric under calculate node, the electric corresponding void of calculate node under being searched in the corresponding relation Plan machine and virtual machine state, it is running status to judge the virtual machine state found, it is determined that needing to looking into The virtual machine found carries out strange land and lived again.
12. a kind of calculate node, it is characterised in that at least include:
Second searching modul, for during being re-powered after breaking down, in virtual machine, calculating section In corresponding relation between point and mode of operation, corresponding first calculate node of virtual machine and the first behaviour are searched Make state;Second notification message is received, virtual machine corresponding second is searched in corresponding relation and calculates section Point and the second mode of operation;
Second change module, the first calculate node for judging to find is itself, and find First mode of operation is dummy status, and corresponding first mode of operation of virtual machine is changed into power-up state, to Second searching modul sends second notification message;It is itself to judge the second calculate node found, and The second mode of operation found is power-up state, starts virtual machine.
13. calculate node according to claim 12, it is characterised in that the second change module It is additionally operable to:
It is not itself to judge second calculate node, by corresponding second mode of operation of the virtual machine It is changed to dummy status.
CN201610032981.7A 2016-01-18 2016-01-18 A kind of method and apparatus for recovering virtual machine Pending CN106980528A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610032981.7A CN106980528A (en) 2016-01-18 2016-01-18 A kind of method and apparatus for recovering virtual machine
PCT/CN2016/107036 WO2017124829A1 (en) 2016-01-18 2016-11-24 Method and device for restoring virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610032981.7A CN106980528A (en) 2016-01-18 2016-01-18 A kind of method and apparatus for recovering virtual machine

Publications (1)

Publication Number Publication Date
CN106980528A true CN106980528A (en) 2017-07-25

Family

ID=59341160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610032981.7A Pending CN106980528A (en) 2016-01-18 2016-01-18 A kind of method and apparatus for recovering virtual machine

Country Status (2)

Country Link
CN (1) CN106980528A (en)
WO (1) WO2017124829A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019196062A1 (en) * 2018-04-12 2019-10-17 华为技术有限公司 Method and device for detecting state of virtual machine
CN112445634A (en) * 2019-08-29 2021-03-05 青岛海信宽带多媒体技术有限公司 Fault repairing method and device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932413B (en) * 2012-09-26 2016-03-30 华为软件技术有限公司 A kind of computational resource allocation method, cloud management platform node and computational resource cluster
JP2015103092A (en) * 2013-11-26 2015-06-04 株式会社日立製作所 Fault recovery system and method of constructing fault recovery system
CN105095001B (en) * 2014-05-08 2018-01-30 中国银联股份有限公司 Virtual machine abnormal restoring method under distributed environment
US9489273B2 (en) * 2014-06-23 2016-11-08 Vmware, Inc. Using stretched storage to optimize disaster recovery

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019196062A1 (en) * 2018-04-12 2019-10-17 华为技术有限公司 Method and device for detecting state of virtual machine
US11777830B2 (en) 2018-04-12 2023-10-03 Huawei Cloud Computing Technolgies Co., Ltd. Virtual machine status probe method, and device
CN112445634A (en) * 2019-08-29 2021-03-05 青岛海信宽带多媒体技术有限公司 Fault repairing method and device, electronic equipment and storage medium
CN112445634B (en) * 2019-08-29 2024-04-16 青岛海信宽带多媒体技术有限公司 Fault repairing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2017124829A1 (en) 2017-07-27

Similar Documents

Publication Publication Date Title
CN103152419B (en) A kind of high availability cluster management method of cloud computing platform
US20220237092A1 (en) Methods, systems, and computer readable storage devices for managing faults in a virtual machine network
TWI497286B (en) Method and system for analyzing root causes of relating performance issues among virtual machines to physical machines
US10541862B2 (en) VNF processing policy determining method, apparatus, and system
US20200403878A1 (en) Dynamically identifying criticality of services and data sources
CN111698098A (en) Communication method, apparatus and computer-readable storage medium
CN112948063A (en) Cloud platform creation method and device, cloud platform and cloud platform implementation system
WO2020030000A1 (en) Disaster recovery switching method, related device and computer storage medium
CN106406980B (en) A kind of dispositions method and device of virtual machine
CN103152261A (en) Method and equipment for generating and distributing link state protocol data unit fragment messages
CN106972962A (en) Collocation method, the apparatus and system of high-availability cluster
CN106980528A (en) A kind of method and apparatus for recovering virtual machine
CN114900430B (en) Container network optimization method, device, computer equipment and storage medium
CN111092942A (en) Message processing method and device, electronic equipment and storage medium
CN112367186B (en) Fault protection method and device based on 0penStack bare computer
CN103200092B (en) A kind of routing daemon management method and equipment based on virtual network device
CN115221156A (en) Database cluster capacity expansion method and device, computer equipment and storage medium
CN103685405B (en) Network service system and the method updating firmware thereof
CN107172228A (en) Change the method and apparatus and computer-readable recording medium of virtual machine IP address
CN106959885A (en) A kind of virtual machine High Availabitity realizes system and its implementation
Chen et al. Research and practice of dynamic network security architecture for IaaS platforms
CN108650337B (en) Server detection method, system and storage medium
CN103457771B (en) The management method of the cluster virtual machine of a kind of HA and equipment
CN105162843B (en) A kind of rapid data synchronous method based on Dynamic Programming
CN113127137A (en) Cloud computing management platform using self-hosting virtual machine and creation implementation method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170725