首页 > 数据库 > > 数据库管理工具-gs_premigration
在进行数据搬迁之前,需要在每个安装了逻辑复制工具的节点上使用gs_premigration工具在当前环境上完成一系列准备工作。具体准备工作包括配置LOGICREP_HOME环境变量、安装pexpect和ptyprocess python库以及复制lib目录、script目录至GaussDB_100_1.0.1-ZEBRATOOL/zebratool目录下。
gs_premigration -P INSTALLPATH用户需要切换到script目录下去执行该命令。
-P
指定逻辑复制工具的存放目录。
gs_premigration完成数据搬迁之前的准备工作。假设已配置好的逻辑复制工具的存放目录是opt/software/tools。
[root@plat1 /opt/software/gaussdb/script]$ gs_premigration -P /opt/software/tools
Successfully init logger
Start to configure environment variables
Successfully configuring LOGICREP_HOME to /etc/profile
Prepare to install pexpect and ptyprocess
Successfully unzip the TOOLS package
Successfully unzip the ZEBRETOOL package
Start to unzip the pexpect and ptyprocess package
Start to install pexpect and ptyprocess
Successfully installed pexpect
Successfully installed pryprocess
Start to copy lib and script to zebratool
Successfully copy lib and script to zebratool+
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69959250/viewspace-3148225/ ,如需转载,请注明出处,否则将追究法律责任。