Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the present invention is to implement one
It is illustrated in computing environment appropriate.The following description be based on illustrated by the specific embodiment of the invention, should not be by
It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiments of the present invention will refer to the step as performed by one or multi-section computer
And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is executed by computer, this paper institute
The computer execution of finger includes by representing with the computer processing unit of the electronic signal of the data in a structuring pattern
Operation.This operation is converted at the data or the position being maintained in the memory system of the computer, reconfigurable
Or in addition change the running of the computer in mode known to the tester of this field.The maintained data structure of the data
For the provider location of the memory, there is the specific feature as defined in the data format.But the principle of the invention is with above-mentioned text
Word illustrates that be not represented as a kind of limitation, this field tester will appreciate that plurality of step and behaviour as described below
Also it may be implemented in hardware.
First embodiment
Referring to Fig. 1, the process that Fig. 1 is the disaster tolerance switching method based on virtual machine that first embodiment of the invention provides is shown
It is intended to.The described method includes:
In step s101, detection instruction is sent to the interchanger for being located at service plane side according to prefixed time interval, with
Whether the gateway of detection service plane connects normally.
In step s 102, however, it is determined that go out according to detection instruction to detect that the gateway malunion of service plane is normal, then on
Report operation system simultaneously sends a warning message.
Wherein, the step S101 and step S102 can specifically:
It is understood that the disaster tolerance switching method based on virtual machine can be based on the clothes of a monitor (monitor)
It being run on business device, the monitor is continued to test by the connection status to service plane gateway, if malunion is normal, on
Report operation system simultaneously alerts, and operation system receives acknowledged alarm switch status, if it is determined that interchanger breaks down, then controls
All hosts are switched on memory plane.
In the embodiment of the present invention, the host refers to the physical machine of installation, operation virtual machine;The interchanger is located at industry
The gateway periphery for plane of being engaged in or edge;The monitor, which can refer to operate in, to be used to monitor network state and execution on host
The program of network plane switching, the monitor can be set in host, or independently of the equipment of host, herein
It is not especially limited.
Separately it is contemplated that the prefixed time interval is pre-set in the server of monitor, for timing
Detect the gateway situation of service plane.
In step s 103, it obtains the operation system and determines that the interchanger breaks down according to the warning information
When the control instruction that issues.
In step S104, host is switched on memory plane according to the control instruction.
Wherein, the step S103 and step S104 can specifically:
It is understood that disaster tolerance switching method of the present invention is based on a disaster tolerance switching system, it include operation system in the system
System, the state and the warning information whether gateway about service plane reported for RX monitor normally connects, the fortune
Battalion's system is according to the warning information, and when determining that the interchanger breaks down, the control instruction of switching is issued to monitor.
After monitor determines that the interchanger of service plane side breaks down, host can be switched to memory plane
On;That is, virtual machine service plane correspondence with foreign country link is the exchange for passing through service plane side by virtual machine before the handover
Machine reaches outer net gateway;After switching, it is the exchange for passing through memory plane side by virtual machine that host, which is switched on memory plane,
Machine, to reach outer net gateway.
It is contemplated that being based on disaster tolerance system, for IT, an energy exactly providing for computer information system
Deal with the environment of various disasters.When computer system is lost by computer crime, computer virus, power down, network/communication
Lose, hardware/software mistake and manual operation mistake etc. whens, will guarantee that (data are held for the safety of user data based on disaster tolerance system
Calamity), further, moreover it is possible to continual application service (using disaster tolerance) be provided, realize data backup memory.
It can be seen from the above, in the disaster tolerance switching method provided in this embodiment based on virtual machine, by service plane net
The connection status of pass continues to test, if malunion is normal, reports operation system and alerts, operation system receives acknowledged alarm
Switch status, if it is determined that interchanger breaks down, then all hosts are switched on memory plane by control;The present invention is real
Storage can be handed over to for its flow when service plane breaks down and put down on the basis of not changing existing hardware facility by applying example
On face, that is, it is multiplexed the business transmission that existing memory channel undertakes trouble time, reduces the wasting of resources, and can guarantee host
The service that virtual machine on machine externally provides is not interrupted, and redundancy ability when virtual machine externally services and service are increased substantially
Reliability.
Second embodiment
Referring to Fig. 2, the process that Fig. 2 is the disaster tolerance switching method based on virtual machine that second embodiment of the invention provides is shown
It is intended to.Wherein, described based on running on server of the disaster tolerance switching method of virtual machine based on a monitor, the monitor is logical
It crosses and the connection status of service plane gateway is continued to test, if malunion is normal, reports operation system and alert, operation system
System receives acknowledged alarm switch status, if it is determined that interchanger breaks down, then all hosts are switched to storage by control
In plane.
Be different from first embodiment, the present embodiment mainly for the disaster tolerance switching of virtual machine system to the disaster tolerance switching side
Method is described in detail.The described method includes:
In step s 201, detection instruction is sent to the interchanger for being located at service plane side according to prefixed time interval.
In the embodiment of the present invention, the host refers to the physical machine of installation, operation virtual machine;The interchanger is located at industry
The gateway periphery for plane of being engaged in or edge;The monitor, which can refer to operate in, to be used to monitor network state and execution on host
The program of network plane switching, the monitor can be set in host, or independently of the equipment of host, herein
It is not especially limited.
Separately it is contemplated that the prefixed time interval is pre-set in the server of monitor, for timing
Detect the gateway situation of service plane.
In step S202, whether connected normally according to the gateway that the detection instruction detects service plane.
Wherein, whether the detection instruction is used to detect the gateway of service plane and connect normally, and according to detection as a result,
Step S203a or step S203b is executed respectively.
In step S203a, however, it is determined that go out according to detection instruction to detect that the gateway malunion of service plane is normal, then on
Report operation system simultaneously sends a warning message.
Preferably, in some embodiments, if it is detected that the continuously coupled obstructed number of the gateway of service plane is more than
Preset threshold, it is determined that the gateway malunion of service plane is normal.Separately it is contemplated that the preset threshold is pre-set at
In the server of monitor, it can be determined according to the gateway situation of actual service plane, herein not to its specific value
It limits.
In step S204, the operation system is obtained according to the warning information and determines whether the interchanger occurs
The information of failure.
It is understood that warning information that the operation system RX monitor reports and true according to the warning information
Determine the state of interchanger, and sends the instruction information whether interchanger breaks down to monitor.Thereafter, according to the friendship determined
Change planes whether breaking down as a result, executing step S205a or step S205b.
In step S205a, the operation system is obtained according to the warning information and determines that event occurs for the interchanger
Host is switched on memory plane according to the control instruction, and triggers execution step by the control instruction issued when barrier
S201。
The i.e. described operation system is according to the warning information, when determining that the interchanger breaks down, sends out to monitor
Host is switched on memory plane by the control instruction switched out, monitor according to control instruction;That is, before the handover
Virtual machine service plane correspondence with foreign country link is the interchanger for passing through service plane side by virtual machine, reaches outer net gateway;Switching
Afterwards, it is the interchanger for passing through memory plane side by virtual machine that host, which is switched on memory plane, to reach outer net gateway.
In step S205b, the operation system is got according to the warning information and determines that the interchanger does not have
The instruction information issued when breaking down, triggering execute step S201.
The i.e. described operation system determines the interchanger there is no when failure, to monitoring according to the warning information
Device issues triggering instruction, to continue to send detection instruction to the interchanger for being located at service plane side in real time, detects service plane
Gateway whether connect normally.
In step S203b, however, it is determined that go out and detect that the gateway of service plane connects normally according to detection instruction, then detect
Whether current host has been switched to memory plane.
According to the testing result of step S203b, step S206a or step S206b is executed.
In step S206a, if so, control switches back to the host for being switched to memory plane on service plane,
And it triggers and executes step S201.
In step S206b, if it is not, then directly triggering executes step S201.
The disaster tolerance switching method provided for a better understanding of the present invention, below based on the disaster tolerance switching system of virtual machine
Structure carries out simple analysis explanation, can refer to Fig. 2 b together, is the structural schematic diagram of the disaster tolerance switching system.Wherein, described
Disaster tolerance switching system includes operation system, host, the interchanger tor0 for being located at memory plane side networking peripheral (edge), storage
Server, interchanger tor1, core switch lc and outer net gateway positioned at service plane side networking peripheral.
Further, host refer to installation, run virtual machine physical machine, including multiple virtual machines such as VM1, VM2 and
VM3, bridge (Bridge) br1, monitor (monitor) and ARP (Address Resolution Protocol, address resolution
Agreement) proxy module;It is additionally provided with Ethernet (Ethernet) port eth0 for transmitting in memory plane, in service plane
The ethernet port eth1 of transmission;Wherein monitor, which can refer to operate on host, is used to monitor network state and execution net
The program of network plane switching;ARP proxy is exactly by using a host, as specified equipment to the ARP of another equipment
Response is made in request;Bridge br1 works in data link layer, and two local area networks (LAN, Local Area Network) are connected
Come, frame is forwarded according to physical address MAC Address (Media Access Control, medium access control), is considered as one
A " router of low layer " (router works in network layer, is forwarded according to network address such as IP address);Arping is one
The ping tool of a ARP rank, arping order are the tools for sending arp request to an adjacent host, and arping makes
With arp data packet, the hardware address in equipment is checked by ping order.
The monitor is continued to test by the connection status to service plane gateway, if malunion is normal, is reported
Operation system simultaneously alerts, and operation system receives acknowledged alarm interchanger tor1 state, if it is determined that and interchanger tor1 breaks down,
Then all hosts are switched on memory plane by control, guarantee that the virtual machine service on host is not interrupted, monitor detection
Restore host to be switched back to service plane automatically to interchanger tor1.Virtual machine correspondence with foreign country link before switching are as follows: virtual
Virtual machine correspondence with foreign country link after machine -> br1- > eth1- > tor1- > lc- > outer net gateway handoff are as follows: virtual machine -> br1- >
Eth0- > tor0- > lc- > outer net gateway, virtual machine is to this handoff procedure unaware, the IP of switching front and back virtual machine and network-like
State remains unchanged.
It can be seen from the above, in the disaster tolerance switching method provided in this embodiment based on virtual machine, by service plane net
The connection status of pass continues to test, if malunion is normal, reports operation system and alerts, operation system receives acknowledged alarm
Switch status, if it is determined that interchanger breaks down, then all hosts are switched on memory plane by control;The present invention is real
Storage can be handed over to for its flow when service plane breaks down and put down on the basis of not changing existing hardware facility by applying example
On face, that is, it is multiplexed the business transmission that existing memory channel undertakes trouble time, reduces the wasting of resources, and can guarantee host
The service that virtual machine on machine externally provides is not interrupted, and redundancy ability when virtual machine externally services and service are increased substantially
Reliability.Further, host can be switched back into service plane automatically when detecting interchanger and restoring and work normally, improved
The utilization rate and practicability of resource.
3rd embodiment
Referring to Fig. 3, the process that Fig. 3 is the disaster tolerance switching method based on virtual machine that third embodiment of the invention provides is shown
It is intended to.Same above-described embodiment, it is described based on the disaster tolerance switching method of virtual machine based on being run on the server of monitor, the prison
Control device is continued to test by the connection status to service plane gateway, if malunion is normal, is reported operation system and is alerted,
Operation system receives acknowledged alarm switch status, if it is determined that interchanger breaks down, then control switches all hosts
Onto memory plane.
It is different from second embodiment, the present embodiment is based primarily upon disaster tolerance switching system shown in above-mentioned Fig. 2 b, flat to storage
The process that face and service plane mutually switch is described in detail.
It can refer to Fig. 3 a, the idiographic flow schematic diagram of memory plane be switched to for service plane, comprising:
Step A1, eth1 is deleted from br1;
Step B1, the ARP table that gratuitous ARP updates all virtual machines on br1 is sent, the MAC Address of Service Gateway is storage
The MAC Address of gateway;
That is the source IP address of the ARP IP address (i.e. the gateway IP of virtual machine) that is tor1, MAC Address are the MAC of tor0
Address.The purpose of the step is that the arp cache of virtual machine is updated using ARP deception mode.
Step C1, eth0 is added on br1;
The MAC Address of br1 will become the MAC Address of eth0 at this time, send MAC of the gratuitous ARP to storage tor notice br1
Address.
Step D1, the ARP proxy function of triggering starting host;
Step E1, memory plane IP is tied on br1;
Step F1, the IP on eth0 is deleted, and the IP is fitted on br1;
Step G1, route handoff is carried out, in the routing configuration to br1 for being eth0 original outgoing interface;
Step H1, refresh host MAC table.
Empty host arp cache, it is therefore an objective to br1 interface be allowed to acquire new gateway MAC address, the i.e. MAC of tor 0 immediately
Address.
It is understood that a data packet at least needs to deposit when transmission, there are four information: the IP address of oneself, this
The MAC Address of jump, purpose IP address, the MAC Address of next-hop.Wherein IP address is always maintained at constant, and MAC Address is each
It can be all changed when forwarding.That is IP denotes inception point and terminus, and MAC Address indicates our station and the next stop.I.e. A- >
In B- > C- > D structure.If A wants to send data packet to D, need to be written the IP address of A, the MAC of A, D in the packet
IP address, the MAC Address of B.At this time data packet can receive data packet by B and be then forwarded to C, this data packet is the IP of A
Location, the MAC Address of B, the IP address of D, the MAC Address of C so repeat.
In addition, usually ARP protocol is the corresponding relationship for inquiring other IP address of equipment and MAC Address, and gratuitous ARP
(gratuitous ARP) is then the MAC Address that one data packet of system active transmission inquires the machine IP.There will not be machine at this time
This ARP inquiry is responded, but when other equipment in local area network receive this data packet, will use the source IP of this data packet kind
Address and source MAC update oneself ARP table.An ARP data packet is constructed, source IP address is for Service Gateway IP
Location, source MAC are storage gateway MAC address (because Service Gateway already off), send its allowed in local area network
Its equipment updates the ARP table of oneself.
Correspondingly, can refer to Fig. 3 b, service plane idiographic flow schematic diagram is switched back into for memory plane, comprising:
Step A2, the IP of original eth0 is deleted from br1, and eth0 is deleted from br1.
Step B2, ARP proxy function is closed in triggering.
Step C2, the ARP table that gratuitous ARP updates all virtual machines on br1 is sent, the MAC Address for storing gateway is business
The MAC Address of gateway;
That is the source IP address of the ARP IP address (i.e. the gateway IP of virtual machine) that is tor1, MAC Address are the MAC of tor1
Address.
Step D2, eth1 is re-added on br1 and sends the new MAC Address of gratuitous ARP notice br1.
Notice memory plane MAC Address is service plane MAC Address.
Step E2, service plane IP address is tied on br1;
Step F2, restore eth0 network interface card IP address;
Step G2, restore the routing that original outgoing interface is eth0;
The IP of original eth0 is fitted on eth0 again, restores the routing that original outgoing interface is eth0, after route recovery,
System routing is consistent with preservation when machine tool (i.e. host) rigid starting up.
Step H2, refresh host MAC table.
Empty host arp cache, it is therefore an objective to allow br1 interface to acquire new gateway MAC address immediately, i.e. tor1's
MAC Address.
It is understood that the part not being described in detail in this embodiment, may refer to above-described embodiment and is directed to based on void
The detailed description of the disaster tolerance switching method of quasi- machine, details are not described herein again.
It can be seen from the above, in the disaster tolerance switching method provided in this embodiment based on virtual machine, by service plane net
The connection status of pass continues to test, if malunion is normal, reports operation system and alerts, operation system receives acknowledged alarm
Switch status, if it is determined that interchanger breaks down, then all hosts are switched on memory plane by control;The present invention is real
Storage can be handed over to for its flow when service plane breaks down and put down on the basis of not changing existing hardware facility by applying example
On face, that is, it is multiplexed the business transmission that existing memory channel undertakes trouble time, reduces the wasting of resources, and can guarantee host
The service that virtual machine on machine externally provides is not interrupted, and redundancy ability when virtual machine externally services and service are increased substantially
Reliability.Further, host can be switched back into service plane automatically when detecting interchanger and restoring and work normally, improved
The utilization rate and practicability of resource.
Fourth embodiment
For convenient for the better implementation disaster tolerance switching method provided in an embodiment of the present invention based on virtual machine, the present invention is implemented
Example also provides a kind of device based on the above-mentioned disaster tolerance switching method based on virtual machine.Wherein the meaning of noun is with above-mentioned based on void
Identical in the disaster tolerance switching method of quasi- machine, specific implementation details can be with reference to the explanation in embodiment of the method.
Referring to Fig. 4, Fig. 4 is the structural representation of the disaster tolerance switching device provided in an embodiment of the present invention based on virtual machine
Figure, wherein the disaster tolerance switching device based on virtual machine can be run on the server based on a monitor, the monitor is logical
It crosses and the connection status of service plane gateway is continued to test, if malunion is normal, reports operation system and alert, operation system
System receives acknowledged alarm switch status, if it is determined that interchanger breaks down, then all hosts are switched to storage by control
In plane.
As shown in figure 4, the disaster tolerance switching device of the present invention based on virtual machine may include sending module 401, information
Transceiver module 402, instruction acquisition module 403 and disaster tolerance switching module 404.
Wherein, the sending module 401, for being sent according to prefixed time interval to the interchanger for being located at service plane side
Detection instruction, to detect whether the gateway of service plane connects normally;The signal dispatcher module 402, for if it is determined that root
It detects that the gateway malunion of service plane is normal according to detection instruction, then reports operation system and send a warning message.
In the embodiment of the present invention, the host refers to the physical machine of installation, operation virtual machine;The interchanger is located at industry
The gateway periphery for plane of being engaged in or edge;The monitor, which can refer to operate in, to be used to monitor network state and execution on host
The program of network plane switching, the monitor can be set in host, or independently of the equipment of host, herein
It is not especially limited.
Separately it is contemplated that the prefixed time interval is pre-set in the server of monitor, for timing
Detect the gateway situation of service plane.
Described instruction obtains module 403, determines the friendship according to the warning information for obtaining the operation system
It changes planes the control instruction issued when breaking down;The disaster tolerance switching module 404, for according to the control instruction by host
It is switched on memory plane.
It is understood that disaster tolerance switching method of the present invention is based on a disaster tolerance switching system, it include operation system in the system
System, the state and the warning information whether gateway about service plane reported for RX monitor normally connects, the fortune
Battalion's system is according to the warning information, and when determining that the interchanger breaks down, the control instruction of switching is issued to monitor.
After monitor determines that the interchanger of service plane side breaks down, host can be switched to memory plane
On;That is, virtual machine service plane correspondence with foreign country link is the exchange for passing through service plane side by virtual machine before the handover
Machine reaches outer net gateway;After switching, it is the exchange for passing through memory plane side by virtual machine that host, which is switched on memory plane,
Machine, to reach outer net gateway.
It is contemplated that being based on disaster tolerance system, for IT, an energy exactly providing for computer information system
Deal with the environment of various disasters.When computer system is lost by computer crime, computer virus, power down, network/communication
Lose, hardware/software mistake and manual operation mistake etc. whens, will guarantee that (data are held for the safety of user data based on disaster tolerance system
Calamity), further, moreover it is possible to continual application service (using disaster tolerance) be provided, realize data backup memory.
It can be seen from the above, in the disaster tolerance switching device provided in this embodiment based on virtual machine, by service plane net
The connection status of pass continues to test, if malunion is normal, reports operation system and alerts, operation system receives acknowledged alarm
Switch status, if it is determined that interchanger breaks down, then all hosts are switched on memory plane by control;The present invention is real
Storage can be handed over to for its flow when service plane breaks down and put down on the basis of not changing existing hardware facility by applying example
On face, that is, it is multiplexed the business transmission that existing memory channel undertakes trouble time, reduces the wasting of resources, and can guarantee host
The service that virtual machine on machine externally provides is not interrupted, and redundancy ability when virtual machine externally services and service are increased substantially
Reliability.
5th embodiment
Referring to Fig. 5, Fig. 5 is the structural representation of the disaster tolerance switching device provided in an embodiment of the present invention based on virtual machine
Figure, wherein the disaster tolerance switching device based on virtual machine includes: sending module 501, signal dispatcher module 502, instruction acquisition
Module 503 and disaster tolerance switching module 504, wherein the function of above-mentioned each functional module can correspond to reference in the embodiment
The sending module 401, signal dispatcher module 402, instruction acquisition module 403 and disaster tolerance switching module in fourth embodiment
404 associated description, does not repeat herein.
Preferably, the disaster tolerance switching device based on virtual machine can also include:
Determining module 505, if determining to detect service plane according to detection instruction for the signal dispatcher module 502
Gateway malunion it is normal, then before reporting operation system and sending a warning message, if it is detected that the gateway of service plane is continuous
Obstructed number is connected more than preset threshold, it is determined that the gateway malunion of service plane is normal.
The disaster tolerance switching device based on virtual machine can also include:
Detection module 506, for the sending module 501 according to prefixed time interval to outside the gateway of service plane
The interchanger enclosed is sent after detection instruction, however, it is determined that and go out and detects that the gateway of service plane connects normally according to detection instruction,
Then detect whether current host has been switched to memory plane;
The disaster tolerance switching module 504, if being to have been switched to memory plane for detecting current host, controlling will be cut
The host for changing to memory plane switches back on service plane;
Trigger module 507 controls for the disaster tolerance switching module 504 and switches back into the host for being switched to memory plane
After on to service plane, triggers the sending module 501 and execute according to prefixed time interval to the friendship positioned at service plane side
It changes planes the step of sending detection instruction;
The trigger module 507 directly triggers if being also used to detect current host does not have been switched to memory plane
The sending module 501 executes the step for sending detection instruction to the interchanger for being located at service plane side according to prefixed time interval
Suddenly.
The trigger module 507, is also used to:
If it is determined that the signal dispatcher module 502 detects the gateway malunion of service plane according to detection instruction
Often, then it after reporting operation system and sending a warning message, is determined if getting the operation system according to the warning information
It has the interchanger instruction information that there is no issuing when failure, triggers the sending module 501 and execute according to preset time
It is spaced the step of sending detection instruction to the interchanger for being located at service plane side.
The trigger module 507, is also used to:
All hosts are switched on memory plane by it according to the control instruction in the disaster tolerance switching module 504
Afterwards, it triggers the sending module 501 and executes to send to detect to the interchanger for being located at service plane side according to prefixed time interval and refer to
The step of enabling.
It is understood that the part not being described in detail in this embodiment, may refer to above with respect to based on virtual machine
The detailed description of disaster tolerance switching method, details are not described herein again.
It can be seen from the above, in the disaster tolerance switching device provided in this embodiment based on virtual machine, by service plane net
The connection status of pass continues to test, if malunion is normal, reports operation system and alerts, operation system receives acknowledged alarm
Switch status, if it is determined that interchanger breaks down, then all hosts are switched on memory plane by control;The present invention is real
Storage can be handed over to for its flow when service plane breaks down and put down on the basis of not changing existing hardware facility by applying example
On face, that is, it is multiplexed the business transmission that existing memory channel undertakes trouble time, reduces the wasting of resources, and can guarantee host
The service that virtual machine on machine externally provides is not interrupted, and redundancy ability when virtual machine externally services and service are increased substantially
Reliability.Further, host can be switched back into service plane automatically when detecting interchanger and restoring and work normally, improved
The utilization rate and practicability of resource.
Sixth embodiment
The embodiment of the present invention also provides a kind of server, wherein can integrate the appearance based on virtual machine of the embodiment of the present invention
Calamity switching device, the server can be based on running, as shown in fig. 6, it illustrates of the invention real on a reception terminal server
The structural schematic diagram of server involved in example is applied, specifically:
The server may include one or processor 601, one or more meters of more than one processing core
Memory 602, radio frequency (Radio Frequency, RF) circuit 603, power supply 604, input unit of calculation machine readable storage medium storing program for executing
The components such as 605 and display unit 606.It will be understood by those skilled in the art that server architecture shown in Fig. 6 not structure
The restriction of pairs of server may include perhaps combining certain components or different portions than illustrating more or fewer components
Part arrangement.Wherein:
Processor 601 is the control centre of the server, utilizes each of various interfaces and the entire server of connection
Part by running or execute the software program and/or module that are stored in memory 602, and calls and is stored in memory
Data in 602, the various functions and processing data of execute server, to carry out integral monitoring to server.Optionally, locate
Managing device 601 may include one or more processing cores;Preferably, processor 601 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 601.
Memory 602 can be used for storing software program and module, and processor 601 is stored in memory 602 by operation
Software program and module, thereby executing various function application and data processing.Memory 602 can mainly include storage journey
Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function
Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created data according to server
Deng.In addition, memory 602 may include high-speed random access memory, it can also include nonvolatile memory, for example, at least
One disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 602 can also include
Memory Controller, to provide access of the processor 601 to memory 602.
During RF circuit 603 can be used for receiving and sending messages, signal is sended and received, and particularly, the downlink of base station is believed
After breath receives, one or the processing of more than one processor 601 are transferred to;In addition, the data for being related to uplink are sent to base station.It is logical
Often, RF circuit 603 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, user identity
Module (SIM) card, transceiver, coupler, low-noise amplifier (LNA, Low Noise Amplifier), duplexer etc..This
Outside, RF circuit 603 can also be communicated with network and other equipment by wireless communication.The wireless communication can be used any logical
Beacon standard or agreement, including but not limited to global system for mobile communications (GSM, Global System of Mobile
Communication), general packet radio service (GPRS, General Packet Radio Service), CDMA
(CDMA, Code Division Multiple Access), wideband code division multiple access (WCDMA, Wideband Code
Division Multiple Access), long term evolution (LTE, Long Term Evolution), Email, short message clothes
Be engaged in (SMS, Short Messaging Service) etc..
Server further includes the power supply 604 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply
Management system and processor 601 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system
The functions such as reason.Power supply 604 can also include one or more direct current or AC power source, recharging system, power failure
The random components such as detection circuit, power adapter or inverter, power supply status indicator.
The server may also include input unit 605, which can be used for receiving the number or character letter of input
Breath, and generation keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal are defeated
Enter.
The server may also include display unit 606, the display unit 606 can be used for showing information input by user or
Be supplied to the information of user and the various graphical user interface of server, these graphical user interface can by figure, text,
Icon, video and any combination thereof are constituted.Display unit 608 may include display panel, optionally, can use liquid crystal display
Device (LCD, Liquid Crystal Display), Organic Light Emitting Diode (OLED, Organic Light-Emitting
) etc. Diode forms configure display panel.
Specifically in the present embodiment, the processor 601 in server can be according to following instruction, by one or more
The corresponding executable file of process of application program be loaded into memory 602, and run and be stored in by processor 601
Application program in reservoir 602, thus realize various functions, it is as follows:
Detection instruction is sent to the interchanger for being located at service plane side according to prefixed time interval, to detect service plane
Whether gateway connects normally;If it is determined that detecting that the gateway malunion of service plane is normal according to detection instruction, then fortune is reported
Battalion's system concurrency send warning information;It obtains the operation system and determines that the interchanger breaks down according to the warning information
When the control instruction that issues;Host is switched on memory plane according to the control instruction.
Preferably, the processor 601 can be also used for: if it is determined that detecting the net of service plane according to detection instruction
Connection connect it is abnormal, then before reporting operation system and sending a warning message, if it is detected that the gateway of service plane is continuously coupled
Obstructed number is more than preset threshold, it is determined that the gateway malunion of service plane is normal.
Preferably, the processor 601 can be also used for: according to prefixed time interval to the exchange positioned at service plane side
Machine is sent after detection instruction, however, it is determined that is gone out and is detected that the gateway of service plane connects normally according to detection instruction, then detection is worked as
Whether preceding host has been switched to memory plane;If so, the host for being switched to memory plane is switched back to business by control
In plane, and trigger the step of sending detection instruction to the interchanger for being located at service plane side according to prefixed time interval;If it is not,
Then directly trigger the step of sending detection instruction to the interchanger for being located at service plane side according to prefixed time interval.
Preferably, the processor 601 can be also used for, however, it is determined that go out to detect the net of service plane according to detection instruction
Connection connect it is abnormal, then after reporting operation system and sending a warning message, if getting the operation system according to the announcement
Alert information determines the interchanger instruction information that there is no issuing when failure, and triggering is according to prefixed time interval to being located at
The interchanger of service plane side sends the step of detection instruction.
Preferably, the processor 601 can be also used for, flat host is switched to storage according to the control instruction
After on face, according to prefixed time interval to be located at service plane side interchanger send detection instruction the step of.
It can be seen from the above, continuing to examine by the connection status to service plane gateway in server provided in this embodiment
It surveys, if malunion is normal, reports operation system and alert, operation system receives acknowledged alarm switch status, if really
Determine interchanger to break down, then all hosts are switched on memory plane by control;The embodiment of the present invention can not change
On the basis of existing hardware facility, its flow is handed over on memory plane when service plane breaks down, that is, is multiplexed existing
Memory channel undertake the business transmission of trouble time, reduce the wasting of resources, and can guarantee the virtual machine pair on host
The service of outer offer is not interrupted, and redundancy ability and reliability of service when virtual machine externally services are increased substantially.Further
, host can be switched back into service plane automatically when detecting interchanger and restoring and work normally, improve the utilization of resource
Rate and practicability.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the detailed description above with respect to the disaster tolerance switching method based on virtual machine, details are not described herein again.
The disaster tolerance switching device based on virtual machine provided in an embodiment of the present invention is for example computer, tablet computer,
Mobile phone etc. with touch function, in the disaster tolerance switching device based on virtual machine and foregoing embodiments based on virtual machine
Disaster tolerance switching method belong to same design, can be run in the disaster tolerance switching device based on virtual machine described based on void
Either offer method, specific implementation process are detailed in the appearance based on virtual machine in the disaster tolerance switching method embodiment of quasi- machine
Calamity switching method embodiment, details are not described herein again.
It should be noted that for the disaster tolerance switching method of the present invention based on virtual machine, this field common test
Personnel are understood that all or part of the process of the disaster tolerance switching method based on virtual machine described in the realization embodiment of the present invention, and being can
It is completed with controlling relevant hardware by computer program, the computer program can be stored in one and computer-readable deposit
It in storage media, is such as stored in the memory of terminal, and is executed by least one processor in the terminal, in the process of implementation
It may include the process such as the embodiment of the disaster tolerance switching method based on virtual machine.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access
Memory) etc..
For the disaster tolerance switching device based on virtual machine described in the embodiment of the present invention, each functional module be can integrate
In a processing chip, it is also possible to modules and physically exists alone, can also be integrated in two or more modules
In one module.Above-mentioned integrated module both can take the form of hardware realization, can also use the shape of software function module
Formula is realized.If the integrated module is realized in the form of software function module and sells or use as independent product
When, also can store in a computer readable storage medium, the storage medium is for example read-only memory, disk or
CD etc..
It is provided for the embodiments of the invention a kind of disaster tolerance switching method based on virtual machine above and device has carried out in detail
Thin to introduce, used herein a specific example illustrates the principle and implementation of the invention, and above embodiments are said
It is bright to be merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, according to this hair
Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage
Solution is limitation of the present invention.