chunk failed sanity check
chunk failed sanity check$ oninit -s
SENDER IS NULL NO MAIL WILL BE SENT
oninit: Cannot open chunk '/dev/raw/raw5'. errno = 2
oninit: Fatal error in shared memory initialization
$ oninit -v
Checking group membership to determine server run mode...succeeded
Reading configuration file '/opt/informix/etc/onconfig'...succeeded
Creating /INFORMIXTMP/.infxdirs...succeeded
Creating infos file "/opt/informix/etc/.infos.scp_online1"...succeeded
Linking conf file "/opt/informix/etc/.conf.scp_online1"...succeeded
Writing to infos file...succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 45192 kbytes...succeeded
Allocating 10016 kbytes for buffer pool of 2K page size...succeeded
Initializing rhead structure...succeeded
Initializing ASF...succeeded
Initializing Dictionary Cache and SPL Routine Cache...succeeded
Bringing up ADM VP...succeeded
Creating VP classes...succeeded
Onlining 0 additional cpu vps...succeeded
Onlining 2 IO vps...succeeded
Initialization of Encryption...succeeded
Forking main_loop thread...succeeded
Initializing DR structures...succeeded
Forking 1 'ipcshm' listener threads...succeeded
Forking 1 'soctcp' listener threads...succeeded
Starting tracing...succeeded
Initializing 1 flushers...succeeded
SENDER IS NULL NO MAIL WILL BE SENT
oninit: Cannot open chunk '/dev/raw/raw5'. errno = 2
oninit: Fatal error in shared memory initialization
$
online.log片段截取
Fri Mar 19 15:47:47 2010
15:47:47Event alarms enabled.ALARMPROG = '/opt/informix/etc/alarmprogram.sh'
15:47:47Booting Language <c> from module <>
15:47:47Loading Module <CNULL>
15:47:47Booting Language <builtin> from module <>
15:47:47Loading Module <BUILTINNULL>
15:47:52Dynamically allocated new virtual shared memory segment (size 8192KB)
15:47:52Memory sizes:resident:55452 KB, virtual:16384 KB, no SHMTOTAL limit
15:47:52Dynamically allocated new message shared memory segment (size 528KB)
15:47:52Memory sizes:resident:55452 KB, virtual:16912 KB, no SHMTOTAL limit
15:47:52Event notification facility epoll failed, errno is 38, legacy poll used.
15:47:53IBM Informix Dynamic Server Version 10.00.UC6E Software Serial Number AAA#B000000
15:47:53Assert Warning: chunk failed sanity check
15:47:53IBM Informix Dynamic Server Version 10.00.UC6E
15:47:53 Who: Session(1, informix@scp1, 0, 0x47851018)
Thread(7, main_loop(), 47827018, 1)
File: rspartn.c Line: 8686
15:47:53 Results: Chunk 1 is being taken OFFLINE.
15:47:53 Action: Restore chunk from archive.
15:47:53stack trace for pid 2456 written to /opt/informix/tmp/af.3ef2c29
15:47:53 See Also: /opt/informix/tmp/af.3ef2c29
15:47:54chunk failed sanity check
15:47:54I/O error, Primary Chunk '/dev/raw/raw5' -- Offline (sanity)
15:47:54IBM Informix Dynamic Server Stopped.
15:47:54mt_shm_remove: WARNING: may not have removed all/correct segments
af.3ef2c29 文件内容
15:47:53sane_chopen:pg_addr 0:0 != expected 1:2
page
page
47e55000: 00000000 00000000 00000000 00000000 ........ ........
47e55010*
15:47:53
15:47:53IBM Informix Dynamic Server Version 10.00.UC6E Software Serial Number AAA#B000000
15:47:53Assert Warning: chunk failed sanity check
15:47:53 Who: Session(1, informix@scp1, 0, 0x47851018)
Thread(7, main_loop(), 47827018, 1)
File: rspartn.c Line: 8686
15:47:53 Results: Chunk 1 is being taken OFFLINE.
15:47:53 Action: Restore chunk from archive.
15:47:53Stack for thread: 7 main_loop()
base: 0x47e0f000
len: 69632
pc: 0x087ac907
tos: 0x47e1eb80
state: running
vp: 1
0x087ac907 (oninit)afstack (0x47e06ba0, 0x998, 0x47e1ec90, 0x21ee, 0x393138, 0x1)
0x087ac109 (oninit)afhandler(0x1, 0x47e7fb70, 0x8c78e20, 0x47e7fb38, 0x401, 0x1)
0x087ab5fc (oninit)afwarn_interface(0x47e7fb70, 0x8c78e20, 0x47e7fb38, 0x8b0b49f, 0x21ee, 0x1)
0x085117f2 (oninit)sane_chopen(0x47759948, 0x47759972, 0x47e1f270, 0x4, 0x47759a7c, 0x44080294)
0x085113ed (oninit)chopen_util(0x47759948, 0x1, 0x47e1f488, 0x811be88, 0x47759948, 0x4407dac9)
0x085110e9 (oninit)chopen(0x47759948, 0x4407dac9, 0x47e1f460, 0x23deba, 0x304e80, 0xa)
0x0811be88 (oninit)initpzero(0x0, 0x0, 0x47e1f4ec, 0x2f9f1d, 0x8b482ec, 0x47634fa0)
0x08118db1 (oninit)initseg (0x2, 0x0, 0x8a8e954, 0x8b42b60, 0x32, 0x1)
0x081110de (oninit)main_loop(0x0, 0x47e06ba0, 0x6, 0x0, 0x0, 0x0)
0x0878c384 (oninit)startup (0x3e, 0x47e20990, 0x47c92fe0, 0x990, 0x8fab4301, 0x0)
0x00000000 (*nosymtab*)0x0
15:47:53 See Also: /opt/informix/tmp/af.3ef2c29
---------------------------------
Begin System Alarm Program Output
---------------------------------
Assertion Failure Type: Warning
Host Name: scp1
Database Server Name: scp_online1
Time of failure: Fri Mar 19 15:47:54 CST 2010
AF file: /opt/informix/tmp/af.3ef2c29
Shared memory file: None
System Blocking: OFF
-------------------------------
End System Alarm Program Output
-------------------------------
15:47:54sh /opt/informix/etc/evidence.sh 1 0 /opt/informix/tmp/af.3ef2c29 1 0x47827018 7 0x47e06ba0 1025 0 0 0 0
15:47:54
------------------ End of assertion failure 0 -----------------
上网查了许久
说可能是权限问题,还有目录不在
所以干脆赋予了777的权限
但是问题依旧啊
$ ls -ltr /dev/raw/raw5
crwxrwxrwx 1 informix informix 162, 5 Jun 252004 /dev/raw/raw5
但是必须说明一下我的环境,我redhat as 3,但是是部署在虚拟机上的
所以/dev/raw/raw5对应的是我用虚拟机建立的iscsi硬盘
不知环境上是否不支持? 设备的权限是660,informix:informix 切记!!
在linux系统中,rawdevice是否真的存在及确认其对应关系..请使用raw -qa 查询~ 其实我最初就是 660的权限,因为不行我才搞成777的
raw肯定是绑定了裸设备,raw -qa也能看到结果
刚刚我又照大虾的指点重新修改,但是再试了一次
但是错误依旧啊
郁闷中
其实我也感觉可能是某个低级错误,但是。。。。就是?我确实排查了啊 回复 3# jayli426
那就是/dev/raw/raw5 中的数据出了问题~:sleepy: 恐怕不是啊,我google了一把,也有大虾这个说法
说用dd测试一下,看看是否有问题
我用dd尝试了,从输出来看没有问题啊
现在的问题是 我是刚刚装好informix
即之前我从没有启动过
等于这是第一次启动
第一次启动就报这个错啊
郁闷啊 本帖最后由 liaosnet 于 2010-03-19 23:50 编辑
恐怕不是啊,我google了一把,也有大虾这个说法
说用dd测试一下,看看是否有问题
我用dd尝试了,从输出来 ...
jayli426 发表于 2010-03-19 20:32 http://bbs3.chinaunix.net/images/common/back.gif
oninit -i 没有?
没有的话执行oninit -s / oninit -v 之类的肯定报错...磁盘都没初始化. 我之前执行过 oninit -vi ,不知这个是否和oninit -i效果是否一样呢?
关键是现在好像oninit -s成功了,至少没有报错了
不过脑子还是雾水中啊
页:
[1]