CN104636125A - Information processing method and device - Google Patents

Information processing method and device Download PDF

Info

Publication number
CN104636125A
CN104636125A CN201310566961.4A CN201310566961A CN104636125A CN 104636125 A CN104636125 A CN 104636125A CN 201310566961 A CN201310566961 A CN 201310566961A CN 104636125 A CN104636125 A CN 104636125A
Authority
CN
China
Prior art keywords
electronic equipment
snapshot
virtual machine
information
version number
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
Application number
CN201310566961.4A
Other languages
Chinese (zh)
Other versions
CN104636125B (en
Inventor
高瞻
杨杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310566961.4A priority Critical patent/CN104636125B/en
Publication of CN104636125A publication Critical patent/CN104636125A/en
Application granted granted Critical
Publication of CN104636125B publication Critical patent/CN104636125B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an information processing method and device, and relates to the field of snapshot technologies. By means of the information processing method and device, online snapshot of cluster communication state consistency is obtained when the network communication conditions are different. According to the information processing method, first electronic equipment sends first information to second electronic equipment, the second electronic equipment conducts first operation after receiving the first information, and the second equipment returns first confirmation information to the first electronic equipment after finishing the first operation; then, the first electronic equipment sends second information to the second electronic equipment after receiving the first confirmation information returned by the second electronic equipment, and the second equipment conducts second operation according to the second information and returns second confirmation information to the first electronic equipment after finishing the second operation; next, the first electronic equipment executes third operation according to the second confirmation information. The information processing method and device are suitable for being adopted for information processing.

Description

A kind of information processing method and device
Technical field
The present invention relates to snapping technique field, particularly relate to a kind of information processing method and device.
Background technology
Snapshot is a kind of data copy technology based on time point, the data message in a certain moment can be recorded out and preserved, if after data message is at a time preserved, there is some fault when needing date restoring in system, can by snapshot by the state of date restoring to time point before.When carrying out software evaluation owing to adopting virtual machine, possible system can break down and even can collapse.Therefore, need to do online snapshot to virtual machine.
In the prior art, usually online snapshot is done simultaneously to each virtual machine of the cluster virtual machine be dispersed in different host's physical machine, such as, do online snapshot to each virtual machine of cluster virtual machine at t1 time point, the online snapshot of each virtual machine forms the online snapshot of cluster virtual machine jointly simultaneously.
But due to the difference of the uncertainty of network communication state, host load and task scheduling, cause each virtual machine of cluster virtual machine cannot carry out snapshot at synchronization, the trunking communication state causing each snapshot to be preserved is inconsistent simultaneously.
Summary of the invention
Embodiments of the invention provide a kind of information processing method and device, when network communication state is different, can obtain the online snapshot of trunking communication state consistency.
First aspect, the embodiment of the present invention provides a kind of information processing method, is applied to electronic equipment, comprising:
The second electronic equipment that described electronic equipment comprises the first electronic equipment and is connected with described first electronic equipment;
Described first electronic equipment sends the first information to described second electronic equipment, and described second electronic equipment carries out the first operation after receiving the described first information, returns the first confirmation after completing described first operation;
After described first electronic equipment receives described first confirmation that described second electronic equipment returns, the second information is sent to described second electronic equipment, described second electronic equipment carries out the second operation according to described second information, returns the second confirmation after completing described second operation;
Described first electronic equipment performs the 3rd operation according to described second confirmation.
Second aspect, the embodiment of the present invention provides a kind of cluster snapshot manager CSM, comprising:
Transmitting element, for sending the first information to the second electronic equipment;
Receiving element, for receiving the first confirmation that described second electronic equipment returns;
Described transmitting element, described first confirmation also for returning according to described second electronic equipment received, sends the second information to described second electronic equipment;
Described receiving element, also for receiving the second confirmation that described second electronic equipment returns;
Processing unit, for performing the 3rd operation according to described second confirmation.
The third aspect, the embodiment of the present invention provides a kind of physical machine cluster, comprising:
Receiving element, for receiving the first information that the first electronic equipment sends;
First processing unit, for carrying out the first operation according to the described first information;
Transmitting element, for sending to described first electronic equipment by the first confirmation;
Described receiving element, also for receiving the second information that described first electronic equipment sends;
Second processing unit, for carrying out the second operation according to described second information;
Described transmitting element, also for the second confirmation is sent to the first electronic equipment.
The embodiment of the present invention provides a kind of information processing method and device, be applied to electronic equipment, send the first information by the first electronic equipment to the second electronic equipment, the second electronic equipment carries out the first operation after receiving the first information, returns the first confirmation after completing the first operation; Then, after the first electronic equipment receives the first confirmation that the second electronic equipment returns, send the second information to the second electronic equipment, the second electronic equipment carries out the second operation according to the second information, returns the second confirmation after completing the second operation; Then the first electronic equipment performs the 3rd operation according to the second confirmation, makes the embodiment of the present invention when network communication state is different, can obtain the online snapshot of trunking communication state consistency.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The process flow diagram of a kind of information processing method that Fig. 1 provides for one embodiment of the invention;
The process flow diagram of the another kind of information processing method that Fig. 2 provides for another embodiment of the present invention;
The online snapshot schematic diagram of cluster that the communications status that Fig. 3 provides for another embodiment of the present invention is inconsistent;
The block diagram of a kind of signal conditioning package that Fig. 4 provides for another embodiment of the present invention;
The block diagram of the another kind of signal conditioning package that Fig. 5 provides for another embodiment of the present invention;
The block diagram of the another kind of signal conditioning package that Fig. 6 provides for another embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of information processing method, is applied to electronic equipment, the second electronic equipment that this electronic equipment comprises the first electronic equipment and is connected with the first electronic equipment, and as shown in Figure 1, the method comprises:
Step 101, the first electronic equipment sends the first information to the second electronic equipment, and the second electronic equipment carries out the first operation after receiving the first information, returns the first confirmation after completing the first operation.
Optionally, the first electronic equipment in this step is cluster snapshot manager (Cluster Snapshot Manager, CSM), and the second electronic equipment is physical machine cluster.CSM is used to carry out unified management to the online snapshot of cluster and snapshot version, the communication filtrator that in coordination cluster, each virtual machine is corresponding and snap shot controller, and safeguards the corresponding relation between virtual machine and host's physical machine.
Optionally, the first information is pre-snapshot command, first is operating as startup to the filtering function of communication data and the snapshot version number snapshot version number of each virtual machine being initialized as current cluster, and whether successfully the first confirmation for confirming communication data filtration information.
Optionally, after physical machine cluster receives pre-snapshot command, start virtual machine communication filtrator (Virtual Machine Communication Filter, VMCF) the snapshot version number of each virtual machine in physical machine cluster is initialized as by the filtering function of communication data and order virtual machine snapshot controller (Virtual Machine Snapshot Controller, VMSC) to the snapshot version number of current cluster.VMCF is used to filter the communication data being mail to virtual machine by virtual machine monitor (Virtual Machine Monitor, VMM) and carries out necessary preservation and forwarding.VMM is the virtualization layer in physical machine, for the physical resources such as calculating, storage, network being mapped as the logical resource used when virtual machine runs.Such as, the each external network service of virtual machine can be regarded as and carrys out simulation process by VMM thread, such as, when there is correspondence between any two virtual machines in CSM, the other side's virtual machine sends to the communication data of this virtual machine to need to carry out transfer by VMM to described communication data, then sends to VMCF to filter.
Optionally, the VMSC in physical machine cluster is used to online snapshot and the snapshot version of the virtual machine in control and management separate unit physical machine, and the snapshot version number of current cluster is the snapshot version number preserved in CSM, only preserves a snapshot version number in CSM.After receiving pre-snapshot command, the snapshot version number of the virtual machine in each physical machine is initialized as the snapshot version number in CSM by the VMSC in physical machine cluster.
Optionally, physical machine cluster start the filtering function of VMCF to communication data to refer to according to two virtual machines between communication data, determine snapshot version number and the preservation of two virtual machines or forward described communication data.In addition, the filtering function of VMCF to communication data starts from and starts VMCF to the filtering function of communication data, end at and send the other side's virtual machine of communication data and this virtual machine of received communication data and all execute online snapshot, close the filtering function of the correspondence of communication data described in VMCF.Communication data refers to that the other side's virtual machine of communication sends to the data of this virtual machine, and data here can be files, also can be request.
Optionally, the VMCF in physical machine cluster carries out after filtration completes, when VMCF filters successfully communication data, sending confirm to filter successful information to communication data to CSM to communication data; When VMCF filters unsuccessfully communication data, send to CSM and confirm to filter failed information to communication data.
Step 102, after the first electronic equipment receives the first confirmation that the second electronic equipment returns, send the second information to the second electronic equipment, the second electronic equipment carries out the second operation according to the second information, returns the second confirmation after completing the second operation.
Optionally, the second information is online snapshot command; Second is operating as and calls VMM snapshot interface and do online snapshot to each virtual machine and set online Snapshot time threshold value, and online Snapshot time threshold value can be 5 seconds, 10 seconds or 15 seconds, does not limit the occurrence of online Snapshot time here; Second confirmation is the online snapshot being confirmed whether to complete all virtual machines in online Snapshot time threshold value.
Optionally, when the first confirmation is for confirming to filter successful information to communication data, CSM sends online snapshot command to physical machine cluster after receiving the first confirmation that physical machine cluster returns.Physical machine cluster, according to online snapshot command, calls VMM snapshot interface and does online snapshot to each virtual machine, according to the communication data between two virtual machines, determines the snapshot version number of two virtual machines.
When the snapshot version number of the other side's virtual machine is not equal to the snapshot version number of this virtual machine, in the buffer queue that the other side's virtual machine sends to the communication data of this virtual machine to be kept in host's physical machine of this virtual machine by host's physical machine of this virtual machine.When the snapshot version number of the other side's virtual machine equals the snapshot version number of this virtual machine, communication data is transmitted to this virtual machine by host's physical machine of this virtual machine.When the online snapshot success of virtual machine, the snapshot version number completing the virtual machine of online snapshot upgrades by physical machine cluster, and the data in the buffer queue of correspondence is issued this corresponding virtual machine, and closes the communication data filtering function to this virtual machine.
Optionally, at the end of the online Snapshot time threshold value of setting, when physical machine cluster completes the online snapshot of all virtual machines, send the online SNAPSHOT INFO confirming to complete all virtual machines in online Snapshot time threshold value to CSM.At the end of the online Snapshot time threshold value of setting, when physical machine cluster does not complete the online snapshot of all virtual machines, send the online SNAPSHOT INFO confirming not complete all virtual machines in online Snapshot time threshold value to CSM.
Step 103, the first electronic equipment performs the 3rd operation according to the second confirmation.
Optionally, the 3rd is operating as renewal current cluster snapshot version number, obtains up-to-date cluster snapshot version number.Such as, before carrying out online snapshot, former cluster snapshot version number is 1, when CSM judges that VMSC completes the online snapshot of all virtual machines in online Snapshot time threshold value, current cluster snapshot version number is then added 1 by CSM on the basis of 1, obtains up-to-date cluster snapshot version number 2.
Optionally, when the second confirmation be confirm in online Snapshot time threshold value, complete the online snapshot of all virtual machines time, current cluster snapshot version number upgrades according to the second confirmation by CSM.When the second confirmation be confirm not complete the online snapshot of all virtual machines in online Snapshot time threshold value time, the failure of cluster virtual machine online snapshot.
The embodiment of the present invention provides a kind of information processing method, be applied to electronic equipment, send the first information by the first electronic equipment to the second electronic equipment, the second electronic equipment carries out the first operation after receiving the first information, returns the first confirmation after completing the first operation; Then, after the first electronic equipment receives the first confirmation that the second electronic equipment returns, send the second information to the second electronic equipment, the second electronic equipment carries out the second operation according to the second information, returns the second confirmation after completing the second operation; Then the first electronic equipment performs the 3rd operation according to the second confirmation, makes the embodiment of the present invention when network communication state is different, can obtain the online snapshot of trunking communication state consistency.
The embodiment of the present invention provides a kind of information processing method, be applied to electronic equipment, the second electronic equipment that this electronic equipment comprises the first electronic equipment and is connected with the first electronic equipment, first electronic equipment can be CSM, second electronic equipment can be physical machine cluster, as shown in Figure 2, the method comprises:
Step 201, the first electronic equipment sends the first information to the second electronic equipment.
Optionally, the first electronic equipment in this step is CSM, and the second electronic equipment is physical machine cluster.CSM is used to carry out unified management to the online snapshot of cluster and snapshot version, the communication filtrator that in coordination cluster, each virtual machine is corresponding and snap shot controller, and safeguards the corresponding relation between virtual machine and host's physical machine.
Optionally, the first information is pre-snapshot command, is used to refer to the startup of physical machine cluster to the filtering function of communication data and the snapshot version number snapshot version number of each virtual machine being initialized as current cluster.
Step 202, the snapshot version number of each virtual machine is initialized as the snapshot version number of current cluster after receiving the first information by the second electronic equipment.
Optionally, after the second electronic equipment receives the first information, the snapshot version number of each virtual machine in physical machine cluster is initialized as the snapshot version number of current cluster by order VMSC.VMCF is used to filter the communication data being mail to virtual machine by VMM and carries out necessary preservation and forwarding.VMM is the virtualization layer in physical machine, for the physical resources such as calculating, storage, network being mapped as the logical resource used when virtual machine runs.Such as, the each external network service of virtual machine can be regarded as and carrys out simulation process by VMM thread, such as, when there is correspondence between any two virtual machines, the other side's virtual machine sends to the communication data of this virtual machine to need to carry out transfer by VMM to described communication data, then sends to VMCF to filter.
Optionally, due to the difference of the uncertainty of network communication state, host load and task scheduling, cause each virtual machine of cluster virtual machine cannot carry out snapshot at synchronization simultaneously, therefore, before initialization, the snapshot version number of each virtual machine may be different, after initialization, the snapshot version number of each virtual machine is identical, is the snapshot version number of current cluster.The snapshot version number of such as each virtual machine can be 1 or 2, after initialization before initialization, and the snapshot version number of each virtual machine is the snapshot version number 1 of current cluster.
Step 203, after the second electronic equipment receives the first information, the snapshot version number of this virtual machine of obtaining communication data and the snapshot version number of the other side's virtual machine.
Optionally, communication data refers to that the other side's virtual machine of communication sends to the data of this virtual machine, and data here can be files, also can be request.
Optionally, any two virtual machines in physical machine cluster can be VM1 and VM2, if there is correspondence between VM1 and VM2, the virtual machine then wherein sending communication data is the other side's virtual machine, the virtual machine of received communication data is this virtual machine, when VM1 sends communication data to VM2, the VM1 sending communication data is the other side's virtual machine, and the VM2 of received communication data is this virtual machine; When VM2 sends communication data to VM1, the VM2 sending communication data is the other side's virtual machine, and the VM1 of received communication data is this virtual machine.
Optionally, the snapshot version number of virtual machine can adopt the mode of numeral to represent, such as, the snapshot version number of the VM1 in cluster virtual machine can be expressed as 1; The snapshot version number of virtual machine also can adopt the array mode of numeral and letter to represent, such as, the snapshot version number of the VM1 in cluster virtual machine can be expressed as a1.Certainly, the snapshot version number of virtual machine can also adopt other mode to represent, illustrates no longer one by one at this.Should be noted that, the snapshot version number of the virtual machine in same cluster virtual machine adopts and represents in a like fashion.
Step 204, the second electronic equipment judges whether the snapshot version number of the other side's virtual machine equals the snapshot version number of this virtual machine.
It should be noted that, after the snapshot version number initialization of each virtual machine, the snapshot version number of each virtual machine is identical, therefore there will not be the snapshot version number of the other side's virtual machine to be not equal to the situation of the snapshot version number of this virtual machine.
Step 205, when the snapshot version number of the other side's virtual machine equals the snapshot version number of this virtual machine, communication data is transmitted to this virtual machine by host's physical machine of this virtual machine.
Step 206, when the second electronic equipment has filtered communication data, has sent the first confirmation to the first electronic equipment.
Optionally, when the second electronic equipment filters unsuccessfully communication data, send communication data to the first electronic equipment and filter failed information.When the second electronic equipment filters successfully communication data, then send to the first electronic equipment and successful information is filtered to communication data.Whether the first confirmation is successful to communication data filtration.
Step 207, when the first electronic equipment receives the first confirmation that the second electronic equipment returns, judges whether the second electronic equipment successfully starts the filtering function to communication data.
In this step, when the second electronic equipment starts the filtering function failure of any one communication data, will step 208 be performed, when the second electronic equipment successfully starts the filtering function of all communication datas, perform step 209.
Step 208, the filtering function to communication data that the second electronic equipment has started cancelled by the first electronic equipment.
Optionally, after the filtering function to communication data that the second electronic equipment started cancelled by the first electronic equipment, the online snapshot failure of whole cluster virtual machine, flow process terminates.
Step 209, the first electronic equipment sends the second information to the second electronic equipment, and sets online Snapshot time threshold value.
Optionally, the second information is online snapshot command.
Can environmentally, under the buffer memory of VMCF, the patient time of user and different scenes the response time etc. of system online Snapshot time threshold value is set, such as online Snapshot time can be 5 seconds, 10 seconds or 15 seconds, does not limit the occurrence of online Snapshot time here.
Step 210, the second electronic equipment receives the second information that the first electronic equipment sends, and calls VMM snapshot interface do online snapshot to each virtual machine according to the second information.
Step 211, when the online snapshot success of virtual machine, the snapshot version number completing the virtual machine of online snapshot upgrades by the second electronic equipment.
Optionally, upgrading the snapshot version number of the virtual machine completing online snapshot can for add 1 by the snapshot version number of virtual machine, certainly other mode can also be adopted to upgrade the snapshot version number of virtual machine, the former snapshot version number of such as virtual machine is 2.0, then the snapshot version number after upgrading is 2.1 etc.Then the data in the buffer queue of correspondence are issued this corresponding virtual machine, and close the communication data filtering function to this virtual machine.
Optionally, when any one virtual machine does not have snapshot success, the online snapshot failure of cluster virtual machine.
Step 212, after the snapshot version number of the virtual machine completing online snapshot upgrades, the second electronic equipment, according to the communication data received, obtains the snapshot version number of this virtual machine of described communication data and the snapshot version number of described the other side's virtual machine.
Optionally, after the snapshot version number of the virtual machine completing online snapshot upgrades, host's physical machine of this virtual machine, according to the communication data sending to this virtual machine received, obtains the snapshot version number of the other side's virtual machine and the snapshot version number of this virtual machine.Because each virtual machine can not online snapshot be successful simultaneously, the snapshot version number of the other side's virtual machine of the described communication data therefore obtained may be different from the snapshot version number of this virtual machine.
Step 213, the second electronic equipment judges whether the snapshot version number stating the other side's virtual machine equals the snapshot version number of this virtual machine.
In this step, when the snapshot version number of the other side's virtual machine equals the snapshot version number of this virtual machine, perform step 214, when the snapshot version number of the other side's virtual machine is not equal to the snapshot version number of this virtual machine, perform step 215.
Step 214, communication data is transmitted to this virtual machine by the second electronic equipment.
Step 215, in the buffer queue that the other side's virtual machine sends to the communication data of this virtual machine to be kept in host's physical machine of this virtual machine by the second electronic equipment.
Optionally, step 214 and the second electronic equipment in step 215 can be specially host's physical machine of this virtual machine.
Step 216, when the equal snapshot success of the other side's virtual machine and this virtual machine that there is correspondence, the communication data in the buffer queue be kept in host's physical machine of this virtual machine is sent to this corresponding virtual machine by the second electronic equipment.
Optionally, in the prior art, usually online snapshot is carried out to each virtual machine of the cluster virtual machine be dispersed in different host's physical machine simultaneously, due to the difference of the uncertainty of network communication state, host load and task scheduling, cause each virtual machine of cluster virtual machine cannot carry out online snapshot at synchronization, the trunking communication state causing each snapshot to be preserved is inconsistent simultaneously.Such as, as shown in Figure 3, three virtual machines are had to be respectively VM1, VM2 and VM3 in cluster virtual machine, when this cluster virtual machine carries out online snapshot, the time point of the actual online snapshot of each virtual machine is respectively t1, t2 and t3, VM1 have sent message m at the rear of t1 to VM3, and this message was received by VM3 before t3.For the online snapshot of this cluster, message m has been received by VM3 but has not yet been sent by VM1, there is the phenomenon that communications status is inconsistent.When using this snapshot restore group system, the inconsistent of this communications status may cause loss of data etc.
But, by physical machine cluster, VM1 is kept in the buffer queue in host's physical machine of VM3 in the rear message m sent to VM3 of t1, after VM1 and VM3 completes online snapshot, message m is transmitted to VM3 by this host's physical machine, for the online snapshot of this cluster virtual machine, not only there is the VM3 of receipt message m, also there is the VM1 sending message m.
Step 217, when the online Snapshot time threshold value set arrives, the second confirmation is sent to the first electronic equipment by the second electronic equipment.
Optionally, when the online Snapshot time threshold value set arrives, when physical machine cluster completes the online snapshot of all virtual machines, the online SNAPSHOT INFO confirming to complete all virtual machines in online Snapshot time threshold value is sent to CSM.At the end of the online Snapshot time threshold value of setting, when physical machine cluster does not complete the online snapshot of all virtual machines, send the online SNAPSHOT INFO confirming not complete all virtual machines in online Snapshot time threshold value to CSM.Second confirmation is the online SNAPSHOT INFO confirming whether to complete all virtual machines in online Snapshot time threshold value.
Step 218, the first electronic equipment receives the second confirmation that the second electronic equipment returns, and upgrades current cluster snapshot version number, obtain up-to-date cluster snapshot version number according to the second confirmation.
Optionally, this step is identical with step 103 in accompanying drawing 1, specifically can see the description of step 103, and this is no longer going to repeat them.
The embodiment of the present invention provides a kind of information processing method, be applied to electronic equipment, the first information is sent to the second electronic equipment by the first electronic equipment, second electronic equipment starts the filtering function to communication data after receiving the first information, return the first confirmation after completing the filtration to communication data; Then after the first electronic equipment receives the first confirmation that the second electronic equipment returns, the second information is sent to the second electronic equipment, second electronic equipment calls VMM snapshot interface according to the second information and does online snapshot to each virtual machine, returns the second confirmation after completing the second operation; Then the first electronic equipment upgrades current cluster snapshot version number according to the second confirmation, obtains up-to-date cluster snapshot version number, makes the embodiment of the present invention when network communication state is different, can obtain the online snapshot of trunking communication state consistency.
The embodiment of the present invention provides a kind of cluster snapshot manager CSM, and as shown in Figure 4, this device comprises: transmitting element 401, receiving element 402, processing unit 403.
Transmitting element 401, for sending the first information to the second electronic equipment.
Optionally, the second electronic equipment is physical machine cluster.The first information is pre-snapshot command, is used to refer to the startup of physical machine cluster to the filtering function of communication data and the snapshot version number snapshot version number of each virtual machine being initialized as current cluster.
Receiving element 402, for receiving the first confirmation that described second electronic equipment returns.
Optionally, the VMCF in physical machine cluster carries out after filtration completes, when VMCF filters successfully communication data, sending confirm to filter successful information to communication data to CSM to communication data; When VMCF filters unsuccessfully communication data, send to CSM and confirm to filter failed information to communication data.Whether successfully first confirmation for confirming communication data filtration information.
Described transmitting element 401, described first confirmation also for returning according to described second electronic equipment received, sends the second information to described second electronic equipment.
Optionally, the second information is online snapshot command.In this step when the first confirmation is for confirming to filter successful information to communication data, CSM sends online snapshot command to physical machine cluster after receiving the first confirmation that physical machine cluster returns.
Described receiving element 402, also for receiving the second confirmation that described second electronic equipment returns.
Optionally, at the end of the online Snapshot time threshold value of setting, when physical machine cluster completes the online snapshot of all virtual machines, send the online SNAPSHOT INFO confirming to complete all virtual machines in online Snapshot time threshold value to CSM.At the end of the online Snapshot time threshold value of setting, when physical machine cluster does not complete the online snapshot of all virtual machines, send the online SNAPSHOT INFO confirming not complete all virtual machines in online Snapshot time threshold value to CSM.Second confirmation is the online SNAPSHOT INFO confirming whether to complete all virtual machines in online Snapshot time threshold value.
Processing unit 403, for performing the 3rd operation according to described second confirmation.
Optionally, this step is identical with step 103 in accompanying drawing 1, specifically can see the description of step 103, and this is no longer going to repeat them.
It should be noted that, in accompanying drawing 4 shown device, the content such as information interaction between the specific implementation process of its modules and modules, due to the inventive method embodiment based on same inventive concept, see embodiment of the method, can not repeat one by one at this.
The embodiment of the present invention provides a kind of cluster snapshot manager CSM, is applied to electronic equipment, by sending the first information to the second electronic equipment, receives the first confirmation that the second electronic equipment returns; Then the second information is sent according to the first confirmation to the second electronic equipment, receive the second confirmation that the second electronic equipment returns, and perform the 3rd operation according to the second confirmation, make the embodiment of the present invention when network communication state is different, the online snapshot of trunking communication state consistency can be obtained.
The embodiment of the present invention provides a kind of physical machine cluster, and as shown in Figure 5, this device comprises: receiving element 501, the first processing unit 502, transmitting element 503, the second processing unit 504.
Receiving element 501, for receiving the first information that the first electronic equipment sends.
Optionally, the first electronic equipment is CSM, and the first information is pre-snapshot command, is used to refer to the startup of physical machine cluster to the filtering function of communication data and the snapshot version number snapshot version number of each virtual machine being initialized as current cluster.
First processing unit 502, for carrying out the first operation according to the described first information.
Optionally, after physical machine cluster receives pre-snapshot command, perform the first operation, namely start the snapshot version number of each virtual machine in physical machine cluster to be initialized as current cluster by VMCF snapshot version number to the filtering function of communication data and order VMSC.
Optionally, when the VMCF in physical machine cluster to communication data carry out filtration complete time, by acquisition first operating result, the first operating result is filter whether success to communication data.
Transmitting element 503, for sending to described first electronic equipment by the first confirmation.
Optionally, the first confirmation comprises the result of the first operation, and the VMCF in physical machine cluster carries out after filtration completes, when VMCF filters successfully communication data, sending confirm to filter successful information to communication data to CSM to communication data; When VMCF filters unsuccessfully communication data, send to CSM and confirm to filter failed information to communication data.
Described receiving element 501, also for receiving the second information that described first electronic equipment sends.
Optionally, the second information is online snapshot command.When the first confirmation is for confirming to filter successful information to communication data, CSM sends online snapshot command to physical machine cluster after receiving the first confirmation that physical machine cluster returns.
Second processing unit 504, for carrying out the second operation according to described second information.
Optionally, physical machine cluster is according to online snapshot command, perform the second operation, namely call VMM snapshot interface do online snapshot to each virtual machine and set online Snapshot time threshold value, online Snapshot time threshold value can be 5 seconds, 10 seconds or 15 seconds, does not limit the occurrence of online Snapshot time here.
Optionally, after the online Snapshot time threshold value of setting terminates, obtain the second operating result, namely at the end of the online Snapshot time threshold value of setting, physical machine cluster completes the online snapshot of all virtual machines, the online snapshot success of cluster virtual machine.At the end of the online Snapshot time threshold value of setting, physical machine cluster does not complete the online snapshot of all virtual machines, the online snapshot failure of cluster virtual machine.
Described transmitting element 503, also for the second confirmation is sent to the first electronic equipment.
Optionally, second confirmation comprises the result of the second operation, at the end of the online Snapshot time threshold value of setting, when physical machine cluster completes the online snapshot of all virtual machines, send the online SNAPSHOT INFO confirming to complete all virtual machines in online Snapshot time threshold value to CSM.At the end of the online Snapshot time threshold value of setting, when physical machine cluster does not complete the online snapshot of all virtual machines, send the online SNAPSHOT INFO confirming not complete all virtual machines in online Snapshot time threshold value to CSM.
Further alternative, as shown in Figure 6, described first processing unit 502, comprising: receiver module 5021, acquisition module 5022, sending module 5023.
Receiver module 5021, for according to described pre-snapshot command, receives the communication data that the other side's virtual machine sends.
Acquisition module 5022, for the snapshot version number of the snapshot version number and described the other side's virtual machine that obtain this virtual machine of described communication data, described virtual machine and described the other side's virtual machine are respectively the virtual machine in described second electronic equipment.
Sending module 5023, for when the snapshot version number of described the other side's virtual machine is not equal to the snapshot version number of described virtual machine, in the buffer queue send to the communication data of described virtual machine to be kept in the physical machine of described virtual machine described the other side's virtual machine.
Described sending module 5023, also for when the snapshot version number of described the other side's virtual machine equals the snapshot version number of described virtual machine, is transmitted to described virtual machine by described communication data.
Further alternative, described second processing unit 504, comprising: update module 5041, sending module 5042, execution module 5043.
Update module 5041, for when the online snapshot of virtual machine is successful, the snapshot version number that described second electronic equipment will complete the virtual machine of online snapshot upgrades.
Sending module 5042, for issuing this corresponding virtual machine by the data in the buffer queue of correspondence.
Execution module 5043, for closing the communication data filtering function to this virtual machine.
It should be noted that, accompanying drawing 5 with accompanying drawing 6 shown device, the contents such as the information interaction between the specific implementation process of its modules and modules, due to the inventive method embodiment based on same inventive concept, see embodiment of the method, can not repeat one by one at this.
The embodiment of the present invention provides a kind of physical machine cluster, by receiving the first information that the first electronic equipment sends, carrying out the first operation, the first confirmation is sent to the first electronic equipment according to the first information; And then receive the second information of the first electronic equipment transmission, the second operation is carried out according to the second information, second confirmation is sent to the first electronic equipment, makes the embodiment of the present invention when network communication state is different, the online snapshot of trunking communication state consistency can be obtained.
It should be noted that, device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required common hardware by software and realize, can certainly comprise special IC, dedicated cpu, private memory, special components and parts etc. by specialized hardware to realize, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in the storage medium that can read, as the floppy disk of computing machine, USB flash disk, portable hard drive, ROM (read-only memory), random access memory, magnetic disc or CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform method described in each embodiment of the present invention.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device and system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.

Claims (18)

1. an information processing method, is applied to electronic equipment, it is characterized in that, comprising:
The second electronic equipment that described electronic equipment comprises the first electronic equipment and is connected with described first electronic equipment;
Described first electronic equipment sends the first information to described second electronic equipment, and described second electronic equipment carries out the first operation after receiving the described first information, returns the first confirmation after completing described first operation;
After described first electronic equipment receives described first confirmation that described second electronic equipment returns, the second information is sent to described second electronic equipment, described second electronic equipment carries out the second operation according to described second information, returns the second confirmation after completing described second operation;
Described first electronic equipment performs the 3rd operation according to described second confirmation.
2. method according to claim 1, is characterized in that, described first electronic equipment is cluster snapshot manager CSM, and described second electronic equipment is physical machine cluster.
3. method according to claim 1, is characterized in that,
The described first information is pre-snapshot command, described first is operating as startup to the filtering function of communication data and the snapshot version number snapshot version number of each virtual machine being initialized as current cluster, and whether successfully described first confirmation for confirming communication data filtration information.
4. method according to claim 1, is characterized in that, described after described first electronic equipment receives described first confirmation that described second electronic equipment returns, and sends the second information, comprising to described second electronic equipment:
When described first confirmation is for confirming to filter successful information to communication data, described first electronic equipment sends the second information to described second electronic equipment after receiving described first confirmation that described second electronic equipment returns.
5. method according to claim 1, is characterized in that,
Described second information is online snapshot command, described second is operating as and calls virtual machine monitor VMM snapshot interface and do online snapshot to each virtual machine and set online Snapshot time threshold value, and described second confirmation is the online snapshot being confirmed whether to complete all virtual machines in online Snapshot time threshold value.
6. method according to claim 1, is characterized in that, described first electronic equipment performs the 3rd operation according to described second confirmation, comprising:
When described second confirmation be confirm in online Snapshot time threshold value, complete the online snapshot of all virtual machines time, described first electronic equipment according to described second confirmation perform the 3rd operation.
7. method according to claim 1, is characterized in that,
Described 3rd is operating as renewal current cluster snapshot version number, obtains up-to-date cluster snapshot version number.
8. method according to claim 3, is characterized in that, described after described second electronic equipment receives the described first information of described first electronic equipment transmission, described second electronic equipment starts the filtering function to communication data, comprising:
According to described pre-snapshot command, described second electronic equipment receives the communication data that the other side's virtual machine sends, obtain the snapshot version number of this virtual machine of described communication data and the snapshot version number of described the other side's virtual machine, described virtual machine and described the other side's virtual machine are respectively the virtual machine in described second electronic equipment;
When the snapshot version number of described the other side's virtual machine is not equal to the snapshot version number of described virtual machine, in the buffer queue that described the other side's virtual machine sends to the communication data of described virtual machine to be kept in the physical machine of described virtual machine by described second electronic equipment;
When the snapshot version number of described the other side's virtual machine equals the snapshot version number of described virtual machine, described communication data is transmitted to described virtual machine by described second electronic equipment.
9. method according to claim 5, is characterized in that, described second electronic equipment calls virtual machine monitor VMM snapshot interface and does online snapshot to each virtual machine, comprising:
When the online snapshot success of virtual machine, the snapshot version number completing the virtual machine of online snapshot upgrades by described second electronic equipment;
Data in the buffer queue of correspondence are issued this corresponding virtual machine by described second electronic equipment, and close the communication data filtering function to this virtual machine.
10. a cluster snapshot manager CSM, is characterized in that, comprising:
Transmitting element, for sending the first information to the second electronic equipment;
Receiving element, for receiving the first confirmation that described second electronic equipment returns;
Described transmitting element, described first confirmation also for returning according to described second electronic equipment received, sends the second information to described second electronic equipment;
Described receiving element, also for receiving the second confirmation that described second electronic equipment returns;
Processing unit, for performing the 3rd operation according to described second confirmation.
11. devices according to claim 10, is characterized in that, described second electronic equipment is physical machine cluster.
12. devices according to claim 10, is characterized in that,
The described first information is pre-snapshot command, and whether successfully described first confirmation for confirming communication data filtration information;
Described transmitting element, also for when described first confirmation is for confirming to filter successful information to communication data, sends the second information to described second electronic equipment.
13. devices according to claim 10, is characterized in that,
Described second information is online snapshot command, and described second confirmation is the online snapshot being confirmed whether to complete all virtual machines in online Snapshot time threshold value;
Described processing unit, also for when described second confirmation be confirm in online Snapshot time threshold value, complete the online snapshot of all virtual machines time, perform the 3rd operation;
Described 3rd is operating as renewal current cluster snapshot version number, obtains up-to-date cluster snapshot version number.
14. 1 kinds of physical machine clusters, is characterized in that, comprising:
Receiving element, for receiving the first information that the first electronic equipment sends;
First processing unit, for carrying out the first operation according to the described first information;
Transmitting element, for sending to described first electronic equipment by the first confirmation;
Described receiving element, also for receiving the second information that described first electronic equipment sends;
Second processing unit, for carrying out the second operation according to described second information;
Described transmitting element, also for the second confirmation is sent to the first electronic equipment.
15. devices according to claim 14, is characterized in that, described first electronic equipment is cluster snapshot manager CSM.
16. devices according to claim 14, is characterized in that,
The described first information is pre-snapshot command, described first is operating as startup to the filtering function of communication data and the snapshot version number snapshot version number of each virtual machine being initialized as current cluster, and whether successfully described first confirmation for confirming communication data filtration information;
Described second information is online snapshot command, described second is operating as and calls virtual machine monitor VMM snapshot interface and do online snapshot to each virtual machine and set online Snapshot time threshold value, and described second confirmation is the online snapshot being confirmed whether to complete all virtual machines in online Snapshot time threshold value;
Described 3rd is operating as renewal current cluster snapshot version number, obtains up-to-date cluster snapshot version number.
17. devices according to claim 16, is characterized in that, described first processing unit, comprising:
Receiver module, for according to described pre-snapshot command, receives the communication data that the other side's virtual machine sends;
Acquisition module, for the snapshot version number of the snapshot version number and described the other side's virtual machine that obtain this virtual machine of described communication data, described virtual machine and described the other side's virtual machine are respectively the virtual machine in described second electronic equipment;
Sending module, for when the snapshot version number of described the other side's virtual machine is not equal to the snapshot version number of described virtual machine, in the buffer queue send to the communication data of described virtual machine to be kept in the physical machine of described virtual machine described the other side's virtual machine;
Described sending module, also for when the snapshot version number of described the other side's virtual machine equals the snapshot version number of described virtual machine, is transmitted to described virtual machine by described communication data.
18. devices according to claim 16, is characterized in that, described second processing unit, comprising:
Update module, for when the online snapshot of virtual machine is successful, the snapshot version number that described second electronic equipment will complete the virtual machine of online snapshot upgrades;
Sending module, for issuing this corresponding virtual machine by the data in the buffer queue of correspondence;
Execution module, for closing the communication data filtering function to this virtual machine.
CN201310566961.4A 2013-11-13 2013-11-13 A kind of information processing method and device Active CN104636125B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310566961.4A CN104636125B (en) 2013-11-13 2013-11-13 A kind of information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310566961.4A CN104636125B (en) 2013-11-13 2013-11-13 A kind of information processing method and device

Publications (2)

Publication Number Publication Date
CN104636125A true CN104636125A (en) 2015-05-20
CN104636125B CN104636125B (en) 2018-03-23

Family

ID=53214928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310566961.4A Active CN104636125B (en) 2013-11-13 2013-11-13 A kind of information processing method and device

Country Status (1)

Country Link
CN (1) CN104636125B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101078999A (en) * 2006-05-26 2007-11-28 任永坚 Method and system for accomplishing data backup and recovery
CN101609419A (en) * 2009-06-29 2009-12-23 北京航空航天大学 The data back up method and the device of the migration of virtual machine consistently online
CN101650679A (en) * 2009-07-27 2010-02-17 浪潮电子信息产业股份有限公司 Efficient snapshot technology based on disk IO read-write change
CN102520881A (en) * 2011-12-02 2012-06-27 中标软件有限公司 Virtual machine snapshot management method and system of cloud computing platform
US20120233282A1 (en) * 2011-03-08 2012-09-13 Rackspace Us, Inc. Method and System for Transferring a Virtual Machine
CN103220358A (en) * 2013-04-19 2013-07-24 李晶 Multi-terminal on-line file synchronizing method, system, server, and terminal device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101078999A (en) * 2006-05-26 2007-11-28 任永坚 Method and system for accomplishing data backup and recovery
CN101609419A (en) * 2009-06-29 2009-12-23 北京航空航天大学 The data back up method and the device of the migration of virtual machine consistently online
CN101650679A (en) * 2009-07-27 2010-02-17 浪潮电子信息产业股份有限公司 Efficient snapshot technology based on disk IO read-write change
US20120233282A1 (en) * 2011-03-08 2012-09-13 Rackspace Us, Inc. Method and System for Transferring a Virtual Machine
CN102520881A (en) * 2011-12-02 2012-06-27 中标软件有限公司 Virtual machine snapshot management method and system of cloud computing platform
CN103220358A (en) * 2013-04-19 2013-07-24 李晶 Multi-terminal on-line file synchronizing method, system, server, and terminal device

Also Published As

Publication number Publication date
CN104636125B (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN102972010B (en) Switch method, apparatus and system for virtual application dual-machine in cloud environment
US8656387B2 (en) Method and system for workload distributing and processing across a network of replicated virtual machines
CN102193824B (en) Virtual machine homogenizes to realize the migration across heterogeneous computers
CN107515776A (en) The uninterrupted upgrade method of business, node to be upgraded and readable storage medium storing program for executing
CN104486234A (en) Method and server for uninstalling service exchanger to physical network card
US10331470B2 (en) Virtual machine creation according to a redundancy policy
CN104094229A (en) System and method for supporting live migration of virtual machines based on an extended host channel adaptor (HCA) model
CN103530167A (en) Virtual machine memory data migration method and relevant device and cluster system
CN108139924A (en) Hot plug hardware and Software implementations
US20120297091A1 (en) Method and apparatus of server i/o migration management
CN113032085A (en) Management method, device, server, management system and medium of cloud operating system
CN106982133B (en) Method, equipment and system for changing configuration information of virtual network card
CN111026510A (en) Cross-storage thermal migration method for virtual machine in cloud environment
CN113312143A (en) Cloud computing system, command processing method and virtualization simulation device
CN108319492B (en) Method, device and system for resetting physical machine
CN102413183B (en) Cloud intelligence switch and processing method and system thereof
CN105739930A (en) Storage framework as well as initialization method, data storage method and data storage and management apparatus therefor
CN112306650B (en) Virtual machine thermomigration method and communication equipment
KR20180122593A (en) How to delete a cloud host in a cloud computing environment, devices, servers, and storage media
CN104199716A (en) Virtual machine thermal migration method, physical host and system
CN103412771A (en) Software upgrading processing method, device and system
CN104170307A (en) Failure switching method, device and system
CN109032762B (en) Virtual machine backtracking method and related equipment
CN103401721A (en) Network virtualization based TOR (top of rack) switch configuration method and device
CN104636125A (en) Information processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant