CN105740049B - A kind of control method and device - Google Patents
A kind of control method and device Download PDFInfo
- Publication number
- CN105740049B CN105740049B CN201610056047.9A CN201610056047A CN105740049B CN 105740049 B CN105740049 B CN 105740049B CN 201610056047 A CN201610056047 A CN 201610056047A CN 105740049 B CN105740049 B CN 105740049B
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- file
- new node
- migration
- configuration file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1479—Generic software techniques for error detection or fault masking
- G06F11/1482—Generic software techniques for error detection or fault masking by means of middleware or OS functionality
- G06F11/1484—Generic software techniques for error detection or fault masking by means of middleware or OS functionality involving virtual machines
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
- G06F9/4856—Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45575—Starting, stopping, suspending or resuming virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of control methods, this method comprises: when virtual-machine fail triggering high reliability HA failure migration, if the virtual machine inquired in virtual machine configuration is carrying out migration operation, new node is selected for the virtual machine, and virtual machine configuration is handed down to the new node, the store path of the virtual machine operation in the virtual machine configuration in the new node is the path of interim snapshot document;The virtual machine is run on the new node.The invention also discloses a kind of control devices.Using the present invention can during virtual machine (vm) migration, if break down trigger HA failure migration after, it is ensured that the data during virtual machine (vm) migration are not lost.
Description
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a control method and apparatus.
Background
The HA (High Availability) Cluster (Cluster) provides transparent redundant processing capability through a set of physical hosts, thereby ensuring service continuity. When one physical host is unavailable or can not process the request of the client, the network resources provided by the physical host can be timely transferred to another available physical host for processing, and the service interruption time is reduced.
Disclosure of Invention
The invention aims to provide a control method and a control device, which can ensure that data is not lost in the virtual machine migration process after HA fault migration is triggered if a fault occurs in the virtual machine migration process.
In order to achieve the above object, the present invention provides a control method, including:
when a virtual machine fault triggers high-reliability HA fault migration, if the virtual machine in a virtual machine configuration file is inquired to be in migration operation, selecting a new node for the virtual machine, and sending the virtual machine configuration file to the new node, wherein a storage path of running of the virtual machine in the virtual machine configuration file in the new node is a path of a temporary snapshot file; and running the virtual machine on the new node.
In order to achieve the above object, the present invention also provides a control apparatus, comprising:
the processing unit is used for selecting a new node for the virtual machine and sending the virtual machine configuration file to the new node if the virtual machine in the virtual machine configuration file is inquired to be in migration operation when the virtual machine fault triggers high-reliability HA fault migration, wherein the storage path of the running virtual machine in the virtual machine configuration file in the new node is the path of the temporary snapshot file;
and the running unit runs the virtual machine on the new node.
In summary, in the embodiment of the present invention, when a virtual machine failure triggers a high-reliability HA failure migration, if it is queried that the virtual machine in the virtual machine configuration file is performing a migration operation, a new node is selected for the virtual machine, and the virtual machine configuration file is sent to the new node, where a storage path in which the virtual machine in the virtual machine configuration file runs is a path of the temporary snapshot file; and running the virtual machine on the new node. Therefore, data written into the temporary snapshot file in the virtual machine migration process is not lost.
Drawings
Fig. 1 is a schematic networking diagram of a cloud computing management platform HA according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a control method according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a network configuration in which the control device adopts dual-device hot standby according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of the control device of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The working principle of HA: the cluster is provided with a plurality of nodes, one or a plurality of virtual machines run on each node, the nodes detect whether the other side exists or not through a heartbeat mechanism, when a certain node is found not to respond to a request within overtime time, the node is considered to be in a fault, a relatively idle node is selected for the affected virtual machine according to a scheduling processing strategy of HA, the affected virtual machine is started on the node, and the continuity of the virtual machine service is ensured.
The implementation method of the online migration of the virtual machine in the prior art is as follows:
1) and generating a temporary snapshot file in the source storage pool where the virtual machine basic image file a is located.
2) And writing newly generated data into the temporary snapshot file in the migration process of the virtual machine, and migrating the basic image file to the target storage pool.
3) And after the temporary snapshot file and the transferred basic image file are merged into a target storage pool, a storage volume containing the temporary snapshot file and the basic image file is formed, and the name of the storage volume is still the name a of the basic image file, so that the online transfer operation of the virtual machine is completed.
If the virtual machine migration operation is terminated due to node or storage failure in the migration process, the control device is triggered to perform HA failure migration, an idle node is selected for the affected virtual machine, the affected virtual machine is restarted on the node, and the restarted virtual machine mounts the basic image file a in the source storage pool, so that data written in the temporary snapshot file in the virtual machine migration process is lost. The loss of such data occurs for sensitive services of databases, LDAP servers, etc., with very serious consequences.
The core idea of the invention is that the control device is a central node in a CAS (Cloud Automation System) Cloud computing management platform HA and is responsible for task scheduling of the whole platform. The control device records the state of the virtual machine in a configuration file of the virtual machine, preferably, a flag bit can be introduced to record the state of the virtual machine, the virtual machine records the migration operation of the virtual machine and records the name of the temporary snapshot file in the migration process, when the virtual machine is subjected to HA fault migration triggered by a server or a storage fault and the like, the control device inquires the state of the virtual machine firstly, and then determines whether to modify the configuration file of the virtual machine according to the recorded name of the temporary snapshot file or not, and modifies the running storage path of the virtual machine into the path of the temporary snapshot file. Therefore, data written into the temporary snapshot file in the virtual machine migration process is not lost.
Thus, the present invention proposes a control method, comprising:
when a virtual machine fault triggers high-reliability HA fault migration, if the virtual machine in a virtual machine configuration file is inquired to be in migration operation, selecting a new node for the virtual machine, and sending the virtual machine configuration file to the new node, wherein a storage path of running of the virtual machine in the virtual machine configuration file in the new node is a path of a temporary snapshot file; and running the virtual machine on the new node.
Changing a storage path of running of a virtual machine in a virtual machine configuration file into a path of a temporary snapshot file and then issuing the path to the new node; or,
and after the virtual machine configuration file is issued to the new node, indicating the new node to modify the running storage path of the virtual machine in the issued virtual machine configuration file into the path of the temporary snapshot file.
And after the virtual machine is operated on the new node, instructing the new node to merge the temporary snapshot file and the basic image file into a source storage pool where the basic image file is located before the virtual machine is migrated.
In the process, when the virtual machine is migrated online, recording that the virtual machine is migrating in the virtual machine configuration file stored in the virtual machine configuration file;
writing newly generated data of the virtual machine in the migration process into a temporary snapshot file, and recording the name of the temporary snapshot file, wherein the suffix of the temporary snapshot file in the name is used as the next stage of the suffix of the basic image file.
And after the online migration of the virtual machine is completed, recording the completion of the migration operation of the virtual machine in the virtual machine configuration file.
Fig. 1 shows a schematic networking diagram of a cloud computing management platform HA according to an embodiment of the present invention. The HA cluster is provided with a plurality of nodes, and each node runs one or more virtual machines. The control device realizes the unified management of all the nodes, the virtual machines running on the nodes, the storage servers and other resources. The nodes access the storage server through the switch. The storage server is used as a network sharing storage for storing the image files of the virtual machines, all the image files of all the virtual machines in the HA cluster need to be saved in the storage volume in the storage pool of the storage server, and the image file of one virtual machine can be saved in a plurality of storage volumes in the same storage pool.
Fig. 1 only illustrates a source node and a destination node, wherein a new node selected after HA failover is used as the destination node. Fig. 1 only illustrates a source storage pool and a destination storage pool, wherein a virtual machine migrates an image file from the source storage pool to the destination storage pool during online migration, and the two storage pools may be located on the same storage server or on different storage servers.
A flow chart of a control method according to an embodiment of the present invention is shown in fig. 2, and includes the following steps:
step 21, when the virtual machine fault triggers the high-reliability HA fault migration, if the control device inquires that the virtual machine in the virtual machine configuration files is in the migration operation, modifying the virtual machine configuration files, and modifying the storage path of the running virtual machine into the path of the temporary snapshot file;
and step 22, the control device selects a new node for the virtual machine, and issues the modified virtual machine configuration file to the new node so as to operate the virtual machine on the new node by using the modified configuration file.
In practical applications, an operator may notify the control device to perform online migration of the virtual machine, or the control device executes the DRS, and performs online migration of the virtual machine when load balancing is required.
In the invention, when the virtual machine is migrated online,
s1, the control device records that the virtual machine is performing the migration operation in the virtual machine configuration file.
S2, the control device indicates the source node to generate a temporary snapshot file in the source storage pool where the basic image file of the virtual machine is located as the incremental file of the basic image file, and writes the newly generated data of the virtual machine in the migration process into the temporary snapshot file; and the control device records the name of the temporary snapshot file according to the relation between the temporary snapshot file and the basic image file, wherein the suffix of the temporary snapshot file in the name is used as the next stage of the suffix of the basic image file.
The virtual machine basic image file can be a single file made of a specific series of files according to a certain format, so that the virtual machine basic image file is convenient for a user to download and use and is stored in a storage pool. And when the virtual machine is migrated, migrating the basic image file from the source storage pool to the destination storage pool.
And S3, migrating the basic image file to a target storage pool according to the existing mode, merging the temporary snapshot file and the migrated basic image file into the target storage pool, and forming a storage volume containing the temporary snapshot file and the basic image file, thereby completing the online migration operation of the virtual machine.
And S4, after the online migration of the virtual machine is completed, the control device records the completion of the migration operation of the virtual machine in the virtual machine configuration file.
If the virtual machine is in the migration process due to node or storage failure, the operation of virtual machine migration is terminated, and meanwhile, the control device is triggered to perform HA failure migration. At this time, since it is already recorded in step S1 that the virtual machine is performing the migration operation, the control device may query that the control device modifies the storage path in the virtual machine configuration file in which the virtual machine runs from the path of the base image file to the path of the temporary snapshot file according to the recorded name of the temporary snapshot file.
In the invention, because the HA fault migration is triggered by a fault in the virtual machine migration process, the temporary snapshot file and the basic image file are still stored in the source storage pool, and after the virtual machine is operated on the new node by using the modified configuration file, the control device indicates the new node to merge the temporary snapshot file and the basic image file into the source storage pool, so as to form a storage volume containing the temporary snapshot file and the basic image file.
In the invention, after the virtual machine is operated on the new node by the modified configuration file, the control device sends the name of the fault virtual machine to an administrator through the alarm information, so that the administrator informs the operator of the node where the fault virtual machine is located to verify whether the service is abnormal in time.
The following description will be made by taking specific scenarios.
1) When the HA is enabled, the control device stores a configuration file of each virtual machine in the HA cluster, where the content of the configuration file includes information such as a memory and a running storage path of the virtual machine.
Preferably, the control device in the embodiment of the present invention further increases a flag in the saved virtual machine configuration file, and marks a state performed by the virtual machine, for example, the flag is set to 1, and marks that the virtual machine is performing a migration operation; and setting a flag to be 0, and marking that the virtual machine does not perform the migration operation or the migration operation is finished.
2) When the virtual machine is migrated online, the control device modifies a flag in the virtual machine configuration file, sets the flag to 1, and marks that the virtual machine is migrating.
3) The control device indicates a source node to generate a temporary snapshot file in a source storage pool where a virtual machine basic image file a is located as an incremental file of the basic image file, and data newly generated by the virtual machine in the migration process is written into the temporary snapshot file;
and the control device records the name of the temporary snapshot file according to the relation between the temporary snapshot file and the basic image file, wherein the suffix of the temporary snapshot file in the name is used as the next stage of the suffix of the basic image file. For example, the 1441591338246 timestamp is a suffix for the temporary snapshot file, and thus, the name of the temporary snapshot file is a.1441591338246. This is just one of the preferred ways, and any other path that can read and write from the temporary snapshot file is within the scope of the present invention.
4) And migrating the basic image file a to a target storage pool according to the existing mode, and merging the temporary snapshot file and the migrated basic image file into the target storage pool to form a storage volume containing the temporary snapshot file and the basic image file, thereby completing the online migration operation of the virtual machine.
5) After the online migration of the virtual machine is completed, a flag mark in a configuration file of the virtual machine stored in the control device is updated, the flag is set to be 0, and the completion of the migration operation of the virtual machine is marked.
Therefore, the whole operation process that the virtual machine does not have faults in the migration process is completed. The key point is that when the virtual machine is migrated online, the migration operation is recorded, the name of the temporary snapshot file is recorded, and when the virtual machine is migrated online, the migration completion operation is recorded.
6) When the virtual machine fails due to node or storage, the control device is triggered to perform HA fault migration. It should be noted that, the virtual machine may fail during the migration process, which results in the termination of the operation of the virtual machine migration and may trigger the control device to perform HA failover; it is also possible that a failure occurs during non-migration, triggering the control device to perform HA failover.
At this time, the control device inquires the flag in the virtual machine configuration file.
If the flag is not set to 1, the virtual machine is not in the migration process, the migration operation is carried out according to the existing HA fault migration operation, a new node is selected for the fault virtual machine, and the fault virtual machine is operated on the new node. The new node mainly needs to meet two conditions, namely, the new node and the original node of the fault virtual machine are both in the HA cluster, and the same storage pool is mounted; secondly, the new node HAs a lower load in the HA cluster.
If the flag is set to 1, the virtual machine is indicated to be in the migration process, and the control device further modifies the storage path of the virtual machine running in the virtual machine configuration file from the path of the basic image file to the path of the temporary snapshot file according to the name a.1441591338246 of the temporary snapshot file recorded in the configuration file. And then, selecting a new node for the virtual machine, and sending the modified virtual machine configuration file to the new node so as to operate the virtual machine on the new node by using the modified configuration file. Therefore, the storage path of the running of the virtual machine is modified in the configuration file issued to the new node, so that the virtual machine can read and write from the temporary snapshot file as soon as running, and data written into the temporary snapshot file in the migration process of the virtual machine is ensured not to be lost.
As can be seen from the above description, in the embodiment of the present invention, the control device records the migration state of the virtual machine, and when the virtual machine fails and triggers the control device to perform HA failover, the control device may determine, according to the recorded virtual machine state, whether to perform HA failover operation or perform HA failover operation according to fig. 2 of the present invention. Therefore, the data written into the temporary snapshot file in the virtual machine migration process can be ensured not to be lost.
7) Because the HA fault migration is triggered by a fault in the virtual machine migration process, the virtual machine migration operation is terminated, and the temporary snapshot file and the basic image file are still stored in the source storage pool, preferably, after the virtual machine is run on the new node in the modified configuration file, the control device instructs the new node to merge the temporary snapshot file and the basic image file into the source storage pool, so as to form a storage volume containing the temporary snapshot file and the basic image file. Therefore, merging after HA failover is realized, the temporary snapshot file and the basic image file are merged together, and specifically, the temporary snapshot file can be merged into the basic image file a.
8) Preferably, after the HA fault migration is completed, the control device sends the name of the fault virtual machine to the administrator through the alarm information, so that the administrator notifies an operator of a node where the fault virtual machine is located to verify whether the service is abnormal in time.
The control method of another embodiment of the present invention includes the steps of:
step 31, when the virtual machine fault triggers the high-reliability HA fault migration, if the control device inquires that the virtual machine in the virtual machine configuration file is performing the migration operation, selecting a new node for the virtual machine, and issuing the virtual machine configuration file to the new node;
and step 32, the control device indicates the new node to modify the storage path of the running virtual machine in the issued virtual machine configuration file into the path of the temporary snapshot file, so that the virtual machine is run on the new node by using the modified configuration file.
It should be noted that the difference between the above embodiments of the present invention is only that, in one embodiment, when the HA fails and migrates, the storage path of the virtual machine operation HAs been modified in the configuration file sent by the control device to the new node. In another embodiment, during the HA failover, the configuration file sent by the control device to the new node is still the configuration file that does not modify the storage path of the running virtual machine, and then the control device instructs the new node to modify the storage path of the running virtual machine in the configuration file to be the path of the temporary snapshot file. The operation processes performed in the online migration process of the virtual machine and after the new node runs the failed virtual machine are the same, and are not described herein again.
Preferably, to avoid the failure of the control device, the present invention simultaneously adopts dual-computer hot standby of the control device, and fig. 3 is a schematic diagram of a network configuration in which the control device adopts dual-computer hot standby according to an embodiment of the present invention. In fig. 3, the control device 1 and the control device 2 are backed up with each other, the virtual machine configuration file is recorded in the/etc/cvm directory, and the partition mounted in the directory is synchronized with the standby control device in real time through drdb, so that when the control device fails, the operation on the backup control device can read the same configuration information, and the service continuity is better ensured.
Based on the same inventive concept, the control device of the present invention, referring to fig. 4, includes:
a processing unit 401, configured to select a new node for a virtual machine if it is queried that the virtual machine in a virtual machine configuration file is performing migration operation when a virtual machine failure triggers high-reliability HA failure migration, and send the virtual machine configuration file to the new node, where a storage path in which the virtual machine in the virtual machine configuration file operates is a path of a temporary snapshot file;
and a running unit 402, which runs the virtual machine on the new node.
The processing unit 401 specifically changes a storage path of the virtual machine operation in the virtual machine configuration file into a path of the temporary snapshot file and then issues the path to the new node; or,
and after the virtual machine configuration file is issued to the new node, indicating the new node to modify the running storage path of the virtual machine in the issued virtual machine configuration file into the path of the temporary snapshot file.
The apparatus further comprises a recording unit 403: when the virtual machine is migrated online, recording the virtual machine in the migration operation in the virtual machine configuration file;
and after the online migration of the virtual machine is completed, recording the completion of the migration operation of the virtual machine in the virtual machine configuration file.
The recording unit 403 is further configured to: when the virtual machine is migrated online, writing newly generated data of the virtual machine in the migration process into a temporary snapshot file, and recording the name of the temporary snapshot file, wherein the suffix of the temporary snapshot file in the name is used as the next stage of the suffix of the basic image file.
The apparatus further includes an instructing merging unit 404, which instructs the new node to merge the temporary snapshot file and the base image file into the source storage pool where the base image file is located before the virtual machine migration after the virtual machine is run on the new node.
The embodiment of the invention has the following advantages:
the method comprises the steps that a control device records the state of a virtual machine in a configuration file of the virtual machine, the virtual machine records the migration operation of the virtual machine and records the name of a temporary snapshot file in the migration process, when the virtual machine is triggered to perform HA fault migration by a server or a storage fault and the like, the state of the virtual machine is inquired, whether the configuration file of the virtual machine is modified according to the recorded name of the temporary snapshot file is determined, and the running storage path of the virtual machine is modified into the path of the temporary snapshot file. Therefore, data written into the temporary snapshot file in the virtual machine migration process is not lost.
And secondly, in order to avoid the fault of the host of the control device, the dual-computer hot standby of the control device is adopted, so that the continuity of the service is better ensured.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method of controlling, the method comprising:
when a virtual machine fault triggers high-reliability HA fault migration, if the virtual machine in a virtual machine configuration file is inquired to be in migration operation, selecting a new node for the virtual machine, and sending the virtual machine configuration file to the new node, wherein a storage path of running of the virtual machine in the virtual machine configuration file in the new node is a path of a temporary snapshot file; the temporary snapshot file and the basic image file of the virtual machine are stored in a source storage pool of a storage server; and running the virtual machine on the new node.
2. The method of claim 1, wherein a storage path of the virtual machine operation in the virtual machine configuration file is changed into a path of the temporary snapshot file and then is issued to the new node; or,
and after the virtual machine configuration file is issued to the new node, indicating the new node to modify the running storage path of the virtual machine in the issued virtual machine configuration file into the path of the temporary snapshot file.
3. The method of claim 1, further comprising: when the virtual machine is migrated online, recording the virtual machine in the migration operation in a virtual machine configuration file;
and after the online migration of the virtual machine is completed, recording the completion of the migration operation of the virtual machine in a virtual machine configuration file.
4. The method of claim 1, further comprising: when the virtual machine is migrated online, writing newly generated data of the virtual machine in the migration process into a temporary snapshot file, and recording the name of the temporary snapshot file, wherein the suffix of the temporary snapshot file in the name is used as the next stage of the suffix of the basic image file.
5. The method of claim 1, wherein after the virtual machine is run on the new node, instructing the new node to merge the temporary snapshot file and the base image file to the source storage pool in which the base image file was located prior to the migration of the virtual machine.
6. A control device, the device comprising:
the processing unit is used for selecting a new node for the virtual machine and sending the virtual machine configuration file to the new node if the virtual machine in the virtual machine configuration file is inquired to be in migration operation when the virtual machine fault triggers high-reliability HA fault migration, wherein the storage path of the running virtual machine in the virtual machine configuration file in the new node is the path of the temporary snapshot file; the temporary snapshot file and the basic image file of the virtual machine are stored in a source storage pool of a storage server;
and the running unit runs the virtual machine on the new node.
7. The apparatus according to claim 6, wherein the processing unit changes a storage path of a virtual machine running in the virtual machine configuration file to a path of the temporary snapshot file and then sends the path to the new node; or,
and after the virtual machine configuration file is issued to the new node, indicating the new node to modify the running storage path of the virtual machine in the issued virtual machine configuration file into the path of the temporary snapshot file.
8. The apparatus of claim 6, wherein the apparatus further comprises a recording unit: when the virtual machine is migrated online, recording the virtual machine in the migration operation in a virtual machine configuration file;
and after the online migration of the virtual machine is completed, recording the completion of the migration operation of the virtual machine in a virtual machine configuration file.
9. The apparatus of claim 8, wherein the recording unit is further to: when the virtual machine is migrated online, writing newly generated data of the virtual machine in the migration process into a temporary snapshot file, and recording the name of the temporary snapshot file, wherein the suffix of the temporary snapshot file in the name is used as the next stage of the suffix of the basic image file.
10. The apparatus of claim 6, wherein the apparatus further comprises an instructing merging unit that instructs the new node to merge the temporary snapshot file and the base image file into the source storage pool in which the base image file was located before the virtual machine migration after the virtual machine is run on the new node.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610056047.9A CN105740049B (en) | 2016-01-27 | 2016-01-27 | A kind of control method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610056047.9A CN105740049B (en) | 2016-01-27 | 2016-01-27 | A kind of control method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105740049A CN105740049A (en) | 2016-07-06 |
| CN105740049B true CN105740049B (en) | 2019-05-28 |
Family
ID=56246614
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610056047.9A Active CN105740049B (en) | 2016-01-27 | 2016-01-27 | A kind of control method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105740049B (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109547338B (en) * | 2018-12-06 | 2021-03-05 | 中国航空工业集团公司洛阳电光设备研究所 | Time-triggered network reconstruction method based on virtual channel |
| CN111381931B (en) * | 2018-12-29 | 2025-02-14 | 中兴通讯股份有限公司 | Disaster recovery method, device and system |
| CN110377456B (en) * | 2019-07-05 | 2021-11-26 | 苏州浪潮智能科技有限公司 | Management method and device for virtualization platform disaster tolerance |
| CN111930563B (en) * | 2020-07-15 | 2022-01-11 | 中国人民解放军陆军工程大学 | Fault tolerance method in cloud simulation system |
| CN113608836A (en) * | 2021-08-06 | 2021-11-05 | 上海英方软件股份有限公司 | Cluster-based virtual machine high availability method and system |
| CN114924839A (en) * | 2022-05-30 | 2022-08-19 | 苏州思萃工业互联网技术研究所有限公司 | A method and device for realizing the specified migration of kubernetes cluster pods |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103970585A (en) * | 2013-01-31 | 2014-08-06 | 杭州华三通信技术有限公司 | Method and device for creating virtual machine |
| CN105022656A (en) * | 2014-04-21 | 2015-11-04 | 中国电信股份有限公司 | Management method and device of virtual machine snapshot |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| ATE497210T1 (en) * | 2005-06-24 | 2011-02-15 | Syncsort Inc | SYSTEM AND METHOD FOR VIRTUALIZING BACKUP IMAGES |
-
2016
- 2016-01-27 CN CN201610056047.9A patent/CN105740049B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103970585A (en) * | 2013-01-31 | 2014-08-06 | 杭州华三通信技术有限公司 | Method and device for creating virtual machine |
| CN105022656A (en) * | 2014-04-21 | 2015-11-04 | 中国电信股份有限公司 | Management method and device of virtual machine snapshot |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105740049A (en) | 2016-07-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11550675B2 (en) | Remote data replication method and system | |
| CN105740049B (en) | A kind of control method and device | |
| US12321246B2 (en) | Methods and systems for a non-disruptive automatic unplanned failover from a primary copy of data at a primary storage system to a mirror copy of the data at a cross-site secondary storage system | |
| US9697092B2 (en) | File-based cluster-to-cluster replication recovery | |
| EP3502877B1 (en) | Data loading method and apparatus for virtual machines | |
| CN111078667B (en) | Data migration method and related device | |
| CN106528327B (en) | A data processing method and backup server | |
| US10169167B2 (en) | Reduced recovery time in disaster recovery/replication setup with multitier backend storage | |
| CN109408115B (en) | Method and computing system for migrating objects in container-based environment | |
| CN106302607B (en) | Block storage system and method applied to cloud computing | |
| CN118276783A (en) | Data partition switching between storage clusters | |
| CN112083889B (en) | Data migration method, device, equipment and readable storage medium | |
| US12050558B2 (en) | Facilitating immediate performance of volume resynchronization with the use of passive cache entries | |
| US10534796B1 (en) | Maintaining an active-active cloud across different types of cloud storage services | |
| CN112698926B (en) | Data processing method, device, equipment, storage medium and system | |
| CN113986450A (en) | Virtual machine backup method and device | |
| KR20250035447A (en) | Server redundancy system and its backup and recovery method | |
| WO2021185059A1 (en) | Data migration method and apparatus for database | |
| CN111176886B (en) | A database mode switching method, device and electronic equipment | |
| US20230118525A1 (en) | Recovery of a software-defined data center | |
| CN103838639A (en) | Method, device and system for recovering metadata of virtual disk | |
| CN108694067A (en) | Method and apparatus for memory space management for multiple virtual machines | |
| CN111400098A (en) | Copy management method and device, electronic equipment and storage medium | |
| US20250130985A1 (en) | Automated failover for a paired set of consistency groups while storage expansion occurs within a cross-site storage system | |
| US10929250B2 (en) | Method and system for reliably restoring virtual machines |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant |