免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7142 | 回复: 6
打印 上一主题 下一主题

chunk failed sanity check [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-19 16:14 |只看该作者 |倒序浏览
chunk failed sanity check


[informix@scp1 test]$ 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

[informix@scp1 test]$ 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
[informix@scp1 test]$

online.log片段截取

Fri Mar 19 15:47:47 2010

15:47:47  Event alarms enabled.  ALARMPROG = '/opt/informix/etc/alarmprogram.sh'
15:47:47  Booting Language <c> from module <>
15:47:47  Loading Module <CNULL>
15:47:47  Booting Language <builtin> from module <>
15:47:47  Loading Module <BUILTINNULL>
15:47:52  Dynamically allocated new virtual shared memory segment (size 8192KB)
15:47:52  Memory sizes:resident:55452 KB, virtual:16384 KB, no SHMTOTAL limit
15:47:52  Dynamically allocated new message shared memory segment (size 528KB)
15:47:52  Memory sizes:resident:55452 KB, virtual:16912 KB, no SHMTOTAL limit
15:47:52  Event notification facility epoll failed, errno is 38, legacy poll used.
15:47:53  IBM Informix Dynamic Server Version 10.00.UC6E Software Serial Number AAA#B000000
15:47:53  Assert Warning: chunk failed sanity check

15:47:53  IBM Informix Dynamic Server Version 10.00.UC6E
15:47:53   Who: Session(1, informix@scp1, 0, 0x4785101
                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:53  stack trace for pid 2456 written to /opt/informix/tmp/af.3ef2c29
15:47:53   See Also: /opt/informix/tmp/af.3ef2c29
15:47:54  chunk failed sanity check

15:47:54  I/O error, Primary Chunk '/dev/raw/raw5' -- Offline (sanity)

15:47:54  IBM Informix Dynamic Server Stopped.

15:47:54  mt_shm_remove: WARNING: may not have removed all/correct segments



af.3ef2c29 文件内容

15:47:53  sane_chopen:pg_addr 0:0 != expected 1:2
page
page
47e55000: 00000000 00000000 00000000 00000000   ........ ........
47e55010  *
15:47:53  
15:47:53  IBM Informix Dynamic Server Version 10.00.UC6E Software Serial Number AAA#B000000

15:47:53  Assert Warning: chunk failed sanity check

15:47:53   Who: Session(1, informix@scp1, 0, 0x4785101
                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:53  Stack 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:54  sh /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的权限
但是问题依旧啊

[informix@scp1 test]$ ls -ltr /dev/raw/raw5
crwxrwxrwx    1 informix informix 162,   5 Jun 25  2004 /dev/raw/raw5

但是必须说明一下我的环境,我redhat as 3,但是是部署在虚拟机上的

所以/dev/raw/raw5对应的是我用虚拟机建立的iscsi硬盘
不知环境上是否不支持?

论坛徽章:
11
金牛座
日期:2015-03-19 16:56:22数据库技术版块每日发帖之星
日期:2016-08-02 06:20:00数据库技术版块每日发帖之星
日期:2016-04-24 06:20:00数据库技术版块每日发帖之星
日期:2016-04-13 06:20:00IT运维版块每日发帖之星
日期:2016-04-13 06:20:00数据库技术版块每日发帖之星
日期:2016-02-03 06:20:00数据库技术版块每日发帖之星
日期:2015-08-06 06:20:00季节之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
2 [报告]
发表于 2010-03-19 17:07 |只看该作者
设备的权限是660,informix:informix 切记!!

在linux系统中,rawdevice是否真的存在及确认其对应关系..请使用raw -qa 查询~

论坛徽章:
0
3 [报告]
发表于 2010-03-19 17:29 |只看该作者
其实我最初就是 660的权限,因为不行我才搞成777的
raw肯定是绑定了裸设备,raw -qa也能看到结果

刚刚我又照大虾的指点重新修改,但是再试了一次
但是错误依旧啊
郁闷中
其实我也感觉可能是某个低级错误,但是。。。。就是?我确实排查了啊

论坛徽章:
11
金牛座
日期:2015-03-19 16:56:22数据库技术版块每日发帖之星
日期:2016-08-02 06:20:00数据库技术版块每日发帖之星
日期:2016-04-24 06:20:00数据库技术版块每日发帖之星
日期:2016-04-13 06:20:00IT运维版块每日发帖之星
日期:2016-04-13 06:20:00数据库技术版块每日发帖之星
日期:2016-02-03 06:20:00数据库技术版块每日发帖之星
日期:2015-08-06 06:20:00季节之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
4 [报告]
发表于 2010-03-19 20:17 |只看该作者
回复 3# jayli426


    那就是/dev/raw/raw5 中的数据出了问题~

论坛徽章:
0
5 [报告]
发表于 2010-03-19 20:32 |只看该作者
恐怕不是啊,我google了一把,也有大虾这个说法
说用dd测试一下,看看是否有问题
我用dd尝试了,从输出来看没有问题啊

现在的问题是 我是刚刚装好informix
即之前我从没有启动过
等于这是第一次启动

第一次启动就报这个错啊
郁闷啊

论坛徽章:
11
金牛座
日期:2015-03-19 16:56:22数据库技术版块每日发帖之星
日期:2016-08-02 06:20:00数据库技术版块每日发帖之星
日期:2016-04-24 06:20:00数据库技术版块每日发帖之星
日期:2016-04-13 06:20:00IT运维版块每日发帖之星
日期:2016-04-13 06:20:00数据库技术版块每日发帖之星
日期:2016-02-03 06:20:00数据库技术版块每日发帖之星
日期:2015-08-06 06:20:00季节之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
6 [报告]
发表于 2010-03-19 23:49 |只看该作者
本帖最后由 liaosnet 于 2010-03-19 23:50 编辑
恐怕不是啊,我google了一把,也有大虾这个说法
说用dd测试一下,看看是否有问题
我用dd尝试了,从输出来 ...
jayli426 发表于 2010-03-19 20:32



    oninit -i 没有?

没有的话执行oninit -s / oninit -v 之类的肯定报错...磁盘都没初始化.

论坛徽章:
0
7 [报告]
发表于 2010-03-20 10:17 |只看该作者
我之前执行过 oninit -vi ,不知这个是否和oninit -i效果是否一样呢?

关键是现在好像oninit -s成功了,至少没有报错了

不过脑子还是雾水中啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP