示例:同步活动和备用存储库 - Teradata Data Mover

Teradata® Data Mover 安装、配置和升级指南(适用于客户)

Product
Teradata Data Mover
Release Number
16.20
Published
2021 年 11 月
Language
中文 (简体)
Last Update
2021-12-02
dita:mapPath
zh-CN/pgy1512683352051.ditamap
dita:ditavalPath
zh-CN/stp1591127384938.ditaval
dita:id
B035-4102
Product Category
Analytical Ecosystem
  1. 在 DM1 或 DM2 上查看当前配置和活动组件:
    /opt/teradata/client/nn.nn/datamover/failover/dmcluster status
    其中,路径中的 nn.nn 是指 Data Mover 的主要版本号和次要版本号。
    以前没有配置环境时的示例输出︰
    ERROR: The following error may indicate incorrect configuration of high availability in Data Mover. Check the Data Mover Customer Installation guide for high availability setup
     Cause: java.lang.Exception: The following properties are incorrect:
            The hostname/IP address for local daemon is set to localhost in the properties file
            The hostname/IP address for remote daemon is set to localhost in the properties file
            The hostname/IP address for local monitor is set to localhost in the properties file
            The hostname/IP address for remote monitor is set to localhost in the properties file
            The hostname/IP address for local repository is set to localhost in the properties file
            The hostname/IP address for remote repository is set to localhost in the properties file
            The hostname/IP address for local agent is set to localhost in the properties file
            The hostname/IP address for remote agent is set to localhost in the properties file
    Error running status
  2. 停止 VP1 和 VP2 上的 Data Mover 监控服务,避免在配置过程中发生自动故障转移。
  3. 验证活动 (DM1) 服务器上和备用 (DM2) 服务器上均没有正在运行的作业。
  4. 停止 DM1 上的 Data Mover 同步服务。
  5. 停止 DM2 上的 Data Mover 同步服务。
  6. 停止 DM2 上的 Data Mover 守护程序。
  7. 启动 DM1 上的 Data Mover 守护程序。
  8. 运行 backup_daemon 命令以创建活动 (DM1) 存储库的备份。
    运行备份命令会暂时关闭活动 (DM1) 守护程序。Teradata 建议在完成命令后分析备份文件以确保不会发生错误。
  9. 停止活动 (DM1) 服务器上的 Data Mover 守护程序。
  10. 将活动 (DM1) 服务器上的备份目录复制到备用 (DM2) 服务器。
  11. 启动备用 (DM2) 服务器上的 Data Mover 守护程序以运行还原命令。
  12. 将备用 (DM2) 服务器上备份文件的所有权更改为 dmuser。
  13. 为备用 (DM2) 服务器上的备份文件授予 755 权限。
  14. 运行 restore_daemon 命令以将活动备份还原到备用 (DM2) 存储库。
    Teradata 建议在完成命令后分析备份文件,以确保还原命令能正常工作。
  15. 删除活动 (DM1) 服务器和备用 (DM2) 服务器上的 Data Mover 同步服务的工作文件。
    通过删除这些工作文件,可确保以后在故障转移配置过程中重新启动同步服务时,同步服务中不包含旧的更改。
  16. 停止备用 (DM2) 服务器上的 Data Mover 守护程序和 ActiveMQ。