WO2018001375A1 - Physical to virtual migration method, physical server, virtual server, and system - Google Patents

Physical to virtual migration method, physical server, virtual server, and system Download PDF

Info

Publication number
WO2018001375A1
WO2018001375A1 PCT/CN2017/091296 CN2017091296W WO2018001375A1 WO 2018001375 A1 WO2018001375 A1 WO 2018001375A1 CN 2017091296 W CN2017091296 W CN 2017091296W WO 2018001375 A1 WO2018001375 A1 WO 2018001375A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
differential
files
migration
disk
Prior art date
Application number
PCT/CN2017/091296
Other languages
French (fr)
Chinese (zh)
Inventor
张景亭
王春霞
莫景钦
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018001375A1 publication Critical patent/WO2018001375A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines

Abstract

A physical to virtual migration method, physical server, virtual server, and system. The method comprises: splitting, according to preconfigured rule, a disk file into two or more delta files, and migrating, using at least one delta file as a migration unit, and to a server, the two or more delta files.

Description

物理到虚拟的迁移方法、物理服务器、虚拟服务器及系统Physical to virtual migration methods, physical servers, virtual servers, and systems 技术领域Technical field
本公开涉及通信技术领域,例如涉及一种物理到虚拟的迁移方法、物理服务器、虚拟服务器及系统。The present disclosure relates to the field of communication technologies, for example, to a physical to virtual migration method, a physical server, a virtual server, and a system.
背景技术Background technique
在基于内核的虚拟机(Kernel-based Virtual Machine,KVM)或者开放源代码虚拟机监视器XEN等虚拟化云平台场景中,越来越多的用户对物理到虚拟(Physical to Virtual,P2V)迁移提出了更高的要求。In virtualized cloud platform scenarios such as Kernel-based Virtual Machine (KVM) or Open Source Virtual Machine Monitor XEN, more and more users are moving to Physical to Virtual (P2V) Higher requirements were raised.
主流厂商的处理方式是,P2V系统在物理服务器上安装代理,该代理设置为产生物理服务器磁盘快照,并计算物理服务器的磁盘大小、中央处理器(Central Processing Unit,CPU)主频和内存大小等配置,在虚拟化平台创建相同类型的虚拟服务器,将物理服务器的磁盘快照拷贝到虚拟服务器中并启动虚拟服务器。该过程要求网络带宽足够大并且网络足够稳定,然而,对于磁盘容量过大的物理服务器,采用相关技术中的P2V迁移方式导致迁移可靠性差、无法保证实时性数据同步。The mainstream vendor's processing method is that the P2V system installs an agent on the physical server. The agent is configured to generate a physical server disk snapshot, and calculate the physical server disk size, central processing unit (CPU) frequency and memory size, etc. Configure to create the same type of virtual server on the virtualization platform, copy the disk snapshot of the physical server to the virtual server, and start the virtual server. This process requires that the network bandwidth is large enough and the network is stable enough. However, for physical servers with excessive disk capacity, the P2V migration mode in the related technology leads to poor migration reliability and cannot guarantee real-time data synchronization.
发明内容Summary of the invention
根据本实施例提供的物理到虚拟的迁移方法、物理服务器、虚拟服务器及系统,可以提高P2V迁移方式可靠性,保证实时性数据同步。According to the physical to virtual migration method, the physical server, the virtual server, and the system provided by the embodiment, the reliability of the P2V migration mode can be improved, and real-time data synchronization can be ensured.
本实施例提供一种物理到虚拟的在线迁移方法,包括:This embodiment provides a physical to virtual online migration method, including:
将磁盘文件按照预设规则拆分成至少两个差分文件;以及,Split the disk file into at least two differential files according to a preset rule; and,
以至少一个差分文件为迁移单位将所述至少两个差分文件迁移至虚拟机。The at least two differential files are migrated to the virtual machine with at least one differential file as a migration unit.
本实施例提供另一种物理到虚拟的在线迁移方法,包括:This embodiment provides another physical to virtual online migration method, including:
以至少一个分盘的差分文件为迁移单位接收物理服务器迁移的差分文件;以及,Receiving a differential file migrated by a physical server with a differential file of at least one of the partitions; and,
将接收的所有差分文件按照拆分前的顺序进行重组,得到磁盘文件。All the received differential files are reorganized in the order before the split to get the disk file.
本实施例提供一种物理服务器,包括:This embodiment provides a physical server, including:
文件拆分模块,设置为将磁盘文件按照预设规则拆分成至少两个差分文件; 以及,a file splitting module, configured to split the disk file into at least two differential files according to a preset rule; as well as,
文件迁移模块,设置为以至少一个差分文件为迁移单位将所述至少两个差分文件迁移至虚拟服务器。a file migration module configured to migrate the at least two differential files to a virtual server in at least one differential file as a migration unit.
本实施例提供一种虚拟服务器,所述虚拟服务器上部署有虚拟机,所述虚拟机包括:The embodiment provides a virtual server, where the virtual server is deployed with a virtual machine, and the virtual machine includes:
文件接收模块,设置为以至少一个分盘的差分文件为迁移单位接收物理服务器迁移的差分文件;以及,a file receiving module, configured to receive a differential file migrated by the physical server by using a differential file of at least one of the partitions as a migration unit; and
文件重组模块,设置为将接收的所有差分文件按照拆分前的顺序进行重组,得到磁盘文件。The file reorganization module is configured to recombine all the received differential files in the order before the split to obtain a disk file.
本实施例还提供一种物理到虚拟的迁移系统,包括如上所述的物理服务器和虚拟服务器。This embodiment also provides a physical to virtual migration system, including physical servers and virtual servers as described above.
本实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述的任一项的物理到虚拟的在线迁移方法。The embodiment further provides a computer storage medium having stored therein computer executable instructions for performing the physical to virtual online migration method of any of the foregoing.
根据本实施例提供的物理到虚拟的在线迁移方法、物理服务器、虚拟服务器、系统以及计算机存储介质,通过将磁盘文件按照预设规则拆分成至少两个文件,并以至少一个差分文件为迁移单位将所述至少两个差分文件迁移至服务器,使得数据迁移的可靠性和迁移效率得到提升,也保证了数据能够实时迁移至虚拟服务器,保证了整个迁移过程中数据的一致性。According to the physical to virtual online migration method, the physical server, the virtual server, the system, and the computer storage medium provided by the embodiment, the disk file is split into at least two files according to a preset rule, and the migration is performed by using at least one difference file. The unit migrates the at least two differential files to the server, which improves the reliability and migration efficiency of the data migration, and ensures that the data can be migrated to the virtual server in real time, ensuring data consistency throughout the migration process.
附图说明DRAWINGS
图1为本实施例一提供的物理到虚拟的迁移方法流程图;FIG. 1 is a flowchart of a physical to virtual migration method according to Embodiment 1;
图2为本实施例一提供的物理服务器设置流程图;2 is a flowchart of setting a physical server according to Embodiment 1;
图3为本实施例一提供的物理服务器代理安装流程图;FIG. 3 is a flowchart of installing a physical server agent according to Embodiment 1;
图4为本实施例一提供的磁盘差分处理流程图;4 is a flowchart of differential processing of a disk according to Embodiment 1;
图5为本实施例一提供的差分文件迁移流程图;FIG. 5 is a flowchart of a differential file migration according to Embodiment 1;
图6为本实施例二提供的物理到虚拟的迁移方法流程图;FIG. 6 is a flowchart of a physical to virtual migration method according to Embodiment 2;
图7为本实施例二提供的迁移完成后消息通知流程图;FIG. 7 is a flowchart of message notification after migration is completed according to Embodiment 2;
图8为本实施例三提供的物理服务器示意图;8 is a schematic diagram of a physical server provided in Embodiment 3;
图9为本实施例四提供的虚拟服务器示意图; 9 is a schematic diagram of a virtual server provided in Embodiment 4;
图10为本实施例四提供的物理到虚拟的迁移系统示意图;以及,FIG. 10 is a schematic diagram of a physical to virtual migration system according to Embodiment 4; and
图11是本实施例五提供的一种服务器的硬件结构示意图。FIG. 11 is a schematic structural diagram of a hardware of a server according to Embodiment 5 of the present disclosure.
具体实施方式detailed description
下面通过具体实施方式结合附图对本实施例作详细说明。The present embodiment will be described in detail below by way of specific embodiments with reference to the accompanying drawings.
实施例一Embodiment 1
本实施例以物理服务器侧的操作流程为例进行说明,请参见图1,图1为本实施例一提供的物理到虚拟的迁移方法,包括如下步骤。In this embodiment, the operation flow on the physical server side is taken as an example. Referring to FIG. 1 , FIG. 1 is a physical to virtual migration method according to the first embodiment, and includes the following steps.
在S110中,将磁盘文件按照预设规则拆分成至少两个差分文件。In S110, the disk file is split into at least two difference files according to a preset rule.
可选地,将物理服务器的磁盘按照预设规则划分成至少两个分盘,相应地,磁盘文件也被拆分成至少两个差分文件,即每个分盘中存储的数据即为一个差分文件。其中,差分的意思是相较于原始文件的差量。预设规则可以是以差分的形式对磁盘进行差分处理,将磁盘划分成至少两个分盘。在该差分文件中可设置唯一标识,以保证虚拟机在对差分文件进行重组时能够根据唯一标识正确重组出磁盘文件。可选地,也可采用本领域熟知的其他拆分方式。Optionally, the disk of the physical server is divided into at least two disks according to a preset rule, and accordingly, the disk file is also split into at least two differential files, that is, the data stored in each disk is a difference. file. Among them, the difference means the difference from the original file. The preset rule can differentially process the disk in a differential form, dividing the disk into at least two partitions. A unique identifier can be set in the difference file to ensure that the virtual machine can correctly reorganize the disk file according to the unique identifier when reorganizing the differential file. Alternatively, other methods of splitting well known in the art may be employed.
在S120中,以至少一个差分文件为迁移单位将所述至少两个差分文件迁移至虚拟机。In S120, the at least two differential files are migrated to the virtual machine with at least one differential file as a migration unit.
可选地,将磁盘文件拆分成至少两个差分文件后,在将差分文件迁移至虚拟机时,可以以一个差分文件为迁移单位进行迁移,也即逐个迁移差分文件至虚拟机,也可以以两个或两个以上的差分文件为迁移单位进行迁移,也即每次向虚拟机进行数据迁移时,可以一次迁移至少两个差分文件。Optionally, after the disk file is split into at least two differential files, when the differential file is migrated to the virtual machine, the migration can be performed by using one differential file as the migration unit, that is, the differential file is migrated one by one to the virtual machine, or Migrate with two or more differential files as the migration unit, that is, each time you migrate data to the virtual machine, you can migrate at least two differential files at a time.
可选地,在S110中,将磁盘文件按照预设规则拆分成至少两个差分文件时,可按照磁盘差分的方式对磁盘进行划分,也即对磁盘进行差分处理,为物理服务器划分出至少两个差分磁盘(即分盘),相应的,将磁盘中存储的磁盘文件也差分成至少两个差分文件,每个差分磁盘中存有一个差分文件。Optionally, in S110, when the disk file is split into at least two differential files according to a preset rule, the disk may be divided according to the differential mode of the disk, that is, the disk is differentially processed, and at least the physical server is divided. Two differential disks (ie, partitions), correspondingly, discard the disk files stored in the disk into at least two differential files, one differential file in each differential disk.
在对磁盘进行差分处理前,可以对物理服务器进行设置,请参见图2,图2为本实施例一提供的物理服务器设置流程图,设置过程如下。Before the differential processing of the disk, the physical server can be set. Referring to FIG. 2, FIG. 2 is a flowchart of setting the physical server according to the first embodiment. The setting process is as follows.
在S210中,虚拟化平台的管理系统判断物理服务器是否进行设置,若未进行设置,执行S220,若已进行设置,则结束流程。In S210, the management system of the virtualization platform determines whether the physical server is set. If not, the process proceeds to S220, and if it is set, the process ends.
可选地,物理服务器的信息包括IP地址、网关、用户名和密码等,虚拟化 平台部署于虚拟服务器,可以设置为创建并启动虚拟机,在该虚拟化平台上可以部署至少一个虚拟机。虚拟化平台可以是KVM、XEN等虚拟化云平台。用户将物理服务器的信息提供给虚拟化平台的管理系统,系统对物理服务器进行管理,向物理服务器确认是否已进行设置。前述物理服务器即为待迁移物理服务器。Optionally, the physical server information includes an IP address, a gateway, a username, and a password, etc., and virtualization The platform is deployed on a virtual server and can be set up to create and launch a virtual machine on which at least one virtual machine can be deployed. The virtualization platform can be a virtualized cloud platform such as KVM or XEN. The user provides the information of the physical server to the management system of the virtualization platform, and the system manages the physical server and confirms to the physical server whether the setting has been made. The aforementioned physical server is the physical server to be migrated.
在S220中,虚拟化平台的管理系统确定物理服务器的IP地址格式是否正确,若IP地址格式正确,则执行S230,若IP地址格式不正确,则结束流程。In S220, the management system of the virtualization platform determines whether the IP address format of the physical server is correct. If the IP address format is correct, S230 is performed. If the IP address format is incorrect, the process ends.
可选地,用户输入物理服务器的IP地址,虚拟化平台的管理系统对该IP地址格式进行核对,若该IP地址格式正确,则执行下一步骤。Optionally, the user inputs the IP address of the physical server, and the management system of the virtualization platform checks the IP address format. If the IP address is in the correct format, the next step is performed.
在S230中,虚拟化平台的管理系统确定网关地址格式是否正确,若网关地址格式正确,则执行S240,若网关地址格式不正确,则结束。In S230, the management system of the virtualization platform determines whether the format of the gateway address is correct. If the format of the gateway address is correct, S240 is performed, and if the format of the gateway address is incorrect, the process ends.
可选地,用户输入物理服务器的网关地址,虚拟化平台的管理系统对该网关地址格式进行核对,若该网关地址格式正确,则执行下一步骤。Optionally, the user inputs the gateway address of the physical server, and the management system of the virtualization platform checks the format of the gateway address. If the format of the gateway address is correct, the next step is performed.
在S240中,虚拟化平台的管理系统请求物理服务器输入用户名和密码。In S240, the management system of the virtualization platform requests the physical server to input a username and password.
可选地,用户根据虚拟化平台的管理系统发送的请求,在当前界面输入用户名和密码。Optionally, the user inputs a username and password on the current interface according to the request sent by the management system of the virtualization platform.
在S250中,虚拟化平台的管理系统将物理服务器的信息自动同步至数据库中。In S250, the management system of the virtualization platform automatically synchronizes the information of the physical server into the database.
物理服务器设置完成后,可以在物理服务器上安装代理,以对磁盘进行差分处理,请参见图3,图3为本实施例一提供的物理服务器代理安装流程图,物理服务器代理安装过程如下。After the physical server is set up, the agent can be installed on the physical server to perform differential processing on the disk. Referring to FIG. 3, FIG. 3 is a flowchart of installing the physical server agent according to the first embodiment. The physical server agent installation process is as follows.
在S310中,虚拟化平台的管理系统获取物理服务器的信息。In S310, the management system of the virtualization platform acquires information of the physical server.
在S320中,虚拟化平台的管理系统判断该物理服务器是否安装代理,若物理服务器未安装代理,则执行S330,若已安装代理,则结束流程。In S320, the management system of the virtualization platform determines whether the physical server installs an agent. If the physical server does not have an agent installed, S330 is executed, and if the agent is installed, the process ends.
可选地,物理服务器安装代理后,通过代理可以计算物理服务器的磁盘大小、CPU主频和内存大小等配置。Optionally, after the physical server installs the proxy, the proxy can calculate the physical server disk size, CPU frequency, and memory size.
在S330中,虚拟化平台的管理系统判断用户输入的用户名是否正确,若正确,则执行S340,若不正确,则结束流程。In S330, the management system of the virtualization platform determines whether the user name input by the user is correct. If it is correct, execute S340. If not, the process ends.
可选地,用户输入物理服务器的用户名,虚拟化平台的管理系统将存储的用户名与用户输入的用户名进行匹配,若匹配成功,则认为用户名正确。 Optionally, the user inputs the username of the physical server, and the management system of the virtualization platform matches the stored username with the username entered by the user. If the matching is successful, the username is considered to be correct.
在S340中,虚拟化平台的管理系统判断用户输入的用户密码是否正确,若正确,则执行S350,若不正确,则结束流程。In S340, the management system of the virtualization platform determines whether the user password input by the user is correct. If it is correct, execute S350. If not, the process ends.
可选地,用户输入物理服务器的用户密码,虚拟化平台的管理系统将存储的用户密码与用户输入的密码进行匹配,若匹配成功,则认为用户输入的用户密码正确。Optionally, the user inputs the user password of the physical server, and the management system of the virtualization platform matches the stored user password with the password input by the user. If the matching is successful, the user password input by the user is considered to be correct.
在S350中,虚拟化平台的管理系统对物理服务器进行代理安装。In S350, the management system of the virtualization platform performs proxy installation on the physical server.
在S360中,判断代理是否安装成功,若失败,则执行S350,若成功,则结束流程。In S360, it is determined whether the agent is successfully installed. If it fails, S350 is executed, and if successful, the process is ended.
物理服务器上的代理程序安装成功后,可以能对磁盘进行差分处理,请参见图4,图4为本实施例一提供的磁盘差分处理流程图,磁盘差分处理过程如下。After the agent on the physical server is successfully installed, the disk can be differentially processed. Referring to FIG. 4, FIG. 4 is a flowchart of the differential processing of the disk according to the first embodiment. The disk differential processing process is as follows.
在S410中,代理检测物理服务器的磁盘大小。In S410, the agent detects the disk size of the physical server.
可选地,也可以检测物理服务器的内存大小和CPU主频等。Optionally, the memory size of the physical server, the CPU frequency, and the like can also be detected.
在S420中,代理判断物理服务器的磁盘空间是否大于虚拟化平台的管理系统为物理服务器配置的磁盘空间,或者代理判断物理服务器的磁盘空间是否大于虚拟化平台的管理系统可以为物理服务器配置的磁盘空间。In S420, the agent determines whether the disk space of the physical server is greater than the disk space configured by the management system of the virtualization platform for the physical server, or the agent determines whether the disk space of the physical server is greater than the disk of the virtualization platform that the management system can configure for the physical server. space.
在S430中,代理根据物理服务器配置对磁盘进行差分处理。In S430, the agent performs differential processing on the disk according to the physical server configuration.
可选地,以差分的处理方式将磁盘划分成至少两个差分磁盘,相应地,磁盘文件也被划分成至少两个差分文件,每个差分磁盘中存有一个差分文件。Optionally, the disk is divided into at least two differential disks by differential processing. Accordingly, the disk file is also divided into at least two differential files, and one differential file exists in each differential disk.
在S440中,代理判断是否对磁盘差分成功,若差分成功,则执行S450,若差分失败,则结束流程。In S440, the agent determines whether the disk difference is successful. If the difference is successful, S450 is executed, and if the difference fails, the process ends.
在S450中,保存原有磁盘,物理服务器将后续写操作在差分磁盘上进行。In the S450, the original disk is saved, and the physical server performs subsequent write operations on the differential disk.
可选地,在S440中,对物理服务器的磁盘差分成功后,将差分磁盘中的差分文件迁移至虚拟机,在对差分文件迁移时,可以将拆分的所有差分文件逐个迁移至虚拟机,也可根据实际需要以至少两个差分文件为迁移单位对差分文件进行迁移,直到将所有差分文件均迁移至虚拟机,即将物理服务器的磁盘文件完整的迁移至虚拟机。Optionally, in S440, after the disk difference of the physical server is successfully succeeded, the differential file in the differential disk is migrated to the virtual machine, and when the differential file is migrated, all the split differential files may be migrated to the virtual machine one by one. You can also migrate differential files with at least two differential files as migration units according to actual needs, until all differential files are migrated to the virtual machine, that is, the physical server's disk files are completely migrated to the virtual machine.
在将差分文件迁移至虚拟机时,请参见图5,图5为本实施例一提供的差分文件迁移流程图,差分文件迁移过程如下。When the differential file is migrated to the virtual machine, refer to FIG. 5. FIG. 5 is a flow chart of the differential file migration according to the first embodiment. The differential file migration process is as follows.
在S510中,虚拟化平台的管理系统判断当前网络带宽是否低于设定阈值,若低于设定阈值,则执行S520,若不低于设定阈值,则执行S530。 In S510, the management system of the virtualization platform determines whether the current network bandwidth is lower than a set threshold. If it is lower than the set threshold, S520 is performed, and if it is not lower than the set threshold, S530 is performed.
可选地,虚拟化平台的管理系统对网络带宽进行监控,可通过定时器定时对网络带宽进行监控,也可实时对网络带宽进行监控,当网络带宽低于设定阈值时,可以适当减少迁移的差分文件数量,当网络带宽不低于设定阈值时,可适当增加迁移的差分文件数量。Optionally, the management system of the virtualization platform monitors network bandwidth, monitors network bandwidth through timer timing, and monitors network bandwidth in real time. When the network bandwidth is lower than a set threshold, migration may be appropriately reduced. The number of differential files, when the network bandwidth is not lower than the set threshold, the number of differential files migrated can be appropriately increased.
在S520中,将拆分的一个差分文件迁移至虚拟机。In S520, the split one differential file is migrated to the virtual machine.
在S530中,将拆分的至少两个差分文件迁移至虚拟机。In S530, the split at least two differential files are migrated to the virtual machine.
可选地,可以以一个差分文件为迁移单位将拆分的所有差分文件全部迁移至虚拟机。也可对差分文件进行排序,根据差分文件的大小按照有小到大的顺序以至少一个差分文件为迁移单位将拆分的所有差分文件迁移至虚拟机;也即根据差分文件的大小对差分文件按照由大到小或由小到大的顺序将差分文件进行迁移,在迁移时其迁移单位可以按需设置。Optionally, all of the split all differential files can be migrated to the virtual machine with one differential file as the migration unit. The differential file may also be sorted, and all the split files that are split are migrated to the virtual machine according to the size of the difference file in a small to large order with at least one difference file as a migration unit; that is, the difference file according to the size of the difference file The differential files are migrated in order from large to small or from small to large, and their migration units can be set as needed during migration.
在S540中,判断该差分文件是否迁移成功,若迁移成功,则执行S510,若迁移失败,则结束。In S540, it is determined whether the difference file is successfully migrated. If the migration is successful, S510 is performed, and if the migration fails, the process ends.
可选地,若该差分文件迁移成功,则继续迁移后续差分文件,在迁移后续差分文件时,重新判断当前网络带宽是否低于设定阈值,若低于设定阈值,则依然只迁移一个差分文件,若不低于设定阈值,则选择迁移至少两个差分文件,直到迁移完所有差分文件。在网络带宽不低于设定阈值的情况下,可优先迁移较大的差分文件,以提升迁移效率,保证数据实时性同步。Optionally, if the migration of the difference file is successful, the subsequent differential file is further migrated, and when the subsequent differential file is migrated, it is re-determined whether the current network bandwidth is lower than a set threshold. If the threshold is lower than the set threshold, only one difference is still migrated. The file, if not below the set threshold, choose to migrate at least two differential files until all differential files have been migrated. When the network bandwidth is not lower than the set threshold, the larger differential file can be preferentially migrated to improve the migration efficiency and ensure real-time synchronization of data.
通过本实施例提供的物理到虚拟的迁移方法,将磁盘文件进行拆分,以较小的差分文件进行迁移,从而保证速率的提升,由于较小差分文件在迁移的过程中,其所花费时间较小,迁移速度较快,能够地保证数据实时性同步。通过对网络带宽的监测,能够根据网络带宽状况合理的选择差分文件迁移的数量,保证迁移数据一致性。Through the physical to virtual migration method provided in this embodiment, the disk file is split and migrated with a small differential file, thereby ensuring the rate increase, and the time taken for the migration of the smaller differential file in the process of migration Smaller, faster migration, and able to ensure real-time data synchronization. By monitoring the network bandwidth, the number of differential file migrations can be reasonably selected according to the network bandwidth status to ensure the consistency of the migration data.
实施例二Embodiment 2
本实施例以虚拟服务器侧的操作流程为例进行说明,该虚拟服务器上部署有虚拟化平台,虚拟化平台上部署有至少一个虚拟机,本实施例以一个虚拟机为例进行解释。请参见图6,图6为本实施例二提供的另一物理到虚拟的迁移方法,包括如下步骤。In this embodiment, the operation flow on the virtual server side is taken as an example. The virtual server is deployed with a virtualization platform, and at least one virtual machine is deployed on the virtualization platform. This embodiment uses a virtual machine as an example for explanation. Referring to FIG. 6, FIG. 6 is another physical to virtual migration method provided by the second embodiment, and includes the following steps.
在S610中,以至少一个分盘的差分文件为迁移单位接收物理服务器迁移的差分文件。 In S610, the differential file migrated by the physical server is received by using the differential file of at least one of the partitions as a migration unit.
可选地,在接收物理服务器迁移的差分文件时,可以逐个接收,也可一次接收至少两个差分文件,接收差分文件的数量与物理服务器一次传输的差分文件数量有关。前述分盘是磁盘按照预设方式进行拆分得到的,例如,将磁盘进行差分处理,即可得到差分磁盘,该差分磁盘即为分盘;相应地,在对磁盘进行拆分时,磁盘文件也被拆分成至少两个差分文件,每个差分磁盘中存有一个差分文件。Optionally, when receiving the differential file migrated by the physical server, the data may be received one by one, or at least two differential files may be received at a time, and the number of the received differential files is related to the number of differential files transmitted by the physical server at one time. The foregoing disk is obtained by splitting the disk according to a preset manner. For example, if the disk is differentially processed, a differential disk is obtained, and the differential disk is a disk; accordingly, when the disk is split, the disk file is obtained. It is also split into at least two differential files, one for each differential disk.
在S620中,将接收的所有差分文件按照拆分前的顺序进行重组,得到磁盘文件。In S620, all the received differential files are reorganized in the order before the splitting to obtain a disk file.
可选地,虚拟服务器接收到所有的差分文件后,需要将差分文件恢复成拆分前的磁盘文件,在对差分文件进行重组时,由于多个差分文件中均设有唯一标识,可根据唯一标识对差分文件进行重组。可选地,也可采用本领域熟知的其他重组方式对拆分文件进行重组,重组成功后,得到磁盘文件。Optionally, after receiving all the differential files, the virtual server needs to restore the differential file to the disk file before the splitting. When the differential file is reorganized, the unique identifier may be uniquely located in the multiple differential files. The identity reorganizes the differential file. Alternatively, the split files may be reorganized by other reorganization methods well known in the art. After the reorganization is successful, a disk file is obtained.
可选地,在S610之后,虚拟机判断是否接收到物理服务器迁移的所有差分文件,即需要判断差分文件是否全部迁移完成,若差分文件全部迁移完成,则以短信、邮件等通信方式通知用户和虚拟化平台管理人员中的至少一个。虚拟机可定时对差分文件的接收情况进行检测,也可实时对差分文件的接收情况进行检测,以确定是否将差分文件全部迁移完毕。Optionally, after S610, the virtual machine determines whether all the differential files migrated by the physical server are received, that is, whether the differential file is completely migrated is completed, and if the differential files are all migrated, the user is notified by means of a short message, an email, or the like. At least one of the virtualization platform managers. The virtual machine can periodically detect the reception of the differential file, and can also detect the reception of the differential file in real time to determine whether the differential file has been completely migrated.
当物理服务器中的磁盘文件全部成功迁移至虚拟机时,虚拟化平台管理系统向管理人员和用户中的至少一个发出通知。可选地,物理服务器将差分文件全部迁移至虚拟机,虚拟机将接收的差分文件按照拆分前的顺序进行重组,得到磁盘文件;判断该磁盘文件是否正确,若磁盘文件正确,则认为物理服务器中的磁盘文件成功迁移至虚拟机,虚拟机开始运行,并将物理服务器停机;虚拟化平台管理系统以短信、邮件或其他方式通知用户和虚拟化平台管理人员中的至少一个,物理服务器的磁盘文件成功迁移至虚拟机。When all of the disk files in the physical server are successfully migrated to the virtual machine, the virtualization platform management system issues a notification to at least one of the administrator and the user. Optionally, the physical server migrates the differential files to the virtual machine. The virtual machine reassembles the received differential files in the order before the splitting to obtain the disk file. The disk file is determined to be correct. If the disk file is correct, the physical file is considered to be physical. The disk files in the server are successfully migrated to the virtual machine, the virtual machine starts running, and the physical server is shut down; the virtualization platform management system notifies the user and the virtualization platform administrator by SMS, mail or other means, the physical server The disk file was successfully migrated to the virtual machine.
对于磁盘文件迁移成功后的消息通知流程,请参见图7,图7为本实施例二提供的迁移完成后消息通知流程图,消息通知过程如下。For the message notification process after the disk file migration succeeds, refer to FIG. 7. FIG. 7 is a flowchart of the message notification after the migration is completed according to the second embodiment, and the message notification process is as follows.
在S710中,虚拟化平台管理系统定时检测磁盘文件是否迁移成功,若迁移成功,则执行S720,若迁移失败,则结束。In S710, the virtualization platform management system periodically detects whether the disk file is successfully migrated. If the migration is successful, S720 is executed, and if the migration fails, the process ends.
在S720中,虚拟机开始运行,物理服务器停止运行。In S720, the virtual machine starts running and the physical server stops running.
在S730中,判断虚拟化平台管理系统是否配置通知功能,若配置通知功能, 则执行S740,若未配置通知功能,则结束。In S730, it is determined whether the virtualization platform management system configures a notification function, and if the notification function is configured, Then, S740 is executed, and if the notification function is not configured, the process ends.
可选地,该虚拟化平台管理系统中设置有添加手机号、邮箱等选项,用户和管理人员中的至少一个将手机号或邮箱添加进去。Optionally, the virtualization platform management system is provided with an option of adding a mobile phone number, a mailbox, and the like, and at least one of the user and the management personnel adds the mobile phone number or the mailbox.
在S740中,按照通知方式通知管理人员和用户中的至少一个。In S740, at least one of the manager and the user is notified in accordance with the notification manner.
可选地,该通知方式包括短信、电话或邮箱。Optionally, the notification method includes a short message, a phone call or a mailbox.
通过本实施例提供的物理到虚拟的迁移方法,在将物理服务器的磁盘文件成功迁移到虚拟机后,通知用户和管理人员中的至少一个磁盘文件已迁移成功。通过接收差分文件,完成物理服务器到虚拟机的迁移操作,保证数据的一致性。With the physical to virtual migration method provided by the embodiment, after the disk file of the physical server is successfully migrated to the virtual machine, at least one disk file of the user and the administrator is notified that the disk file has been successfully migrated. The physical server to virtual machine migration operation is completed by receiving the differential file to ensure data consistency.
实施例三Embodiment 3
本实施例是与实施例一对应的装置实施例,提供了一种物理服务器,在实施例一的基础上,本实施例将不再对物理服务器中的部分内容做详细说明。请参见图8,图8为本实施例三提供的物理服务器示意图,该物理服务器8包括如下模块。This embodiment is an apparatus embodiment corresponding to the first embodiment, and provides a physical server. On the basis of the first embodiment, the content of the physical server will not be described in detail in this embodiment. Referring to FIG. 8, FIG. 8 is a schematic diagram of a physical server according to Embodiment 3, where the physical server 8 includes the following modules.
文件拆分模块81,设置为将磁盘文件按照预设规则拆分成至少两个差分文件;The file splitting module 81 is configured to split the disk file into at least two differential files according to a preset rule;
文件迁移模块82,设置为以至少一个差分文件为迁移单位将所述至少两个差分文件迁移至虚拟机。The file migration module 82 is configured to migrate the at least two differential files to the virtual machine in at least one differential file as a migration unit.
其中,文件拆分模块81是设置为将磁盘文件进行差分处理,得到至少两个差分文件。The file splitting module 81 is configured to perform differential processing on the disk file to obtain at least two difference files.
可选地,该物理服务器还包括带宽监控模块83。Optionally, the physical server further includes a bandwidth monitoring module 83.
带宽监控模块83,设置为在以至少一个差分文件为迁移单位将所述至少两个差分文件迁移至虚拟机之前,对网络带宽进行监控。The bandwidth monitoring module 83 is configured to monitor the network bandwidth before migrating the at least two differential files to the virtual machine in at least one differential file as a migration unit.
文件迁移模块82是设置为当网络带宽低于设定阈值时,将所述至少两个差分文件逐个迁移至虚拟机,或者对差分文件进行排序,按照由小到大的顺序以至少一个差分文件为迁移单位将所述至少两个差分文件迁移至虚拟机。The file migration module 82 is configured to migrate the at least two differential files to the virtual machine one by one when the network bandwidth is lower than a set threshold, or to sort the differential files in at least one difference file in a small to large order. The at least two differential files are migrated to the virtual machine for the migration unit.
前述文件拆分模块81、文件迁移模块82以及带宽监控模块83所实现的功能均可通过服务器上的控制器来实现。The functions implemented by the aforementioned file splitting module 81, file migration module 82, and bandwidth monitoring module 83 can be implemented by a controller on the server.
可选地,可以对物理服务器进行设置,将物理服务器的信息提供给虚拟化平台管理系统,系统根据物理服务器信息对物理服务器进行管理,其中,物理服务器的信息包括IP地址、网关、用户名和密码等,物理服务器的设置过程请 参见图2;设置完毕后,在物理服务器上安装代理,安装过程请参见图3;代理安装完毕后,对物理服务器的配置进行检测,根据检测结果对磁盘进行差分。Optionally, the physical server may be configured to provide information of the physical server to the virtualization platform management system, and the system manages the physical server according to the physical server information, where the physical server information includes an IP address, a gateway, a username, and a password. Etc, the physical server setup process please See Figure 2; after the setup is complete, install the agent on the physical server. See Figure 3 for the installation process. After the agent is installed, check the configuration of the physical server and differentiate the disk based on the detection result.
在进行差分时,将物理服务器的磁盘按照预设规则划分成至少两个分盘,相应地,磁盘文件也被拆分成至少两个差分文件,即每个分盘中存储的数据即为一个差分文件。其中,预设规则可以是以差分的形式对磁盘进行差分处理,将磁盘划分成至少两个分盘。在该差分文件中可设置唯一标识,以保证虚拟机在对差分文件进行重组时能够根据唯一标识正确重组出磁盘文件。可选地,也可采用本领域熟知的其他拆分方式。When performing the difference, the physical server's disk is divided into at least two partitions according to a preset rule, and accordingly, the disk file is also split into at least two differential files, that is, the data stored in each of the partitions is one. Differential file. The preset rule may perform differential processing on the disk in a differential form, and divide the disk into at least two partitions. A unique identifier can be set in the difference file to ensure that the virtual machine can correctly reorganize the disk file according to the unique identifier when reorganizing the differential file. Alternatively, other methods of splitting well known in the art may be employed.
可选地,将磁盘文件按照预设规则拆分成至少两个差分文件时,可按照磁盘差分的方式对磁盘进行划分,也即对磁盘进行差分处理,为物理服务器划分出至少两个差分磁盘(即分盘),相应的,将磁盘中存储的磁盘文件也差分成至少两个差分文件,每个差分磁盘中存有一个差分文件。Optionally, when the disk file is split into at least two differential files according to a preset rule, the disk may be divided according to the differential mode of the disk, that is, the disk is differentially processed, and at least two differential disks are divided for the physical server. (ie, the partition), correspondingly, the disk file stored in the disk is also differentiated into at least two differential files, and one differential file exists in each differential disk.
可选地,将磁盘文件拆分成至少两个差分文件后,在将差分文件迁移至虚拟机时,可以以一个差分文件为迁移单位进行迁移,也即逐个迁移差分文件至虚拟机,也可以以两个或两个以上的差分文件为迁移单位进行迁移,也即每次向虚拟机进行数据迁移时,可以一次迁移至少两个差分文件。Optionally, after the disk file is split into at least two differential files, when the differential file is migrated to the virtual machine, the migration can be performed by using one differential file as the migration unit, that is, the differential file is migrated one by one to the virtual machine, or Migrate with two or more differential files as the migration unit, that is, each time you migrate data to the virtual machine, you can migrate at least two differential files at a time.
实施例四Embodiment 4
本实施例是与实施例二对应的装置实施例,提供了一种虚拟服务器,在实施例二的基础上,本实施例将不再对虚拟服务器中的部分内容做详细说明。该虚拟服务器上部署有虚拟化平台,虚拟化平台上部署有虚拟机。请参见图9,图9为本实施例四提供的虚拟服务器示意图,该虚拟服务器9包括至少一个虚拟机,所述虚拟机包括如下模块。This embodiment is an apparatus embodiment corresponding to the second embodiment, and provides a virtual server. On the basis of the second embodiment, the content of the virtual server will not be described in detail in this embodiment. A virtualization platform is deployed on the virtual server, and a virtual machine is deployed on the virtualization platform. Referring to FIG. 9, FIG. 9 is a schematic diagram of a virtual server according to Embodiment 4, where the virtual server 9 includes at least one virtual machine, and the virtual machine includes the following modules.
文件接收模块91,设置为以至少一个分盘的差分文件为迁移单位接收物理服务器迁移的差分文件。The file receiving module 91 is configured to receive the differential file migrated by the physical server by using the differential file of at least one of the partitions as a migration unit.
文件重组模块92,设置为将接收的所有差分文件按照拆分前的顺序进行重组,得到磁盘文件。The file reorganization module 92 is configured to reassemble all the received differential files in the order before the splitting to obtain a disk file.
可选地,文件接收模块91是设置为逐个接收物理服务器迁移的差分文件。Optionally, the file receiving module 91 is a differential file configured to receive physical server migration one by one.
前述文件接收模块91以及文件重组模块92所实现的功能均可通过服务器上的控制器来实现。The functions implemented by the aforementioned file receiving module 91 and the file recombining module 92 can be implemented by a controller on the server.
可选的,在接收物理服务器迁移的差分文件时,可以逐个接收,也可一次 接收至少两个差分文件,接收差分文件的数量与物理服务器一次传输的差分文件数量有关。此外,前述分盘是磁盘按照预设方式进行拆分得到的,例如,将磁盘进行差分处理,即可得到差分磁盘,该差分磁盘即为分盘;相应地,在对磁盘进行拆分时,磁盘文件也被拆分成至少两个差分文件,每个差分磁盘中存有一个差分文件。Optionally, when receiving the differential file migrated by the physical server, it may be received one by one or once. Receiving at least two differential files, the number of received differential files is related to the number of differential files transmitted by the physical server at one time. In addition, the foregoing disc is obtained by splitting the disc according to a preset manner. For example, the differential disc is obtained by differentially processing the disc, and the differential disc is a partition; accordingly, when the disk is split, The disk file is also split into at least two differential files, one for each differential disk.
虚拟服务器接收到所有的差分文件后,需要将差分文件恢复成拆分前的磁盘文件,在对差分文件进行重组时,由于多个差分文件中均设有唯一标识,可根据唯一标识对差分文件进行重组。可选地,也可采用本领域熟知的其他重组方式对拆分文件进行重组,重组成功后,得到磁盘文件。After receiving all the differential files, the virtual server needs to restore the differential file to the disk file before the split. When the differential file is reorganized, the unique identifier can be differentiated according to the unique identifier. Reorganize. Alternatively, the split files may be reorganized by other reorganization methods well known in the art. After the reorganization is successful, a disk file is obtained.
可选地,虚拟机判断是否接收到物理服务器迁移的所有差分文件,即需要判断差分文件是否全部迁移完成,若差分文件全部迁移完成,则以短信、邮件等通信方式通知用户和虚拟化平台管理人员中的至少一个。虚拟机可定时对差分文件的接收情况进行检测,也可实时对差分文件的接收情况进行检测,以确定是否将差分文件全部迁移完毕。Optionally, the virtual machine determines whether all the differential files migrated by the physical server are received, that is, whether the differential file is completely migrated is completed. If the differential files are all migrated, the user and the virtualization platform are notified by means of short messages, emails, and the like. At least one of the people. The virtual machine can periodically detect the reception of the differential file, and can also detect the reception of the differential file in real time to determine whether the differential file has been completely migrated.
可选地,当物理服务器中的磁盘文件全部成功迁移至虚拟机时,虚拟化平台管理系统向管理人员和用户中的至少一个发出通知。可选地,物理服务器将差分文件全部迁移至虚拟机,虚拟机将接收的差分文件按照拆分前的顺序进行重组,得到磁盘文件;判断该磁盘文件是否正确,若磁盘文件正确,则认为物理服务器中的磁盘文件成功迁移至虚拟机,虚拟机开始运行,将物理服务器停机;虚拟化平台管理系统以短信、邮件或其他方式通知用户和虚拟化平台管理人员中的至少一个,物理服务器的磁盘文件成功迁移至虚拟机。Optionally, when all the disk files in the physical server are successfully migrated to the virtual machine, the virtualization platform management system issues a notification to at least one of the administrator and the user. Optionally, the physical server migrates the differential files to the virtual machine. The virtual machine reassembles the received differential files in the order before the splitting to obtain the disk file. The disk file is determined to be correct. If the disk file is correct, the physical file is considered to be physical. The disk files in the server are successfully migrated to the virtual machine, the virtual machine starts running, and the physical server is shut down; the virtualization platform management system notifies the user and the virtualization platform administrator by SMS, mail or other means, the physical server disk The file was successfully migrated to the virtual machine.
此外,请参见图10,图10为本实施例四提供的物理到虚拟的迁移系统,该系统包括前述物理服务器101和虚拟服务器102。In addition, referring to FIG. 10, FIG. 10 is a physical to virtual migration system provided by the fourth embodiment, and the system includes the foregoing physical server 101 and virtual server 102.
通过本实施例提供的物理到虚拟的迁移系统,通过将磁盘文件进行差分处理,得到多个小的差分文件,将差分文件发送至虚拟机,由于多个差分文件较小,使得迁移效率较高,同时也保证迁移数据的一致性。Through the physical-to-virtual migration system provided in this embodiment, multiple differential files are obtained by differential processing of the disk files, and the differential files are sent to the virtual machine. Since the plurality of differential files are small, the migration efficiency is high. It also guarantees the consistency of the migrated data.
实施例五Embodiment 5
本实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述方法。The embodiment further provides a computer readable storage medium storing computer executable instructions for performing the above method.
图11是本实施例五提供的一种服务器的硬件结构示意图,如图11所示, 该电子设备包括:处理器(processor)111和存储器(memory)112;还可以包括通信接口(Communications Interface)113和总线114。11 is a schematic structural diagram of a hardware of a server according to Embodiment 5, as shown in FIG. The electronic device includes a processor 111 and a memory 112; and may further include a communication interface 113 and a bus 114.
其中,处理器111、存储器112和通信接口113可以通过总线114完成相互间的通信。通信接口113可以用于信息传输。处理器111可以调用存储器112中的逻辑指令,以执行上述实施例的任意一种物理到虚拟的文件迁移方法。The processor 111, the memory 112, and the communication interface 113 can complete communication with each other through the bus 114. The communication interface 113 can be used for information transmission. The processor 111 can call the logic instructions in the memory 112 to perform any of the physical to virtual file migration methods of the above embodiments.
存储器112可以包括存储程序区和存储数据区,存储程序区可以存储操作系统和至少一个功能所需的应用程序。存储数据区可以存储根据电子设备的使用所创建的数据等。此外,存储器可以包括,例如,随机存取存储器的易失性存储器,还可以包括非易失性存储器。例如至少一个磁盘存储器件、闪存器件或者其他非暂态固态存储器件。The memory 112 may include a storage program area and a storage data area, and the storage program area may store an operating system and an application required for at least one function. The storage data area can store data and the like created according to the use of the electronic device. Further, the memory may include, for example, a volatile memory of a random access memory, and may also include a non-volatile memory. For example, at least one disk storage device, flash memory device, or other non-transitory solid state storage device.
此外,在上述存储器112中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,该逻辑指令可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案可以以计算机软件产品的形式体现出来,该计算机软件产品可以存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本实施例所述方法的全部或部分步骤。Moreover, when the logic instructions in the memory 112 described above can be implemented in the form of software functional units and sold or used as separate products, the logic instructions can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a computer software product, which may be stored in a storage medium, and includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, Or a network device or the like) performs all or part of the steps of the method described in this embodiment.
存储介质可以是非暂态存储介质,也可以是暂态存储介质。非暂态存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质。The storage medium may be a non-transitory storage medium or a transitory storage medium. The non-transitory storage medium may include: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.
本领域普通技术人员可理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指示相关的硬件完成的,该程序可存储于一个非暂态计算机可读存储介质中,该程序被执行时,可包括如上述方法的实施例的流程。A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program indicating related hardware, and the program can be stored in a non-transitory computer readable storage medium. When executed, a flow of an embodiment of the method as described above may be included.
显然,本领域的技术人员应该明白,上述本发明实施例的多个模块或多个步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在一些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成多个集成电路模块,或者将它们中的 多个模块或步骤制作成单个集成电路模块来实现。Obviously, those skilled in the art should understand that the multiple modules or steps of the above embodiments of the present invention may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed among multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in a storage medium (ROM/RAM, disk, optical disk) by a computing device, and In some cases, the steps shown or described may be performed in an order different than that herein, or they may be separately fabricated into a plurality of integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module.
工业实用性Industrial applicability
本公开使得数据迁移的可靠性和迁移效率得到提升,也保证了数据能够实时迁移至虚拟服务器,保证了整个迁移过程中数据的一致性。 The present disclosure improves the reliability and migration efficiency of data migration, and ensures that data can be migrated to a virtual server in real time, ensuring data consistency throughout the migration process.

Claims (14)

  1. 一种物理到虚拟的文件迁移方法,包括:A physical to virtual file migration method, including:
    将磁盘文件按照预设规则拆分成至少两个差分文件;以及,Split the disk file into at least two differential files according to a preset rule; and,
    以至少一个差分文件为迁移单位将所述至少两个差分文件迁移至虚拟机。The at least two differential files are migrated to the virtual machine with at least one differential file as a migration unit.
  2. 如权利要求1所述的方法,其中,所述将磁盘文件按照预设规则拆分成至少两个差分文件包括:The method of claim 1, wherein the splitting the disk file into the at least two difference files according to a preset rule comprises:
    将磁盘文件进行差分处理,得到至少两个差分文件。The disk file is differentially processed to obtain at least two difference files.
  3. 如权利要求1所述的方法,其中,所述以至少一个差分文件为迁移单位将所述至少两个差分文件迁移至虚拟机包括:The method of claim 1, wherein the migrating the at least two differential files to the virtual machine with the at least one differential file as a migration unit comprises:
    将所述至少两个差分文件逐个迁移至虚拟机。The at least two differential files are migrated one by one to the virtual machine.
  4. 如权利要求1-3任一项所述的方法,其中,在以至少一个差分文件为迁移单位将所述至少两个差分文件迁移至虚拟机之前,还包括:The method of any one of the preceding claims, wherein before the migrating the at least two difference files to the virtual machine in the migration unit of the at least one difference file, the method further comprises:
    对网络带宽进行监控;Monitor network bandwidth;
    所述以至少一个差分文件为迁移单位将所述至少两个差分文件迁移至虚拟机包括:The migrating the at least two differential files to the virtual machine by using the at least one difference file as a migration unit includes:
    当所述网络带宽低于设定阈值时,将所述至少两个差分文件逐个迁移至虚拟机;或者,When the network bandwidth is lower than a set threshold, the at least two differential files are migrated to the virtual machine one by one; or
    对差分文件进行排序,按照由小到大的顺序以至少一个差分文件为迁移单位将所述至少两个差分文件迁移至虚拟机。The differential files are sorted, and the at least two differential files are migrated to the virtual machine in a small to large order with at least one differential file as a migration unit.
  5. 一种物理到虚拟的文件迁移方法,包括:A physical to virtual file migration method, including:
    以至少一个分盘的差分文件为迁移单位接收物理服务器迁移的差分文件;以及,Receiving a differential file migrated by a physical server with a differential file of at least one of the partitions; and,
    将接收的所有差分文件按照拆分前的顺序进行重组,得到磁盘文件。All the received differential files are reorganized in the order before the split to get the disk file.
  6. 如权利要求5所述的方法,其中,所述以至少一个分盘的差分文件为迁移单位接收物理服务器迁移的差分文件包括:The method of claim 5, wherein the receiving the differential file migrated by the physical server by using the differential file of the at least one of the partitions as a migration unit comprises:
    逐个接收所述物理服务器迁移的差分文件。The differential files migrated by the physical server are received one by one.
  7. 如权利要求5或6方法,其中,在将接收的所有差分文件按照拆分前的顺序进行重组之后,还包括:The method of claim 5 or 6, wherein after all the differential files received are reorganized in the order before the splitting, the method further comprises:
    判断所述磁盘文件是否迁移成功;Determining whether the disk file is successfully migrated;
    若所述磁盘文件迁移成功,按照预设通知方式发出通知。If the disk file migration is successful, the notification is sent according to the preset notification mode.
  8. 一种物理服务器,包括: A physical server that includes:
    文件拆分模块,设置为将磁盘文件按照预设规则拆分成至少两个差分文件;以及,a file splitting module configured to split a disk file into at least two differential files according to a preset rule; and,
    文件迁移模块,设置为以至少一个差分文件为迁移单位将所述至少两个差分文件迁移至虚拟机。The file migration module is configured to migrate the at least two differential files to the virtual machine in at least one differential file as a migration unit.
  9. 如权利要求8所述的物理服务器,其中,所述文件拆分模块是设置为将磁盘文件进行差分处理,得到至少两个差分文件。The physical server according to claim 8, wherein said file splitting module is configured to perform differential processing on the disk file to obtain at least two difference files.
  10. 如权利要求8或9所述的物理服务器,还包括:The physical server according to claim 8 or 9, further comprising:
    带宽监控模块,设置为在以至少一个差分文件为迁移单位将所述至少两个差分文件迁移至虚拟机之前,对网络带宽进行监控;a bandwidth monitoring module, configured to monitor network bandwidth before migrating the at least two differential files to a virtual machine by using at least one differential file as a migration unit;
    所述文件迁移模块还设置为当所述网络带宽低于设定阈值时,将所述至少两个差分文件逐个迁移至虚拟机,或者,The file migration module is further configured to migrate the at least two differential files to the virtual machine one by one when the network bandwidth is lower than a set threshold, or
    对差分文件进行排序,按照由小到大的顺序以至少一个差分文件为迁移单位将所述至少两个差分文件迁移至虚拟机。The differential files are sorted, and the at least two differential files are migrated to the virtual machine in a small to large order with at least one differential file as a migration unit.
  11. 一种虚拟服务器,所述虚拟服务器上部署有虚拟机,所述虚拟机包括:A virtual server is deployed with a virtual machine, where the virtual machine includes:
    文件接收模块,设置为以至少一个分盘的差分文件为迁移单位接收物理服务器迁移的差分文件;以及,a file receiving module, configured to receive a differential file migrated by the physical server by using a differential file of at least one of the partitions as a migration unit; and
    文件重组模块,设置为将接收的所有差分文件按照拆分前的顺序进行重组,得到磁盘文件。The file reorganization module is configured to recombine all the received differential files in the order before the split to obtain a disk file.
  12. 如权利要求11所述的虚拟服务器,其中,所述文件接收模块是设置为逐个接收所述物理服务器迁移的差分文件。The virtual server of claim 11, wherein the file receiving module is a differential file configured to receive the physical server migration one by one.
  13. 一种物理到虚拟的迁移系统,包括如权利要求8-10任一项所述的物理服务器和如权利要求11或12所述的虚拟服务器。A physical to virtual migration system comprising the physical server of any of claims 8-10 and the virtual server of claim 11 or 12.
  14. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-4和5-7任一项的方法。 A computer readable storage medium storing computer executable instructions arranged to perform the method of any of claims 1-4 and 5-7.
PCT/CN2017/091296 2016-06-30 2017-06-30 Physical to virtual migration method, physical server, virtual server, and system WO2018001375A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610507396.8 2016-06-30
CN201610507396.8A CN107562511A (en) 2016-06-30 2016-06-30 Moving method, physical server, virtual server and the system of physical to virtual

Publications (1)

Publication Number Publication Date
WO2018001375A1 true WO2018001375A1 (en) 2018-01-04

Family

ID=60786841

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/091296 WO2018001375A1 (en) 2016-06-30 2017-06-30 Physical to virtual migration method, physical server, virtual server, and system

Country Status (2)

Country Link
CN (1) CN107562511A (en)
WO (1) WO2018001375A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558216B (en) * 2018-12-11 2020-10-27 深圳先进技术研究院 Single root I/O virtualization optimization method and system based on online migration
CN110768834B (en) * 2019-10-25 2023-01-03 北京金山云网络技术有限公司 Method, system, device and medium for notifying upgrading result of virtual machine configuration
CN116032796A (en) * 2021-10-25 2023-04-28 深圳富联富桂精密工业有限公司 Connection state detection method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081552A (en) * 2009-12-01 2011-06-01 华为技术有限公司 Method, device and system for transferring from physical machine to virtual machine on line
CN104572340A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Incremental backup system and method
CN104717695A (en) * 2013-12-12 2015-06-17 上海精视信息技术有限责任公司 Virtual network disk device based on embedded system technology and application of virtual network disk device
CN105262838A (en) * 2015-11-03 2016-01-20 广州市优普计算机有限公司 Cloud computing system
CN105656969A (en) * 2014-11-24 2016-06-08 中兴通讯股份有限公司 Virtual machine migration decision method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081552A (en) * 2009-12-01 2011-06-01 华为技术有限公司 Method, device and system for transferring from physical machine to virtual machine on line
CN104572340A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Incremental backup system and method
CN104717695A (en) * 2013-12-12 2015-06-17 上海精视信息技术有限责任公司 Virtual network disk device based on embedded system technology and application of virtual network disk device
CN105656969A (en) * 2014-11-24 2016-06-08 中兴通讯股份有限公司 Virtual machine migration decision method and device
CN105262838A (en) * 2015-11-03 2016-01-20 广州市优普计算机有限公司 Cloud computing system

Also Published As

Publication number Publication date
CN107562511A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
US10013189B1 (en) Storage volume backup management for multi-tenant environments
US20210004262A1 (en) Managed orchestration of virtual machine instance migration
US10146675B1 (en) Automated code upgrade testing utilizing a copy data manager
US10437855B1 (en) Automatic verification of asynchronously replicated data
US10540312B2 (en) Scalable pooled NVMe storage box that comprises a PCIe switch further connected to one or more switches and switch ports
US20160378547A1 (en) Preserving state during virtual machine instance migration
US10404579B1 (en) Virtual machine instance migration using a hypervisor
US10079850B1 (en) Systems and methods for provisioning cyber security simulation exercises
US10601682B2 (en) Service availability management method, service availability management apparatus, and network function virtualization architecture thereof
WO2020135799A1 (en) Vnf service instantiation method and device
US9489230B1 (en) Handling of virtual machine migration while performing clustering operations
WO2015196931A1 (en) Disk io-based virtual resource allocation method and device
US8832775B2 (en) Techniques for workload spawning
US10187485B1 (en) Systems and methods for sending push notifications that include preferred data center routing information
WO2018095414A1 (en) Method and apparatus for detecting and recovering fault of virtual machine
US9811376B2 (en) Virtual machine instance migration using a triangle approach
WO2018001375A1 (en) Physical to virtual migration method, physical server, virtual server, and system
CN107656705B (en) Computer storage medium and data migration method, device and system
US10628198B2 (en) Hypervisor management of migration notification and response messages for virtual machines
WO2015127850A1 (en) Data upgrading method and central server
US10228969B1 (en) Optimistic locking in virtual machine instance migration
US11467882B2 (en) Methods and systems for rapid deployment of configurable computing resources
WO2017185615A1 (en) Method for determining service status of service processing device and scheduling device
US20210232328A1 (en) Cluster group change preparation techniques
WO2022127583A1 (en) Virtual machine control method, cloud management device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17819371

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17819371

Country of ref document: EP

Kind code of ref document: A1