- 论坛徽章:
- 0
|
回复 5# liaosnet
1.模拟主机网络掉线,辅机代替主机服务器工作 (关闭主机服务器test1 IP 192.168.0.1)
2.辅机onmode -ky 增加主机的IP ifconfig eth0 add 192.168.0.1 netmask 255.255.255.0
3、在辅机informix主目录切换为主机的环境变量 .test1rc 然后oninit 再onmode -d standard 切换为标准服务器接替test1工作
此时做下变动 omode -l omode -l onmode -c ontape -l
4.模拟主机已经恢复正常
在辅机上onmode -ky关闭数据库 并切换到root删除eth0:0的ip信息192.168.0.1 切换至informix 执行辅机的环境变量.test2rc
5,主机上执行oninit-v
onstat -
IBM Informix Dynamic Server Version 11 -- On-Line (Prim) -- Up 00:27:37 -- 149192 Kbytes
辅机上执行onmode -sy
onmode -d secondary ontest1报错
[informix@ontest2 ~]$ onstat -m
IBM Informix Dynamic Server Version 11 -- Quiescent -- Up 00:36:52 -- 149192 Kbytes
Message Log File: /home/informix/tmp/online.log
00:26:18 Checkpoint Completed: duration was 0 seconds.
00:26:18 Tue Feb 18 - loguniq 53, logpos 0x1d018, timestamp: 0x3bd199 Interval: 198
00:26:18 Maximum server connections 0
00:26:18 Checkpoint Statistics - Avg. Txn Block Time 0.000, # Txns blocked 0, Plog used 16, Llog used 21
00:28:34 DR: Error - Server must be in recovery mode
00:36:19 Checkpoint Completed: duration was 0 seconds.
00:36:19 Tue Feb 18 - loguniq 53, logpos 0x1f018, timestamp: 0x3bd1a5 Interval: 199
00:36:19 Maximum server connections 0
00:36:19 Checkpoint Statistics - Avg. Txn Block Time 0.012, # Txns blocked 0, Plog used 2, Llog used 2
00:51:20 Checkpoint Completed: duration was 0 seconds.
00:51:20 Tue Feb 18 - loguniq 53, logpos 0x21018, timestamp: 0x3bd1af Interval: 200
00:51:20 Maximum server connections 0
00:51:20 Checkpoint Statistics - Avg. Txn Block Time 0.004, # Txns blocked 0, Plog used 2, Llog used 2
00:57:22 DR: Error - Server must be in recovery mode
这时候辅机接替主机工作做的检查点下移在主机恢复后没有在主机上实现,并没有跟新
主机:
0.04
4b81af90 19 U-B---- 50 3:180053 10000 36 0.36
4b6ee418 20 U---C-L 51 3:190053 10000 118 1.18
4b6ee480 21 A------ 0
辅机:
4b6ee480 21 U-B---L 52 3:200053 10000 9 0.09
4b6ee4e8 22 U---C-- 53 3:210053 10000 6 0.06
4b6ee550 23 A------ 0
还请指教??
|
|