[转帖]Active-Standby Pair + 灾备中心试验(5)_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 4148 | 回复: 0   主题: [转帖]Active-Standby Pair + 灾备中心试验(5)        下一篇 
shunzi
注册用户
等级:上尉
经验:782
发帖:133
精华:0
注册:2011-10-10
状态:离线
发送短消息息给shunzi 加好友    发送短消息息给shunzi 发消息
发表于: IP:您无权察看 2011-10-31 15:38:04 | [全部帖] [楼主帖] 楼主

现在从ttactive duplicate到 ttstandby,即从Active duplicate到Standby

[ttstandby@west-mountain info]$ ttrepadmin -duplicate -from ttactive -host “west-mountain” -setMasterRepStart -uid test -pwd test -remoteDaemonPort 17100 -keepCG -cacheUid test -cachePwd test -localhost “west-mountain” ttstandby
Enter password for ‘test’:


Duplicate完成之后,连接ttstandby,并通过下列命令检查一下

ttisql ttstandby
Command> cachegroups;
Command> repschemes;
Command> select * from student;
Command> select * from student_course;


启动备节点上的Replication Agent,等待并确认其进入”StandBy”状态

Command> call ttrepstart;
Command> call ttRepStateGet;
< STANDBY >
1 row found.
Command>


启动ttstandby 上的 Cache Agent

Command> call ttcachestart;
Command>


至此,Standby节点配置完成。

从ttstandby duplicate到ttdisaster,即从备用节点duplicate到所有的subscriber,即目前的灾备中心

注意,此时和从ttactive duplicate到ttstandby不一样,参数为- initCacheDR

[ttdisaster@west-mountain ~]$ ttRepAdmin -duplicate -from ttstandby -host “west-mountain” -initCacheDR -uid test -pwd test -remoteDaemonPort 17200 -cacheUid test -cachePwd test ttdisaster
Enter password for ‘test’:
[ttdisaster@west-mountain ~]$


连接到ttdisaster,做进一步的确认

[ttdisaster@west-mountain ~]$ ttisql ttdisaster
Command> cachegroups;1 cache groups found.
Command> repschemes;
Command> select * from student;
Command> select * from student_course;


为ttdisaster启动Replication Agent

Command> call ttrepstart;
Command>


至此,整个Active-StandBy Pair,外加Cache Group、灾备中心都已经建立完成。




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论