CN103109271B - The implementation method of migrate application and system between a kind of platform - Google Patents
The implementation method of migrate application and system between a kind of platform Download PDFInfo
- Publication number
- CN103109271B CN103109271B CN201280001749.7A CN201280001749A CN103109271B CN 103109271 B CN103109271 B CN 103109271B CN 201280001749 A CN201280001749 A CN 201280001749A CN 103109271 B CN103109271 B CN 103109271B
- Authority
- CN
- China
- Prior art keywords
- platform
- information
- target platform
- migration
- configuration information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
- G06F9/4856—Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本发明适用于计算机领域,提供一种平台间迁移应用的实现方法及系统,所述方法包括:与源平台、目标平台建立通信连接,获取所述源平台的系统环境信息及所述目标平台的系统环境信息;根据所述源平台的系统环境信息及所述目标平台的系统环境信息生成资源转换系数、性能系数参数以及所述目标平台上应用所需的系统环境;生成迁移前脚本和适配脚本文件;执行所述迁移前脚本和所述迁移适配脚本,配置目标平台系统环境;从所述源平台迁移应用数据到所述目标平台分区上。通过本发明可以实现不同平台间应用数据从源服务器到目标服务器的无缝迁移。
The present invention is applicable to the computer field, and provides a method and system for implementing migration applications between platforms. The method includes: establishing a communication connection with a source platform and a target platform, and obtaining system environment information of the source platform and information of the target platform. System environment information; generate resource conversion coefficients, performance coefficient parameters, and system environments required for applications on the target platform according to the system environment information of the source platform and the system environment information of the target platform; generate pre-migration scripts and adaptation script file; execute the pre-migration script and the migration adaptation script to configure the target platform system environment; migrate application data from the source platform to the target platform partition. The invention can realize the seamless migration of application data between different platforms from the source server to the target server.
Description
技术领域technical field
本发明属于计算机领域,尤其涉及一种平台间迁移应用的实现方法及系统。The invention belongs to the field of computers, and in particular relates to a method and system for implementing migration applications between platforms.
背景技术Background technique
随着信息技术(Informationtechnology,IT)以及工业技术的不断发展,计算机硬件和软件的更新换代速度越来越快,性能价格比越来越高。为配合企业业务发展需要,企业更换软、硬件的频率也不断提高。由此,将旧平台上的应用迁移到新平台上是企业升级更新中的一个重要环节。如何保证应用的平滑迁移,减小迁移风险和工作量,降低总所有成本(Totalcostofownership,TCO),是赢得客户的满意度和使用意愿的关键。With the continuous development of information technology (Informationtechnology, IT) and industrial technology, the replacement speed of computer hardware and software is getting faster and faster, and the performance-price ratio is getting higher and higher. In order to meet the needs of enterprise business development, the frequency of enterprise replacement of software and hardware is also increasing. Therefore, migrating applications on the old platform to the new platform is an important link in enterprise upgrading and updating. How to ensure smooth migration of applications, reduce migration risks and workload, and reduce total cost of ownership (TCO) is the key to winning customer satisfaction and willingness to use.
跨平台间迁移应用时,应用往往会需要进行一定的配置修改,例如,在PCIE(PeripheralComponentInterconnectExpress,高速外围组件互连)交换架构服务器中,存在着一些PCIE与以太网、无限带宽InfiniBand等的差别,传统应用基于以太网、InfiniBand架构开发,迁移部署到PCIE架构上需要进行一些配置修改。现有技术中,如图1是一种物理到物理(Physicaltophysical,P2P)、物理到虚拟(Physicaltovirtual、P2V)、虚拟到虚拟(Virtualtovirtual,V2V)的系统迁移解决方案,能够将任何x86架构服务器上面的Windows操作系统和域控制器信息以及应用和数据快速的迁移到HP最新的ProLiant服务器平台,同时通过ProliantEssentials工具与虚拟机(VirtualMachineware,Vmware)技术,支持物理机与虚拟机之间的系统迁移。但该技术只能支持HPProLiant平台,不支持从传统服务器到PCIE交换架构服务器的迁移,也不支持精简指令集计算机(reducedinstructionsetcomputer,RISC)平台的系统迁移,并且不能在迁移过程中优化计算资源;如图2提供的一种应用迁移方案,可以实现跨平台间迁移应用,但该技术方案仅迁移了应用所依赖的操作系统(Operationsystem,OS)平台和系统服务,无法迁移应用数据,并且不能在迁移过程中优化计算资源。因此现有技术迁移效率不高,而且不能在迁移过程中优化资源。When migrating applications across platforms, applications often require certain configuration modifications. For example, in PCIE (Peripheral Component Interconnect Express, high-speed peripheral component interconnection) switching architecture servers, there are some differences between PCIE, Ethernet, and InfiniBand. Traditional applications are developed based on Ethernet and InfiniBand architectures, and some configuration modifications are required for migration and deployment to PCIE architectures. In the prior art, as shown in Figure 1, it is a physical to physical (Physicaltophysical, P2P), physical to virtual (Physical to virtual, P2V), virtual to virtual (Virtual to virtual, V2V) system migration solution, which can migrate any x86 architecture server The Windows operating system and domain controller information as well as applications and data can be quickly migrated to HP's latest ProLiant server platform. At the same time, the system migration between physical machines and virtual machines is supported through ProliantEssentials tools and virtual machine (Virtual Machineware, Vmware) technology. However, this technology can only support the HP ProLiant platform, and does not support the migration from traditional servers to PCIE switching architecture servers, nor does it support the system migration of the reduced instruction set computer (RISC) platform, and it cannot optimize computing resources during the migration process; An application migration solution provided in Figure 2 can realize cross-platform migration of applications, but this technical solution only migrates the operating system (Operationsystem, OS) platform and system services on which the application depends, and cannot migrate application data, and cannot be migrated Optimizing computing resources during the process. Therefore, the migration efficiency of the existing technology is not high, and resources cannot be optimized during the migration process.
发明内容Contents of the invention
本发明实施例的目的在于提供一种平台间应用迁移的方法,以解决现有技术中平台间迁移应用时,迁移过程中不能优化计算资源以及仅迁移了应用所依赖的OS及系统服务,不能迁移应用数据的问题。The purpose of the embodiments of the present invention is to provide a method for application migration between platforms to solve the problem that in the prior art, when applications are migrated between platforms, computing resources cannot be optimized during the migration process, and only the OS and system services that the applications depend on are migrated. Issues with migrating application data.
第一方面,一种平台间迁移应用的实现方法,所述方法包括:In the first aspect, a method for implementing an application migration between platforms, the method includes:
与源平台、目标平台建立通信连接,获取所述源平台的系统环境信息及所述目标平台的系统环境信息;Establish a communication connection with the source platform and the target platform, and obtain the system environment information of the source platform and the system environment information of the target platform;
根据所述源平台的系统环境信息及所述目标平台的系统环境信息生成资源转换系数、性能系数参数以及所述目标平台上应用所需的系统环境;Generate resource conversion coefficients, performance coefficient parameters, and system environments required for applications on the target platform according to the system environment information of the source platform and the system environment information of the target platform;
生成迁移前脚本和适配脚本文件;Generate pre-migration script and adaptation script files;
执行所述迁移前脚本和所述迁移适配脚本,配置目标平台系统环境;Execute the pre-migration script and the migration adaptation script to configure the target platform system environment;
从所述源平台迁移应用数据到所述目标平台分区上。Migrate application data from the source platform to the target platform partition.
在第一方面的第一种可能的实现方式中,所述源平台为传统的服务器或虚拟机,所述目标平台为PCIE交换架构服务器。In a first possible implementation manner of the first aspect, the source platform is a traditional server or a virtual machine, and the target platform is a PCIE switch fabric server.
结合第一方面或第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述获取所述源平台的系统环境信息及所述目标平台的系统环境信息具体包括:With reference to the first aspect or the first possible implementation of the first aspect, in the second possible implementation, the acquiring the system environment information of the source platform and the system environment information of the target platform specifically includes:
获取所述源平台的硬件配置信息、操作系统及相关配置信息,获取所述目标平台的硬件信息以及高速外设组件互连PCIE交换架构信息;Obtain the hardware configuration information, operating system and related configuration information of the source platform, obtain the hardware information of the target platform and the high-speed peripheral component interconnection PCIE exchange architecture information;
其中,所述操作系统及相关配置信息包括如下信息中的至少一种:OS版本信息、补丁信息、系统配置信息,所述目标平台的硬件信息包括计算节点、内存节点、IO节点的硬件信息。Wherein, the operating system and related configuration information include at least one of the following information: OS version information, patch information, and system configuration information, and the hardware information of the target platform includes hardware information of computing nodes, memory nodes, and IO nodes.
结合第一方面的第二种可能的实现方式,在第三种可能的实现方式中,所述获取所述源平台的硬件配置信息、操作系统及相关配置信息,获取所述目标平台的硬件信息以及高速外设组件互连PCIE交换架构信息具体包括:In combination with the second possible implementation of the first aspect, in a third possible implementation, the acquisition of the hardware configuration information, operating system and related configuration information of the source platform, and the acquisition of the hardware information of the target platform And high-speed peripheral component interconnection PCIE switching architecture information specifically includes:
通过迁移工具获取所述源平台的硬件配置信息和OS系统及相关配置信息;Obtain the hardware configuration information and OS system and related configuration information of the source platform through a migration tool;
通过目标平台的管理软件获取所述目标平台硬件信息以及PCIE交换架构信息。Obtain the hardware information of the target platform and the PCIE switching architecture information through the management software of the target platform.
在第一方面的第四种可能的实现方式中,所述生成所述目标平台上应用所需的系统环境具体为:In a fourth possible implementation manner of the first aspect, the system environment required for generating the application on the target platform is specifically:
生成所述目标平台的硬件配置项,并结合所述目标平台的硬件信息,通过所述目标平台的管理软件划分所述目标平台分区。The hardware configuration items of the target platform are generated, and in combination with the hardware information of the target platform, the target platform partitions are divided by the management software of the target platform.
结合第一方面或第一方面的第一种可能的实现方式或第一方面的第二种可能的实现方式或第一方面的第三种可能的实现方式或第一方面的第四种可能的实现方式,在第五种可能的实现方式中,所述根据所述源平台的系统环境信息及所述目标平台的系统环境信息生成资源转换系数、性能系数参数具体为:In combination with the first aspect or the first possible implementation of the first aspect or the second possible implementation of the first aspect or the third possible implementation of the first aspect or the fourth possible implementation of the first aspect Implementation manner, in the fifth possible implementation manner, the generation of resource conversion coefficient and performance coefficient parameters according to the system environment information of the source platform and the system environment information of the target platform is specifically:
通过比对所述源平台的系统环境信息、所述目标平台的系统环境信息,以及用户输入的容量规划影响因子,生成资源转换系数、性能系数参数;Generate resource conversion coefficient and performance coefficient parameters by comparing the system environment information of the source platform, the system environment information of the target platform, and the capacity planning influence factor input by the user;
其中,所述容量规划影响因子用于根据所述源平台的现有资源利用率情况及应用的业务增长需求优化迁移后应用所需的资源。Wherein, the capacity planning influencing factor is used to optimize the resources required by the migrated application according to the existing resource utilization of the source platform and the application's business growth requirement.
结合第一方面或第一方面的第一种可能的实现方式或第一方面的第二种可能的实现方式或第一方面的第三种可能的实现方式或第一方面的第四种可能的实现方式或第一方面的第五种可能的实现方式,在第六种可能的实现方式中,所述生成所述目标平台上应用所需的系统环境之后,还包括:In combination with the first aspect or the first possible implementation of the first aspect or the second possible implementation of the first aspect or the third possible implementation of the first aspect or the fourth possible implementation of the first aspect The implementation manner or the fifth possible implementation manner of the first aspect, in the sixth possible implementation manner, after generating the system environment required by the application on the target platform, further includes:
选取所述目标平台OS的安装文件和补丁文件,挂载ISO镜像到所述目标平台的管理软件,在所述目标平台部署OS系统和补丁。Select the installation file and patch file of the target platform OS, mount the ISO image to the management software of the target platform, and deploy the OS system and patch on the target platform.
结合第一方面或第一方面的第一种可能的实现方式或第一方面的第二种可能的实现方式或第一方面的第三种可能的实现方式或第一方面的第四种可能的实现方式或第一方面的第五种可能的实现方式或第一方面的第六种可能的实现方式,在第七种可能的实现方式中,所述生成迁移前脚本和适配脚本文件具体为:In combination with the first aspect or the first possible implementation of the first aspect or the second possible implementation of the first aspect or the third possible implementation of the first aspect or the fourth possible implementation of the first aspect The implementation manner or the fifth possible implementation manner of the first aspect or the sixth possible implementation manner of the first aspect, in the seventh possible implementation manner, the generating the pre-migration script and the adaptation script file is specifically :
通过对所述源平台的OS配置信息及目标平台的OS配置信息进行解析,生成所述迁移前脚本以及适配脚本文件。The pre-migration script and the adaptation script file are generated by parsing the OS configuration information of the source platform and the OS configuration information of the target platform.
结合第一方面或第一方面的第一种可能的实现方式或第一方面的第二种可能的实现方式或第一方面的第三种可能的实现方式或第一方面的第四种可能的实现方式或第一方面的第五种可能的实现方式或第一方面的第六种可能的实现方式或第一方面的第七种可能的实现方式,在第八种可能的实现方式中,所述配置目标平台系统环境具体为:In combination with the first aspect or the first possible implementation of the first aspect or the second possible implementation of the first aspect or the third possible implementation of the first aspect or the fourth possible implementation of the first aspect The implementation manner or the fifth possible implementation manner of the first aspect or the sixth possible implementation manner of the first aspect or the seventh possible implementation manner of the first aspect, in the eighth possible implementation manner, the The specific configuration target platform system environment is as follows:
配置所述目标平台系统环境的磁盘划分、文件系统、账号、网络OS基本信息。Configure the disk partition, file system, account, and network OS basic information of the system environment of the target platform.
结合第一方面或第一方面的第一种可能的实现方式或第一方面的第二种可能的实现方式或第一方面的第三种可能的实现方式或第一方面的第四种可能的实现方式或第一方面的第五种可能的实现方式或第一方面的第六种可能的实现方式或第一方面的第七种可能的实现方式或第一方面的第八种可能的实现方式,在第九种可能的实现方式中,所述方法还包括,In combination with the first aspect or the first possible implementation of the first aspect or the second possible implementation of the first aspect or the third possible implementation of the first aspect or the fourth possible implementation of the first aspect Implementation or the fifth possible implementation of the first aspect or the sixth possible implementation of the first aspect or the seventh possible implementation of the first aspect or the eighth possible implementation of the first aspect , in a ninth possible implementation manner, the method further includes,
通过对所述源平台的OS配置信息及目标平台的OS配置信息进行解析,生成所述迁移后脚本;Generate the post-migration script by parsing the OS configuration information of the source platform and the OS configuration information of the target platform;
在所述从所述源平台迁移应用数据到所述目标平台分区上之后,还包括:After said migrating application data from said source platform to said target platform partition, it also includes:
执行所述迁移后脚本更新所述源平台以及所述目标平台的配置信息,所述配置信息包括IP地址、域名唯一性信息。Executing the post-migration script to update the configuration information of the source platform and the target platform, where the configuration information includes IP address and domain name uniqueness information.
第二方面,一种平台间迁移应用的实现系统,所述系统包括:In the second aspect, a system for implementing migration of applications between platforms, the system includes:
信息获取单元,用于与源平台、目标平台建立通信连接,获取所述源平台的系统环境信息及所述目标平台的系统环境信息;An information acquisition unit, configured to establish a communication connection with the source platform and the target platform, and acquire the system environment information of the source platform and the system environment information of the target platform;
第一处理单元,用于根据所述信息获取单元获取的所述源平台的系统环境信息及所述目标平台的系统环境信息生成资源转换系数、性能系数参数以及所述目标平台上应用所需的系统环境;The first processing unit is configured to generate resource conversion coefficients, performance coefficient parameters, and parameters required by applications on the target platform according to the system environment information of the source platform and the system environment information of the target platform acquired by the information acquisition unit. system environment;
第二处理单元,用于生成迁移前脚本和适配脚本文件;The second processing unit is used to generate a pre-migration script and an adaptation script file;
第三处理单元,用于执行所述迁移前脚本和所述迁移适配脚本,配置目标平台系统环境;The third processing unit is configured to execute the pre-migration script and the migration adaptation script to configure the system environment of the target platform;
迁移单元,用于从所述源平台迁移应用数据到所述目标平台分区上。A migration unit is configured to migrate application data from the source platform to the target platform partition.
在第二方面的第一种可能实现方式中,所述源平台为传统的服务器或虚拟机,所述目标平台为PCIE交换架构服务器。In a first possible implementation manner of the second aspect, the source platform is a traditional server or a virtual machine, and the target platform is a PCIE switch fabric server.
结合第二方面或第二方面的第一种可能实现方式,在第二种可能实现方式种,所述信息获取单元具体用于,获取所述源平台的硬件配置信息、操作系统及相关配置信息,获取所述目标平台的硬件信息以及高速外设组件互连PCIE交换架构信息;In combination with the second aspect or the first possible implementation of the second aspect, in the second possible implementation, the information acquiring unit is specifically configured to acquire hardware configuration information, operating system and related configuration information of the source platform , acquiring hardware information of the target platform and high-speed peripheral component interconnection PCIE switching architecture information;
其中,所述操作系统及相关配置信息包括如下信息中的至少一种:OS版本信息、补丁信息、系统配置信息,所述目标平台的硬件信息包括计算节点、内存节点、IO节点的硬件信息。Wherein, the operating system and related configuration information include at least one of the following information: OS version information, patch information, and system configuration information, and the hardware information of the target platform includes hardware information of computing nodes, memory nodes, and IO nodes.
结合第二方面的第二种可能实现方式,在第三种可能实现方式种,所述信息获取单元具体用于,获取所述源平台的硬件配置信息、操作系统及相关配置信息,获取所述目标平台的硬件信息以及高速外设组件互连PCIE交换架构信息;In combination with the second possible implementation of the second aspect, in the third possible implementation, the information acquiring unit is specifically configured to acquire the hardware configuration information, operating system and related configuration information of the source platform, and acquire the Hardware information of the target platform and high-speed peripheral component interconnection PCIE switching architecture information;
其中,所述操作系统及相关配置信息包括如下信息中的至少一种:OS版本信息、补丁信息、系统配置信息,所述目标平台的硬件信息包括计算节点、内存节点、IO节点的硬件信息。Wherein, the operating system and related configuration information include at least one of the following information: OS version information, patch information, and system configuration information, and the hardware information of the target platform includes hardware information of computing nodes, memory nodes, and IO nodes.
结合第二方面的第三种可能实现方式,在第四种可能实现方式种,所述信息获取单元具体用于,通过迁移工具获取所述源平台的硬件配置信息和OS系统及相关配置信息;以及通过目标平台的管理软件获取所述目标平台硬件信息以及PCIE交换架构信息。In combination with the third possible implementation manner of the second aspect, in the fourth possible implementation manner, the information obtaining unit is specifically configured to obtain the hardware configuration information, OS system and related configuration information of the source platform through a migration tool; And acquire the hardware information of the target platform and the PCIE switching framework information through the management software of the target platform.
结合第二方面或第二方面的第一种可能的实现方式或第二方面的第二种可能的实现方式或第二方面的第三种可能的实现方式或第二方面的第四种可能的实现方式,在第五种可能实现方式中,所述第一处理单元用于生成所述目标平台上应用所需的系统环境,具体为:In combination with the second aspect or the first possible implementation of the second aspect or the second possible implementation of the second aspect or the third possible implementation of the second aspect or the fourth possible implementation of the second aspect Implementation manner, in a fifth possible implementation manner, the first processing unit is configured to generate the system environment required by the application on the target platform, specifically:
所述第一处理单元用于生成所述目标平台的硬件配置项,并结合所述目标平台的硬件信息,通过所述目标平台的管理软件划分所述目标平台分区。The first processing unit is configured to generate hardware configuration items of the target platform, and combine the hardware information of the target platform to divide the target platform partitions through the management software of the target platform.
结合第二方面或第二方面的第一种可能的实现方式或第二方面的第二种可能的实现方式或第二方面的第三种可能的实现方式或第二方面的第四种可能的实现方式或第二方面的第五种可能的实现方式,在第六中可能的实现方式中,所述第一处理单元用于根据所述源平台的系统环境信息及所述目标平台的系统环境信息生成资源转换系数、性能系数参数,具体为:In combination with the second aspect or the first possible implementation of the second aspect or the second possible implementation of the second aspect or the third possible implementation of the second aspect or the fourth possible implementation of the second aspect The implementation manner or the fifth possible implementation manner of the second aspect, in the sixth possible implementation manner, the first processing unit is configured to Information generation resource conversion coefficient and performance coefficient parameters, specifically:
所述第一处理单元用于通过比对所述源平台的系统环境信息、所述目标平台的系统环境信息,以及用户输入的容量规划影响因子,生成资源转换系数、性能系数参数;The first processing unit is configured to generate resource conversion coefficients and performance coefficient parameters by comparing the system environment information of the source platform, the system environment information of the target platform, and the capacity planning influence factor input by the user;
其中,所述容量规划影响因子用于根据所述源平台的现有资源利用率情况及应用的业务增长需求优化迁移后应用所需的资源。Wherein, the capacity planning influencing factor is used to optimize the resources required by the migrated application according to the existing resource utilization of the source platform and the application's business growth requirement.
结合第二方面或第二方面的第一种可能的实现方式或第二方面的第二种可能的实现方式或第二方面的第三种可能的实现方式或第二方面的第四种可能的实现方式或第二方面的第五种可能的实现方式或第二方面的第六种可能的实现方式,在第七种可能的实现方式中,所述系统还包括:In combination with the second aspect or the first possible implementation of the second aspect or the second possible implementation of the second aspect or the third possible implementation of the second aspect or the fourth possible implementation of the second aspect The implementation manner or the fifth possible implementation manner of the second aspect or the sixth possible implementation manner of the second aspect, in the seventh possible implementation manner, the system further includes:
第四处理单元,用于在所述第一处理单元生成所述目标平台上应用所需的系统环境之后,选取所述目标平台OS的安装文件和补丁文件,挂载ISO镜像到所述目标平台的管理软件,在所述目标平台部署OS系统和补丁。The fourth processing unit is used to select the installation file and patch file of the target platform OS after the first processing unit generates the system environment required for the application on the target platform, and mount the ISO image to the target platform The management software deploys the OS system and patches on the target platform.
结合第二方面或第二方面的第一种可能的实现方式或第二方面的第二种可能的实现方式或第二方面的第三种可能的实现方式或第二方面的第四种可能的实现方式或第二方面的第五种可能的实现方式或第二方面的第六种可能的实现方式或第二方面的第七种可能的实现方式,在第八种可能的实现方式中,所述系统还包括:所述第二处理单元具体用于,通过对所述源平台的OS配置信息及目标平台的OS配置信息进行解析,生成所述迁移前脚本以及适配脚本文件。In combination with the second aspect or the first possible implementation of the second aspect or the second possible implementation of the second aspect or the third possible implementation of the second aspect or the fourth possible implementation of the second aspect Implementation or the fifth possible implementation of the second aspect or the sixth possible implementation of the second aspect or the seventh possible implementation of the second aspect, in the eighth possible implementation, the The system further includes: the second processing unit is specifically configured to generate the pre-migration script and the adaptation script file by analyzing the OS configuration information of the source platform and the OS configuration information of the target platform.
结合第二方面或第二方面的第一种可能的实现方式或第二方面的第二种可能的实现方式或第二方面的第三种可能的实现方式或第二方面的第四种可能的实现方式或第二方面的第五种可能的实现方式或第二方面的第六种可能的实现方式或第二方面的第七种可能的实现方式或第二方面的第八种可能的实现方式,在第九种可能的实现方式中,所述第三处理单元具体用于,执行所述迁移前脚本和所述迁移适配脚本,配置所述目标平台系统环境的磁盘划分、文件系统、账号、网络OS基本信息。In combination with the second aspect or the first possible implementation of the second aspect or the second possible implementation of the second aspect or the third possible implementation of the second aspect or the fourth possible implementation of the second aspect Implementation or the fifth possible implementation of the second aspect or the sixth possible implementation of the second aspect or the seventh possible implementation of the second aspect or the eighth possible implementation of the second aspect , in a ninth possible implementation manner, the third processing unit is specifically configured to execute the pre-migration script and the migration adaptation script, and configure the disk partition, file system, and account number of the target platform system environment , Network OS basic information.
结合第二方面或第二方面的第一种可能的实现方式或第二方面的第二种可能的实现方式或第二方面的第三种可能的实现方式或第二方面的第四种可能的实现方式或第二方面的第五种可能的实现方式或第二方面的第六种可能的实现方式或第二方面的第七种可能的实现方式或第二方面的第八种可能的实现方式或第二方面的第九种可能的实现方式,在第十种可能的实现方式中,所述第二处理单元,还用于通过对所述源平台的OS配置信息及目标平台的OS配置信息进行解析,生成所述迁移后脚本;In combination with the second aspect or the first possible implementation of the second aspect or the second possible implementation of the second aspect or the third possible implementation of the second aspect or the fourth possible implementation of the second aspect Implementation or the fifth possible implementation of the second aspect or the sixth possible implementation of the second aspect or the seventh possible implementation of the second aspect or the eighth possible implementation of the second aspect Or the ninth possible implementation of the second aspect, in the tenth possible implementation, the second processing unit is further configured to pass the OS configuration information of the source platform and the OS configuration information of the target platform Perform parsing to generate the post-migration script;
所述系统还包括:The system also includes:
更新单元,用于在所述迁移单元从所述源平台迁移应用数据到所述目标平台分区上之后,执行第二处理单元生成的所述迁移后脚本更新所述源平台以及所述目标平台的配置信息,所述配置信息包括IP地址、域名唯一性信息。An update unit, configured to execute the post-migration script generated by the second processing unit to update the source platform and the target platform after the migration unit migrates the application data from the source platform to the target platform partition. Configuration information, where the configuration information includes IP address and domain name uniqueness information.
第三方面,一种平台间迁移应用的实现系统,所述系统包括:In a third aspect, a system for implementing migration of applications between platforms, the system includes:
采集器,用于在源平台、目标平台建立通信连接后,采集所述源平台的系统环境信息及所述目标平台的系统环境信息;The collector is used to collect the system environment information of the source platform and the system environment information of the target platform after the source platform and the target platform establish a communication connection;
处理器,用于根据所述采集器采集的源平台的系统环境信息及所述目标平台的系统环境信息生成资源转换系数、性能系数参数以及所述目标平台上应用所需的系统环境,生成迁移前脚本和适配脚本文件,执行所述迁移前脚本和所述迁移适配脚本,配置目标平台系统环境;A processor, configured to generate resource conversion coefficients, performance coefficient parameters, and system environments required for applications on the target platform according to the system environment information of the source platform collected by the collector and the system environment information of the target platform, and generate migration Pre-script and adaptation script files, executing the pre-migration script and the migration adaptation script to configure the target platform system environment;
迁移引擎,用于从所述源平台迁移应用数据到所述目标平台分区上。The migration engine is used to migrate application data from the source platform to the target platform partition.
在第三方面的第一种可能实现方式中,所述源平台为传统的服务器或虚拟机,所述目标平台为PCIE交换架构服务器。In a first possible implementation manner of the third aspect, the source platform is a traditional server or a virtual machine, and the target platform is a PCIE switch fabric server.
结合第三方面或第三方面的第一种可能实现方式,在第二种可能实现方式中,所述采集器具体用于,采集所述源平台的硬件配置信息、操作系统及相关配置信息,获取所述目标平台的硬件信息以及高速外设组件互连PCIE交换架构信息;With reference to the third aspect or the first possible implementation manner of the third aspect, in the second possible implementation manner, the collector is specifically configured to collect hardware configuration information, operating system and related configuration information of the source platform, Obtain hardware information of the target platform and high-speed peripheral component interconnection PCIE switching architecture information;
其中,所述操作系统及相关配置信息包括如下信息中的至少一种:OS版本信息、补丁信息、系统配置信息,所述目标平台的硬件信息包括计算节点、内存节点、IO节点的硬件信息。Wherein, the operating system and related configuration information include at least one of the following information: OS version information, patch information, and system configuration information, and the hardware information of the target platform includes hardware information of computing nodes, memory nodes, and IO nodes.
结合第三方面的第二种可能实现方式,在第三种可能实现方式中,所述采集器具体用于,通过迁移工具获取所述源平台的硬件配置信息和OS系统及相关配置信息;以及通过目标平台的管理软件获取所述目标平台硬件信息以及PCIE交换架构信息。With reference to the second possible implementation manner of the third aspect, in the third possible implementation manner, the collector is specifically configured to obtain the hardware configuration information, the OS system, and related configuration information of the source platform through a migration tool; and Obtain the hardware information of the target platform and the PCIE switching architecture information through the management software of the target platform.
结合第三方面或第三方面的第一种可能实现方式或第三方面的第二种可能实现方式或第三方面的第三种可能实现方式,在第四种可能实现方式中,所述处理器具体用于,生成所述目标平台的硬件配置项,并结合所述目标平台的硬件信息,通过所述目标平台的管理软件划分所述目标平台分区;通过比对所述源平台的系统环境信息、目标平台的系统环境信息,以及用户输入的容量规划影响因子,生成资源转换系数、性能系数参数,其中,所述容量规划影响因子用于根据所述源平台的现有资源利用率情况及应用的业务增长需求优化迁移后应用所需的资源;通过对所述源平台的OS配置信息及目标平台的OS配置信息进行解析,生成所述迁移前脚本以及适配脚本文件;以及配置所述目标平台系统环境的磁盘划分、文件系统、账号、网络OS基本信息。In combination with the third aspect or the first possible implementation of the third aspect or the second possible implementation of the third aspect or the third possible implementation of the third aspect, in the fourth possible implementation, the processing The device is specifically used to generate the hardware configuration items of the target platform, and combine the hardware information of the target platform to divide the target platform partitions through the management software of the target platform; by comparing the system environment of the source platform information, the system environment information of the target platform, and the capacity planning influence factor input by the user to generate resource conversion coefficients and performance coefficient parameters, wherein the capacity planning influence factor is used according to the existing resource utilization of the source platform and The business growth requirements of the application optimize the resources required for the application after migration; by analyzing the OS configuration information of the source platform and the OS configuration information of the target platform, generate the pre-migration script and the adaptation script file; and configure the Disk division, file system, account, network OS basic information of the target platform system environment.
结合第三方面或第三方面的第一种可能实现方式或第三方面的第二种可能实现方式第三方面的第三种可能实现方式第三方面的第四种可能实现方式,在第五种可能实现方式中,所述处理器还用于,在生成所述目标平台上应用所需的系统环境之后,选取所述目标平台OS的安装文件和补丁文件,挂载ISO镜像到所述目标平台的管理软件,在所述目标平台部署OS系统和补丁;以及通过对所述源平台的OS配置信息及目标平台的OS配置信息进行解析,生成所述迁移后脚本,在从所述源平台迁移应用数据到所述目标平台分区上之后,执行所述迁移后脚本更新所述源平台以及所述目标平台的配置信息,所述配置信息包括IP地址、域名唯一性信息。Combining the third aspect or the first possible implementation of the third aspect or the second possible implementation of the third aspect The third possible implementation of the third aspect The fourth possible implementation of the third aspect, in the fifth In a possible implementation manner, the processor is further configured to, after generating the system environment required by the application on the target platform, select the installation file and patch file of the target platform OS, and mount the ISO image to the target The management software of the platform deploys the OS system and the patch on the target platform; and by parsing the OS configuration information of the source platform and the OS configuration information of the target platform, the script after migration is generated, and from the source platform After migrating the application data to the partition of the target platform, execute the post-migration script to update the configuration information of the source platform and the target platform, where the configuration information includes IP address and domain name uniqueness information.
本发明实施例通过收集比对源服务器及目标服务器硬件配置信息,得出目标服务器的硬件配置项,并结合可选参数对目标服务器进行资源优化配置,从而实现了自动化系统无缝迁移。利用本发明,能够提高企业用户平台间应用迁移效率,大大减小用户迁移工作量和迁移风险,并且在迁移过程中优化资源配置。The embodiment of the present invention obtains the hardware configuration items of the target server by collecting and comparing the hardware configuration information of the source server and the target server, and optimizes the resource configuration of the target server in combination with optional parameters, thereby realizing the seamless migration of the automation system. The invention can improve the application migration efficiency between enterprise user platforms, greatly reduce the user migration workload and migration risk, and optimize resource allocation in the migration process.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only of the present invention. For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without paying creative efforts.
图1是现有技术提供的ProLiant服务器平台的系统迁移技术架构图;Fig. 1 is a system migration technical architecture diagram of the ProLiant server platform provided by the prior art;
图2是现有技术提供的一种应用迁移方案流程图;FIG. 2 is a flowchart of an application migration solution provided by the prior art;
图3是本发明实施例提供的平台间迁移应用的总体架构图;FIG. 3 is an overall architecture diagram of an inter-platform migration application provided by an embodiment of the present invention;
图4是本发明实施例提供的平台间迁移应用实现方法流程图;FIG. 4 is a flowchart of a method for implementing an application migration between platforms provided by an embodiment of the present invention;
图5是本发明另一实施例提供的平台间迁移应用实现方法流程图;FIG. 5 is a flow chart of a method for implementing an application migration between platforms provided by another embodiment of the present invention;
图6是本发明实施例提供的平台间迁移应用实现系统的组成结构图;FIG. 6 is a structural diagram of a system for implementing an application migration between platforms provided by an embodiment of the present invention;
图7是本发明另一实施例提供的平台间迁移应用实现系统的组成结构图;FIG. 7 is a structural diagram of a system for implementing application migration between platforms provided by another embodiment of the present invention;
图8是本发明实施例提供的从传统服务器或虚拟机平台迁移应用到PCIE交换架构平台上的交互流程图;Fig. 8 is the interactive flow chart that migrates application from traditional server or virtual machine platform to PCIE switching framework platform provided by the embodiment of the present invention;
图9是本发明实施例提供的平台间迁移应用实现系统的组成结构图。FIG. 9 is a structural diagram of a system for implementing application migration between platforms provided by an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
图3示出了本发明的总体架构,以及根据本发明的实施例的用于平台间迁移应用的系统装置,包括迁移工具终端301、目标平台的管理软件302、源服务器303以及目标服务器304。FIG. 3 shows the overall architecture of the present invention, and a system device for inter-platform migration applications according to an embodiment of the present invention, including a migration tool terminal 301 , management software 302 of a target platform, a source server 303 and a target server 304 .
在本发明实施例中,迁移工具终端301与源服务器303、目标服务器304及目标平台的管理软件302处于同一网络中,并且可以相互通信,该网络不限于局域网(LocalAreaNetwork,LAN)或广域网(WAN,WideAreaNetwork)中。源服务器303可以是传统物理服务器(例如物理机架服务器RHEL(RedHatEnterpriseLinux)或者虚拟机,目标服务器304可以为同一CPU平台的PCIE交换架构服务器,目标服务器支持硬分区。迁移工具终端301包含源服务器信息采集器、硬件资源转换器、OS配置适配器、数据迁移引擎等组件。目标平台的管理软件302用于获取目标服务器的CPU、内存、IO等硬件信息。In the embodiment of the present invention, the migration tool terminal 301 is in the same network as the source server 303, the target server 304 and the management software 302 of the target platform, and can communicate with each other. The network is not limited to a local area network (LocalAreaNetwork, LAN) or a wide area network (WAN). , WideAreaNetwork). The source server 303 can be a traditional physical server (such as a physical rack server RHEL (RedHatEnterpriseLinux) or a virtual machine, and the target server 304 can be a PCIE switching fabric server of the same CPU platform, and the target server supports hard partitions. The migration tool terminal 301 contains source server information Components such as a collector, a hardware resource converter, an OS configuration adapter, and a data migration engine. The management software 302 of the target platform is used to obtain hardware information such as CPU, memory, and IO of the target server.
图4示出了本发明实施例提供的平台间迁移应用的实现流程,详述如下:Figure 4 shows the implementation process of the inter-platform migration application provided by the embodiment of the present invention, which is described in detail as follows:
在步骤S401中,与源平台、目标平台建立通信连接,获取所述源平台的系统环境信息及所述目标平台的系统环境信息。In step S401, a communication connection is established with a source platform and a target platform, and system environment information of the source platform and system environment information of the target platform are acquired.
优选的是,所述源平台为传统的服务器(例如Infiniband、以太网交换等架构的服务器)或虚拟机,所述目标平台为PCIE交换架构服务器。Preferably, the source platform is a traditional server (such as a server of Infiniband, Ethernet switching and other architectures) or a virtual machine, and the target platform is a PCIE switching architecture server.
具体的是,所述获取所述源平台的系统环境信息及所述目标平台的系统环境信息的包括:Specifically, the acquisition of the system environment information of the source platform and the system environment information of the target platform includes:
获取所述源平台的硬件配置信息、操作系统及其他相关配置信息,获取所述目标平台的硬件信息以及高速外设组件互连PCIE交换架构等信息;Obtain the hardware configuration information, operating system and other relevant configuration information of the source platform, obtain the hardware information of the target platform and information such as high-speed peripheral component interconnection PCIE switching architecture;
其中,所述操作系统及相关配置信息包括但不限于如下信息中的至少一种:OS版本信息、补丁信息、系统配置信息,所述目标平台的硬件信息包括但不限于计算节点、内存节点、IO节点的硬件信息。Wherein, the operating system and related configuration information include but are not limited to at least one of the following information: OS version information, patch information, system configuration information, and the hardware information of the target platform includes but is not limited to computing nodes, memory nodes, Hardware information of the IO node.
优选的是,所述获取所述源平台的硬件配置信息、操作系统及相关配置信息,获取所述目标平台的硬件信息以及高速外设组件互连PCIE交换架构信息包括:Preferably, said acquisition of hardware configuration information, operating system and related configuration information of said source platform, acquisition of hardware information of said target platform and high-speed peripheral component interconnection PCIE switching architecture information include:
通过迁移工具获取所述源平台的硬件配置信息和OS系统及相关配置信息;以及Obtain the hardware configuration information and OS system and related configuration information of the source platform through a migration tool; and
通过目标平台的管理软件获取所述目标平台硬件信息以及PCIE交换架构信息。Obtain the hardware information of the target platform and the PCIE switching architecture information through the management software of the target platform.
在步骤S402中,根据所述源平台的系统环境信息及所述目标平台的系统环境信息生成资源转换系数、性能系数参数以及所述目标平台上应用所需的系统环境。In step S402, a resource conversion coefficient, a performance coefficient parameter, and a system environment required by applications on the target platform are generated according to the system environment information of the source platform and the system environment information of the target platform.
在本实施例中,所述根据所述源平台的系统环境信息及所述目标平台的系统环境信息生成资源转换系数、性能系数参数具体为:In this embodiment, the generation of resource conversion coefficient and performance coefficient parameters according to the system environment information of the source platform and the system environment information of the target platform is specifically:
通过比对所述源平台的系统环境信息、目标平台的系统环境信息,以及用户输入的容量规划影响因子,生成资源转换系数、性能系数参数;Generate resource conversion coefficient and performance coefficient parameters by comparing the system environment information of the source platform, the system environment information of the target platform, and the capacity planning influence factor input by the user;
其中,所述容量规划影响因子用于根据所述源平台的现有资源利用率情况及应用的业务增长需求优化迁移后应用所需的资源。Wherein, the capacity planning impact factor is used to optimize the resources required by the migrated application according to the existing resource utilization of the source platform and the application's business growth requirements.
所述生成所述目标平台上应用所需的系统环境的具体为:The system environment required for generating the application on the target platform is specifically:
生成所述目标平台的硬件配置项,并结合所述目标平台的硬件信息,通过所述目标平台的管理软件划分所述目标平台分区。The hardware configuration items of the target platform are generated, and in combination with the hardware information of the target platform, the target platform partitions are divided by the management software of the target platform.
优选的是,本实施例在所述生成所述目标平台上应用所需的系统环境之后,还包括:Preferably, after generating the system environment required for the application on the target platform, this embodiment further includes:
选取所述目标平台OS的安装文件和补丁文件,挂载ISO镜像到所述目标平台的管理软件,在所述目标平台部署OS系统和补丁。Select the installation file and patch file of the target platform OS, mount the ISO image to the management software of the target platform, and deploy the OS system and patch on the target platform.
在步骤S403中,生成迁移前脚本和适配脚本文件。In step S403, a pre-migration script and an adaptation script file are generated.
在本实施例中,所述生成迁移前脚本和适配脚本文件的步骤具体为:In this embodiment, the steps of generating the pre-migration script and the adaptation script file are specifically:
通过对所述源平台的OS配置信息及目标平台的OS配置信息进行解析,生成所述迁移前脚本以及适配脚本文件,通过PCIE交换网络到传统交换总线的配置参数转换,生成可执行脚本。通过对所述源平台的OS配置信息及目标平台的OS配置信息进行解析,生成所述迁移后脚本。By parsing the OS configuration information of the source platform and the OS configuration information of the target platform, the pre-migration script and the adaptation script file are generated, and an executable script is generated by converting the configuration parameters from the PCIE switching network to the traditional switching bus. The post-migration script is generated by parsing the OS configuration information of the source platform and the OS configuration information of the target platform.
在步骤S404中,执行所述迁移前脚本和所述迁移适配脚本,配置目标平台系统环境。In step S404, the pre-migration script and the migration adaptation script are executed to configure the system environment of the target platform.
在步骤S405中,从所述源平台迁移应用数据(包括但不限于操作系统(OS)数据)到所述目标平台分区上。In step S405, application data (including but not limited to operating system (OS) data) is migrated from the source platform to the target platform partition.
在本实施例中,所述配置目标平台系统环境具体为:配置所述目标平台系统环境的磁盘划分、文件系统、账号、网络OS基本信息。In this embodiment, the configuring the system environment of the target platform specifically includes: configuring disk partitions, file systems, accounts, and basic network OS information of the system environment of the target platform.
优选的是,本实施例在所述从所述源平台迁移数据到所述目标平台分区上之后,还包括:Preferably, after the data is migrated from the source platform to the target platform partition, this embodiment further includes:
执行所述迁移后脚本更新所述源平台以及所述目标平台的配置信息,所述配置信息包括但不限于IP地址、域名唯一性信息。Executing the post-migration script to update the configuration information of the source platform and the target platform, the configuration information includes but not limited to IP address and domain name unique information.
图5示出了本发明另一实施例提供的平台间迁移应用的实现流程,详述如下:FIG. 5 shows the implementation process of an inter-platform migration application provided by another embodiment of the present invention, which is described in detail as follows:
在步骤S501中,迁移工具终端与源服务器、目标服务器以及管理软件建立通信连接后,获取源服务器的硬件配置信息和OS版本、补丁、系统配置等信息;In step S501, after the migration tool terminal establishes a communication connection with the source server, the target server and the management software, it obtains the hardware configuration information, OS version, patch, system configuration and other information of the source server;
作为本发明的一个实施例,迁移工具终端与源服务器、目标服务器以及管理软件处于同一网络中,可以通过但并不限于安全外壳协议(安全外壳协议(SecureShell,ssh)或电传网络(teletypenetwork,telnet)等协议建立通信连接,且源服务器无需安装代理(Agent)环境,直接通过迁移工具采集源服务器的硬件配置信息和OS版本、补丁、系统配置等信息。As an embodiment of the present invention, the migration tool terminal is in the same network as the source server, the target server and the management software, and can pass through but not limited to the secure shell protocol (SecureShell, ssh) or the teletype network (teletypenetwork, telnet) and other protocols to establish a communication connection, and the source server does not need to install an agent (Agent) environment, and directly collects the hardware configuration information, OS version, patch, system configuration and other information of the source server through the migration tool.
在步骤S502中,获取目标服务器计算节点、内存节点、IO节点等硬件信息以及PCIE交换架构信息;作为本发明的实施例,步骤S402具体为:In step S502, hardware information such as target server computing nodes, memory nodes, and IO nodes and PCIE switching architecture information are obtained; as an embodiment of the present invention, step S402 is specifically:
迁移工具终端通过向目标平台的管理软件发送获取目标服务器硬件资源信息指令,管理软件接收指令后向迁移工具终端返回目标服务器计算节点、内存节点、IO节点等硬件信息以及PCIE交换架构信息。The migration tool terminal sends an instruction to obtain the hardware resource information of the target server to the management software of the target platform. After receiving the instruction, the management software returns hardware information such as computing nodes, memory nodes, and IO nodes of the target server and PCIE switching architecture information to the migration tool terminal.
在步骤S503中,生成资源转换系数、性能系数等参数,生成目标服务器硬件配置项,并划分目标服务器分区;In step S503, parameters such as resource conversion coefficients and performance coefficients are generated, target server hardware configuration items are generated, and target server partitions are divided;
在该步骤中,迁移工具终端通过比对源服务器的硬件配置信息和OS版本、补丁、系统配置等信息以及目标服务器计算节点、内存节点、IO节点等硬件信息和PCIE交换架构信息,生成资源转化系数、性能系数,所述迁移工具终端还包括资源映射模型。作为本发明的一个实施例,该步骤还包括接收系统输入的容量规划影响因子。迁移工具终端通过上述信息生成目标服务器硬件配置项,组合硬件CPU、内存、IO资源等,通过管理软件划分目标服务器分区。为进一步说明该生成资源转化系数、性能系数步骤,采用公式说明表示为:资源映射模型由CPU、内存、IO等配置项组成,C={C1,C2,...,Cn},各项配置由 其中“Cn”为源服务器其中一个配置项的转换系数,对应源系统所使用的资源数量;“Kn”为该配置项资源转换系数,表明从源服务器到目标服务器的资源转换系数,数值越大表明对性能的损耗越大;“Pn”为该资源的性能系数,对应源服务器到目标服务器的的性能系数,数值越大表明目标服务器性能越差;为该资源的容量规划影响因子,说明目标系统上应用平台考虑未来增长情况需保留的性能冗余量。通过F(C1)、F(C2)、…、F(Cn)计算得到目标服务器的硬件配置项C’={C1’,C2’,...,Cn’}。例如,假设源服务器的C={20cores,256GB,2TB,20GE},分别代表20个E5逻辑CPU,256GB内存条,2TB硬盘,20Gb网络带宽,迁移到E7架构的PCIE目标服务器平台上,其中,CPU从以太网架构到PCIE架构的资源转换系数Kn=1.1,E5CPU到E7CPU的性能系数Pn=0.8,源服务器中CPU的转换系数Cn=20,CPU容量规划影响因子
在步骤S504中,在目标服务器部署OS系统和补丁;In step S504, the OS system and patches are deployed on the target server;
在该步骤中,首先选取目标服务器OS安装文件和补丁文件,并挂载ISO镜像到目标平台的管理软件,在目标服务器部署OS系统和补丁。In this step, first select the target server OS installation file and patch file, and mount the ISO image to the management software of the target platform, and deploy the OS system and patch on the target server.
在步骤S505中,迁移工具终端跟进源服务器OS配置信息生成迁移前脚本和适配脚本文件;In step S505, the migration tool terminal follows up the source server OS configuration information to generate a pre-migration script and an adaptation script file;
作为本发明的一个实施例,在该步骤中,通过对源服务器及目标服务器关键OS配置信息的解析,生成迁移前脚本、迁移后脚本以及适配脚本文件,通过PCIE交换网络到传统交换总线的配置参数转换,生成可执行脚本。As an embodiment of the present invention, in this step, by analyzing the key OS configuration information of the source server and the target server, generate a pre-migration script, a post-migration script, and an adaptation script file, and pass through the PCIE switching network to the traditional switching bus Convert configuration parameters to generate executable scripts.
在步骤S506中,迁移工具终端与目标服务器分区建立通信连接,远程执行迁移前脚本和迁移适配脚本,配置磁盘划分、文件系统、账号、网络等OS基本信息;In step S506, the migration tool terminal establishes a communication connection with the target server partition, remotely executes the pre-migration script and the migration adaptation script, and configures basic OS information such as disk partitions, file systems, accounts, and networks;
在步骤S507中,迁移工具终端控制从源服务器迁移数据到目标服务器分区上;In step S507, the migration tool terminal controls data migration from the source server to the partition of the target server;
作为本发明的一个实施例,在该步骤中,所述迁移数据包括OS系统、应用及相关数据。As an embodiment of the present invention, in this step, the migration data includes OS system, application and related data.
作为本发明的一个实施例,在该步骤完成后,在完成应用迁移后,脚本自动更新源平台、目标平台相关配置信息,所述配置信息包括但不限于服务器IP、域名等唯一性信息。As an embodiment of the present invention, after this step is completed, after the application migration is completed, the script automatically updates the configuration information related to the source platform and the target platform, and the configuration information includes but not limited to unique information such as server IP and domain name.
图6示出了本发明实施例提供的平台间迁移应用实现系统的组成结构,为了便于说明,仅示出了与本发明实施例相关的部分。Fig. 6 shows the composition structure of the system for implementing application migration between platforms provided by the embodiment of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown.
该平台间迁移应用实现系统6包括信息获取单元61、第一处理单元62、第二处理单元63、第三处理单元64以及迁移单元65。其中,各单元的具体功能如下:The inter-platform migration application implementation system 6 includes an information acquisition unit 61 , a first processing unit 62 , a second processing unit 63 , a third processing unit 64 and a migration unit 65 . Among them, the specific functions of each unit are as follows:
信息获取单元61,用于与源平台、目标平台建立通信连接,获取所述源平台的系统环境信息及所述目标平台的系统环境信息;An information acquisition unit 61, configured to establish a communication connection with the source platform and the target platform, and acquire the system environment information of the source platform and the system environment information of the target platform;
第一处理单元62,用于根据所述信息获取单元61获取的源平台的系统环境信息及所述目标平台的系统环境信息生成资源转换系数、性能系数参数以及所述目标平台上应用所需的系统环境;The first processing unit 62 is configured to generate resource conversion coefficients, performance coefficient parameters, and parameters required by applications on the target platform according to the system environment information of the source platform acquired by the information acquisition unit 61 and the system environment information of the target platform. system environment;
第二处理单元63,用于生成迁移前脚本和适配脚本文件;The second processing unit 63 is configured to generate a pre-migration script and an adaptation script file;
第三处理单元64,用于执行所述迁移前脚本和所述迁移适配脚本,配置目标平台系统环境;The third processing unit 64 is configured to execute the pre-migration script and the migration adaptation script to configure the system environment of the target platform;
迁移单元65,用于从所述源平台迁移应用数据到所述目标平台分区上。Migration unit 65, configured to migrate application data from the source platform to the target platform partition.
进一步的,所述信息获取单元61具体用于,获取所述源平台的硬件配置信息、操作系统及相关配置信息,获取所述目标平台的硬件信息以及高速外设组件互连PCIE交换架构信息;Further, the information obtaining unit 61 is specifically used to obtain hardware configuration information, operating system and related configuration information of the source platform, obtain hardware information of the target platform and high-speed peripheral component interconnection PCIE switching architecture information;
其中,所述操作系统及相关配置信息包括如下信息中的至少一种:OS版本信息、补丁信息、系统配置信息,所述目标平台的硬件信息包括但不限于计算节点、内存节点、IO节点的硬件信息。Wherein, the operating system and related configuration information include at least one of the following information: OS version information, patch information, and system configuration information, and the hardware information of the target platform includes but is not limited to computing nodes, memory nodes, and IO nodes. hardware information.
进一步的,所述信息获取单元具体用于,通过迁移工具获取所述源平台的硬件配置信息和OS系统及相关配置信息;以及通过目标平台的管理软件获取所述目标平台硬件信息以及PCIE交换架构信息。Further, the information obtaining unit is specifically used to obtain the hardware configuration information and OS system and related configuration information of the source platform through a migration tool; and obtain the target platform hardware information and PCIE switching architecture through the management software of the target platform information.
进一步的,所述第一处理单元62用于生成所述目标平台上应用所需的系统环境,具体为生成所述目标平台的硬件配置项,并结合所述目标平台的硬件信息,通过目标平台的管理软件划分所述目标平台分区;Further, the first processing unit 62 is used to generate the system environment required by the application on the target platform, specifically generating the hardware configuration items of the target platform, and combining the hardware information of the target platform, through the target platform The management software divides the target platform into partitions;
所述第一处理单元用于根据所述源平台的系统环境信息及所述目标平台的系统环境信息生成资源转换系数、性能系数参数,具体为:The first processing unit is used to generate resource conversion coefficients and performance coefficient parameters according to the system environment information of the source platform and the system environment information of the target platform, specifically:
所述第一处理单元用于通过比对所述源平台的系统环境信息、所述目标平台的系统环境信息,以及用户输入的容量规划影响因子,生成资源转换系数、性能系数参数;The first processing unit is configured to generate resource conversion coefficients and performance coefficient parameters by comparing the system environment information of the source platform, the system environment information of the target platform, and the capacity planning influence factor input by the user;
其中,所述容量规划影响因子用于根据所述源平台的现有资源利用率情况及应用的业务增长需求优化迁移后应用所需的资源Wherein, the capacity planning impact factor is used to optimize the resources required by the migrated application according to the existing resource utilization of the source platform and the business growth demand of the application
进一步的,所述系统6还包括:Further, the system 6 also includes:
第四处理单元66,用于在所述第一处理单元61生成所述目标平台上应用所需的系统环境之后,选取所述目标平台OS的安装文件和补丁文件,挂载ISO镜像到所述目标平台的管理软件,在所述目标平台部署OS系统和补丁。The fourth processing unit 66 is used to select the installation file and patch file of the target platform OS after the first processing unit 61 generates the system environment required for the application on the target platform, and mount the ISO image to the The management software of the target platform deploys the OS system and patches on the target platform.
进一步的,所述第二处理单元63具体用于,通过对所述源平台的OS配置信息及目标平台的OS配置信息进行解析,生成所述迁移前脚本以及适配脚本文件,通过PCIE交换网络到传统交换总线的配置参数转换,生成可执行脚本;Further, the second processing unit 63 is specifically configured to, by parsing the OS configuration information of the source platform and the OS configuration information of the target platform, generate the pre-migration script and the adaptation script file, and pass the PCIE switching network Conversion of configuration parameters to traditional switching buses to generate executable scripts;
所述第二处理单元,还用于通过对所述源平台的OS配置信息及目标平台的OS配置信息进行解析,生成所述迁移后脚本。The second processing unit is further configured to generate the post-migration script by parsing the OS configuration information of the source platform and the OS configuration information of the target platform.
所述第三处理单元64具体用于,执行所述迁移前脚本和所述迁移适配脚本,配置所述目标平台系统环境的磁盘划分、文件系统、账号、网络OS基本信息。The third processing unit 64 is specifically configured to execute the pre-migration script and the migration adaptation script, and configure the disk partition, file system, account, and network OS basic information of the target platform system environment.
进一步的,所述系统6还包括:Further, the system 6 also includes:
更新单元67,用于在所述迁移单元65从所述源平台迁移应用数据到所述目标平台分区上之后,执行第二处理单元生成的所述迁移后脚本更新所述源平台以及所述目标平台的配置信息,所述配置信息包括但不限于IP地址、域名唯一性信息。An update unit 67, configured to execute the post-migration script generated by the second processing unit to update the source platform and the target platform after the migration unit 65 migrates the application data from the source platform to the target platform partition. The configuration information of the platform, the configuration information includes but not limited to the unique information of IP address and domain name.
优选的是,所述源平台为传统的服务器或虚拟机,所述目标平台为PCIE交换架构服务器。Preferably, the source platform is a traditional server or a virtual machine, and the target platform is a PCIE switching fabric server.
本实施例提供的平台间迁移应用实现系统6可以使用在前述对应的平台间迁移应用实现方法,详情参见上述平台间迁移应用实现方法图4以及图5对应实施例的相关描述,在此不再赘述。The inter-platform application migration implementation system 6 provided in this embodiment can use the above-mentioned corresponding inter-platform application migration implementation method. For details, refer to the above-mentioned inter-platform application migration implementation method in FIG. 4 and the relevant description of the corresponding embodiment in FIG. repeat.
图7示出了本发明另一实施例提供的用于平台间迁移应用实现系统的组成结构,为了便于说明,仅示出了与本实施例相关的部分。FIG. 7 shows the composition structure of a system for realizing application migration between platforms provided by another embodiment of the present invention. For the convenience of description, only the parts related to this embodiment are shown.
该平台间迁移应用实现系统包括迁移工具终端71及目标平台的管理软件72。在本发明中,目标平台的管理软件72安装在目标服务器上,主要用于根据迁移工具终端71的指令收集的目标服务器计算节点、内存节点、IO节点等硬件信息、PCIE交换架构信息以及对目标服务器进行分区等操作。其中迁移工具终端还包括:The inter-platform migration application implementation system includes a migration tool terminal 71 and management software 72 of the target platform. In the present invention, the management software 72 of the target platform is installed on the target server. The server performs operations such as partitioning. The migration tool terminal also includes:
指令接收模块711、源服务器信息采集模块712、硬件资源转换模块713、OS适配器模块714、数据迁移引擎模块715。为了便于理解,分开进行描述:Instruction receiving module 711 , source server information collecting module 712 , hardware resource conversion module 713 , OS adapter module 714 , data migration engine module 715 . For ease of understanding, describe them separately:
指令接收模块711,主要用于接收迁移工程师输入的指令,该指令包括但不限于容量规划影响因子以及执行迁移等。The instruction receiving module 711 is mainly used to receive instructions input by the migration engineer, the instructions include but not limited to factors affecting capacity planning and migration execution.
源服务器信息采集模块712,主要用于获取源服务器的硬件配置信息和OS版本、补丁、系统配置等信息。The source server information collection module 712 is mainly used to obtain hardware configuration information, OS version, patch, system configuration and other information of the source server.
硬件资源转换模块713,主要用于结合源服务器的硬件配置信息和OS版本、补丁、系统配置等信息以及目标服务器计算节点、内存节点、IO节点等硬件信息、PCIE交换架构信息,通过比对(如Infiniband、以太网交换等架构的类型与PCIE架构的类型进行比对)生成相关CPU、内存、IO等资源转换系数,具体的,可以按照服务器的互连架构类型与PCIE架构,以及节点大小等作为通过经验给出合适的资源的转换系数,通过对比输入的条件查询数据表格得出资源转换系数;并通过源服务器内部总线交换架构与目标服务器PCIE交换架构的对比(例如按照源服务器与目标服务器的性能规格进行比对转换,如源服务器与目标服务器之间CPU的逻辑core数、频率,内存的容量、Rank数,磁盘的转数、磁盘类型等)分析给出计算资源性能系数;以及接收可输入性参数容量规划影响因子,用于将源服务器的现有资源利用率情况和后续业务增长需求纳入计算模型,以得到迁移后应用所需的计算资源。最后结合资源转换系数、性能系数以及容量规划影响因子,通过资源映射模型生成目标服务器硬件配置项。The hardware resource conversion module 713 is mainly used to combine the hardware configuration information of the source server and information such as OS versions, patches, system configurations, and hardware information such as computing nodes, memory nodes, and IO nodes of the target server, and PCIE exchange architecture information, and compare ( For example, compare the type of Infiniband, Ethernet switching and other architectures with the type of PCIE architecture) to generate conversion coefficients for resources such as CPU, memory, and IO. Specifically, it can be based on the interconnection architecture type of the server and the PCIE architecture, as well as the node size, etc. As the conversion coefficient of the appropriate resource given by experience, the resource conversion coefficient is obtained by comparing the input condition query data table; and through the comparison of the internal bus switching architecture of the source server and the PCIE switching architecture of the target server (for example, according to the source server and the target server Compare and convert the performance specifications of the source server and the target server, such as the logical core number and frequency of the CPU between the source server and the target server, the capacity of the memory, the number of ranks, the number of rotations of the disk, the type of the disk, etc.) analysis gives the computing resource performance coefficient; and receives The inputtable parameter capacity planning influence factor is used to incorporate the current resource utilization of the source server and subsequent business growth requirements into the calculation model to obtain the required computing resources for the migrated application. Finally, combined with the resource conversion coefficient, performance coefficient and capacity planning impact factor, the target server hardware configuration items are generated through the resource mapping model.
OS配置适配器模块714,主要用于通过OS基本配置得到OS相关版本、补丁、系统服务配置信息,在OS镜像文件库和补丁库中选取对应OS匹配的ISO文件镜像挂载管理软件,完成目标服务器上OS的安装部署;以及通过源服务器关键OS配置信息的解析,生成迁移前脚本,划分好磁盘分区、建立文件系统、账号权限等。The OS configuration adapter module 714 is mainly used to obtain OS-related versions, patches, and system service configuration information through the basic OS configuration, select the corresponding ISO file mirror image mount management software in the OS image file library and patch library, and complete the target server. Install and deploy the OS on the server; and analyze the key OS configuration information of the source server to generate pre-migration scripts, divide disk partitions, establish file systems, account permissions, etc.
作为本发明的一个实施例,其中OS配置适配器模块714还用于通过PCIE交换网络到传统交换总线的配置参数转换,生成可执行脚本,完成PCIE转以太网的驱动部署和参数配置,保证上层应用和数据可无缝迁移。As an embodiment of the present invention, the OS configuration adapter module 714 is also used to convert the configuration parameters from the PCIE switching network to the traditional switching bus, generate executable scripts, complete the driver deployment and parameter configuration of PCIE to Ethernet, and ensure that the upper layer application and data can be migrated seamlessly.
数据迁移引擎模块715,主要用于控制从源服务器迁移数据到目标分区上。The data migration engine module 715 is mainly used to control data migration from the source server to the target partition.
其中,硬件资源转换模块713具体包括了:Wherein, the hardware resource conversion module 713 specifically includes:
资源映射模型模块7131,主要用于计算处理得到目标服务器的硬件配置项。采用公式说明表示为:资源映射模型由CPU、内存、IO等配置项组成,C={C1,C2,...,Cn},各项配置由
其中,OS配置适配器模块714具体包括了:Wherein, the OS configuration adapter module 714 specifically includes:
OS镜像文件模块7141,主要用于存储OS镜像文件库。The OS image file module 7141 is mainly used to store the OS image file library.
补丁库模块7142,主要用于存储OS所需的补丁库。The patch library module 7142 is mainly used to store the patch library required by the OS.
脚本模型模块7143,主要用于生成迁移前脚本、适配脚本以及迁移后脚本。The script model module 7143 is mainly used to generate pre-migration scripts, adaptation scripts and post-migration scripts.
本实施例提供的平台间迁移应用实现系统可以使用在前述对应的平台间迁移应用实现方法,详情参见上述平台间迁移应用实现方法图4以及图5对应实施例的相关描述,在此不再赘述。The inter-platform application migration implementation system provided in this embodiment can use the above-mentioned corresponding inter-platform application migration implementation method. For details, refer to the above-mentioned inter-platform application migration implementation method in FIG. 4 and the relevant description of the corresponding embodiment in FIG. .
为了进一步理解本发明,图8示出了本发明实施例提供的从传统服务器或虚拟机平台迁移应用到PCIE交换架构平台上的操作流程,详述如下:In order to further understand the present invention, FIG. 8 shows the operation process of migrating applications from a traditional server or a virtual machine platform to a PCIE switching architecture platform provided by an embodiment of the present invention. The details are as follows:
1、在目标服务器上安装管理软件,与目标服务器建立连接。1. Install the management software on the target server and establish a connection with the target server.
2、启动迁移工具终端,通过ssh或telnet等协议与源服务器、目标服务器及目标平台的管理软件建立通信连接。2. Start the migration tool terminal, and establish a communication connection with the source server, the target server, and the management software of the target platform through protocols such as ssh or telnet.
3、迁移工具终端采集源服务器的硬件配置信息和OS版本、补丁、系统配置信息。3. The migration tool terminal collects the hardware configuration information, OS version, patch, and system configuration information of the source server.
需要说明的是,源服务器无需Agent代理,通过迁移工具直接采集上述信息。It should be noted that the source server does not need an agent, and the above information is collected directly through the migration tool.
4、向目标平台的管理软件发送获取目标服务器硬件资源需求。4. Send the target server hardware resource requirements to the management software of the target platform.
5、目标平台的管理软件将收集的目标服务器计算节点、内存节点、IO节点等硬件信息以及PCIE交换架构信息返回给迁移工具终端。5. The management software of the target platform returns the collected target server computing node, memory node, IO node and other hardware information and PCIE switching architecture information to the migration tool terminal.
6、迁移工具终端根据上述信息生成资源转换系数、性能系数,并接收迁移工具终端输入的容量管理因子,通过模型转化器生成目标服务器硬件配置项。6. The migration tool terminal generates resource conversion coefficients and performance coefficients based on the above information, receives the capacity management factors input by the migration tool terminal, and generates target server hardware configuration items through the model converter.
7、迁移工具终端根据上述参数,组合硬件CPU、内存、IO资源,给目标服务器规划分区,并向目标平台的管理软件发送分区指令。7. The migration tool terminal combines hardware CPU, memory, and IO resources according to the above parameters, plans partitions for the target server, and sends partition commands to the management software of the target platform.
8、管理软件接收指令,对目标服务器进行分区。8. The management software receives the instruction and partitions the target server.
9、通过OS配置适配器选取OS安装文件和补丁文件,挂载ISO镜像到管理软件。9. Select OS installation files and patch files through the OS configuration adapter, and mount the ISO image to the management software.
10、由目标服务器分区上部署OS系统和补丁。10. Deploy the OS system and patches on the target server partition.
11、OS配置适配器跟进源服务器OS配置信息生成迁移前脚本和适配脚本文件。11. The OS configuration adapter follows up the OS configuration information of the source server to generate a pre-migration script and an adaptation script file.
12、迁移工具终端通过ssh/telnet协议建立目标服务器分区的通信连接,远程执行迁移前脚本和适配脚本,配置磁盘划分、文件系统、账号、网络等OS基本信息。12. The migration tool terminal establishes the communication connection of the target server partition through the ssh/telnet protocol, remotely executes the pre-migration script and adaptation script, and configures basic OS information such as disk partition, file system, account number, and network.
13、数据迁移引擎控制从源服务器迁移数据到目标分区上。13. The data migration engine controls the migration of data from the source server to the target partition.
14、由迁移后脚本更改源服务器IP、域名等唯一性信息,再更改目标分区上IP、域名等信息,完成系统迁移。14. Change the source server IP, domain name and other unique information by the post-migration script, and then change the IP, domain name and other information on the target partition to complete the system migration.
图9示出了本发明实施例提供的用于平台间迁移应用实现系统的组成结构,为了便于说明,仅示出了与本实施例相关的部分。FIG. 9 shows the composition structure of the system for implementing application migration between platforms provided by the embodiment of the present invention. For the convenience of description, only the parts related to this embodiment are shown.
该平台间迁移应用实现系统包括迁移工具终端91及目标平台的管理软件92。在本实施例中,所述目标平台的管理软件92安装在目标服务器上,主要用于根据迁移工具终端91的指令收集的目标服务器计算节点、内存节点、IO节点等硬件信息、PCIE交换架构信息以及对目标服务器进行分区等操作。其中迁移工具终端91还包括:The inter-platform migration application implementation system includes a migration tool terminal 91 and management software 92 of the target platform. In this embodiment, the management software 92 of the target platform is installed on the target server, and is mainly used for hardware information such as computing nodes, memory nodes, IO nodes, and PCIE switching architecture information of the target server collected according to the instructions of the migration tool terminal 91 And perform operations such as partitioning the target server. Wherein the migration tool terminal 91 also includes:
采集器911,用于在源平台、目标平台建立通信连接后,采集所述源平台的系统环境信息及所述目标平台的系统环境信息;The collector 911 is configured to collect the system environment information of the source platform and the system environment information of the target platform after the source platform and the target platform establish a communication connection;
处理器912,用于根据所述采集器911采集的源平台的系统环境信息及所述目标平台的系统环境信息生成资源转换系数、性能系数参数以及所述目标平台上应用所需的系统环境,生成迁移前脚本和适配脚本文件,执行所述迁移前脚本和所述迁移适配脚本,配置目标平台系统环境;The processor 912 is configured to generate resource conversion coefficients, performance coefficient parameters, and system environments required by applications on the target platform according to the system environment information of the source platform collected by the collector 911 and the system environment information of the target platform, Generate a pre-migration script and an adaptation script file, execute the pre-migration script and the migration adaptation script, and configure the target platform system environment;
迁移引擎913,用于从所述源平台迁移应用数据到所述目标平台分区上。Migration engine 913, configured to migrate application data from the source platform to the target platform partition.
进一步的,所述采集器911具体用于,采集所述源平台的硬件配置信息、操作系统及相关配置信息,获取所述目标平台的硬件信息以及高速外设组件互连PCIE交换架构信息;Further, the collector 911 is specifically used to collect hardware configuration information, operating system and related configuration information of the source platform, and obtain hardware information of the target platform and high-speed peripheral component interconnection PCIE switching architecture information;
其中,所述操作系统及相关配置信息包括如下信息中的至少一种:OS版本信息、补丁信息、系统配置信息,所述目标平台的硬件信息包括计算节点、内存节点、IO节点的硬件信息。Wherein, the operating system and related configuration information include at least one of the following information: OS version information, patch information, and system configuration information, and the hardware information of the target platform includes hardware information of computing nodes, memory nodes, and IO nodes.
进一步的,所述采集器911具体用于,通过迁移工具获取所述源平台的硬件配置信息和OS系统及相关配置信息;以及通过目标平台的管理软件获取所述目标平台硬件信息以及PCIE交换架构信息。Further, the collector 911 is specifically used to obtain the hardware configuration information and OS system and related configuration information of the source platform through a migration tool; and obtain the target platform hardware information and PCIE switching architecture through the management software of the target platform information.
进一步的,所述处理器912具体用于,生成所述目标平台的硬件配置项,并结合所述目标平台的硬件信息,通过所述目标平台的管理软件划分所述目标平台分区;通过比对所述源平台的系统环境信息、目标平台的系统环境信息,以及用户输入的容量规划影响因子,生成资源转换系数、性能系数参数,其中,所述容量规划影响因子用于根据所述源平台的现有资源利用率情况及应用的业务增长需求优化迁移后应用所需的资源;通过对所述源平台的OS配置信息及目标平台的OS配置信息进行解析,生成所述迁移前脚本以及适配脚本文件,通过PCIE交换网络到传统交换总线的配置参数转换,生成可执行脚本;以及配置所述目标平台系统环境的磁盘划分、文件系统、账号、网络OS基本信息。Further, the processor 912 is specifically configured to generate hardware configuration items of the target platform, and combine the hardware information of the target platform to divide the target platform partitions through the management software of the target platform; by comparing The system environment information of the source platform, the system environment information of the target platform, and the capacity planning influence factor input by the user generate resource conversion coefficients and performance coefficient parameters, wherein the capacity planning influence factor is used according to the capacity planning influence factor of the source platform Existing resource utilization and application business growth requirements to optimize the resources required by the application after migration; by analyzing the OS configuration information of the source platform and the OS configuration information of the target platform, generate the pre-migration script and adaptation The script file converts the configuration parameters from the PCIE switching network to the traditional switching bus to generate an executable script; and configures the disk division, file system, account number, and network OS basic information of the target platform system environment.
优选的,所述处理器还用于,在生成所述目标平台上应用所需的系统环境之后,选取所述目标平台OS的安装文件和补丁文件,挂载ISO镜像到所述目标平台的管理软件,在所述目标平台部署OS系统和补丁;以及通过对所述源平台的OS配置信息及目标平台的OS配置信息进行解析,生成所述迁移后脚本,在从所述源平台迁移应用数据到所述目标平台分区上之后,执行所述迁移后脚本更新所述源平台以及所述目标平台的配置信息,所述配置信息包括IP地址、域名唯一性信息。Preferably, the processor is also used to, after generating the system environment required by the application on the target platform, select the installation file and patch file of the target platform OS, and mount the ISO image to the management system of the target platform. software, deploying OS systems and patches on the target platform; and analyzing the OS configuration information of the source platform and the OS configuration information of the target platform to generate the migration script, and migrate application data from the source platform After arriving at the target platform partition, execute the post-migration script to update the configuration information of the source platform and the target platform, where the configuration information includes IP address and domain name uniqueness information.
进一步的,所述迁移工具终端91还包括接收器914,用于接收输入的指令,该指令包括但不限于容量规划影响因子以及执行迁移指令等。Further, the migration tool terminal 91 also includes a receiver 914, configured to receive input instructions, the instructions include but not limited to capacity planning impact factors and execution migration instructions.
可选的是,所述处理器912具体包括:Optionally, the processor 912 specifically includes:
转换器9121,用于结合源服务器的硬件配置信息和OS版本、补丁、系统配置等信息以及目标服务器计算节点、内存节点、IO节点等硬件信息、PCIE交换架构信息,通过比对生成相关CPU、内存、IO等资源的转换系数;并通过源服务器内部总线交换架构与目标服务器PCIE交换架构的对比分析给出计算资源性能系数;以及接收可输入性参数容量规划影响因子,用于将源服务器的现有资源利用率情况和后续业务增长需求纳入计算模型,以得到迁移后应用所需的计算资源。最后结合资源转换系数、性能系数以及容量规划影响因子,通过资源映射模型生成目标服务器硬件配置项。The converter 9121 is used to combine the hardware configuration information of the source server and information such as OS versions, patches, and system configurations, as well as hardware information such as computing nodes, memory nodes, and IO nodes of the target server, and PCIE switching architecture information to generate relevant CPU, The conversion coefficient of memory, IO and other resources; and the comparison and analysis of the internal bus exchange architecture of the source server and the PCIE exchange architecture of the target server gives the performance coefficient of computing resources; and the influence factor of receiving inputtable parameter capacity planning, which is used to convert the source server’s The existing resource utilization rate and subsequent business growth requirements are incorporated into the computing model to obtain the computing resources required by the migrated application. Finally, combined with the resource conversion coefficient, performance coefficient and capacity planning impact factor, the target server hardware configuration items are generated through the resource mapping model.
适配器9122,用于通过OS基本配置得到OS相关版本、补丁、系统服务配置信息,在OS镜像文件库和补丁库中选取对应OS匹配的ISO文件镜像挂载管理软件,完成目标服务器上OS的安装部署;以及通过源服务器关键OS配置信息的解析,生成迁移前脚本,划分好磁盘分区、建立文件系统、账号权限等。Adapter 9122, used to obtain OS-related versions, patches, and system service configuration information through OS basic configuration, select the ISO file image matching the OS from the OS image file library and patch library, and mount the management software to complete the OS installation on the target server Deployment; and through the analysis of key OS configuration information of the source server, generate pre-migration scripts, divide disk partitions, establish file systems, account permissions, etc.
作为本发明的一个实施例,其中适配器915还用于通过PCIE交换网络到传统交换总线的配置参数转换,生成可执行脚本,完成PCIE转以太网的驱动部署和参数配置,保证上层应用和数据可无缝迁移。As an embodiment of the present invention, the adapter 915 is also used to convert the configuration parameters from the PCIE switching network to the traditional switching bus, generate executable scripts, complete the driver deployment and parameter configuration of PCIE to Ethernet, and ensure that the upper layer applications and data can be used. Migrate seamlessly.
其中,转换器9121又包括:资源映射模型处理器,主要用于计算处理得到目标服务器的硬件配置项;适配器9122具体包括:Among them, the converter 9121 further includes: a resource mapping model processor, which is mainly used for computing and processing to obtain the hardware configuration items of the target server; the adapter 9122 specifically includes:
OS镜像文件库,主要用于存储OS镜像文件库。The OS image file library is mainly used to store the OS image file library.
补丁库,主要用于存储OS所需的补丁库。The patch library is mainly used to store the patch library required by the OS.
脚本模型处理器,主要用于生成迁移前脚本、适配脚本以及迁移后脚本。The script model processor is mainly used to generate pre-migration scripts, adaptation scripts and post-migration scripts.
本发明实施例通过收集比对源服务器及目标服务器硬件配置信息,包括OS版本、补丁、系统配置等信息以及目标服务器计算节点、内存节点、IO节点等硬件信息、PCIE交换架构信息得出目标服务器的硬件配置项,并结合可选参数因子对目标服务器进行资源优化配置,从而实现了传统服务器到PCIE交换架构服务器的自动化系统无缝迁移。The embodiment of the present invention obtains the target server by collecting and comparing the hardware configuration information of the source server and the target server, including information such as OS version, patch, system configuration, hardware information such as target server computing nodes, memory nodes, and IO nodes, and PCIE switching architecture information. Hardware configuration items, combined with optional parameter factors to optimize the resource configuration of the target server, thus realizing the seamless migration of the automatic system from the traditional server to the PCIE switch architecture server.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能单元的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元完成,即将装置的内部结构划分成不同的功能单元,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units according to needs. The internal structure of the device is divided into different functional units to complete all or part of the functions described above. For the specific working process of the above-described system, device, and unit, reference may be made to the corresponding process in the foregoing method embodiments, and details are not repeated here.
在本发明实施例所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the embodiments of the present invention, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the embodiments of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明实施例各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,RandomAccessMemory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage The medium includes several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disk or optical disk, and other media that can store program codes.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.
Claims (24)
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2012/080806 WO2014032262A1 (en) | 2012-08-30 | 2012-08-30 | Implementation method and system for migrating application among platforms<0} |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103109271A CN103109271A (en) | 2013-05-15 |
CN103109271B true CN103109271B (en) | 2016-01-20 |
Family
ID=48316004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201280001749.7A Active CN103109271B (en) | 2012-08-30 | 2012-08-30 | The implementation method of migrate application and system between a kind of platform |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103109271B (en) |
WO (1) | WO2014032262A1 (en) |
Families Citing this family (44)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103257878A (en) * | 2013-05-16 | 2013-08-21 | 浪潮通信信息系统有限公司 | Cross-platform smooth transfer method of application program based on Cloud calculation |
TWI498750B (en) * | 2013-06-24 | 2015-09-01 | Chunghwa Telecom Co Ltd | Method and system of intelligent cloud migration |
US9996562B2 (en) | 2013-07-09 | 2018-06-12 | Oracle International Corporation | Automated database migration architecture |
US9805070B2 (en) | 2013-07-09 | 2017-10-31 | Oracle International Corporation | Dynamic migration script management |
US10776244B2 (en) | 2013-07-09 | 2020-09-15 | Oracle International Corporation | Consolidation planning services for systems migration |
US11157664B2 (en) | 2013-07-09 | 2021-10-26 | Oracle International Corporation | Database modeling and analysis |
US9747311B2 (en) | 2013-07-09 | 2017-08-29 | Oracle International Corporation | Solution to generate a scriptset for an automated database migration |
CN104462119B (en) * | 2013-09-18 | 2019-11-05 | 腾讯科技(深圳)有限公司 | Data migration method and device |
CN103577122B (en) * | 2013-11-06 | 2016-08-17 | 杭州华为数字技术有限公司 | Implementation method that distribution application system migrates between platform and device |
US9626180B2 (en) * | 2013-12-16 | 2017-04-18 | International Business Machines Corporation | Live operating system update mechanisms |
CN104281484B (en) * | 2014-09-23 | 2018-04-10 | 华为技术有限公司 | A kind of virtual machine migration method and device |
CN104598525B (en) * | 2014-12-25 | 2018-11-20 | 华为技术有限公司 | A kind of replication runs, equipment and system |
CN104615493A (en) * | 2015-01-14 | 2015-05-13 | 浪潮电子信息产业股份有限公司 | Cross-platform server-side mode recognition tool and method |
CN104536799A (en) * | 2015-01-16 | 2015-04-22 | 浪潮电子信息产业股份有限公司 | C/C + + application migration tool from HP-UX platform to K-UX platform |
CN104536798A (en) * | 2015-01-16 | 2015-04-22 | 浪潮电子信息产业股份有限公司 | C/C + + application migration tool from SPARC platform to K-UX platform |
CN104516766A (en) * | 2015-01-16 | 2015-04-15 | 浪潮电子信息产业股份有限公司 | C/C + + application migration tool from AIX platform to K-UX platform |
CN104573121A (en) * | 2015-02-09 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | DB2 database migration tool for migrating from AIX platform to K-UX platform |
CN104573123A (en) * | 2015-02-09 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | Sybase database migration tool for migrating from AIX platform to K-UX platform |
CN105446809B (en) * | 2015-11-30 | 2019-01-25 | 中国建设银行股份有限公司 | Platform migration method and device |
CN105472045A (en) * | 2016-01-26 | 2016-04-06 | 北京百度网讯科技有限公司 | Database migration method and database migration device |
EP3457733B1 (en) | 2016-05-28 | 2022-04-06 | Huawei Technologies Co., Ltd. | Mobile edge orchestrator and application migration system |
US11036696B2 (en) | 2016-06-07 | 2021-06-15 | Oracle International Corporation | Resource allocation for database provisioning |
CN107885582B (en) * | 2016-09-30 | 2021-02-23 | 中国电信股份有限公司 | Heterogeneous container cluster migration method and controller |
CN106598753B (en) * | 2016-11-21 | 2019-08-16 | 广东欧珀移动通信有限公司 | Method, device and equipment for data transmission between first terminal and second terminal |
CN110494849B (en) * | 2017-03-31 | 2023-05-26 | 甲骨文国际公司 | System and method for determining success of cross-platform application migration |
CN109995814B (en) * | 2017-12-29 | 2021-08-13 | 中移(苏州)软件技术有限公司 | Cloud host resource migration method and device, communication device, and storage medium |
CN109541987B (en) * | 2018-10-17 | 2021-09-03 | 同济大学 | Plug-and-play intelligent automobile domain controller with redundancy structure and method |
CN109542582A (en) * | 2018-10-22 | 2019-03-29 | 广东天唯科技有限公司 | A kind of method and system for the replacement server under safeguards system normal operation |
CN109857514B (en) * | 2018-12-20 | 2020-11-27 | 中国电子科技集团公司第十五研究所 | Cross-platform cross-commercial autonomous environment complex giant information system hybrid deployment system |
US11061718B2 (en) * | 2019-02-15 | 2021-07-13 | International Business Machines Corporation | Pattern-based artificial intelligence planner for computer environment migration |
US11256671B2 (en) | 2019-09-13 | 2022-02-22 | Oracle International Corporation | Integrated transition control center |
CN110673930B (en) * | 2019-12-04 | 2020-07-17 | 深信服科技股份有限公司 | Virtual machine migration method, virtualization device, storage medium and device |
CN112256670A (en) * | 2020-10-10 | 2021-01-22 | 中国农业银行股份有限公司河北省分行 | Data migration method, terminal device and readable storage medium |
CN112328379A (en) * | 2020-11-05 | 2021-02-05 | 浪潮电子信息产业股份有限公司 | An application migration method, device, equipment and medium |
CN112463417B (en) * | 2020-12-17 | 2025-03-25 | 中通服建设有限公司 | Migration adaptation method, device and equipment based on domestically produced ICT software and hardware platform |
US11762571B2 (en) | 2020-12-21 | 2023-09-19 | International Business Machines Corporation | Migration of uncached data after cutover |
CN112882761B (en) * | 2021-03-05 | 2023-05-26 | 网易(杭州)网络有限公司 | Migration method and device of game server engine, processor and electronic equipment |
CN116137597A (en) * | 2021-11-17 | 2023-05-19 | 中移(苏州)软件技术有限公司 | Cloud migration condition detection method, device and electronic equipment |
CN114564288A (en) * | 2022-01-29 | 2022-05-31 | 南京匡吉信息科技有限公司 | Heterogeneous application migration method from x86 processor architecture to ARM processor architecture |
CN115048463B (en) * | 2022-06-30 | 2023-06-06 | 北京瑞莱智慧科技有限公司 | Data migration method, system and storage medium |
CN115756601B (en) * | 2022-10-28 | 2024-10-15 | 苏州棱镜七彩信息科技有限公司 | Application migration method |
CN117149270A (en) * | 2023-10-30 | 2023-12-01 | 中国铁塔股份有限公司 | Method, system and related equipment for generating model file crossing hardware platform |
CN118170431B (en) * | 2024-05-13 | 2024-09-13 | 中移(苏州)软件技术有限公司 | Cross-operating system service migration method and device and electronic equipment |
CN119292667B (en) * | 2024-12-13 | 2025-03-18 | 北京电子数智科技有限责任公司 | Method and device for operator migration between hardware platforms, and migration model construction method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5678044A (en) * | 1995-06-02 | 1997-10-14 | Electronic Data Systems Corporation | System and method for improved rehosting of software systems |
CN101281461A (en) * | 2007-04-04 | 2008-10-08 | 国际商业机器公司 | Method and device for transfer applying dependent system environment |
CN101609425A (en) * | 2008-06-19 | 2009-12-23 | 中兴通讯股份有限公司 | A kind of script and associated data implant system and implantation method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007515013A (en) * | 2003-12-15 | 2007-06-07 | エヴォルヴウェア インフォメーション テクノロジー (インディア) ピーヴィーティー リミテッド | Software code migration and conversion equipment from any source platform to any target platform |
US7334223B2 (en) * | 2004-01-19 | 2008-02-19 | Tata Consultancy Services, Ltd. | Apparatus and method for automatically migrating client server applications to other architectures and platforms |
US7284043B2 (en) * | 2004-09-23 | 2007-10-16 | Centeris Corporation | System and method for automated migration from Linux to Windows |
CN100487652C (en) * | 2005-04-02 | 2009-05-13 | 华为技术有限公司 | Automaton method for script language |
-
2012
- 2012-08-30 WO PCT/CN2012/080806 patent/WO2014032262A1/en active Application Filing
- 2012-08-30 CN CN201280001749.7A patent/CN103109271B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5678044A (en) * | 1995-06-02 | 1997-10-14 | Electronic Data Systems Corporation | System and method for improved rehosting of software systems |
CN101281461A (en) * | 2007-04-04 | 2008-10-08 | 国际商业机器公司 | Method and device for transfer applying dependent system environment |
CN101609425A (en) * | 2008-06-19 | 2009-12-23 | 中兴通讯股份有限公司 | A kind of script and associated data implant system and implantation method |
Also Published As
Publication number | Publication date |
---|---|
CN103109271A (en) | 2013-05-15 |
WO2014032262A1 (en) | 2014-03-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103109271B (en) | The implementation method of migrate application and system between a kind of platform | |
US12182545B2 (en) | Software defined network controller | |
US10496503B2 (en) | Healing cloud services during upgrades | |
US11093296B2 (en) | System, virtualization control apparatus, method for controlling a virtualization control apparatus, and program | |
EP3031174B1 (en) | Hybrid network management | |
US8615761B2 (en) | Virtual machine package generation system, virtual machine package generation method, and virtual machine package generation program | |
EP3905588A1 (en) | Cloud platform deployment method and apparatus, server and storage medium | |
CN109347681A (en) | Self-Updating Capabilities in Distributed Systems | |
EP3883183A1 (en) | Virtualization management method and device | |
US10218622B2 (en) | Placing a network device into a maintenance mode in a virtualized computing environment | |
CN103577122B (en) | Implementation method that distribution application system migrates between platform and device | |
CN104503832A (en) | Virtual machine scheduling system and virtual machine scheduling method with balanced equity and efficiency | |
CN114650223A (en) | Network configuration method and device of Kubernetes cluster and electronic equipment | |
EP3709575B1 (en) | Generating candidate links and candidate paths before selecting links for an optimized optical network plan | |
Nogueira et al. | Network virtualization system suite: Experimental network virtualization platform | |
US20240419511A1 (en) | Zero-downtime upgrade with synchronized node customization in a container orchestration system | |
CN103677994B (en) | Distributed data processing system, device and method | |
CN114157569A (en) | Cluster system and construction method and construction device thereof | |
US20240224118A1 (en) | Apparatus and method for providing resource management policy in telecommunications system | |
CN120295789A (en) | CPU resource allocation method for DPU centralized service grid | |
Cacheiro et al. | Leveraging EGI federated Cloud infrastructure for Hadoop analytics |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |