ITPub博客

首页 > 数据库 > > 数据库管理工具-gs_premigration

数据库管理工具-gs_premigration

作者:GaussDB_数据库 时间:2020-01-10 08:53:51 0 删除 编辑

在进行数据搬迁之前,需要在每个安装了逻辑复制工具的节点上使用gs_premigration工具在当前环境上完成一系列准备工作。具体准备工作包括配置LOGICREP_HOME环境变量、安装pexpect和ptyprocess python库以及复制lib目录、script目录至GaussDB_100_1.0.1-ZEBRATOOL/zebratool目录下。

前提条件

  • 用户已经配置好逻辑复制工具。
  • 数据搬迁工具安装包GaussDB_100_1.0.1-ZEBRATOOL.tar.gz已上传至为其规划的目录下。
  • 该工具只能使用root用户运行。

语法

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/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 查看数据库日志
请登录后发表评论 登录
全部评论

注册时间:2020-01-06

  • 博文量
    2907
  • 访问量
    19240