dmcluster config 命令用于设置 DM1、DM2、DM3、VP1 和 VP2 服务器之间的 SSH 连接。Data Mover 监控服务会使用这些连接监控活动 Data Mover 组件并在任何活动组件停止工作时启动故障转移。
- 在活动 (DM1) 服务器上输入对 failover.properties 文件的以下更改︰
- local.daemon.host=DM1
- remote.daemon.host=DM2
- local.monitor.host=VP1
- remote.monitor.host=VP2
- local.repository.host=DM1
- remote.repository.host=DM2
- local.agents.host=DM1, DM2, DM3
- remote.agents.host=DM1, DM2, DM3
- 以 root 身份运行 ./dmcluster config 并按照以下提示操作︰
提示 操作 Please enter the Root Password for the server running Master Repository: 请提供 DM1 的 root Linux 密码。 Please enter the Root Password for the server running Slave Repository: 请提供 DM2 的 root Linux 密码。 Please enter the password for root@DM1(MASTER DAEMON): 请提供 DM1 的 root Linux 密码。 Please enter the password for root@DM2(SLAVE DAEMON): 请提供 DM2 的 root Linux 密码。 Please enter the password for root@VP1(MASTER MONITOR): 请提供 VP1 的 root Linux 密码。 Please enter the password for root@VP2(SLAVE MONITOR): 请提供 VP1 的 root Linux 密码。 Please enter the password for root@DM3(Master Agent(s)): 请提供 DM3 的 root Linux 密码。