- 论坛徽章:
- 0
|
回复 8# liaosnet
按照您的方法,我试着进行如下实验:
假设A发生故障:
我试着先将A机服务器关闭、并网络断开 ;同时在B机上增加A的网络地址,并执行A的环境变量启用数据库---模拟B完全替代A工作一段时间;
假设A恢复正常后:
将B之前增加的A地址down掉,并切换B自身的环境变量启用数据库,切换为standard状态,备份日志后 onmode -d primary A
A启用原来网络地址并切换至informix用户 oninit -PHY 后变为fastrecovery状态,执行onmode -d secondary B 后数据库状态开始还是readonly(sec)的,可过了不到10秒,A数据库就down掉了
无法恢复原来的A主机,B从机的状态
何解????
[informix@ontest2 ~]$ oninit -PHY
[informix@ontest2 ~]$ onstat -
IBM Informix Dynamic Server Version 11.50.FC5 -- Fast Recovery -- Up 00:00:15 -- 149192 Kbytes
[informix@ontest2 ~]$ onmode -d secondary ontest1
[informix@ontest2 ~]$ onstat -
IBM Informix Dynamic Server Version 11.50.FC5 -- Read-Only (Sec) -- Up 00:00:54 -- 157384 Kbytes
[informix@ontest2 ~]$ onstat -
shared memory not initialized for INFORMIXSERVER 'ontest2'
[informix@ontest2 ~]$ onstat -m
shared memory not initialized for INFORMIXSERVER 'ontest2'
Message Log File: /home/informix/tmp/online.log
02:02:33 Log Record: log = 86, pos = 0x1e7bc, type = OLDRSAM:ADDITEM(2 , trans = 18
02:02:33 Rollforward of log record failed. iserrno = 105
02:02:33 Log Record: log = 86, pos = 0x1e7bc, type = OLDRSAM:ADDITEM(2 , trans = 18
02:02:33 Logical Log 86 Complete, timestamp: 0x3f07d.
02:02:33 Assert Failed: INFORMIX-OnLine Must ABORT
Critical media failure.
02:02:33 IBM Informix Dynamic Server Version 11.50.FC5
02:02:33 Who: Session(16, informix@ontest2, 0, 0x4b81f470)
Thread(34, xchg_1.1, 4b7e3708, 1)
File: rsmirror.c Line: 1726
02:02:33 stack trace for pid 12689 written to /home/informix/tmp/af.40a9930
02:02:33 See Also: /home/informix/tmp/af.40a9930, shmem.40a9930.0
02:02:37 Starting crash time check of:
02:02:37 1. memory block headers
02:02:37 2. stacks
02:02:37 Found bad stack; mt_stack address:4c2fde08
02:02:37 rsmirror.c, line 1726, thread 34, proc id 12689, INFORMIX-OnLine Must ABORT
Critical media failure..
02:02:41 The Master Daemon Died
02:02:41 PANIC: Attempting to bring system down
|
|