CN103618627B - A kind of manage the method for virtual machine, Apparatus and system - Google Patents

A kind of manage the method for virtual machine, Apparatus and system Download PDF

Info

Publication number
CN103618627B
CN103618627B CN201310636262.2A CN201310636262A CN103618627B CN 103618627 B CN103618627 B CN 103618627B CN 201310636262 A CN201310636262 A CN 201310636262A CN 103618627 B CN103618627 B CN 103618627B
Authority
CN
China
Prior art keywords
virtual machine
lun
website
equipment
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310636262.2A
Other languages
Chinese (zh)
Other versions
CN103618627A (en
Inventor
谭志岗
张永森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310636262.2A priority Critical patent/CN103618627B/en
Publication of CN103618627A publication Critical patent/CN103618627A/en
Application granted granted Critical
Publication of CN103618627B publication Critical patent/CN103618627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses and a kind of manage the method for virtual machine, Apparatus and system, wherein method includes: first control monitoring of equipment the first website in operate in the running status of the first virtual machine in first server;Wherein, described first server connects storage device, and LUN LUN in described first virtual machine carry storage device is as the virtual disk of described first virtual machine;When monitoring described first virtual machine state exception, described first controls equipment unloads the described LUN of described first virtual machine carry;Described first controls equipment sends virtual machine activation request, for making the second control equipment ask to start the second virtual machine on the second server in the second website according to described virtual machine activation.Use the present invention, it is achieved that across the virtual machine HA of physical cluster website, it is not necessary to carry out the duplication of data between two storage devices, save Internet resources and the input of storage resource, and more efficiently achieve the cross-site switching of virtual machine.

Description

A kind of manage the method for virtual machine, Apparatus and system
Technical field
The present invention relates to communication technical field, particularly relate to a kind of manage the method for virtual machine, Apparatus and system.
Background technology
Single virtual one cluster including two or more than two servers of platform website general management, The monitoring of persistence is provided for virtual machine and virtual machine place server host.When virtual machine or virtual machine institute When server failure, automatically switch to restart this virtual machine on an other station server.But, as Really (the most single cluster server is the most limited, such as one for virtual machine place website server inadequate resource Cluster only supports 32 station servers), then need by realizing the restarting with reality of virtual machine at an other website Existing cross-site high availability (High Availability, HA).
In the prior art, the HA cross-site in order to realize virtual machine, general employing following two mode is restarted Virtual machine:
1, using the HA software of cross-site synchronization replication magnetic disk of virtual machine data, software is between two websites Migrating transfer of virtual machine data in magnetic disk, two websites need storage virtual machine data in magnetic disk simultaneously, and two Periodic synchronous data are needed between website.HA software copy diskette data can take Internet resources, and data are same There is delay issue in step, and needs to put into extra storage resource.
2, the LUN (Logical Unit Number, LUN) using cross-site storage system is same Step replicates magnetic disk of virtual machine data, needs also exist for putting into extra storage resource, on the LUN of storage redundancy Magnetic disk of virtual machine data, add the storage overhead building HA.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, it is provided that a kind of manage the method for virtual machine, dress Put and system, can realize virtual machine cross-site switching time without copy diskette data, save memory space.
In order to solve above-mentioned technical problem, first aspect present invention provides a kind of method managing virtual machine, Comprise the steps that
First controls to operate in monitoring of equipment the first website the operation shape of the first virtual machine in first server State;Wherein, described first server connects storage device, in described first virtual machine carry storage device LUN LUN is as the virtual disk of described first virtual machine;
When monitoring described first virtual machine state exception, described first controls described first void of equipment unloading The described LUN of plan machine carry;
Described first controls equipment sends virtual machine activation request, is used for making the second control equipment according to described void Plan machine starts and starts the second virtual machine on request second server in the second website;Wherein, described virtual Machine starts request and carries configuration information and the address information of described LUN of described first virtual machine, so that described First virtual machine is identical with the configuration information of described second virtual machine, makes described second control equipment instruction described Second virtual machine is according to LUN described in the address information carry of described LUN.
Based on first aspect, in the first feasible embodiment of first aspect, described first controls to set Preparation send virtual machine activation to ask, and is used for making the second control equipment ask second according to described virtual machine activation Start the second virtual machine on second server in website, specifically include:
Described first controls equipment sends the request of described virtual machine activation to management equipment, so that described management sets Standby to described second control equipment transmission described virtual machine activation request.
The first feasible embodiment based on first aspect, the enforcement that the second in first aspect is feasible In mode, described first controls equipment sends the request of described virtual machine activation to described management equipment, so that institute Stated management equipment before described second control equipment sends the request of described virtual machine activation, be additionally operable to make described Management equipment is asked according to described virtual machine activation, selects described second website described second virtual as starting The website of machine.
Second aspect present invention provides a kind of method managing virtual machine, it may include:
Second controls equipment sink virtual machine starts request;
Described second controls equipment asks on the second server in the second website according to described virtual machine activation Start the second virtual machine;
Wherein, to carry first operated in the first website in first server empty for the request of described virtual machine activation The configuration information of plan machine and the address information of LUN LUN, described LUN is positioned at and described first clothes In the storage device that business device connects;
Wherein, described second virtual machine is identical with the configuration information of described first virtual machine, described second virtual Machine according to LUN described in the address information carry of described LUN as the virtual disk of described second virtual machine.
Based on second aspect, in the first feasible embodiment of second aspect, described second controls to set Standby sink virtual machine starts request, including:
Described second controls the virtual machine activation request that equipment receives the first control equipment of management device forwards, Described management equipment is used for making described management equipment ask according to described virtual machine activation, selects described second station Point is as the website starting described second virtual machine.
Third aspect present invention provides a kind of control equipment, it may include:
Monitoring modular, operates in the operation of the first virtual machine in first server in monitoring the first website State;Wherein, described first server connects storage device, in described first virtual machine carry storage device LUN LUN as the virtual disk of described first virtual machine;
Unload module, for when described monitoring module monitors to described first virtual machine state exception, unloads The described LUN of described first virtual machine carry;
Sending module, is used for sending virtual machine activation request, is used for making the second control equipment according to described virtual Machine starts and starts the second virtual machine on request second server in the second website;Wherein, described virtual machine Start request and carry configuration information and the address information of described LUN of described first virtual machine, so that described the One virtual machine is identical with the configuration information of described second virtual machine, makes described second control equipment instruction described the Two virtual machines are according to LUN described in the address information carry of described LUN.
Based on the third aspect, in the first feasible embodiment of the third aspect, transmitting element, it is used for The request of described virtual machine activation is sent, so that described management equipment controls equipment to described second to management equipment Send the request of described virtual machine activation.
The first feasible embodiment based on the third aspect, the enforcement that the second in the third aspect is feasible In mode, described transmitting element makes described management equipment open to the described second control equipment described virtual machine of transmission Before dynamic request, it is additionally operable to make described management equipment ask according to described virtual machine activation, selects described second Website is as the website starting described second virtual machine.
Fourth aspect present invention provides a kind of control equipment, including:
Receiver module, starts request for sink virtual machine;
Virtual machine activation module, for the second service asked in the second website according to described virtual machine activation The second virtual machine is started on device;
Wherein, to carry first operated in the first website in first server empty for the request of described virtual machine activation The configuration information of plan machine and the address information of LUN LUN, described LUN is positioned at and described first clothes In the storage device that business device connects;
Wherein, described second virtual machine is identical with the configuration information of described first virtual machine, described second virtual Machine according to LUN described in the address information carry of described LUN as the virtual disk of described second virtual machine.
Based on fourth aspect, in the first feasible embodiment of fourth aspect, described receiver module bag Include:
Receive unit, for receiving the virtual machine activation request of the first control equipment of management device forwards, institute State management equipment for making described management equipment ask according to described virtual machine activation, select described second website As the website starting described second virtual machine.
Fifth aspect present invention additionally provides a kind of system managing virtual machine, including such as third aspect present invention Described controls the control equipment described in equipment and fourth aspect present invention.
Using the embodiment of the present invention, break down in the first control monitoring of equipment to its controlled website is virtual After machine or virtual machine place server, search to management equipment transmitting station handover request and there is available server Website to restart virtual machine, due to website handover request carries disk storage equipment position believe Breath, therefore has the website of available server and can find storage by this positional information and have magnetic disk of virtual machine number According to disk storage equipment, and obtain data in magnetic disk to load, it is achieved that across the void of physical cluster website Plan machine HA, and without carrying out the replication synchronization of data between two storage devices, save Internet resources and deposit The input of storage resource, and more efficiently achieve the cross-site switching of virtual machine.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, institute in embodiment being described below The accompanying drawing used is needed to be briefly described, it should be apparent that, the accompanying drawing in describing below is only the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, Other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of method managing virtual machine that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the method for the another kind of management virtual machine that the embodiment of the present invention provides;
Fig. 3 is a kind of structural representation controlling equipment that the embodiment of the present invention provides;
Fig. 4 is the structural representation of the sending module that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the another kind of control equipment that the embodiment of the present invention provides;
Fig. 6 is the structural representation of the receiver module that the embodiment of the present invention provides.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu ground describes, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work The every other embodiment obtained under premise, broadly falls into the scope of protection of the invention.
In embodiments of the present invention, mainly tied by management equipment, the control equipment of website and server cluster Close and realize cross-site virtual machine HA(High Availability, high availability), and multiple with zero data The embodiment of system realizes re-creating and starting of virtual machine.
High availability HA refers to by shortening because of routine maintaining operations (plan) or the system of burst as far as possible The downtime that collapse (unplanned) is caused, to improve the availability of system and application.Real in the present invention Execute example, mainly solve to be worked as by server the problem of the service disruption that the faults such as machine cause, from the angle of disk storage Degree reduce service disruption time, save storage resource and be more efficiently completed virtual machine restart work
Refer to Fig. 1, the schematic flow sheet of a kind of method managing virtual machine provided for the embodiment of the present invention, The method comprising the steps of S101-S103.
S101, first controls to operate in monitoring of equipment the first website the first virtual machine in first server Running status;Wherein, described first server connects storage device, and described first virtual machine carry storage sets Standby upper LUN LUN is as the virtual disk of described first virtual machine;
It should be noted that the first control equipment is for monitoring virtual machine and server state in the first website Virtual platform, and as management equipment (i.e. cloud management platform) and server cluster between transmit information Medium, realize the mutual of information by HTTP Rest interface between the first website and management equipment.First The first website that control equipment is controlled refer to have physically preferable connection can realize very fast logical The cluster virtual machine of letter speed, generally refers to a LAN.
The cluster of first station field signal multiple servers including first server, the first virtual machine runs In first server.First server is connected with storage device, and storage device is for storage the first virtual machine Data in magnetic disk.
It should be noted that in the building process of server cluster place website, the storage being positioned at bottom sets Standby employing storage network structure carries out data storage, and the website on upper strata can access storage by storage network Related data, is based on TCP/IP network schemer between the first control equipment and storage network, passes through Rest Interface realizes the mutual of information.In embodiments of the present invention, storage network passes through RAID2.0(Redundant Array of Independent Disks Version2.0, independent disk redundancy array 2.0) technology, for website The single disk volume of virtual machine provides the storage resource of a LUN respectively, and each disk volume is externally rendered as The mode of LUN, the magnetic disk of virtual machine data of the most each website store with independent LUN, and i.e. A LUN in one virtual machine carry storage device is as the virtual disk of the first virtual machine.As long as therefore having IP address information and disk cell LUN information, control equipment just can by store scan mode identification Disk reading disk data to virtual machine.The reason using RAID2.0 is that RAID2.0 is by multiple Logical partition in physical disks constitutes a raid group, its minimum data protected location (data protection unit) Granularity is thinner, the most flexible and efficient.Single disk volume can be made externally to be rendered as by RAID2.0 technology The form of LUN, certainly, in other embodiments, it is possible to use other technologies, such as RAID3.0 or The disk volume of the technology definition storage networks such as RAID4.0.
S102, when monitoring described first virtual machine state exception, described first controls described in equipment unloading The described LUN of the first virtual machine carry;
When monitoring described first virtual machine state exception, the i.e. first virtual machine breaks down or the first void When the first server at plan machine place breaks down, the first control equipment stops the operation of the first virtual machine, and And available free available server resource can be searched whether in the first website, if having, restart in this website This virtual machine, if nothing, then needs to be switched to the first virtual machine to have on the website of available server at another Restart.It should be noted that the disk storage equipment of a disk volume synchronization can only carry in On one website, therefore the first control equipment need to unload the first virtual machine LUN of carry on the first website, Virtual machine after so restarting could correctly search out disk storage equipment and access the disk number of storage According to.
S103, first controls equipment sends virtual machine activation request, is used for making the second control equipment according to described Virtual machine activation request starts the second virtual machine on the second server in the second website;Wherein, described void Plan machine starts request and carries configuration information and the address information of described LUN of described first virtual machine, so that institute State the first virtual machine identical with the configuration information of described second virtual machine, make described second control equipment indicate institute State the second virtual machine according to LUN described in the address information carry of described LUN.
It should be noted that the second control equipment is for monitoring virtual machine and server state in the second website Virtual platform, and as management equipment (i.e. cloud management platform) and server cluster between transmit information Medium, realize the mutual of information by HTTP Rest interface between the second website and management equipment.Second The second website that control equipment is controlled refer to have physically preferable connection can realize very fast logical The cluster virtual machine of letter speed, generally refers to a LAN.
In some embodiments of the invention, first controls equipment sends virtual machine activation request, is used for making second It is virtual that control equipment asks to start second on the second server in the second website according to described virtual machine activation Machine, detailed description of the invention includes:
Described first controls equipment sends the request of described virtual machine activation to management equipment, so that described management sets For asking according to described virtual machine activation, select described second website as the station starting described second virtual machine Point, then controls equipment to described second and sends the request of described virtual machine activation.
Management equipment is the cloud management platform of the virtual machine configuration between the different website of management and control, its Effect is to dispose flexibly for operation system offer, run and management environment, shields bottom hardware, operation The difference of system, for application provide safety, high-performance, expansible, can manage, reliable and telescopic entirely Face ensures, reduction is developed, disposes, run and the cost of maintenance application system.Void is restarted when needs are cross-site During plan machine, management equipment can restart virtual machine according to each site resource utilization power identification at which website, Nearby principle can also be taked to choose available website, then issue virtual machine activation request to this website.
It should be noted that the configuration information of the first virtual machine carried in virtual machine activation request mainly includes The information such as the specifications parameter of the first virtual machine and network configuration, have the second website of available server by the One virtual machine configuration information creates new virtual machine that is second virtual machine bare machine, and concrete, configuration information includes The central processor CPU of the first virtual machine, internal memory, disk, network interface card, operating system and network configuration etc. are believed Breath;The address information of LUN include management equipment be first virtual machine distribution storage device IP address and The more specific location information of LUN, has the second website of available server by address information searching storage device, Read the breaths such as the system disk in storage device and data disk to be loaded in virtual machine bare machine, thus complete The cross-site process restarted of virtual machine.
After virtual machine state exception in the embodiment of the present invention, the first control monitoring of equipment to the first website, Send virtual machine activation request so that second control equipment starts on the second server device of the second website and The second virtual machine that first virtual machine configuration is identical, also carries storage first in asking due to virtual machine activation The address information of the LUN of the data in magnetic disk of virtual machine, therefore the second website can be found by this address information Storage has the LUN of the first magnetic disk of virtual machine data, and the data in magnetic disk obtaining LUN is loaded into the second virtual machine In, it is achieved that across the virtual machine HA of physical cluster website, it is not necessary to carry out answering of data between two storage devices System synchronize, save Internet resources and storage resource input, and more efficiently achieve virtual machine across station Point switching.
Referring to Fig. 2, the flow process for the method for another management virtual machine of embodiment of the present invention offer is illustrated Figure, the method comprising the steps of S201-S202.
S201, second controls equipment sink virtual machine starts request.
It should be noted that the second control equipment is for monitoring virtual machine and server state in the second website Virtual platform, and as transmitting the medium of information, the second website between management equipment and server cluster And realize the mutual of information by HTTP Rest interface between management equipment.Second control equipment is controlled Second website refers to the virtual machine collection that can realize very fast traffic rate physically with preferable connection Group, generally refers to a LAN.In embodiments of the present invention, in the second website, there is available server, Therefore can be used for receiving the virtual machine activation request that management equipment issues.
Concrete, the second virtual machine activation controlling the first control equipment that equipment receives management device forwards please Asking, described management equipment is used for making described management equipment ask according to described virtual machine activation, selects described Two websites are as the website starting described second virtual machine.
It should be noted that management equipment is to configure for management and the virtual machine controlled between different website Cloud management platform, its role is to dispose flexibly for operation system offer, run and management environment, shielding Bottom hardware, the difference of operating system, for application provide safety, high-performance, expansible, can manage, can Leaning on and telescopic full-scope safeguards, reduction is developed, disposes, is run and the cost of maintenance application system.When needing When cross-site restarting virtual machine, management equipment can be stood at which according to each site resource utilization power identification Point restarts virtual machine, it is also possible to takes nearby principle to choose available website, then issues virtual to this website Machine starts request.
S202, second controls the second server that equipment is asked in the second website according to described virtual machine activation Upper startup the second virtual machine, wherein, the request of described virtual machine activation is carried and is operated in the first clothes in the first website The configuration information of the first virtual machine on business device and the address information of LUN LUN, described LUN position In the storage device being connected with described first server;Wherein, described second virtual machine is empty with described first The configuration information of plan machine is identical, and described second virtual machine is according to LUN described in the address information carry of described LUN Virtual disk as described second virtual machine.
After second control equipment receives virtual machine activation request, virtual machine activation request is resolved, obtains Take the configuration information of the first virtual machine and the address information of storage device.
It should be noted that the configuration information of the first virtual machine carried in virtual machine activation request mainly includes The information such as the specifications parameter of the first virtual machine and network configuration, have the second website of available server by the One virtual machine configuration information creates new virtual machine that is second virtual machine bare machine, and concrete, configuration information includes The central processor CPU of the first virtual machine, internal memory, disk, network interface card, operating system and network configuration etc. are believed Breath;The address information of LUN include management equipment be first virtual machine distribution storage device IP address and The more specific location information of LUN, has the second website of available server by address information searching storage device, Read the breaths such as the system disk in storage device and data disk to be loaded in virtual machine bare machine, thus complete The cross-site process restarted of virtual machine.
In embodiments of the present invention, after the virtual machine state exception in the first control monitoring of equipment to the first website, Send virtual machine activation request so that second control equipment starts on the second server device of the second website and The second virtual machine that first virtual machine configuration is identical, also carries storage first in asking due to virtual machine activation The address information of the LUN of the data in magnetic disk of virtual machine, therefore the second website can be found by this address information Storage has the LUN of the first magnetic disk of virtual machine data, and the data in magnetic disk obtaining LUN is loaded into the second virtual machine In, it is achieved that across the virtual machine HA of physical cluster website, it is not necessary to carry out answering of data between two storage devices System synchronize, save Internet resources and storage resource input, and more efficiently achieve virtual machine across station Point switching.
Refer to Fig. 3, for the structural representation of the first control equipment 3 that the embodiment of the present invention provides, control to set Standby 3 include monitoring modular 31, Unload module 32 and sending module 33.
Monitoring modular 31, operates in the fortune of the first virtual machine in first server in monitoring the first website Row state;Wherein, described first server connects storage device, described first virtual machine carry storage device On LUN LUN as the virtual disk of described first virtual machine.
It should be noted that the first control equipment is for monitoring virtual machine and server state in the first website Virtual platform, and as management equipment (i.e. cloud management platform) and server cluster between transmit information Medium, realize the mutual of information by HTTP Rest interface between the first website and management equipment.First The first website that control equipment is controlled refer to have physically preferable connection can realize very fast logical The cluster virtual machine of letter speed, generally refers to a LAN.
The cluster of first station field signal multiple servers including first server, the first virtual machine runs In first server.First server is connected with storage device, and storage device is for storage the first virtual machine Data in magnetic disk.
It should be noted that in the building process of server cluster place website, the storage being positioned at bottom sets Standby employing storage network structure carries out data storage, and the website on upper strata can access storage by storage network Related data, is based on TCP/IP network schemer between the first control equipment and storage network, passes through Rest Interface realizes the mutual of information.In embodiments of the present invention, storage network passes through RAID2.0(Redundant Array of Independent Disks Version2.0, independent disk redundancy array 2.0) technology, for website The single disk volume of virtual machine provides the storage resource of a LUN respectively, and each disk volume is externally rendered as The mode of LUN, the magnetic disk of virtual machine data of the most each website store with independent LUN, and i.e. A LUN in one virtual machine carry storage device is as the virtual disk of the first virtual machine.As long as therefore having IP address information and disk cell LUN information, control equipment just can by store scan mode identification Disk reading disk data to virtual machine.The reason using RAID2.0 is that RAID2.0 is by multiple Logical partition in physical disks constitutes a raid group, its minimum data protected location (data protection unit) Granularity is thinner, the most flexible and efficient.Single disk volume can be made externally to be rendered as by RAID2.0 technology The form of LUN, certainly, in other embodiments, it is possible to use other technologies, such as RAID3.0 or The disk volume of the technology definition storage networks such as RAID4.0.
Unload module 32, for when monitoring modular 31 monitors the first virtual machine state exception, unloading is described The described LUN of the first virtual machine carry.
When monitoring modular 31 monitors described first virtual machine state exception, the i.e. first virtual machine breaks down Or when the first server at the first virtual machine place breaks down, the first control equipment stops the first virtual machine Operation, and available free available server resource can be searched whether in the first website, if having, at this Restart this virtual machine in website, if nothing, then need the first virtual machine is switched to have available service at another Restart on the website of device.It should be noted that the disk storage equipment of a disk volume is at synchronization Can only carry on a website, therefore Unload module 32 need to unload the first virtual machine carry on the first website LUN, the virtual machine after so restarting could correctly search out disk storage equipment and access storage Data in magnetic disk.
Sending module 33, is used for sending virtual machine activation request, is used for making the second control equipment according to described void Plan machine starts and starts the second virtual machine on request second server in the second website;Wherein, described virtual Machine starts request and carries configuration information and the address information of described LUN of described first virtual machine, so that described First virtual machine is identical with the configuration information of described second virtual machine, makes described second control equipment instruction described Second virtual machine is according to LUN described in the address information carry of described LUN.
It should be noted that the second control equipment is for monitoring virtual machine and server state in the second website Virtual platform, and as management equipment (i.e. cloud management platform) and server cluster between transmit information Medium, realize the mutual of information by HTTP Rest interface between the second website and management equipment.Second The second website that control equipment is controlled refer to have physically preferable connection can realize very fast logical The cluster virtual machine of letter speed, generally refers to a LAN.
In some embodiments of the invention, referring to Fig. 4, sending module 33 includes transmitting element 331, sends out Unit 331 is sent to ask, so that described management equipment is to institute for sending described virtual machine activation to management equipment Second control equipment of stating sends the request of described virtual machine activation.
Transmitting element 331 makes described management equipment send described virtual machine activation to described second control equipment please Before asking, it is additionally operable to make described management equipment ask according to described virtual machine activation, selects described second website As the website starting described second virtual machine.
Management equipment is the cloud management platform of the virtual machine configuration between the different website of management and control, its Effect is to dispose flexibly for operation system offer, run and management environment, shields bottom hardware, operation The difference of system, for application provide safety, high-performance, expansible, can manage, reliable and telescopic entirely Face ensures, reduction is developed, disposes, run and the cost of maintenance application system.Void is restarted when needs are cross-site During plan machine, management equipment can restart virtual machine according to each site resource utilization power identification at which website, Nearby principle can also be taked to choose available website, then issue virtual machine activation request to this website.
It should be noted that the configuration information of the first virtual machine carried in virtual machine activation request mainly includes The information such as the specifications parameter of the first virtual machine and network configuration, have the second website of available server by the One virtual machine configuration information creates new virtual machine that is second virtual machine bare machine, and concrete, configuration information includes The central processor CPU of the first virtual machine, internal memory, disk, network interface card, operating system and network configuration etc. are believed Breath;The address information of LUN include management equipment be first virtual machine distribution storage device IP address and The more specific location information of LUN, has the second website of available server by address information searching storage device, Read the breaths such as the system disk in storage device and data disk to be loaded in virtual machine bare machine, thus complete The cross-site process restarted of virtual machine.
After virtual machine state exception in the embodiment of the present invention, the first control monitoring of equipment to the first website, Send virtual machine activation request so that second control equipment starts on the second server device of the second website and The second virtual machine that first virtual machine configuration is identical, also carries storage first in asking due to virtual machine activation The address information of the LUN of the data in magnetic disk of virtual machine, therefore the second website can be found by this address information Storage has the LUN of the first magnetic disk of virtual machine data, and the data in magnetic disk obtaining LUN is loaded into the second virtual machine In, it is achieved that across the virtual machine HA of physical cluster website, it is not necessary to carry out answering of data between two storage devices System synchronize, save Internet resources and storage resource input, and more efficiently achieve virtual machine across station Point switching.
Refer to Fig. 5, for the structural representation of the second control equipment 4 that the embodiment of the present invention provides, control Equipment 4 includes receiver module 41 and virtual machine activation module 42.
Receiver module 41, starts request for sink virtual machine.
It should be noted that the second control equipment is for monitoring virtual machine and server state in the second website Virtual platform, and as transmitting the medium of information, the second website between management equipment and server cluster And realize the mutual of information by HTTP Rest interface between management equipment.Second control equipment is controlled Second website refers to the virtual machine collection that can realize very fast traffic rate physically with preferable connection Group, generally refers to a LAN.In embodiments of the present invention, in the second website, there is available server, Therefore receiver module 41 can be used for receiving the virtual machine activation request that management equipment issues.
In some embodiments of the invention, referring to Fig. 6, receiver module 41 includes receiving unit 411, connects Receive unit 411 for receiving the virtual machine activation request of the first control equipment of management device forwards, described pipe Reason equipment is used for making described management equipment ask according to described virtual machine activation, selects described second website conduct Start the website of described second virtual machine.
It should be noted that management equipment is to configure for management and the virtual machine controlled between different website Cloud management platform, its role is to dispose flexibly for operation system offer, run and management environment, shielding Bottom hardware, the difference of operating system, for application provide safety, high-performance, expansible, can manage, can Leaning on and telescopic full-scope safeguards, reduction is developed, disposes, is run and the cost of maintenance application system.When needing When cross-site restarting virtual machine, management equipment can be stood at which according to each site resource utilization power identification Point restarts virtual machine, it is also possible to takes nearby principle to choose available website, then issues virtual to this website Machine starts request.
Virtual machine activation module 42, for the second clothes asked in the second website according to described virtual machine activation The second virtual machine is started on business device;Wherein, the request of described virtual machine activation is carried and is operated in the first website the The configuration information of the first virtual machine on one server and the address information of LUN LUN, described LUN It is positioned in the storage device being connected with described first server;Wherein, described second virtual machine and described first The configuration information of virtual machine is identical, and described second virtual machine is according to described in the address information carry of described LUN LUN is as the virtual disk of described second virtual machine.
After second control equipment receives virtual machine activation request, virtual machine activation request is resolved, obtains Take the configuration information of the first virtual machine and the address information of storage device.
It should be noted that the configuration information of the first virtual machine carried in virtual machine activation request mainly includes The information such as the specifications parameter of the first virtual machine and network configuration, have the second website of available server by the One virtual machine configuration information creates new virtual machine that is second virtual machine bare machine, and concrete, configuration information includes The central processor CPU of the first virtual machine, internal memory, disk, network interface card, operating system and network configuration etc. are believed Breath;The address information of LUN include management equipment be first virtual machine distribution storage device IP address and The more specific location information of LUN, has the second website of available server by address information searching storage device, Read the breaths such as the system disk in storage device and data disk to be loaded in virtual machine bare machine, thus complete The cross-site process restarted of virtual machine.
In embodiments of the present invention, after the virtual machine state exception in the first control monitoring of equipment to the first website, Send virtual machine activation request so that second control equipment starts on the second server device of the second website and The second virtual machine that first virtual machine configuration is identical, also carries storage first in asking due to virtual machine activation The address information of the LUN of the data in magnetic disk of virtual machine, therefore the second website can be found by this address information Storage has the LUN of the first magnetic disk of virtual machine data, and the data in magnetic disk obtaining LUN is loaded into the second virtual machine In, it is achieved that across the virtual machine HA of physical cluster website, it is not necessary to carry out answering of data between two storage devices System synchronize, save Internet resources and storage resource input, and more efficiently achieve virtual machine across station Point switching.
The embodiment of the present invention additionally provides a kind of system managing virtual machine, including management equipment, virtual machine collection Group, as shown in Figure 3 first control equipment and as shown in Figure 4 second control equipment, it is embodied as Mode refers to above-described embodiment, does not repeats them here.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, Can be by computer program and complete to instruct relevant hardware, described program can be stored in a calculating In machine read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method. Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, Or random store-memory body (Random Access Memory, RAM) etc. ROM).
Above disclosed be only present pre-ferred embodiments, certainly can not with this limit the present invention it Interest field, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is contained.

Claims (11)

1. the method managing virtual machine, it is characterised in that including:
First controls to operate in monitoring of equipment the first website the operation shape of the first virtual machine in first server State;Wherein, described first server connects storage device, in described first virtual machine carry storage device LUN LUN is as the virtual disk of described first virtual machine;
When monitoring described first virtual machine state exception, described first controls described first void of equipment unloading The described LUN of plan machine carry;
Described first controls equipment sends virtual machine activation request, is used for making the second control equipment according to described void Plan machine starts and starts the second virtual machine on request second server in the second website;Wherein, described virtual Machine starts request and carries configuration information and the address information of described LUN of described first virtual machine, so that described First virtual machine is identical with the configuration information of described second virtual machine, and makes described second control equipment instruction Described second virtual machine is according to LUN described in the address information carry of described LUN.
2. the method managing virtual machine as claimed in claim 1, it is characterised in that described first controls to set Preparation send virtual machine activation to ask, and is used for making the second control equipment ask second according to described virtual machine activation Start the second virtual machine on second server in website, specifically include:
Described first controls equipment sends the request of described virtual machine activation to management equipment, so that described management sets Standby to described second control equipment transmission described virtual machine activation request.
3. the method managing virtual machine as claimed in claim 2, it is characterised in that described first controls to set It is standby to described management equipment transmission described virtual machine activation request, so that described management equipment is to described second control Before control equipment sends the request of described virtual machine activation, it is additionally operable to make described management equipment according to described virtual machine Start request, select described second website as the website starting described second virtual machine.
4. the method managing virtual machine, it is characterised in that including:
Second controls equipment sink virtual machine starts request;
Described second controls equipment asks on the second server in the second website according to described virtual machine activation Start the second virtual machine;
Wherein, to carry first operated in the first website in first server empty for the request of described virtual machine activation The configuration information of plan machine and the address information of LUN LUN, described LUN is positioned at and described first clothes In the storage device that business device connects;
Wherein, described second virtual machine is identical with the configuration information of described first virtual machine, described second virtual Machine according to LUN described in the address information carry of described LUN as the virtual disk of described second virtual machine;
Described second controls equipment sink virtual machine starts request, including: described second controls equipment receives pipe The virtual machine activation request of the first control equipment of reason device forwards.
5. the method managing virtual machine as claimed in claim 4, it is characterised in that described management equipment is used In making described management equipment ask according to described virtual machine activation, select described second website described as starting The website of the second virtual machine.
6. one kind controls equipment, it is characterised in that including:
Monitoring modular, operates in the operation of the first virtual machine in first server in monitoring the first website State;Wherein, described first server connects storage device, in described first virtual machine carry storage device LUN LUN as the virtual disk of described first virtual machine;
Unload module, for when described monitoring module monitors to described first virtual machine state exception, unloads The described LUN of described first virtual machine carry;
Sending module, is used for sending virtual machine activation request, is used for making the second control equipment according to described virtual Machine starts and starts the second virtual machine on request second server in the second website;Wherein, described virtual machine Start request and carry configuration information and the address information of described LUN of described first virtual machine, so that described the One virtual machine is identical with the configuration information of described second virtual machine, makes described second control equipment instruction described the Two virtual machines are according to LUN described in the address information carry of described LUN.
Control equipment the most as claimed in claim 6, it is characterised in that described sending module includes:
Transmitting element, for sending the request of described virtual machine activation to management equipment, so that described management equipment Control equipment to described second and send the request of described virtual machine activation.
Control equipment the most as claimed in claim 7, it is characterised in that described transmitting element makes described management Equipment, before described second control equipment sends the request of described virtual machine activation, is additionally operable to make described management set For asking according to described virtual machine activation, select described second website as the station starting described second virtual machine Point.
9. one kind controls equipment, it is characterised in that including:
Receiver module, starts request for sink virtual machine;
Virtual machine activation module, for the second service asked in the second website according to described virtual machine activation The second virtual machine is started on device;
Wherein, to carry first operated in the first website in first server empty for the request of described virtual machine activation The configuration information of plan machine and the address information of LUN LUN, described LUN is positioned at and described first clothes In the storage device that business device connects;
Wherein, described second virtual machine is identical with the configuration information of described first virtual machine, described second virtual Machine according to LUN described in the address information carry of described LUN as the virtual disk of described second virtual machine;
Described sink virtual machine starts request, including: receive the void of the first control equipment of management device forwards Plan machine starts request.
Control equipment the most as claimed in claim 9, it is characterised in that described receiver module includes:
Receive unit, for receiving the virtual machine activation request of the first control equipment of management device forwards, institute State management equipment for making described management equipment ask according to described virtual machine activation, select described second website As the website starting described second virtual machine.
11. 1 kinds of systems managing virtual machine, it is characterised in that include as described in any one of claim 6-8 Control equipment and the control equipment as described in any one of claim 9-10.
CN201310636262.2A 2013-11-27 2013-11-27 A kind of manage the method for virtual machine, Apparatus and system Active CN103618627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310636262.2A CN103618627B (en) 2013-11-27 2013-11-27 A kind of manage the method for virtual machine, Apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310636262.2A CN103618627B (en) 2013-11-27 2013-11-27 A kind of manage the method for virtual machine, Apparatus and system

Publications (2)

Publication Number Publication Date
CN103618627A CN103618627A (en) 2014-03-05
CN103618627B true CN103618627B (en) 2017-01-04

Family

ID=50169331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310636262.2A Active CN103618627B (en) 2013-11-27 2013-11-27 A kind of manage the method for virtual machine, Apparatus and system

Country Status (1)

Country Link
CN (1) CN103618627B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105490908A (en) * 2014-09-16 2016-04-13 中兴通讯股份有限公司 Method and device for processing occupied conditions of target resource
CN104461687B (en) * 2014-11-20 2018-03-09 华为技术有限公司 The storage method and device of a kind of virtual machine configuration information
CN104484231A (en) * 2014-12-31 2015-04-01 武汉邮电科学研究院 Virtual machine switching system and method
CN105204955B (en) * 2015-09-30 2018-05-29 华为技术有限公司 A kind of virtual-machine fail restorative procedure and device
US10158583B2 (en) * 2016-03-17 2018-12-18 Huawei Technologies Co., Ltd. Virtual network function state scaling
CN107544841B (en) * 2016-06-29 2022-12-02 中兴通讯股份有限公司 Virtual machine live migration method and system
CN106850315B (en) * 2017-03-16 2020-11-20 苏州浪潮智能科技有限公司 Automatic disaster recovery system
CN107465740A (en) * 2017-08-02 2017-12-12 郑州云海信息技术有限公司 A kind of LUN Mode Data means of communication and system
CN107896176B (en) * 2017-12-05 2021-03-16 深圳市共济科技股份有限公司 Processing method of computing node, intelligent terminal and storage medium
WO2019196062A1 (en) 2018-04-12 2019-10-17 华为技术有限公司 Method and device for detecting state of virtual machine
CN110034951A (en) * 2019-03-06 2019-07-19 平安科技(深圳)有限公司 The failure switching method and iSCSI major heading device of iscsi target device
CN112181593A (en) * 2020-09-27 2021-01-05 北京首都在线科技股份有限公司 Virtual machine scheduling method, device, equipment and storage medium
CN112367186B (en) * 2020-10-13 2023-01-10 苏州浪潮智能科技有限公司 Fault protection method and device based on 0penStack bare computer
CN115639969B (en) * 2022-11-17 2023-05-09 广州粤芯半导体技术有限公司 Storage disk main-standby switching method and device and computer equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101669106A (en) * 2007-04-25 2010-03-10 微软公司 Virtual machine migration
CN102103524A (en) * 2010-12-23 2011-06-22 北京航空航天大学 Memory redundancy oriented virtual machine migration device and method
CN102422277A (en) * 2009-05-12 2012-04-18 微软公司 Converting luns into files or files into luns in real time

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090172125A1 (en) * 2007-12-28 2009-07-02 Mrigank Shekhar Method and system for migrating a computer environment across blade servers
US8578083B2 (en) * 2009-03-03 2013-11-05 Vmware, Inc. Block map based I/O optimization for storage virtual appliances

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101669106A (en) * 2007-04-25 2010-03-10 微软公司 Virtual machine migration
CN102422277A (en) * 2009-05-12 2012-04-18 微软公司 Converting luns into files or files into luns in real time
CN102103524A (en) * 2010-12-23 2011-06-22 北京航空航天大学 Memory redundancy oriented virtual machine migration device and method

Also Published As

Publication number Publication date
CN103618627A (en) 2014-03-05

Similar Documents

Publication Publication Date Title
CN103618627B (en) A kind of manage the method for virtual machine, Apparatus and system
CN106899518B (en) Resource processing method and device based on Internet data center
US9448899B2 (en) Method, apparatus and system for switching over virtual application two-node cluster in cloud environment
US8521703B2 (en) Multiple node/virtual input/output (I/O) server (VIOS) failure recovery in clustered partition mobility
CN107526659B (en) Method and apparatus for failover
US11106556B2 (en) Data service failover in shared storage clusters
US8935496B2 (en) Management method of virtual storage system and remote copy system
US8583773B2 (en) Autonomous primary node election within a virtual input/output server cluster
US9489230B1 (en) Handling of virtual machine migration while performing clustering operations
CN106528327B (en) A kind of data processing method and backup server
CN110912991A (en) Super-fusion-based high-availability implementation method for double nodes
CN112948063B (en) Cloud platform creation method and device, cloud platform and cloud platform implementation system
CN103746855A (en) Method and device for processing abnormal events in telecom cloud
CN111935244B (en) Service request processing system and super-integration all-in-one machine
KR102210408B1 (en) Method for duplication of virtualization server and Virtualization control apparatus thereof
CN104517067A (en) Method, device and system for data access
CN108200151B (en) ISCSI Target load balancing method and device in distributed storage system
US11153173B1 (en) Dynamically updating compute node location information in a distributed computing environment
CN115766405B (en) Fault processing method, device, equipment and storage medium
CN111400285A (en) MySQ L data fragment processing method, apparatus, computer device and readable storage medium
US9710298B2 (en) Information processing system, storage apparatus, and program
CN105743696A (en) Cloud computing platform management method
CN107515725B (en) Method and device for sharing disk by core network virtualization system and network management MANO system
CN102833096B (en) The high-availability system of a kind of low cost realizes method and device
AU2021266891B2 (en) Fencing non-responding ports in a network fabric

Legal Events

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