免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: weikunbei
打印 上一主题 下一主题

新建第二个实例 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2009-12-17 21:01 |只看该作者
servernum已经修改了,正在跑的是0,新建的这个是3,不是一个数值。
然后rootdbs、rootpath、tmpdbs也都修改了,和第一个实例也不一样。
不知道是哪些参数配错了。内存什么情况下会重合呀?
另外因为第一个实例正在运行,我用ipcs -a|grep informix,如果我ipcrm的话,会不会影响第一个实例呀?

论坛徽章:
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
12 [报告]
发表于 2009-12-17 22:30 |只看该作者

回复 #11 weikunbei 的帖子

基于你提供的信息来看
17:56:16  create_vp: cannot allocate semaphore
18:10:25  IBM Informix Dynamic Server Started.
18:10:25  semget: errno = 28

是受资源限制了...至于具体是什么原来.  得看你的系统 errno = 28 是什么?
在hp-ux下errno可以在/usr/include/errno.h 里看到.....其它的太清楚.

[ 本帖最后由 liaosnet 于 2009-12-17 22:32 编辑 ]

论坛徽章:
0
13 [报告]
发表于 2009-12-18 14:07 |只看该作者
我把第一个实例停了,想验证一下是否是系统资源分配的问题,话说初始化,之前的报错没了,但是停在了一行不动了,我查看数据库状态是online状态
S10-SV03-/opt/informix3/etc> oninit -viy
Checking group membership to determine server run mode...succeeded
Reading configuration file '/opt/informix3/etc/onconfig.serverwei'...succeeded
Creating /INFORMIXTMP/.infxdirs...succeeded
Creating infos file "/opt/informix3/etc/.infos.serverwei"...succeeded
Linking conf file "/opt/informix3/etc/.conf.serverwei"...succeeded
Writing to infos file...succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 1218598 kbytes...succeeded
Allocating 4800016 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 6 additional cpu vps...succeeded
Onlining 10 IO vps...succeeded
Initialization of Encryption...succeeded
Forking main_loop thread...succeeded
Initializing DR structures...succeeded
S10-SV03-/opt/informix3/etc> Forking 1 'soctcp' listener threads...succeeded
Starting tracing...succeeded
Initializing 28 flushers...succeeded
Initializing log/checkpoint information...succeeded
Initializing dbspaces...succeeded
Opening primary chunks...succeeded
Opening mirror chunks...succeeded
Validating chunks...succeeded
Creating database partition...succeeded
Initialize Async Log Flusher...succeeded
Forking btree cleaner...succeeded
Initializing DBSPACETEMP list...succeeded
Checking database partition index...succeeded
Initializing dataskip structure...succeeded
Checking for temporary tables to drop...succeeded
Forking onmode_mon thread...succeeded
Starting scheduling system...succeeded
Verbose output complete: mode = 5

论坛徽章:
1
15-16赛季CBA联赛之江苏
日期:2017-04-05 11:23:15
14 [报告]
发表于 2009-12-18 14:31 |只看该作者
原帖由 weikunbei 于 2009-12-18 14:07 发表
我把第一个实例停了,想验证一下是否是系统资源分配的问题,话说初始化,之前的报错没了,但是停在了一行不动了,我查看数据库状态是online状态
S10-SV03-/opt/informix3/etc> oninit -viy
Checking group me ...

正常!

论坛徽章:
0
15 [报告]
发表于 2009-12-18 18:55 |只看该作者
初始化第二个实例的时候报这个错误了?请问对于初始化成功的rootdbs(online),再次初始化这个rootdbs会出错误吗?比如造成裸设备故障?(我误操作了,之前第二个实例都online了,结果我打成oninit -viy了)
Checking group membership to determine server run mode...succeeded
Reading configuration file '/opt/informix3/etc/onconfig.serverwei...succeeded
Creating /INFORMIXTMP/.infxdirs...succeeded
Creating infos file "/opt/informix3/etc/.infos.serverwei"...succeeded
Linking conf file "/opt/informix3/etc/.conf.serverwei"...succeeded
Writing to infos file...succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 1218598 kbytes...succeeded
Allocating 4800016 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 6 additional cpu vps...succeeded
Onlining 10 IO vps...succeeded
Initialization of Encryption...succeeded
Forking main_loop thread...succeeded
Initializing DR structures...succeeded
S10-SV03-/opt/informix3/etc> Forking 1 'soctcp' listener threads...succeeded
Starting tracing...succeeded
Initializing 28 flushers...succeeded
oninit: Fatal error in shared memory initialization

oninit日志如下
18:43:27  Warning: ONCONFIG dump directory (DUMPDIR) '/tmp' has insecure permissions
18:43:27  Event alarms enabled.  ALARMPROG = '/opt/informix3/etc/alarmprogram.sh'
18:43:27  Booting Language <c> from module <>
18:43:27  Loading Module <CNULL>
18:43:27  Booting Language <builtin> from module <>
18:43:27  Loading Module <BUILTINNULL>
18:43:32  DR: DRAUTO is 0 (Off)
18:43:32  DR: ENCRYPT_HDR is 0 (HDR encryption Disabled)
18:43:32  Fast poll /dev/poll enabled.
18:43:32  IBM Informix Dynamic Server Version 11.10.FC2     Software Serial Number AAA#B000000
18:43:32  Cannot Open Primary Chunk '/opt/informix3/chk/server1rootchk', errno = 6
18:43:32  IBM Informix Dynamic Server Stopped.

18:43:32  mt_shm_remove: WARNING: may not have removed all/correct segments

论坛徽章:
0
16 [报告]
发表于 2009-12-18 19:50 |只看该作者
问题解决了。。。。原来是物理设备没有挂上。。。。我得神。。。谢谢大家。。。这次又学到不少东西

论坛徽章:
0
17 [报告]
发表于 2009-12-22 17:19 |只看该作者
初始化另外一個實例,需要將正在運行的實例關閉。不然會報共享內存錯誤。

论坛徽章:
1
15-16赛季CBA联赛之江苏
日期:2017-04-05 11:23:15
18 [报告]
发表于 2009-12-23 09:29 |只看该作者
原帖由 hanner_cheung 于 2009-12-22 17:19 发表
初始化另外一個實例,需要將正在運行的實例關閉。不然會報共享內存錯誤。

没有遇到过这种问题!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP