卸载迁移工具
使用以下指令可以卸载不同功能对应的迁移工具,举例:
sh gs_rep_portal.sh uninstall_mysql_all_migration_tools 1 &
在命令行运行这条命令可以卸载所有功能用到的迁移工具。
指令名称 | 指令说明 |
---|---|
uninstall_mysql_full_migration_tools | 卸载mysql全量迁移工具 |
uninstall_mysql_incremental_migration_tools | 卸载mysql增量迁移工具 |
uninstall_mysql_datacheck_tools | 卸载mysql数据校验工具 |
uninstall_mysql_reverse_migration_tools | 卸载mysql反向迁移工具 |
uninstall_mysql_all_migration_tools | 卸载mysql迁移工具 |
完整数据迁移流程
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 &