APP下载

基于RSYNC的Linux系统迁移上云方案实现

2021-09-29牟骏田富强胡波叶鑫平

科技资讯 2021年17期

牟骏 田富强 胡波 叶鑫平

DOI:10.16661/j.cnki.1672-3791.2107-5042-5725

摘  要:随着业务系统上云规模不断扩大,越来越多的业务系统客户提出了迁移上云需求,如何把现有物理机上的系统迁移到云计算管理平台上作为一台虚拟机运行是一个关键问题。该文提出基于RSYNC的文件级同步方案进行Linux操作系统的全量及增量迁移。经测试,该方案能实现为任意X86环境(传统硬件架构、虚拟化、异构云)之间提供迁移支持。

关键词:数据镜像备份工具 虚拟机 迁移上云 可引导Linux系统

中图分类号:TP317     文献标识码:A     文章编号:1672-3791(2021)06(b)-0013-03

Implementation of Linux System Migration to the Cloud based on RSYNC

Mou Jun Tian Fuqiang Hu Bo Ye Xinping

(Aostar Information Technologies Co., Ltd., Chengdu,Sichuan Province,610041 China)

Abstract: With the continuous expansion of the scale of business systems on the cloud, more and more business system customers have proposed to migrate to the cloud. How to migrate the system on the existing physical machine to the cloud computing management platform to run as a virtual machine The key issue. This paper proposes a file-level synchronization scheme based on RSYNC for full and incremental migration of the Linux operating system. After testing, the solution can be implemented to provide migration support between any X86 environment (traditional hardware architecture, virtualization, heterogeneous cloud).

Key Words: Data mirroring backup tool; Virtual machine; Migration to the cloud; Bootable linux system

隨着云计算和虚拟化的迅速发展,在构建数据中心时,将已有传统硬件架构的系统迁移上云面临着诸多困难,人工重新部署效率低且风险高,迁移工具免费的限制了特定平台使用,收费的迁移工具往往又比较昂贵。

迁移上云是一个系统工程,要保障业务中断时间最小化或0停机,在迁移的每个阶段都要充分地考虑和验证。迁移准备阶段,需要充分收集源系统的信息,对涉及绑定了硬件、KEY等特殊应用的系统提前验证目标平台的兼容性;根据收集的信息综合分析选择最优的迁移方案,比如集群式的应用系统,系统整机迁移不是好的选择,“热扩展”节点才是实现0停机的最佳方案。系统迁移阶段,提前做好系统的关键数据备份,迁移过程中源系统不中断,迁移占用的网络带宽不能影响业务系统正常使用。迁移完成阶段,计划系统切换停机时间,验证源端和目标端数据一致没有丢失,迁移切换失败回退到源系统[1-2]。……

登录APP查看全文