CN103618627A - Method, device and system for managing virtual machines - Google Patents
Method, device and system for managing virtual machines Download PDFInfo
- Publication number
- CN103618627A CN103618627A CN201310636262.2A CN201310636262A CN103618627A CN 103618627 A CN103618627 A CN 103618627A CN 201310636262 A CN201310636262 A CN 201310636262A CN 103618627 A CN103618627 A CN 103618627A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- control appliance
- lun
- website
- activation 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.)
- Granted
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Hardware Redundancy (AREA)
Abstract
The embodiment of the invention discloses a method, device and system for managing virtual machines. The method comprises the steps that a first control device monitors the running state, in a first station, of the first virtual machine running on a first server, wherein the first server is connected with a storage device, and an LUN on the storage device is mounted on the first virtual machine and used as a virtual disk of the first virtual machine; when the state of the first virtual machine is monitored to be abnormal, the LUN mounted on the first virtual machine is dismounted by a first control device; the first control device sends starting requests of the virtual machines, and the starting requests are used for enabling a second control device to start a second virtual machine on a second server in a second station according to the starting requests of the virtual machines. By the adoption of the method, the virtual machine HA of across-physical cluster stations is achieved, data duplication between the two storage devices is not required, the investment in the network resources and storage resources is saved, and the across-station switching of the virtual machines is more efficiently achieved.
Description
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method, Apparatus and system of managing virtual machines.
Background technology
One of single virtual platform website general management comprises the cluster of the above servers of two or two, for virtual machine and virtual machine place server host provide the monitoring of continuation.When virtual machine or virtual machine place server failure, automatically switch on an other station server and restart this virtual machine.Yet, if (current single cluster server is limited in right amount for server inadequate resource in the website of virtual machine place, such as a cluster is only supported 32 station servers), need to restart to realize cross-site high availability (High Availability, HA) by what realize virtual machine at an other website.
In the prior art, in order to realize the cross-site HA of virtual machine, below general employing, two kinds of modes are restarted virtual machine:
1, adopt the cross-site HA software that synchronously copies virtual machine data in magnetic disk, software moves transfer of virtual machine data in magnetic disk between two websites, and two websites need storage virtual machine data in magnetic disk simultaneously, and need periodic synchronous data between two websites.HA software copy diskette data can take Internet resources, and data synchronously exist delay issue, and need to drop into extra storage resources.
2, adopt LUN (the Logical Unit Number of cross-site storage system, LUN) synchronously copy virtual machine data in magnetic disk, need to drop into extra storage resources equally, the virtual machine data in magnetic disk on the LUN of storage redundancy, has increased the storage overhead that builds HA.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, a kind of method, Apparatus and system of managing virtual machines is provided, and in the time of can realizing the cross-site switching of virtual machine, without copy diskette data, has saved memory space.
In order to solve the problems of the technologies described above, first aspect present invention provides a kind of method of managing virtual machines, can comprise:
The first control appliance is monitored the running status that operates in the first virtual machine in first server in the first website; Wherein, described first server connects memory device, and the LUN LUN on described the first virtual machine carry memory device is as the virtual disk of described the first virtual machine;
When monitoring described the first virtual machine state when abnormal, described the first control appliance unloads the described LUN of described the first virtual machine carry;
Described the first control appliance sends virtual machine activation request, for making the second control appliance start the second virtual machine according to described virtual machine activation request on the second server in the second website; Wherein, the address information of configuration information and the described LUN of described the first virtual machine is carried in described virtual machine activation request, so that described the first virtual machine is identical with the configuration information of described the second virtual machine, make described the second control appliance indicate described the second virtual machine according to LUN described in the address information carry of described LUN.
Based on first aspect, in the feasible execution mode of the first of first aspect, described the first control appliance sends virtual machine activation request, for making the second control appliance start the second virtual machine according to described virtual machine activation request on the second server in the second website, specifically comprises:
Described the first control appliance sends described virtual machine activation request to management equipment, so that described management equipment sends described virtual machine activation request to described the second control appliance.
The feasible execution mode of the first based on first aspect, in the feasible execution mode of the second of first aspect, described the first control appliance sends described virtual machine activation request to described management equipment, so that before described management equipment sends described virtual machine activation request to described the second control appliance, also, for making described management equipment according to described virtual machine activation request, select described the second website as the website that starts described the second virtual machine.
Second aspect present invention provides a kind of method of managing virtual machines, can comprise:
The second control appliance sink virtual machine starts request;
Described the second control appliance starts the second virtual machine according to described virtual machine activation request on the second server in the second website;
Wherein, described virtual machine activation request is carried and is operated in the configuration information of the first virtual machine and the address information of LUN LUN in first server in the first website, and described LUN is positioned on the memory device being connected with described first server;
Wherein, described the second virtual machine is identical with the configuration information of described the first virtual machine, and described the second virtual machine is the virtual disk as described the second virtual machine according to LUN described in the address information carry of described LUN.
Based on second aspect, in the feasible execution mode of the first of second aspect, described the second control appliance sink virtual machine starts request, comprising:
The virtual machine activation request of the first control appliance of described the second control appliance receiving management device forwards, described management equipment is used for making described management equipment according to described virtual machine activation request, selects described the second website as the website that starts described the second virtual machine.
Third aspect present invention provides a kind of control appliance, can comprise:
Monitoring modular, for monitoring the running status that operates in the first virtual machine in first server in the first website; Wherein, described first server connects memory device, and the LUN LUN on described the first virtual machine carry memory device is as the virtual disk of described the first virtual machine;
Unload module, for when abnormal, unloading the described LUN of described the first virtual machine carry to described the first virtual machine state when described monitoring module monitors;
Sending module, for sending virtual machine activation request, for making the second control appliance start the second virtual machine according to described virtual machine activation request on the second server in the second website; Wherein, the address information of configuration information and the described LUN of described the first virtual machine is carried in described virtual machine activation request, so that described the first virtual machine is identical with the configuration information of described the second virtual machine, make described the second control appliance indicate described the second virtual machine according to LUN described in the address information carry of described LUN.
Based on the third aspect, in the feasible execution mode of the first of the third aspect, transmitting element, for send described virtual machine activation request to management equipment, so that described management equipment sends described virtual machine activation request to described the second control appliance.
The feasible execution mode of the first based on the third aspect, in the feasible execution mode of the second of the third aspect, described transmitting element makes before described management equipment sends described virtual machine activation request to described the second control appliance, also, for making described management equipment according to described virtual machine activation request, select described the second website as the website that starts described the second virtual machine.
Fourth aspect present invention provides a kind of control appliance, comprising:
Receiver module, starts request for sink virtual machine;
Virtual machine activation module, for starting the second virtual machine according to described virtual machine activation request on the second server in the second website;
Wherein, described virtual machine activation request is carried and is operated in the configuration information of the first virtual machine and the address information of LUN LUN in first server in the first website, and described LUN is positioned on the memory device being connected with described first server;
Wherein, described the second virtual machine is identical with the configuration information of described the first virtual machine, and described the second virtual machine is the virtual disk as described the second virtual machine according to LUN described in the address information carry of described LUN.
Based on fourth aspect, in the feasible execution mode of the first of fourth aspect, described receiver module comprises:
Receiving element, for the virtual machine activation request of the first control appliance of receiving management device forwards, described management equipment is used for making described management equipment according to described virtual machine activation request, selects described the second website as the website that starts described the second virtual machine.
Fifth aspect present invention also provides a kind of system of managing virtual machines, comprises control appliance as described in third aspect present invention and the control appliance as described in fourth aspect present invention.
Adopt the embodiment of the present invention, the first control appliance monitors it and controls after the virtual machine or virtual machine place server breaking down in website, to management equipment transmitting station handover request search there is available server website to restart virtual machine, owing to having carried the positional information of disk storage device in website handover request, the website therefore with available server can find the disk storage device that stores virtual machine data in magnetic disk by this positional information, and obtain data in magnetic disk to load, realized the virtual machine HA across physical cluster website, and without carry out the replication synchronization of data between two memory devices, saved the input of Internet resources and storage resources, and realized more efficiently the cross-site switching of virtual machine.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of the method for a kind of managing virtual machines of providing of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for the another kind of managing virtual machines that provides of the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of control appliance of providing of the embodiment of the present invention;
Fig. 4 is the structural representation of the sending module that provides of the embodiment of the present invention;
Fig. 5 is the structural representation of the another kind of control appliance that provides of the embodiment of the present invention;
Fig. 6 is the structural representation of the receiver module that provides of the embodiment of the present invention.
Embodiment
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 clearly described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
In embodiments of the present invention, mainly control appliance and the server cluster combination by management equipment, website realizes cross-site virtual machine HA(High Availability, high availability), and with the execution mode of zero data Replica realize re-creating of virtual machine and start.
High availability HA refers to the downtime causing because of regular maintenance operation (plan) or the system crash (unplanned) that happens suddenly by as far as possible shortening, with the availability of raising system and application.In the embodiment of the present invention, mainly solve the problem of the service disruption being caused when the fault such as machine by server, from the angle of disk storage reduce the time of service disruption, the work of restarting of saving storage resources and completing more efficiently virtual machine
Refer to Fig. 1, the schematic flow sheet of the method for a kind of managing virtual machines providing for the embodiment of the present invention, the method comprising the steps of S101-S103.
S101, the first control appliance is monitored the running status that operates in the first virtual machine in first server in the first website; Wherein, described first server connects memory device, and the LUN LUN on described the first virtual machine carry memory device is as the virtual disk of described the first virtual machine;
It should be noted that, the first control appliance is for monitoring the virtual platform of virtual machine and server state in the first website, and as the medium of transmission of information between management equipment (being cloud management platform) and server cluster, mutual by HTTP Rest Interface realization information between the first website and management equipment.The first website that the first control appliance is controlled refers to the cluster virtual machine that can realize very fast traffic rate physically with good connection, generally refers to a local area network (LAN).
The first website supervisory packet is drawn together first server at the cluster of interior a plurality of servers, and the first virtual machine runs in first server.First server is connected with memory device, and memory device is for storing the data in magnetic disk of the first virtual machine.
It should be noted that, in the building process of server cluster place website, the memory device that is positioned at bottom adopts storage networking structure to carry out data storage, the website on upper strata can be accessed by storage networking the related data of storage, between the first control appliance and storage networking, be based on TCP/IP network schemer, mutual by Rest Interface realization information.In embodiments of the present invention, storage networking is by RAID2.0(Redundant Array of Independent Disks Version2.0, independent disk redundancy array 2.0) technology, for the single disk volume of the virtual machine of website provides respectively the storage resources of a LUN, each disk volume is externally rendered as the mode of LUN, therefore the virtual machine data in magnetic disk of each website is stored with LUN independently, and a LUN on the first virtual machine carry memory device is as the virtual disk of the first virtual machine.Therefore as long as, some IP address informations and disk cell LUN information, control appliance just can recognize by memory scanning mode disk the reading disk data of virtual machine.Adopt the reason of RAID2.0 to be that RAID2.0 forms a raid group by the logical partition in a plurality of physical disks, its minimum data protected location (data protection unit) granularity is thinner, more flexible and efficient.By RAID2.0 technology, can make single disk volume externally be rendered as the form of LUN, certainly, in other embodiments, also can adopt other technologies, as the disk volume of the technology definition storage networkings such as RAID3.0 or RAID4.0.
S102, when monitoring described the first virtual machine state when abnormal, described the first control appliance unloads the described LUN of described the first virtual machine carry;
When monitoring described the first virtual machine state when abnormal, the first virtual machine breaks down or when the first server at the first virtual machine place breaks down, the first control appliance stops the operation of the first virtual machine, and whether can in the first website, search available free available server resource, if have, in this website, restart this virtual machine, if nothing, needs the first virtual machine to be switched on another has the website of available server and to restart.It should be noted that, the disk storage device of a disk volume synchronization can only carry on a website, therefore the first control appliance need unload the LUN of the first virtual machine carry on the first website, and the virtual machine after restarting like this could correctly search out the data in magnetic disk of disk storage device access storage.
S103, the first control appliance sends virtual machine activation request, for making the second control appliance start the second virtual machine according to described virtual machine activation request on the second server in the second website; Wherein, the address information of configuration information and the described LUN of described the first virtual machine is carried in described virtual machine activation request, so that described the first virtual machine is identical with the configuration information of described the second virtual machine, make described the second control appliance indicate described the second virtual machine according to LUN described in the address information carry of described LUN.
It should be noted that, the second control appliance is for monitoring the virtual platform of virtual machine and server state in the second website, and as the medium of transmission of information between management equipment (being cloud management platform) and server cluster, mutual by HTTP Rest Interface realization information between the second website and management equipment.The second website that the second control appliance is controlled refers to the cluster virtual machine that can realize very fast traffic rate physically with good connection, generally refers to a local area network (LAN).
In some embodiments of the invention, the first control appliance sends virtual machine activation request, and for making the second control appliance start the second virtual machine according to described virtual machine activation request on the second server in the second website, embodiment comprises:
Described the first control appliance sends described virtual machine activation request to management equipment, so that described management equipment is according to described virtual machine activation request, select described the second website as the website that starts described the second virtual machine, then to described the second control appliance, send described virtual machine activation request.
Management equipment is for managing and control the cloud management platform of the virtual machine configuration between different websites, its role is to provides deployment, Operation and management environment flexibly for operation system, the difference of shielding bottom hardware, operating system, for application provides safety, high-performance, can expand, can manage, reliable and telescopic full-scope safeguards, reduce the cost of exploitation, deployment, operation and maintenance application system.When needs are cross-site while restarting virtual machine, management equipment can be utilized situation to be identified in which website according to each site resource to restart virtual machine, also can take nearby principle to choose available website, then to this website, issue virtual machine activation request.
It should be noted that, the configuration information of the first virtual machine carrying in virtual machine activation request mainly comprises the information such as the specifications parameter of the first virtual machine and network configuration, second website with available server creates i.e. the second virtual machine bare machine of new virtual machine by the first virtual machine configuration information, concrete, configuration information comprises the information such as central processor CPU, internal memory, disk, network interface card, operating system and network configuration of the first virtual machine; The address information of LUN comprises that management equipment is the IP address of the memory device that distributes of the first virtual machine and the more specific location information of LUN, second website with available server is found memory device by address information, read the breaths such as system disk in memory device and data disk and be loaded in virtual machine bare machine, thereby complete the cross-site process of restarting of virtual machine.
In the embodiment of the present invention, the first control appliance monitor virtual machine state in the first website abnormal after, send virtual machine activation request so that the second control appliance starts with the first virtual machine and configures the second identical virtual machine on the second server device of the second website, owing to also having carried the address information of the LUN of the data in magnetic disk of storing the first virtual machine in virtual machine activation request, therefore the second website can find the LUN that stores the first virtual machine data in magnetic disk by this address information, and the data in magnetic disk that obtains LUN is loaded in the second virtual machine, realized the virtual machine HA across physical cluster website, without carry out the replication synchronization of data between two memory devices, saved the input of Internet resources and storage resources, and realized more efficiently the cross-site switching of virtual machine.
Refer to Fig. 2, the schematic flow sheet of the method for another managing virtual machines providing for the embodiment of the present invention, the method comprising the steps of S201-S202.
S201, the second control appliance sink virtual machine starts request.
It should be noted that, the second control appliance is for monitoring the virtual platform of virtual machine and server state in the second website, and as the medium of transmission of information between management equipment and server cluster, mutual by HTTP Rest Interface realization information between the second website and management equipment.The second website that the second control appliance is controlled refers to the cluster virtual machine that can realize very fast traffic rate physically with good connection, generally refers to a local area network (LAN).In embodiments of the present invention, in the second website, there is available server, therefore can be used for the virtual machine activation request that receiving management equipment issues.
Concrete, the virtual machine activation request of the first control appliance of the second control appliance receiving management device forwards, described management equipment is used for making described management equipment according to described virtual machine activation request, selects described the second website as the website that starts described the second virtual machine.
It should be noted that, management equipment is for managing and control the cloud management platform of the virtual machine configuration between different websites, its role is to provides deployment, Operation and management environment flexibly for operation system, the difference of shielding bottom hardware, operating system, for application provides safety, high-performance, can expand, can manage, reliable and telescopic full-scope safeguards, reduce the cost of exploitation, deployment, operation and maintenance application system.When needs are cross-site while restarting virtual machine, management equipment can be utilized situation to be identified in which website according to each site resource to restart virtual machine, also can take nearby principle to choose available website, then to this website, issue virtual machine activation request.
S202, the second control appliance starts the second virtual machine according to described virtual machine activation request on the second server in the second website, wherein, described virtual machine activation request is carried and is operated in the configuration information of the first virtual machine and the address information of LUN LUN in first server in the first website, and described LUN is positioned on the memory device being connected with described first server; Wherein, described the second virtual machine is identical with the configuration information of described the first virtual machine, and described the second virtual machine is the virtual disk as described the second virtual machine according to LUN described in the address information carry of described LUN.
The second control appliance receives after virtual machine activation request, and to virtual machine activation, request is resolved, and obtains the address information of configuration information and the memory device of the first virtual machine.
It should be noted that, the configuration information of the first virtual machine carrying in virtual machine activation request mainly comprises the information such as the specifications parameter of the first virtual machine and network configuration, second website with available server creates i.e. the second virtual machine bare machine of new virtual machine by the first virtual machine configuration information, concrete, configuration information comprises the information such as central processor CPU, internal memory, disk, network interface card, operating system and network configuration of the first virtual machine; The address information of LUN comprises that management equipment is the IP address of the memory device that distributes of the first virtual machine and the more specific location information of LUN, second website with available server is found memory device by address information, read the breaths such as system disk in memory device and data disk and be loaded in virtual machine bare machine, thereby complete the cross-site process of restarting of virtual machine.
In embodiments of the present invention, the first control appliance monitor virtual machine state in the first website abnormal after, send virtual machine activation request so that the second control appliance starts with the first virtual machine and configures the second identical virtual machine on the second server device of the second website, owing to also having carried the address information of the LUN of the data in magnetic disk of storing the first virtual machine in virtual machine activation request, therefore the second website can find the LUN that stores the first virtual machine data in magnetic disk by this address information, and the data in magnetic disk that obtains LUN is loaded in the second virtual machine, realized the virtual machine HA across physical cluster website, without carry out the replication synchronization of data between two memory devices, saved the input of Internet resources and storage resources, and realized more efficiently the cross-site switching of virtual machine.
Refer to Fig. 3, the structural representation of the first control appliance 3 providing for the embodiment of the present invention, control appliance 3 comprises monitoring modular 31, Unload module 32 and sending module 33.
Monitoring modular 31, for monitoring the running status that operates in the first virtual machine in first server in the first website; Wherein, described first server connects memory device, and the LUN LUN on described the first virtual machine carry memory device is as the virtual disk of described the first virtual machine.
It should be noted that, the first control appliance is for monitoring the virtual platform of virtual machine and server state in the first website, and as the medium of transmission of information between management equipment (being cloud management platform) and server cluster, mutual by HTTP Rest Interface realization information between the first website and management equipment.The first website that the first control appliance is controlled refers to the cluster virtual machine that can realize very fast traffic rate physically with good connection, generally refers to a local area network (LAN).
The first website supervisory packet is drawn together first server at the cluster of interior a plurality of servers, and the first virtual machine runs in first server.First server is connected with memory device, and memory device is for storing the data in magnetic disk of the first virtual machine.
It should be noted that, in the building process of server cluster place website, the memory device that is positioned at bottom adopts storage networking structure to carry out data storage, the website on upper strata can be accessed by storage networking the related data of storage, between the first control appliance and storage networking, be based on TCP/IP network schemer, mutual by Rest Interface realization information.In embodiments of the present invention, storage networking is by RAID2.0(Redundant Array of Independent Disks Version2.0, independent disk redundancy array 2.0) technology, for the single disk volume of the virtual machine of website provides respectively the storage resources of a LUN, each disk volume is externally rendered as the mode of LUN, therefore the virtual machine data in magnetic disk of each website is stored with LUN independently, and a LUN on the first virtual machine carry memory device is as the virtual disk of the first virtual machine.Therefore as long as, some IP address informations and disk cell LUN information, control appliance just can recognize by memory scanning mode disk the reading disk data of virtual machine.Adopt the reason of RAID2.0 to be that RAID2.0 forms a raid group by the logical partition in a plurality of physical disks, its minimum data protected location (data protection unit) granularity is thinner, more flexible and efficient.By RAID2.0 technology, can make single disk volume externally be rendered as the form of LUN, certainly, in other embodiments, also can adopt other technologies, as the disk volume of the technology definition storage networkings such as RAID3.0 or RAID4.0.
Unload module 32, for monitoring the first virtual machine state when monitoring modular 31 when abnormal, unloads the described LUN of described the first virtual machine carry.
When monitoring modular 31 monitors described the first virtual machine state when abnormal, the first virtual machine breaks down or when the first server at the first virtual machine place breaks down, the first control appliance stops the operation of the first virtual machine, and whether can in the first website, search available free available server resource, if have, in this website, restart this virtual machine, if nothing, needs the first virtual machine to be switched on another has the website of available server and to restart.It should be noted that, the disk storage device of a disk volume synchronization can only carry on a website, therefore Unload module 32 needs the LUN of unloading the first virtual machine carry on the first website, and the virtual machine after restarting like this could correctly search out the data in magnetic disk of disk storage device access storage.
Sending module 33, for sending virtual machine activation request, for making the second control appliance start the second virtual machine according to described virtual machine activation request on the second server in the second website; Wherein, the address information of configuration information and the described LUN of described the first virtual machine is carried in described virtual machine activation request, so that described the first virtual machine is identical with the configuration information of described the second virtual machine, make described the second control appliance indicate described the second virtual machine according to LUN described in the address information carry of described LUN.
It should be noted that, the second control appliance is for monitoring the virtual platform of virtual machine and server state in the second website, and as the medium of transmission of information between management equipment (being cloud management platform) and server cluster, mutual by HTTP Rest Interface realization information between the second website and management equipment.The second website that the second control appliance is controlled refers to the cluster virtual machine that can realize very fast traffic rate physically with good connection, generally refers to a local area network (LAN).
In some embodiments of the invention, refer to Fig. 4, sending module 33 comprises transmitting element 331, and transmitting element 331 is for send described virtual machine activation request to management equipment, so that described management equipment sends described virtual machine activation request to described the second control appliance.
Transmitting element 331 makes before described management equipment sends described virtual machine activation request to described the second control appliance, also for making described management equipment according to described virtual machine activation request, to select described the second website as the website that starts described the second virtual machine.
Management equipment is for managing and control the cloud management platform of the virtual machine configuration between different websites, its role is to provides deployment, Operation and management environment flexibly for operation system, the difference of shielding bottom hardware, operating system, for application provides safety, high-performance, can expand, can manage, reliable and telescopic full-scope safeguards, reduce the cost of exploitation, deployment, operation and maintenance application system.When needs are cross-site while restarting virtual machine, management equipment can be utilized situation to be identified in which website according to each site resource to restart virtual machine, also can take nearby principle to choose available website, then to this website, issue virtual machine activation request.
It should be noted that, the configuration information of the first virtual machine carrying in virtual machine activation request mainly comprises the information such as the specifications parameter of the first virtual machine and network configuration, second website with available server creates i.e. the second virtual machine bare machine of new virtual machine by the first virtual machine configuration information, concrete, configuration information comprises the information such as central processor CPU, internal memory, disk, network interface card, operating system and network configuration of the first virtual machine; The address information of LUN comprises that management equipment is the IP address of the memory device that distributes of the first virtual machine and the more specific location information of LUN, second website with available server is found memory device by address information, read the breaths such as system disk in memory device and data disk and be loaded in virtual machine bare machine, thereby complete the cross-site process of restarting of virtual machine.
In the embodiment of the present invention, the first control appliance monitor virtual machine state in the first website abnormal after, send virtual machine activation request so that the second control appliance starts with the first virtual machine and configures the second identical virtual machine on the second server device of the second website, owing to also having carried the address information of the LUN of the data in magnetic disk of storing the first virtual machine in virtual machine activation request, therefore the second website can find the LUN that stores the first virtual machine data in magnetic disk by this address information, and the data in magnetic disk that obtains LUN is loaded in the second virtual machine, realized the virtual machine HA across physical cluster website, without carry out the replication synchronization of data between two memory devices, saved the input of Internet resources and storage resources, and realized more efficiently the cross-site switching of virtual machine.
Refer to Fig. 5, the structural representation of the second control appliance 4 providing for the embodiment of the present invention, control appliance 4 comprises receiver module 41 and virtual machine activation module 42.
It should be noted that, the second control appliance is for monitoring the virtual platform of virtual machine and server state in the second website, and as the medium of transmission of information between management equipment and server cluster, mutual by HTTP Rest Interface realization information between the second website and management equipment.The second website that the second control appliance is controlled refers to the cluster virtual machine that can realize very fast traffic rate physically with good connection, generally refers to a local area network (LAN).In embodiments of the present invention, in the second website, there is available server, so receiver module 41 can be used for the virtual machine activation request that receiving management equipment issues.
In some embodiments of the invention, refer to Fig. 6, receiver module 41 comprises receiving element 411, receiving element 411 is for the virtual machine activation request of the first control appliance of receiving management device forwards, described management equipment is used for making described management equipment according to described virtual machine activation request, selects described the second website as the website that starts described the second virtual machine.
It should be noted that, management equipment is for managing and control the cloud management platform of the virtual machine configuration between different websites, its role is to provides deployment, Operation and management environment flexibly for operation system, the difference of shielding bottom hardware, operating system, for application provides safety, high-performance, can expand, can manage, reliable and telescopic full-scope safeguards, reduce the cost of exploitation, deployment, operation and maintenance application system.When needs are cross-site while restarting virtual machine, management equipment can be utilized situation to be identified in which website according to each site resource to restart virtual machine, also can take nearby principle to choose available website, then to this website, issue virtual machine activation request.
Virtual machine activation module 42, for starting the second virtual machine according to described virtual machine activation request on the second server in the second website; Wherein, described virtual machine activation request is carried and is operated in the configuration information of the first virtual machine and the address information of LUN LUN in first server in the first website, and described LUN is positioned on the memory device being connected with described first server; Wherein, described the second virtual machine is identical with the configuration information of described the first virtual machine, and described the second virtual machine is the virtual disk as described the second virtual machine according to LUN described in the address information carry of described LUN.
The second control appliance receives after virtual machine activation request, and to virtual machine activation, request is resolved, and obtains the address information of configuration information and the memory device of the first virtual machine.
It should be noted that, the configuration information of the first virtual machine carrying in virtual machine activation request mainly comprises the information such as the specifications parameter of the first virtual machine and network configuration, second website with available server creates i.e. the second virtual machine bare machine of new virtual machine by the first virtual machine configuration information, concrete, configuration information comprises the information such as central processor CPU, internal memory, disk, network interface card, operating system and network configuration of the first virtual machine; The address information of LUN comprises that management equipment is the IP address of the memory device that distributes of the first virtual machine and the more specific location information of LUN, second website with available server is found memory device by address information, read the breaths such as system disk in memory device and data disk and be loaded in virtual machine bare machine, thereby complete the cross-site process of restarting of virtual machine.
In embodiments of the present invention, the first control appliance monitor virtual machine state in the first website abnormal after, send virtual machine activation request so that the second control appliance starts with the first virtual machine and configures the second identical virtual machine on the second server device of the second website, owing to also having carried the address information of the LUN of the data in magnetic disk of storing the first virtual machine in virtual machine activation request, therefore the second website can find the LUN that stores the first virtual machine data in magnetic disk by this address information, and the data in magnetic disk that obtains LUN is loaded in the second virtual machine, realized the virtual machine HA across physical cluster website, without carry out the replication synchronization of data between two memory devices, saved the input of Internet resources and storage resources, and realized more efficiently the cross-site switching of virtual machine.
The embodiment of the present invention also provides a kind of system of managing virtual machines, comprise management equipment, cluster virtual machine, the first control appliance as shown in Figure 3 and the second control appliance as shown in Figure 4, its embodiment refers to above-described embodiment, does not repeat them here.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.
Claims (11)
1. a method for managing virtual machines, is characterized in that, comprising:
The first control appliance is monitored the running status that operates in the first virtual machine in first server in the first website; Wherein, described first server connects memory device, and the LUN LUN on described the first virtual machine carry memory device is as the virtual disk of described the first virtual machine;
When monitoring described the first virtual machine state when abnormal, described the first control appliance unloads the described LUN of described the first virtual machine carry;
Described the first control appliance sends virtual machine activation request, for making the second control appliance start the second virtual machine according to described virtual machine activation request on the second server in the second website; Wherein, the address information of configuration information and the described LUN of described the first virtual machine is carried in described virtual machine activation request, so that described the first virtual machine is identical with the configuration information of described the second virtual machine, and make described the second control appliance indicate described the second virtual machine according to LUN described in the address information carry of described LUN.
2. the method for managing virtual machines as claimed in claim 1, it is characterized in that, described the first control appliance sends virtual machine activation request, for making the second control appliance start the second virtual machine according to described virtual machine activation request on the second server in the second website, specifically comprises:
Described the first control appliance sends described virtual machine activation request to management equipment, so that described management equipment sends described virtual machine activation request to described the second control appliance.
3. the method for managing virtual machines as claimed in claim 2, it is characterized in that, described the first control appliance sends described virtual machine activation request to described management equipment, so that before described management equipment sends described virtual machine activation request to described the second control appliance, also, for making described management equipment according to described virtual machine activation request, select described the second website as the website that starts described the second virtual machine.
4. a method for managing virtual machines, is characterized in that, comprising:
The second control appliance sink virtual machine starts request;
Described the second control appliance starts the second virtual machine according to described virtual machine activation request on the second server in the second website;
Wherein, described virtual machine activation request is carried and is operated in the configuration information of the first virtual machine and the address information of LUN LUN in first server in the first website, and described LUN is positioned on the memory device being connected with described first server;
Wherein, described the second virtual machine is identical with the configuration information of described the first virtual machine, and described the second virtual machine is the virtual disk as described the second virtual machine according to LUN described in the address information carry of described LUN.
5. the method for managing virtual machines as claimed in claim 4, is characterized in that, described the second control appliance sink virtual machine starts request, comprising:
The virtual machine activation request of the first control appliance of described the second control appliance receiving management device forwards, described management equipment is used for making described management equipment according to described virtual machine activation request, selects described the second website as the website that starts described the second virtual machine.
6. a control appliance, is characterized in that, comprising:
Monitoring modular, for monitoring the running status that operates in the first virtual machine in first server in the first website; Wherein, described first server connects memory device, and the LUN LUN on described the first virtual machine carry memory device is as the virtual disk of described the first virtual machine;
Unload module, for when abnormal, unloading the described LUN of described the first virtual machine carry to described the first virtual machine state when described monitoring module monitors;
Sending module, for sending virtual machine activation request, for making the second control appliance start the second virtual machine according to described virtual machine activation request on the second server in the second website; Wherein, the address information of configuration information and the described LUN of described the first virtual machine is carried in described virtual machine activation request, so that described the first virtual machine is identical with the configuration information of described the second virtual machine, make described the second control appliance indicate described the second virtual machine according to LUN described in the address information carry of described LUN.
7. control appliance as claimed in claim 6, is characterized in that, described sending module comprises:
Transmitting element, for send described virtual machine activation request to management equipment, so that described management equipment sends described virtual machine activation request to described the second control appliance.
8. control appliance as claimed in claim 7, it is characterized in that, described transmitting element makes before described management equipment sends described virtual machine activation request to described the second control appliance, also, for making described management equipment according to described virtual machine activation request, select described the second website as the website that starts described the second virtual machine.
9. a control appliance, is characterized in that, comprising:
Receiver module, starts request for sink virtual machine;
Virtual machine activation module, for starting the second virtual machine according to described virtual machine activation request on the second server in the second website;
Wherein, described virtual machine activation request is carried and is operated in the configuration information of the first virtual machine and the address information of LUN LUN in first server in the first website, and described LUN is positioned on the memory device being connected with described first server;
Wherein, described the second virtual machine is identical with the configuration information of described the first virtual machine, and described the second virtual machine is the virtual disk as described the second virtual machine according to LUN described in the address information carry of described LUN.
10. control appliance as claimed in claim 9, is characterized in that, described receiver module comprises:
Receiving element, for the virtual machine activation request of the first control appliance of receiving management device forwards, described management equipment is used for making described management equipment according to described virtual machine activation request, selects described the second website as the website that starts described the second virtual machine.
The system of 11. 1 kinds of managing virtual machines, is characterized in that, comprises control appliance and the control appliance as described in claim 9-10 any one as described in claim 6-8 any one.
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 true CN103618627A (en) | 2014-03-05 |
CN103618627B 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) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461687A (en) * | 2014-11-20 | 2015-03-25 | 华为技术有限公司 | Virtual machine configuration information storage method and device |
CN104484231A (en) * | 2014-12-31 | 2015-04-01 | 武汉邮电科学研究院 | Virtual machine switching system and method |
WO2015131671A1 (en) * | 2014-09-16 | 2015-09-11 | 中兴通讯股份有限公司 | Target resource occupancy handling method and device |
WO2017054626A1 (en) * | 2015-09-30 | 2017-04-06 | 华为技术有限公司 | Fault recovery method and device for virtual machine |
CN106850315A (en) * | 2017-03-16 | 2017-06-13 | 郑州云海信息技术有限公司 | One kind automation disaster tolerance system |
WO2017156858A1 (en) * | 2016-03-17 | 2017-09-21 | Huawei Technologies Co., Ltd. | Virtual network function state scaling |
CN107465740A (en) * | 2017-08-02 | 2017-12-12 | 郑州云海信息技术有限公司 | A kind of LUN Mode Data means of communication and system |
CN107544841A (en) * | 2016-06-29 | 2018-01-05 | 中兴通讯股份有限公司 | Live migration of virtual machine method and system |
CN107896176A (en) * | 2017-12-05 | 2018-04-10 | 深圳市共济科技股份有限公司 | A kind of processing method of calculate node, intelligent terminal and storage medium |
CN110034951A (en) * | 2019-03-06 | 2019-07-19 | 平安科技(深圳)有限公司 | The failure switching method and iSCSI major heading device of iscsi target device |
CN111771190A (en) * | 2018-04-12 | 2020-10-13 | 华为技术有限公司 | Method and equipment for detecting state of virtual machine |
CN112181593A (en) * | 2020-09-27 | 2021-01-05 | 北京首都在线科技股份有限公司 | Virtual machine scheduling method, device, equipment and storage medium |
CN112367186A (en) * | 2020-10-13 | 2021-02-12 | 苏州浪潮智能科技有限公司 | Fault protection method and device based on 0penStack bare machine |
CN112905562A (en) * | 2021-02-04 | 2021-06-04 | 中国工商银行股份有限公司 | Host job submitting method and device |
CN115639969A (en) * | 2022-11-17 | 2023-01-24 | 广州粤芯半导体技术有限公司 | Method and device for switching main storage disk and standby storage disk and computer equipment |
Citations (5)
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 |
CN101669106A (en) * | 2007-04-25 | 2010-03-10 | 微软公司 | Virtual machine migration |
US20100228903A1 (en) * | 2009-03-03 | 2010-09-09 | Vmware, Inc. | Block Map Based I/O Optimization for Storage Virtual Appliances |
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 |
-
2013
- 2013-11-27 CN CN201310636262.2A patent/CN103618627B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101669106A (en) * | 2007-04-25 | 2010-03-10 | 微软公司 | Virtual machine migration |
US20090172125A1 (en) * | 2007-12-28 | 2009-07-02 | Mrigank Shekhar | Method and system for migrating a computer environment across blade servers |
US20100228903A1 (en) * | 2009-03-03 | 2010-09-09 | Vmware, Inc. | Block Map Based I/O Optimization for Storage Virtual Appliances |
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 |
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015131671A1 (en) * | 2014-09-16 | 2015-09-11 | 中兴通讯股份有限公司 | Target resource occupancy handling method and device |
CN104461687B (en) * | 2014-11-20 | 2018-03-09 | 华为技术有限公司 | The storage method and device of a kind of virtual machine configuration information |
CN104461687A (en) * | 2014-11-20 | 2015-03-25 | 华为技术有限公司 | Virtual machine configuration information storage method and device |
CN104484231A (en) * | 2014-12-31 | 2015-04-01 | 武汉邮电科学研究院 | Virtual machine switching system and method |
WO2017054626A1 (en) * | 2015-09-30 | 2017-04-06 | 华为技术有限公司 | Fault recovery method and device for virtual machine |
US10158583B2 (en) | 2016-03-17 | 2018-12-18 | Huawei Technologies Co., Ltd. | Virtual network function state scaling |
WO2017156858A1 (en) * | 2016-03-17 | 2017-09-21 | Huawei Technologies Co., Ltd. | Virtual network function state scaling |
CN107544841B (en) * | 2016-06-29 | 2022-12-02 | 中兴通讯股份有限公司 | Virtual machine live migration method and system |
CN107544841A (en) * | 2016-06-29 | 2018-01-05 | 中兴通讯股份有限公司 | Live migration of virtual machine method and system |
CN106850315A (en) * | 2017-03-16 | 2017-06-13 | 郑州云海信息技术有限公司 | One kind automation disaster tolerance 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 |
CN107896176A (en) * | 2017-12-05 | 2018-04-10 | 深圳市共济科技股份有限公司 | A kind of processing method of calculate node, intelligent terminal and storage medium |
CN111771190A (en) * | 2018-04-12 | 2020-10-13 | 华为技术有限公司 | Method and equipment 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 |
CN111771190B (en) * | 2018-04-12 | 2024-04-09 | 华为云计算技术有限公司 | Method and equipment 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 |
CN112367186A (en) * | 2020-10-13 | 2021-02-12 | 苏州浪潮智能科技有限公司 | Fault protection method and device based on 0penStack bare machine |
CN112367186B (en) * | 2020-10-13 | 2023-01-10 | 苏州浪潮智能科技有限公司 | Fault protection method and device based on 0penStack bare computer |
CN112905562A (en) * | 2021-02-04 | 2021-06-04 | 中国工商银行股份有限公司 | Host job submitting method and device |
CN115639969A (en) * | 2022-11-17 | 2023-01-24 | 广州粤芯半导体技术有限公司 | Method and device for switching main storage disk and standby storage disk and computer equipment |
Also Published As
Publication number | Publication date |
---|---|
CN103618627B (en) | 2017-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103618627A (en) | Method, device and system for managing virtual machines | |
CN106899518B (en) | Resource processing method and device based on Internet data center | |
CN202798798U (en) | High availability system based on cloud computing technology | |
CN108923992B (en) | High-availability method and system for NAS cluster, electronic equipment and storage medium | |
US8032786B2 (en) | Information-processing equipment and system therefor with switching control for switchover operation | |
US9864663B2 (en) | Storage controller failover system | |
CN103546914B (en) | A kind of method and device of the active and standby management of HSS | |
US20130311989A1 (en) | Method and apparatus for maintaining a workload service level on a converged platform | |
CN102238093B (en) | Service interruption prevention method and device | |
CN105229613A (en) | Coordinate the fault recovery in distributed system | |
CN108880898B (en) | Main and standby container system switching method and device | |
CN110912991A (en) | Super-fusion-based high-availability implementation method for double nodes | |
CN103607310A (en) | Method for arbitration of remote disaster recovery | |
CN104158693A (en) | A method and a system for disaster recovery backup of data service | |
CN105302661A (en) | System and method for implementing virtualization management platform high availability | |
CN102394914A (en) | Cluster brain-split processing method and device | |
KR102210408B1 (en) | Method for duplication of virtualization server and Virtualization control apparatus thereof | |
CN104468521A (en) | Online migration method, device and system | |
CN103856357A (en) | Stack system fault processing method and stack system | |
CN102497288A (en) | Dual-server backup method and dual system implementation device | |
CN103746855A (en) | Method and device for processing abnormal events in telecom cloud | |
CN111400285A (en) | MySQ L data fragment processing method, apparatus, computer device and readable storage medium | |
JP5632820B2 (en) | Wide-area distributed configuration change system | |
WO2018171728A1 (en) | Server, storage system and related method | |
CN116881053A (en) | Data processing method, exchange board, data processing system and data processing device |
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 |