完整数据迁移流程
1.根据系统版本下载对应版本的portal(这里以centos系统x86架构为例)
wget -c https://opengauss.obs.cn-south-1.myhuaweicloud.com/latest/tools/centos7/PortalControl-5.1.0-x86_64.tar.gz
2.解压gs_rep_portal安装包
tar -zxvf PortalControl-5.1.0-x86_64.tar.gz
3.在/ops/portal/config目录的toolspath.properties文件中修改安装路径,然后启动命令安装
sh gs_rep_portal.sh install_mysql_all_migration_tools 1 &
4.在/ops/portal/config目录的migrationConfig.properties文件中修改迁移参数,指定新的workspace.id为2启动迁移计划3
sh gs_rep_portal.sh start_plan3 2 &
5.程序将自动运行至增量迁移和增量校验同时开启中,让workspace.id为2的任务停止增量迁移,此时程序进入等待状态,之后可以启动反向迁移或停止计划
sh gs_rep_portal.sh stop_incremental_migration 2 &
6.启动反向迁移,此时程序进入反向迁移状态,之后可以停止计划
sh gs_rep_portal.sh run_reverse_migration 2 &
7.停止workspace.id为2的计划
sh gs_rep_portal.sh stop_plan 2 &
详情查看:https://opengauss.org
详情查看:https://docs-opengauss.osinfra.cn