dmcluster 服务脚本用于在集群上运行各种命令。该脚本位于 /opt/teradata/client/nn.nn/datamover/failover/ 中,其中 nn.nn 是 Data Mover 的主要版本号和次要版本号,例如 16.10。使用 dmcluster config 完成集群配置后。
在故障转移期间,如果活动守护程序、代理、Data Mover REST 服务或同步服务正在运行,则会发生以下情况:
- 主集群上的服务停止并在活动模式下重新启动
- 所有备用组件都停止,且辅助集群上的同步服务在备用模式下启动
- 监控服务开始通过定期与活动组件服务器建立 SSH 连接来监控活动组件,以检查服务是否已启动并运行
- 启动故障转移序列
- 故障转移序列会关闭活动服务器上的守护程序、Data Mover REST、代理、ActiveMQ 和同步服务,并在备用服务器上以活动模式启动该守护程序、Data Mover REST、代理、ActiveMQ 和同步服务
- 尝试在备用模式下启动旧的活动同步服务
故障转移序列完成后,监控服务会转移到备用监控服务器并开始监控新的活动组件。如果监控服务在备用服务器上发现正在运行的 Data Mover REST、守护程序、DSC 或 ActiveMQ 进程,它会自动将其关闭,以防止同时有两个服务处于活动状态。
此时运行 dmcluster status 命令将显示如下内容:
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
dmFailover.log 提供有关故障转移序列的详细信息。
请参考Teradata® Data Mover 安装、配置和升级指南(适用于客户), B035-4102了解有关如何配置故障转移的更多信息。本节讨论故障转移中使用的所有组件。