haoyunkkg 发表于 2007-10-16 11:39

informix 启不过来

启动的时候有如下报错信息

$ oninit

Incorrectly built binary which accesses errno or h_errno directly. Needs to be fixed.
Incorrectly built binary which accesses errno or h_errno directly. Needs to be fixed.
Incorrectly built binary which accesses errno or h_errno directly. Needs to be fixed.
Incorrectly built binary which accesses errno or h_errno directly. Needs to be fixed.
oninit: Cannot open chunk '/dev/informix_root'. errno = 2
oninit: Fatal error in shared memory initialization

提示找不到chunk/dev/informix_root   但是这个是有存在的 权限也没有问题
$ ll /dev/informix_root
lrwxrwxrwx1 root root 13 Oct 16 10:49 /dev/informix_root -> /dev/raw/raw1

$ ll /dev/raw/raw1      
crwxrwxrwx1 informix informix 162, 1 Oct 16 10:49 /dev/raw/raw1

online.log日志如下:
                Thread(7, main_loop(), 1e10e018, 1)
                File: rspartn.c Line: 7212
11:31:31   Results: Chunk 1 is being taken OFFLINE.
11:31:31   Action: Restore chunk from archive.
11:31:31stack trace for pid 4021 written to /tmp/af.3ef3093
11:31:31   See Also: /tmp/af.3ef3093
11:31:32I/O error, Primary Chunk '/dev/informix_root' -- Offline (sanity)
11:31:32Informix Dynamic Server 2000 Stopped.

11:31:32mt_shm_remove: WARNING: may not have removed all/correct segments

xxyyy 发表于 2007-10-16 11:41

很明显/dev/informix_root 文件的属主和组都是root而不是informix

haoyunkkg 发表于 2007-10-16 11:42

这台informix是新安装的
换一种方式如果使用cookies 的文件方式不用chunk的话 是可以正常启动过来的

11:31:31Informix Dynamic Server 2000 Version 9.21.UC2
11:31:31   Who: Session(1, informix@erpdataserver, 0, 504619032)
                Thread(7, main_loop(), 1e10e018, 1)
                File: rspartn.c Line: 7212
11:31:31   Results: Chunk 1 is being taken OFFLINE.
11:31:31   Action: Restore chunk from archive.
11:31:31stack trace for pid 4021 written to /tmp/af.3ef3093
11:31:31   See Also: /tmp/af.3ef3093
11:31:32I/O error, Primary Chunk '/dev/informix_root' -- Offline (sanity)
11:31:32Informix Dynamic Server 2000 Stopped.

11:31:32mt_shm_remove: WARNING: may not have removed all/correct segments

haoyunkkg 发表于 2007-10-16 11:47

不是这个问题 我在其他服务器这个权限是正常的可以读得到

ivhb 发表于 2007-10-16 12:42

原帖由 xxyyy 于 2007-10-16 11:41 发表 http://bbs.chinaunix.net/images/common/back.gif
很明显/dev/informix_root 文件的属主和组都是root而不是informix
很明显,root属主的只是个符号链接,不会有什么问题。

xxyyy 发表于 2007-10-16 13:42

那就是这个符号链接指向的字符设备内的数据出错了,难道还没有初始化?

haoyunkkg 发表于 2007-10-16 13:46

有做初始化
初始化也没有成功

$ oninit -ivy
Checking group membership to determine server run modesucceeded
Reading configuration file '/home/informix/etc/onconfig_web'...succeeded
Creating /INFORMIXTMP/.infxdirs ... succeeded
Creating infos file "/home/informix/etc/.infos.online_web" ... "/home/informix/etc/.conf.online_web" ... succeeded
Writing to infos file ... succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 29228 kbytes...succeeded
Creating buffer pool 200002 kbytes...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
Forking main_loop thread...succeeded
Initializing DR structures...succeeded
Forking 1 'soctcp' listener threads...succeeded
Starting tracing...succeeded
Initializing 1 flushers...succeeded
oninit: Fatal error in shared memory initialization
$ tail -f online.log
13:39:42Booting Language <c> from module <>
13:39:42Loading Module <CNULL>
13:39:42Booting Language <builtin> from module <>
13:39:42Loading Module <BUILTINNULL>
13:39:47Informix Dynamic Server 2000 Version 9.21.UC2   Software Serial Number ACN#J334914
13:39:47The chunk '/dev/informix_root' will not fit in the space specified.

13:39:47Informix Dynamic Server 2000 Stopped.

13:39:47mt_shm_remove: WARNING: may not have removed all/correct segments

haoyunkkg 发表于 2007-10-16 14:03

终于找到原因了
配置文件中在phydbs 设置太大导致初始化出错
修改后 重新初始化就恢复正常了
谢谢所有的人

liaosnet 发表于 2007-10-16 14:07

13:39:47The chunk '/dev/informix_root' will not fit in the space specified.

这个跟你$ONCONFIG里的文件指定有关~~请检查下先.
页: [1]
查看完整版本: informix 启不过来