CN106775846B - Method and device for online migration of physical server - Google Patents

Method and device for online migration of physical server Download PDF

Info

Publication number
CN106775846B
CN106775846B CN201611085506.2A CN201611085506A CN106775846B CN 106775846 B CN106775846 B CN 106775846B CN 201611085506 A CN201611085506 A CN 201611085506A CN 106775846 B CN106775846 B CN 106775846B
Authority
CN
China
Prior art keywords
disk
data
physical server
partition
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611085506.2A
Other languages
Chinese (zh)
Other versions
CN106775846A (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.)
Samsung China Semiconductor Co Ltd
Samsung Electronics Co Ltd
Original Assignee
Samsung China Semiconductor Co Ltd
Samsung Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Samsung China Semiconductor Co Ltd, Samsung Electronics Co Ltd filed Critical Samsung China Semiconductor Co Ltd
Priority to CN201611085506.2A priority Critical patent/CN106775846B/en
Publication of CN106775846A publication Critical patent/CN106775846A/en
Application granted granted Critical
Publication of CN106775846B publication Critical patent/CN106775846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order

Abstract

A method and apparatus for online migration of a physical server are provided. The method comprises the following steps: (A) acquiring partition information of a disk, wherein the partition information is information about partitions of the disk, and sending the partition information to another physical server; (B) sending data stored on the disk and an address of the data on the disk to the other physical server; (C) controlling an operating system to enter a dormant state so as to store memory data in the disk; (D) and (c) sending the memory data stored on the disk and the address of the memory data on the disk to the other physical server, wherein the physical server is always in a normal operation state when the steps (A) and (B) are executed. According to the method and the device, the service interruption time in the migration process can be effectively reduced.

Description

Method and device for online migration of physical server
Technical Field
The present invention relates generally to the field of operating system migration, and more particularly, to a method and apparatus for online migration of operating systems for physical servers.
Background
And the operating system migration comprises offline migration and online migration.
Offline migration (migration): the term "static migration" refers to migrating disk data when the operating system is powered off.
Online migration (online migration): the migration is also called live migration, hot migration, and live migration, and refers to migrating disk data and memory data in a state where an operating system is running. The technology is widely applied to a Virtual machine scene, namely, Virtual-to-Virtual Live Migration (V2V Live Migration for short) from a Virtual machine to a Virtual machine. However, the online Migration (P2P Live Migration) of the operating system on the Physical server is not yet mature.
Virtual machine online migration: currently, mainstream online migration tools for virtual machines, such as VMotion of VMware and xenchoice of XEN, require centralized shared external memory devices such as san (storage area network) and NAS (network-attached storage) to be used between physical machines, so that only migration of an execution state of an operating system memory needs to be considered during migration, and better migration performance is obtained. The online migration of the memory of the virtual machine is mainly carried out by a Pre-copy memory (Pre-copy memory migration) technology in a virtualization layer.
Online migration of physical machines: at present, there is no complete scheme for online migration of an operating system of an operable physical machine, and the migration of the operating system of the physical machine is mainly performed in an offline manner.
Disclosure of Invention
An exemplary embodiment of the present invention is to provide a method and an apparatus for online migration of a physical server, which can effectively reduce service interruption time during migration.
According to an exemplary embodiment of the invention, a method for online migration of a physical server is provided, wherein the method comprises: (A) acquiring partition information of a disk, wherein the partition information is information about partitions of the disk, and sending the partition information to another physical server; (B) sending data stored on the disk and an address of the data on the disk to the other physical server; (C) controlling an operating system to enter a dormant state so as to store memory data in the disk; (D) and (c) sending the memory data stored on the disk and the address of the memory data on the disk to the other physical server, wherein the physical server is always in a normal operation state when the steps (A) and (B) are executed.
Optionally, step (B) comprises: (b1) acquiring file system metadata of each partition of the disk; (b2) determining data blocks within said each partition that have been used according to file system metadata of said each partition; (b3) sending data stored on the disk and an address of the data on the disk to the other physical server, wherein the data comprises data in the used data block in each partition and file system metadata of each partition.
Optionally, step (B) further comprises: (b4) monitoring folders and files stored on the disk for changes while performing step (b 3); (b5) and sending the data of the changed folder and/or file and the address of the data of the changed folder and/or file on the disk to the other physical server whenever the folder and/or file is monitored to be changed.
Optionally, the step of monitoring whether the folders and files stored on the disk have changes includes: monitoring whether folders and files stored on the disk are at least one of: creation, modification, and deletion.
According to another exemplary embodiment of the present invention, a method for online migration of a physical server is provided, wherein the method comprises: (A) receiving partition information sent by another physical server, and partitioning a disk according to the partition information; (B) receiving data and an address of the data, which are sent by the other physical server and stored on a disk of the other physical server, and writing the data into the same address of the disk according to the address of the data; (C) receiving memory data of the other physical server and the address of the memory data sent by the other physical server, and writing the memory data into the same address of the disk according to the address of the memory data; (D) and restarting the disk and restoring the memory data stored in the disk to the memory through a wake-up mechanism of an operating system.
Optionally, the data stored on the disk of the other physical server includes: data within the used data blocks within each partition of the disk of the other physical server and file system metadata for each partition.
Optionally, the method further comprises: (E) while executing the step (B), receiving the data of the changed folder and/or file on the disk of the other physical server and the address of the data of the changed folder and/or file sent by the other physical server, and writing the data of the changed folder and/or file into the same address of the disk according to the address of the data of the changed folder and/or file.
Optionally, the modified folder and/or file is a folder and/or file that is subject to at least one of the following operations: creation, modification, and deletion.
According to another exemplary embodiment of the present invention, an apparatus for online migration of a physical server is provided, wherein the apparatus comprises: a partition synchronization module configured to acquire partition information of a disk, and transmit the partition information to another physical server, wherein the partition information is information on a partition of the disk; a data synchronization module configured to send data stored on the disk and an address of the data on the disk to the other physical server; the dormancy control module is configured to control an operating system to enter a dormancy state so as to store the memory data in the disk; and the memory data synchronization module is configured to send the memory data stored on the disk and the address of the memory data on the disk to the other physical server, wherein the physical server is always in a normal running state while the partition synchronization module and the data synchronization module execute operations.
Optionally, the data synchronization module includes: a metadata acquisition unit configured to acquire file system metadata of each partition of the disk; a data block determination unit configured to determine a data block that has been used within the each partition according to the file system metadata of the each partition; a valid data synchronization unit configured to send data stored on the disk and an address of the data on the disk to the other physical server, wherein the data includes data within the used data block within each partition and file system metadata of each partition.
Optionally, the data synchronization module further includes: the monitoring unit is configured to monitor whether folders and files stored on the disk are changed or not while the effective data synchronization unit executes the operation; and the increment synchronization unit is configured to send the data of the changed folder and/or file and the address of the data of the changed folder and/or file on the disk to the other physical server whenever the monitoring unit monitors that the folder and/or file is changed.
Optionally, the monitoring unit monitors whether the folders and files stored on the disk are at least one of: creation, modification, and deletion.
According to another exemplary embodiment of the present invention, an apparatus for online migration of a physical server is provided, wherein the apparatus comprises: the partition synchronization module is configured to receive partition information sent by another physical server and partition the disk according to the partition information; the data synchronization module is configured to receive data stored on a disk of the other physical server and an address of the data, which are sent by the other physical server, and write the data into the same address of the disk according to the address of the data; the memory data synchronization module is configured to receive the memory data of the other physical server and the address of the memory data sent by the other physical server, and write the memory data into the same address of the disk according to the address of the memory data; and the memory recovery module is configured to restart the disk and recover the memory data stored in the disk to the memory through a wake-up mechanism of an operating system.
Optionally, the data stored on the disk of the other physical server includes: data within the used data blocks within each partition of the disk of the other physical server and file system metadata for each partition.
Optionally, the apparatus further comprises: the incremental synchronization module is configured to receive the data of the changed folder and/or file on the disk of the other physical server and the address of the data of the changed folder and/or file sent by the other physical server while the data synchronization module executes the operation, and write the data of the changed folder and/or file into the same address of the disk according to the address of the data of the changed folder and/or file.
Optionally, the modified folder and/or file is a folder and/or file that is subject to at least one of the following operations: creation, modification, and deletion.
In the method and the device for online migration of the physical server according to the exemplary embodiment of the present invention, the time for interrupting service of the physical server is only started from the dormancy of the source physical server to the end of awakening the destination physical server, thereby effectively shortening the time for interrupting service in the migration process; moreover, only the effective data on the disk of the source physical server is copied and migrated, thereby effectively reducing the migration time.
Additional aspects and/or advantages of the present general inventive concept will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the general inventive concept.
Drawings
The above and other objects and features of exemplary embodiments of the present invention will become more apparent from the following description taken in conjunction with the accompanying drawings which illustrate exemplary embodiments, wherein:
FIG. 1 illustrates a flow diagram of a method for online migration of physical servers in accordance with an exemplary embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps for sending data stored on the disk and an address of the data on the disk to a destination physical server according to an illustrative embodiment of the present invention;
FIG. 3 illustrates a flow chart of a method for online migration of physical servers in accordance with an exemplary embodiment of the present invention;
FIG. 4 illustrates a block diagram of an apparatus for online migration of physical servers, according to an illustrative embodiment of the present invention;
FIG. 5 illustrates a block diagram of a data synchronization module according to an exemplary embodiment of the present invention;
FIG. 6 illustrates a block diagram of an apparatus for online migration of physical servers, according to an exemplary embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout. The embodiments are described below in order to explain the present invention by referring to the figures.
FIG. 1 illustrates a flowchart of a method for online migration of physical servers, according to an exemplary embodiment of the invention. Here, the physical server (hereinafter, referred to as a source physical server) may be a physical machine, a bare metal, or the like.
The method may be performed by a source physical server or may be implemented by a computer program. For example, the method may be performed by a function program in the source physical server.
As shown in fig. 1, at step S10, partition information of the disk, which is information on the partition of the disk, is acquired and transmitted to another physical server (hereinafter, referred to as a destination physical server). Here, the partition information may include information on into which partitions the disk is divided, a start address and a length of each partition, and the like.
In step S20, the data stored on the disk and the address of the data on the disk are sent to the destination physical server. Specifically, the entire amount of data on the disk of the source physical server is synchronized to the disk of the destination physical server, and the data is migrated according to the address, so that the address (i.e., the storage location) of the same data on the disk of the source physical server is the same as the address (i.e., the storage location) on the disk of the destination physical server.
It should be noted that the source physical server is always in a normal operation state when executing steps S10 and S20, so as to ensure that the source physical server can normally provide service without interrupting service in the full data synchronization phase which takes the longest time in the whole migration process.
In step S30, the operating system is controlled to enter a sleep state to save the memory data to the disk. Specifically, after the operating system enters the sleep state, all processes are frozen and the memory data is saved to a designated swap file or swap partition.
In step S40, the memory data stored on the disk and the address of the memory data on the disk are sent to the destination physical server. Specifically, the memory data stored on the disk of the source physical server is migrated to the disk of the destination physical server according to the address, so as to ensure that the address of the memory data on the disk of the source physical server is the same as the address of the memory data on the disk of the destination physical server, that is, the memory data and the address are both stored in the swap file or the swap partition.
The memory data is stored to a disk by utilizing a dormancy mechanism of an operating system, and then the memory data is migrated to a target physical server, so that the memory data is migrated. This process is relatively less time consuming, reducing the service interruption time of the source physical server. Moreover, since the address migration is adopted in step S20, matching between the memory data migrated to the destination physical server and the data stored on the disk is ensured.
With respect to step S20, as a preferred manner, a flow of transmitting data stored on the disk and an address of the data on the disk to a destination physical server in the method for online migration of a physical server according to an exemplary embodiment of the present invention will be described below with reference to fig. 2.
As shown in fig. 2, in step S201, file system metadata of each partition of the disk is acquired.
In step S202, the data blocks in each partition that have been used are determined according to the file system metadata of each partition.
As an example, file metadata for each partition may be obtained from the file system metadata for each partition, and then the data blocks used by the file (i.e., the data blocks that have been used) may be determined from the file metadata.
In step S203, data stored on the disk and an address of the data on the disk are sent to a destination physical server, where the data includes data in the used data block in each partition and file system metadata of each partition.
Considering that the space of the disk is generally large (for example, several hundred GB), and the read-write speed of the disk is relatively slow (for example, the read-write speed of a normal disk is about 130M/S, and the read-write speed of an SSD is about 500M/S), according to the above-mentioned method of the present invention, only valid data stored on the disk can be migrated, thereby effectively reducing the migration time.
Preferably, the process of sending the data stored on the disk and the address of the data on the disk to the destination physical server according to the exemplary embodiment of the present invention may further include: while step S203 is being executed, whether or not folders and files stored on the disk have been changed is monitored. And sending the data of the changed folder and/or file and the address of the data of the changed folder and/or file on the disk to a destination physical server whenever the folder and/or file is monitored to be changed. That is, the data of the folder and/or file changed on the disk at the time of executing step S203 is synchronized again.
As an example, folders and files stored on the disk may be monitored for at least one of the following: creation, modification, and deletion. As an example, inotify mechanism of Linux operating system may be utilized to monitor files and folders on disk in the entire file system.
Because the time of the data full synchronization process is long, the operating system is in a running state during the process, the file system can generate dirty data, and the consistency of the data on the disk of the source physical server and the data on the target physical server can be ensured by performing incremental synchronization in the data full synchronization process.
Fig. 3 illustrates a flowchart of a method for online migration of a physical server (i.e., a destination physical server) according to an exemplary embodiment of the present invention. Here, the destination physical server may be a physical machine, bare metal, or the like physical server.
The method may be performed by a destination physical server or may be implemented by a computer program. For example, the method may be performed by a functional program in the destination physical server.
As shown in fig. 3, in step S50, the partition information sent by the source physical server is received, and the disk is partitioned according to the partition information. Here, the partition information may include information on into which partitions the disk is divided, a start address and a length of each partition, and the like.
Before executing step S50, the destination physical server may be started from a boot kernel, which refers to a memory operating system and may be Live CD or loaded through PXE or iPXE; in addition, it can also be booted from the normal operating system, but the disk is not used.
In step S60, the data stored on the disk of the source physical server and the address of the data sent by the source physical server are received, and the data is written into the same address of the disk according to the address of the data. Specifically, the entire amount of data on the disk of the source physical server is synchronized to the disk of the destination physical server, and the data is migrated according to the address, so that the address (i.e., the storage location) of the same data on the disk of the source physical server is the same as the address (i.e., the storage location) on the disk of the destination physical server.
Preferably, the data stored on the disk of the source physical server may include: the data within the used data blocks within each partition of the source physical server's disk and the file system metadata for each partition. That is, only the valid data stored on the disk of the source physical server is migrated, thereby effectively reducing the migration time.
In step S70, the memory data of the source physical server and the address of the memory data sent by the source physical server are received, and the memory data is written into the same address of the disk according to the address of the memory data. Specifically, the memory data stored on the disk of the source physical server is migrated to the disk of the destination physical server according to the address, so as to ensure that the address of the memory data on the disk of the source physical server is the same as the address of the memory data on the disk of the destination physical server, that is, the memory data and the address are both stored in the swap file or the swap partition.
In step S80, the disk is restarted and the memory data stored in the disk is restored to the memory through the wake mechanism of the operating system, so as to implement the migration of the memory data (migration of the process).
As a preferred example, the method for online migration of a destination physical server according to an exemplary embodiment of the present invention may further include: while executing step S60, receiving the data of the modified folder and/or file on the disk of the source physical server and the address of the data of the modified folder and/or file sent by the source physical server, and writing the data of the modified folder and/or file at the same address of the disk according to the address of the data of the modified folder and/or file.
As an example, the changed folders and/or files may be folders and/or files that are at least one of: creation, modification, and deletion.
Because the time of the data full synchronization process is long, the operating system of the source physical server is in a running state during the period, the file system can generate dirty data, and the consistency of the data on the disk of the source physical server and the data on the target physical server can be ensured by performing incremental synchronization in the data full synchronization process.
Fig. 4 illustrates a block diagram of an apparatus for online migration of a physical server (i.e., a source physical server) according to an exemplary embodiment of the present invention.
As shown in fig. 4, an apparatus for online migration of a source physical server according to an exemplary embodiment of the present invention includes: the system comprises a partition synchronization module 10, a data synchronization module 20, a dormancy control module 30 and a memory data synchronization module 40. These modules may be implemented by a dedicated device, for example, by a general-purpose hardware processor such as a digital signal processor, a field programmable gate array, an application processor, a CPU, etc., by a dedicated hardware processor such as a dedicated chip, etc., or by a computer program entirely in software, for example, as a functional program in a source physical server.
The partition synchronization module 10 is configured to acquire partition information of the disk, which is information on partitions of the disk, and transmit the partition information to the destination physical server. Here, the partition information may include information on into which partitions the disk is divided, a start address and a length of each partition, and the like.
The data synchronization module 20 is configured to send the data stored on the disk and the address of the data on the disk to a destination physical server. Specifically, the data synchronization module 20 synchronizes the entire amount of data on the disk of the source physical server to the disk of the destination physical server, and performs migration according to the address, so as to ensure that the address (i.e., storage location) of the same data on the disk of the source physical server is the same as the address (i.e., storage location) on the disk of the destination physical server.
It should be noted that while the partition synchronization module 10 and the data synchronization module 20 perform operations, the source physical server is always in a normal operation state, so as to ensure that the source physical server can normally provide services without interrupting the services in the full data synchronization stage which consumes the longest time in the whole migration process.
The hibernation control module 30 is configured to control the operating system to enter a hibernation state, so that the memory data is saved to the disk. Specifically, after the operating system enters the sleep state, all processes are frozen and the memory data is saved to a designated swap file or swap partition.
The memory data synchronization module 40 is configured to send the memory data stored on the disk and the address of the memory data on the disk to a destination physical server. Specifically, the memory data synchronization module 40 migrates the memory data stored on the disk of the source physical server to the disk of the destination physical server according to the address, and ensures that the address of the memory data on the disk of the source physical server is the same as the address of the memory data on the disk of the destination physical server, that is, both the memory data and the memory data are stored in the swap file or the swap partition.
The memory data is stored to a disk by utilizing a dormancy mechanism of an operating system, and then the memory data is migrated to a target physical server, so that the memory data is migrated. This process is relatively less time consuming, reducing the service interruption time of the source physical server. Moreover, since the data synchronization module 20 adopts address migration, the matching between the memory data migrated to the destination physical server and the data stored on the disk is ensured.
As a preferred manner, an exemplary structure of the data synchronization module will be described below with reference to fig. 5. As shown in fig. 5, the data synchronization module 20 according to an exemplary embodiment of the present invention may include: a metadata acquisition unit 201, a data block determination unit 202, and a valid data synchronization unit 203.
The metadata acquisition unit 201 is configured to acquire file system metadata of each partition of the disk.
The data block determination unit 202 is configured to determine the data blocks within said each partition that have been used according to the file system metadata of said each partition.
As an example, the data block determination unit 202 may acquire, for each partition, file metadata of each partition from the file system metadata of each partition, and then determine a data block used by the file (i.e., a data block that has been used) according to the file metadata.
The valid data synchronization unit 203 is configured to send data stored on the disk and an address of the data on the disk to a destination physical server, wherein the data includes data in the used data block in each partition and file system metadata of each partition.
Considering that the space of the disk is generally large (for example, several hundred GB), and the read-write speed of the disk is relatively slow (for example, the read-write speed of a normal disk is about 130M/S, and the read-write speed of an SSD is about 500M/S), the valid data synchronization unit 203 can only migrate the valid data stored on the disk, thereby effectively reducing the migration time.
Preferably, the data synchronization module according to an exemplary embodiment of the present invention may further include: a monitoring unit (not shown) and an incremental synchronization unit (not shown).
The monitoring unit is configured to monitor whether folders and files stored on the disk are changed while the valid data synchronization unit performs an operation.
As an example, the monitoring unit may monitor whether folders and files stored on the disk are at least one of: creation, modification, and deletion. As an example, the monitoring unit may monitor files and folders on a disk in the entire file system using the inotify mechanism of the Linux operating system.
The increment synchronization unit is configured to send the data of the changed folder and/or file and the address of the data of the changed folder and/or file on the disk to a destination physical server whenever the monitoring unit monitors that the folder and/or file has changed. That is, the data of the folder and/or file that is changed on the disk when the valid data synchronization unit 203 performs the operation is synchronized again.
Because the time of the data full synchronization process is long, the operating system is in a running state during the process, the file system can generate dirty data, and the consistency of the data on the disk of the source physical server and the data on the target physical server can be ensured by performing incremental synchronization in the data full synchronization process.
Fig. 6 illustrates a block diagram of an apparatus for online migration of a physical server (i.e., a destination physical server) according to an exemplary embodiment of the present invention.
As shown in fig. 6, an apparatus for online migration of a destination physical server according to an exemplary embodiment of the present invention includes: partition synchronization module 50, data synchronization module 60, memory data synchronization module 70, and memory restore module 80. These modules may be implemented by a dedicated device, for example, by a general-purpose hardware processor such as a digital signal processor, a field programmable gate array, an application processor, a CPU, or the like, or by a dedicated hardware processor such as a dedicated chip, or by a computer program entirely in software, for example, as a functional program in a destination physical server.
The partition synchronization module 50 is configured to receive partition information sent by the source physical server, and partition the disk according to the partition information.
The data synchronization module 60 is configured to receive data stored on a disk of a source physical server and an address of the data, which are sent by the source physical server, and write the data at the same address of the disk according to the address of the data.
Preferably, the data stored on the disk of the source physical server may include: the data within the used data blocks within each partition of the source physical server's disk and the file system metadata for each partition.
The memory data synchronization module 70 is configured to receive the memory data of the source physical server and the address of the memory data sent by the source physical server, and write the memory data into the same address of the disk according to the address of the memory data.
The memory recovery module 80 is configured to restart from the disk and recover the memory data stored in the disk to the memory through a wake mechanism of the operating system, so as to implement the migration of the memory data (migration of the process).
As a preferred example, the apparatus for online migration of a destination physical server according to an exemplary embodiment of the present invention may further include: an incremental synchronization module (not shown). The incremental synchronization module is configured to receive data of a changed folder and/or file on a disk of a source physical server and an address of the data of the changed folder and/or file, which are sent by the source physical server, while the data synchronization module performs an operation, and write the data of the changed folder and/or file at the same address of the disk according to the address of the data of the changed folder and/or file.
As an example, the changed folders and/or files may be folders and/or files that are at least one of: creation, modification, and deletion.
According to the method and the device for the online migration of the physical server, the time for the physical server to interrupt service is only started from the dormancy of the source physical server to the end of the awakening of the target physical server, so that the time for the interrupt service in the migration process is effectively shortened; moreover, only the effective data on the disk of the source physical server is copied and migrated, thereby effectively reducing the migration time.
Although a few exemplary embodiments of the present invention have been shown and described, it would be appreciated by those skilled in the art that changes may be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the claims and their equivalents.

Claims (8)

1. A method for online migration of physical servers, wherein the method comprises:
(A) acquiring partition information of a disk, wherein the partition information is information about partitions of the disk, and sending the partition information to another physical server;
(B) sending data stored on the disk and an address of the data on the disk to the other physical server;
(C) controlling an operating system to enter a dormant state so as to store memory data in an exchange file or an exchange partition in the disk;
(D) sending the memory data stored on the disk and the address of the memory data on the disk to the other physical server,
wherein, the physical server is always in a normal operation state when the steps (A) and (B) are executed.
2. The method of claim 1, wherein step (B) comprises:
(b1) acquiring file system metadata of each partition of the disk;
(b2) determining data blocks within said each partition that have been used according to file system metadata of said each partition;
(b3) sending data stored on the disk and an address of the data on the disk to the other physical server, wherein the data comprises data in the used data block in each partition and file system metadata of each partition.
3. The method of claim 2, wherein step (B) further comprises:
(b4) monitoring folders and files stored on the disk for changes while performing step (b 3);
(b5) and sending the data of the changed folder and/or file and the address of the data of the changed folder and/or file on the disk to the other physical server whenever the folder and/or file is monitored to be changed.
4. The method of claim 3, wherein monitoring folders and files stored on the disk for changes comprises:
monitoring whether folders and files stored on the disk are at least one of: creation, modification, and deletion.
5. An apparatus for online migration of physical servers, wherein the apparatus comprises:
a partition synchronization module configured to acquire partition information of a disk, and transmit the partition information to another physical server, wherein the partition information is information on a partition of the disk;
a data synchronization module configured to send data stored on the disk and an address of the data on the disk to the other physical server;
the sleep control module is configured to control the operating system to enter a sleep state so as to store the memory data into the exchange file or the exchange partition in the disk;
a memory data synchronization module configured to send the memory data stored on the disk and the address of the memory data on the disk to the other physical server,
and the physical server is always in a normal running state while the partition synchronization module and the data synchronization module execute operations.
6. The apparatus of claim 5, wherein the data synchronization module comprises:
a metadata acquisition unit configured to acquire file system metadata of each partition of the disk;
a data block determination unit configured to determine a data block that has been used within the each partition according to the file system metadata of the each partition;
a valid data synchronization unit configured to send data stored on the disk and an address of the data on the disk to the other physical server, wherein the data includes data within the used data block within each partition and file system metadata of each partition.
7. The apparatus of claim 6, wherein the data synchronization module further comprises:
the monitoring unit is configured to monitor whether folders and files stored on the disk are changed or not while the effective data synchronization unit executes the operation;
and the increment synchronization unit is configured to send the data of the changed folder and/or file and the address of the data of the changed folder and/or file on the disk to the other physical server whenever the monitoring unit monitors that the folder and/or file is changed.
8. The apparatus of claim 7, wherein the monitoring unit monitors whether folders and files stored on the disk are at least one of: creation, modification, and deletion.
CN201611085506.2A 2016-11-30 2016-11-30 Method and device for online migration of physical server Active CN106775846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611085506.2A CN106775846B (en) 2016-11-30 2016-11-30 Method and device for online migration of physical server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611085506.2A CN106775846B (en) 2016-11-30 2016-11-30 Method and device for online migration of physical server

Publications (2)

Publication Number Publication Date
CN106775846A CN106775846A (en) 2017-05-31
CN106775846B true CN106775846B (en) 2021-02-23

Family

ID=58913910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611085506.2A Active CN106775846B (en) 2016-11-30 2016-11-30 Method and device for online migration of physical server

Country Status (1)

Country Link
CN (1) CN106775846B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109308164B (en) * 2017-07-27 2021-11-09 杭州海康存储科技有限公司 System migration method and device
CN112817702A (en) * 2021-02-25 2021-05-18 紫光云技术有限公司 Virtual machine automation rapid cross-architecture migration method
CN117149095B (en) * 2023-10-31 2024-02-06 苏州元脑智能科技有限公司 NAS-based cluster management method, NAS-based cluster management device, computer equipment and media

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464812A (en) * 2009-01-06 2009-06-24 北京航空航天大学 Virtual machine migration method
US8239646B2 (en) * 2007-07-31 2012-08-07 Vmware, Inc. Online virtual machine disk migration
CN103019804A (en) * 2012-12-28 2013-04-03 中国人民解放军国防科学技术大学 VPS (virtual private server) quick migration method for OpenVZ virtualization
CN103902233A (en) * 2012-12-27 2014-07-02 中国电信股份有限公司 Virtual machine system on-line storage migration method and device and server
CN105138394A (en) * 2015-09-21 2015-12-09 上海爱数软件有限公司 Method for thermally migrating K virtual machine (KVM) and system
CN105718377A (en) * 2014-12-05 2016-06-29 华为技术有限公司 Method and apparatus for copying magnetic disk data in virtual application

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8239646B2 (en) * 2007-07-31 2012-08-07 Vmware, Inc. Online virtual machine disk migration
CN101464812A (en) * 2009-01-06 2009-06-24 北京航空航天大学 Virtual machine migration method
CN103902233A (en) * 2012-12-27 2014-07-02 中国电信股份有限公司 Virtual machine system on-line storage migration method and device and server
CN103019804A (en) * 2012-12-28 2013-04-03 中国人民解放军国防科学技术大学 VPS (virtual private server) quick migration method for OpenVZ virtualization
CN105718377A (en) * 2014-12-05 2016-06-29 华为技术有限公司 Method and apparatus for copying magnetic disk data in virtual application
CN105138394A (en) * 2015-09-21 2015-12-09 上海爱数软件有限公司 Method for thermally migrating K virtual machine (KVM) and system

Also Published As

Publication number Publication date
CN106775846A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
US9823877B2 (en) Virtual machine backup from storage snapshot
US9430223B2 (en) Live operating system update mechanisms
US10261800B2 (en) Intelligent boot device selection and recovery
US9201736B1 (en) Methods and apparatus for recovery of complex assets in distributed information processing systems
US9183099B2 (en) Replication of a write-back cache using a placeholder virtual machine for resource management
US9552405B1 (en) Methods and apparatus for recovery of complex assets in distributed information processing systems
US9727429B1 (en) Method and system for immediate recovery of replicated virtual machines
US8694828B2 (en) Using virtual machine cloning to create a backup virtual machine in a fault tolerant system
CN102594849B (en) Data backup and recovery method and device, virtual machine snapshot deleting and rollback method and device
US10474484B2 (en) Offline management of virtualization software installed on a host computer
JP6123626B2 (en) Process resumption method, process resumption program, and information processing system
US8589647B2 (en) Apparatus and method for synchronizing a snapshot image
US10691477B2 (en) Virtual machine live migration using intelligent order of pages to transfer
US20180357092A1 (en) Disabling in-memory caching of a virtual machine during migration
CN110737512A (en) Cross-platform virtual machine online migration method and related components
CN106775846B (en) Method and device for online migration of physical server
US9952941B2 (en) Elastic virtual multipath resource access using sequestered partitions
US20220129292A1 (en) Fast virtual machine resume at host upgrade
CN114756355A (en) Method and device for automatically and quickly recovering process of computer operating system
US11429304B2 (en) Maintaining a memory replica of a primary computer system
JP6146092B2 (en) Virtualization system, virtual server, virtual machine control method, and virtual machine control program
Chiang et al. Bootstrapped migration for linux OS
CN111857944A (en) Method, device, system and computer readable storage medium for virtual machine live migration
TWI763331B (en) Backup method and backup system for virtual machine

Legal Events

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