Chinaunix

标题: HDR+ER模式下主机挂了,从机不接管ER? [打印本页]

作者: philein    时间: 2014-01-08 18:16
标题: HDR+ER模式下主机挂了,从机不接管ER?
文档上写的HDR如果主机挂了,从机会自动接管ER组信息并自动连上ER组。。。可是我测试出来的结果却是从机不自动接管,需要在从机cdr start一下才行。。。很奇怪。。。机制就是这样的么???不能自动?
作者: liaosnet    时间: 2014-01-08 18:41
理论上应该是自动接管的。。。。
作者: philein    时间: 2014-01-08 20:46
因为文档是这么说的。。。可是今天我找了3台机器,2台做HDR,再和另一外一台做ER,然后把HDR的主机down掉。。。从机不接管。。。很奇怪。。。在另外一台单机做的ER上
cdr list server看到down掉的HDR的主机那个组是drop的,我在HDR从机上手工cdr start后才连接上了。。。很不科学啊。。

作者: 大梦    时间: 2014-01-10 10:57
你在HDR备机上重启一下CDR看看!
HDR+ER这种方式维护起来太麻烦了吧!
作者: philein    时间: 2014-01-10 14:31
以前的想法是一个组下HDR,挂了一台从机可以自动接管,如果只有一台做一个组,挂了的话也麻烦。。。
你说的从机上cdr重启是什么意思?HDR模式下,如果主机cdr start了,从机执行不了cdr start命令。。。
作者: liaosnet    时间: 2014-01-14 14:22
本帖最后由 liaosnet 于 2014-01-14 14:58 编辑

回复 5# philein


确认了一下,HDR备机必须手工cdr start,如果没有使用CM(连接管理器)的情况下。

If Connection Manager failover arbitration is not configured, a secondary server
can be converted to the primary server using the onmode -d make primary
command. Enterprise Replication will connect to the new primary server. If the
primary server within a high-availability cluster fails, the secondary server can be
switched to standard mode by executing the onmode –d standard command.
However, you must manually start Enterprise Replication by executing the cdr
start command on that server. This is necessary to prevent Enterprise Replication
from starting on all servers in cluster.


在配置了连接管理器(带FOC)的情况下,可以自动切换~
作者: philein    时间: 2014-01-15 15:08
回复 6# liaosnet


    多谢,我也查到了。。。哎,这个CM看了下有点像个监控软件,而且配置复杂,还得单独拿台机器来做监控用,感觉还不如自己写个脚本监控啊
作者: liaosnet    时间: 2014-01-15 16:56
回复 7# philein

CM是连接管理器。。。有些带管理功能,但主要是连接管理功能。。

   




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2