Configuring 2nd informix instance on the same serv
Posted in 2009
A user on AIX (IDS 11.50 Developer Edition) couldn't start a second instance: oninit failed with "stat() failed for chunk file" / "Cannot Open Primary Chunk ... errno = 2" and a fatal shared-memory initialization error. Suggestions included using oninit -i (-iv) for a first-time initialization rather than plain oninit, not pre-creating the root dbspace with onspaces, keeping SERVERNUM unique, checking the chunk file exists with correct informix ownership/permissions, and making sure the ONCONFIG environment variable actually points at the new onconfig (Art Kagel warned a stray oninit -i could have trashed the first instance's root chunk, so take an ontape level-0 first). The user still failed after fixing paths and permissions; the thread ends with requests for the onconfig files and logs, so no resolution is recorded.
Auto-generated by DrWatson from the posts below — may be imperfect; read the full thread.
Topics: High Availability & Replication, Installation, Setup & Upgrades, Storage & Space Management, Server Administration, Security, Permissions & Auditing, Networking & sqlhosts Configuration, Licensing & Editions, Platform-Specific Issues, Internationalization & Character Sets, Versions, Editions & End-of-Life
Configuring 2nd informix instance on the same server is not going through in
my setup.....
Step1 : Informix Instance (sportage1) is created as a demo instance while
installing IDS on an AIX box. It is running now and i want to create an
another instance sportage2 on the same server.
Step 2 :
a) Created new onconfig.sportage2 . The following parameters are changed. New
dbspace rootdbs_sportage2 is created via onspaces command.
ROOTNAME rootdbs_sportage2
ROOTPATH /mount/fs1/informix/sportage2/server/online_root
DBSERVERNAME sportage2
SERVERNUM 1
b) Created new sqlhosts.sportage2
sportage2 onsoctcp sportage 9089
Step 3 :
profile_settings file is updated appropriately and sourced in.
INFORMIXSERVER=sportage2
INFORMIXDIR="/mount/fs1/informix"
ONCONFIG=onconfig.sportage2
INFORMIXSQLHOSTS="/mount/fs1/informix/etc/sqlhosts.sportage2"
PATH=${INFORMIXDIR}/bin:${PATH}
export INFORMIXSERVER INFORMIXDIR ONCONFIG INFORMIXSQLHOSTS PATH
Step 4:
ran oninit command
Observed the following error/warning.
# oninitWARNING : If you intend to use J/Foundation or GLS for Unicode feature(GLU)
with
this Server instance, please make sure that your SHMBASE value specifies in onc
onfig is 0x700000010000000 or above. Otherwise you will have problems while
atta
ching or dynamically adding virtual shared memory segments. Please refer to
Serv
er machine notes for more information.
WARNING: server initialization failed, or possibly timed out (if -w was used).
Check the message log, online.log, for errors.
#
online.log file :
---------------------------
16:02:42 IBM Informix Dynamic Server Started.
16:02:42 WARNING: If you intend to use J/Foundation or GLS for Unicode
feature(GLU) with this Server instance, please make sure that your SHMBASE
value specifies in onconfig is 0x700000010000000 or
above. Otherwise you will have problems while attaching or dynamimically
adding virtual shared memory segments. Please refer to Server machine notes
for more information.
16:02:42 Warning: The IBM IDS Developer Edition license restriction limits
16:02:42 the total shared memory size for this server to 1048576 KB.
16:02:42 The size has been reset to the limit to bring up the database server.
16:03:18 IBM Informix Dynamic Server Started.
16:03:18 WARNING: If you intend to use J/Foundation or GLS for Unicode
feature(GLU) with this Server instance, please make sure that your SHMBASE
value specifies in onconfig is 0x700000010000000 or
above. Otherwise you will have problems while attaching or dynamimically
adding virtual shared memory segments. Please refer to Server machine notes
for more information.
16:03:18 Warning: The IBM IDS Developer Edition license restriction limits
16:03:18 the total shared memory size for this server to 1048576 KB.
16:03:18 The size has been reset to the limit to bring up the database server.
Sat Jul 11 16:03:19 2009
16:03:19 Event alarms enabled. ALARMPROG =
'/mount/fs1/informix/etc/alarmprogram.sh'
16:03:19 Booting Language <c> from module <>
16:03:19 Loading Module <CNULL>
16:03:19 Booting Language <builtin> from module <>
16:03:19 Loading Module <BUILTINNULL>
16:03:19 Warning: CONSOLE = /mount/fs1/informix/tmp/online.con open failed.
Redirecting output to '/dev/null'.
16:03:19 VP pid=221242 priority fixed at 60, former = 62
16:03:24 DR: DRAUTO is 0 (Off)
16:03:24 DR: ENCRYPT_HDR is 0 (HDR encryption Disabled)
16:03:24 AIX MP latch code enabled
16:03:24 Fast poll pollset enabled.
16:03:24 IBM Informix Dynamic Server Version 11.50.FC4DE Software Serial
Number AAA#B000000
16:03:24 Warning: stat() failed for chunk file
/mount/fs1/informix/sportage2/server/online_root
16:03:24 Cannot Open Primary Chunk
'/mount/fs1/informix/sportage2/server/online_root', errno = 2
16:03:24 oninit: Fatal error in shared memory initialization
16:03:24 IBM Informix Dynamic Server Stopped.
16:03:25 mt_shm_remove: WARNING: may not have removed all/correct segments
~
Please pass some hints to solve this problem.
Thanks
Saravanan
------WebKitFormBoundaryaHske7zZ+GA9As5O
Hello,
Was it oninit or oninit -i ?
SARAVANAN A.... a écrit :
> Configuring 2nd informix instance on the same server is not going through in
> my setup.....
>
> Step1 : Informix Instance (sportage1) is created as a demo instance while
> installing IDS on an AIX box. It is running now and i want to create an
> another instance sportage2 on the same server.
>
> Step 2 :
> a) Created new onconfig.sportage2 . The following parameters are changed. New
> dbspace rootdbs_sportage2 is created via onspaces command.
>
> ROOTNAME rootdbs_sportage2
> ROOTPATH /mount/fs1/informix/sportage2/server/online_root
> DBSERVERNAME sportage2
> SERVERNUM 1>
> b) Created new sqlhosts.sportage2
>
> sportage2 onsoctcp sportage 9089>
> Step 3 :
> profile_settings file is updated appropriately and sourced in.
>
> INFORMIXSERVER=sportage2
> INFORMIXDIR="/mount/fs1/informix"
> ONCONFIG=onconfig.sportage2
> INFORMIXSQLHOSTS="/mount/fs1/informix/etc/sqlhosts.sportage2"
> PATH=${INFORMIXDIR}/bin:${PATH}
> export INFORMIXSERVER INFORMIXDIR ONCONFIG INFORMIXSQLHOSTS PATH>
> Step 4:
>
> ran oninit command
>
> Observed the following error/warning.
>
> # oninit> WARNING : If you intend to use J/Foundation or GLS for Unicode feature(GLU)
> with
> this Server instance, please make sure that your SHMBASE value specifies in
> onc
> onfig is 0x700000010000000 or above. Otherwise you will have problems while
> atta
> ching or dynamically adding virtual shared memory segments. Please refer to
> Serv
> er machine notes for more information.
>
> WARNING: server initialization failed, or possibly timed out (if -w was
used).
> Check the message log, online.log, for errors.
> #
>
> online.log file :
> ---------------------------
> 16:02:42 IBM Informix Dynamic Server Started.
> 16:02:42 WARNING: If you intend to use J/Foundation or GLS for Unicode
> feature(GLU) with this Server instance, please make sure that your SHMBASE
> value specifies in onconfig is 0x700000010000000 or
> above. Otherwise you will have problems while attaching or dynamimically
> adding virtual shared memory segments. Please refer to Server machine notes
> for more information.
>
> 16:02:42 Warning: The IBM IDS Developer Edition license restriction limits
> 16:02:42 the total shared memory size for this server to 1048576 KB.
> 16:02:42 The size has been reset to the limit to bring up the database
server.
> 16:03:18 IBM Informix Dynamic Server Started.
> 16:03:18 WARNING: If you intend to use J/Foundation or GLS for Unicode
> feature(GLU) with this Server instance, please make sure that your SHMBASE
> value specifies in onconfig is 0x700000010000000 or
> above. Otherwise you will have problems while attaching or dynamimically
> adding virtual shared memory segments. Please refer to Server machine notes
> for more information.
>
> 16:03:18 Warning: The IBM IDS Developer Edition license restriction limits
> 16:03:18 the total shared memory size for this server to 1048576 KB.
> 16:03:18 The size has been reset to the limit to bring up the database
server.
>
> Sat Jul 11 16:03:19 2009
>
> 16:03:19 Event alarms enabled. ALARMPROG =
> '/mount/fs1/informix/etc/alarmprogram.sh'
> 16:03:19 Booting Language <c> from module <>
> 16:03:19 Loading Module <CNULL>
> 16:03:19 Booting Language <builtin> from module <>
> 16:03:19 Loading Module <BUILTINNULL>
> 16:03:19 Warning: CONSOLE = /mount/fs1/informix/tmp/online.con open failed.
> Redirecting output to '/dev/null'.
> 16:03:19 VP pid=221242 priority fixed at 60, former = 62
> 16:03:24 DR: DRAUTO is 0 (Off)
> 16:03:24 DR: ENCRYPT_HDR is 0 (HDR encryption Disabled)
> 16:03:24 AIX MP latch code enabled
> 16:03:24 Fast poll pollset enabled.
> 16:03:24 IBM Informix Dynamic Server Version 11.50.FC4DE Software Serial
> Number AAA#B000000
> 16:03:24 Warning: stat() failed for chunk file
> /mount/fs1/informix/sportage2/server/online_root
> 16:03:24 Cannot Open Primary Chunk
> '/mount/fs1/informix/sportage2/server/online_root', errno = 2
> 16:03:24 oninit: Fatal error in shared memory initialization
>
> 16:03:24 IBM Informix Dynamic Server Stopped.
>
> 16:03:25 mt_shm_remove: WARNING: may not have removed all/correct segments
> ~
>
> Please pass some hints to solve this problem.
>
> Thanks
> Saravanan
>
> ------WebKitFormBoundaryaHske7zZ+GA9As5O
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
I executed the command --> "oninit"
You should do oninit -i, since it's the first time you want to start
that new
instance.
BTW, you don't need to create rootdbspace yourself. Just have the correct
information in your onconfig file. And make sure SERVERNUM value is unique
on your system.
Henri MOUKOURI
SARAVANAN AJ a écrit :
> I executed the command --> "oninit"
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
Ok ,
If you want to start a new instance (Initialize)
you need to give "oninit -iv" (the i is for initialize, the v is for verbose)
Best regards
-----Original Message-----
From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of
SARAVANAN AJ
Sent: Friday, July 10, 2009 1:00 PM
To: ids@iiug.org
Subject: Re: Configuring 2nd informix instance on the same [16317]
I executed the command --> "oninit"
*******************************************************************************
Forum Note: Use "Reply" to post a response in the discussion forum.
In my setup, SERVERNUM is unique and a new dbspace is created on that
ROOTPATH. And correct ROOTPATH parameter is mentioned in onconfig file.
I tried with "oninit -iv" option also. This time also i am getting the same
errors in online.log file.
# oninit -iv
This action will initialize IBM Informix Dynamic Server;
any existing IBM Informix Dynamic Server databases will NOT be accessible -
Do you wish to continue (y/n)? y
Checking group membership to determine server run mode...succeeded
Reading configuration file
'/mount/fs1/informix/etc/onconfig.sportage2'...succeeded
Creating /INFORMIXTMP/.infxdirs...succeeded
Creating infos file "/mount/fs1/informix/etc/.infos.sportage2"...succeeded
Linking conf file "/mount/fs1/informix/etc/.conf.sportage2"...succeeded
Checking config parameters...succeeded
Writing to infos file...succeeded
WARNING : If you intend to use J/Foundation or GLS for Unicode feature(GLU)
with this Server instance, please make sure that your SHMBASE value specifies
in onconfig is 0x700000010000000 or above. Otherwise you will have problems
while attaching or dynamically adding virtual shared memory segments. Please
refer to Server machine notes for more information.
Allocating and attaching to shared memory...succeeded
Creating resident pool 4532 kbytes...succeeded
Allocating 4016 kbytes for buffer pool of 4K page size...succeeded
Initializing rhead structure...succeeded
Initialization of Encryption...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 8 flushers...succeeded
oninit: Fatal error in shared memory initialization
WARNING: server initialization failed, or possibly timed out (if -w was used).
Check the message log, online.log, for errors.
#
What is the SERVERNUM value of your first instance ?
What's the output of ipcs command ?
SARAVANAN AJ a écrit :
> In my setup, SERVERNUM is unique and a new dbspace is created on that
> ROOTPATH. And correct ROOTPATH parameter is mentioned in onconfig file.
>
> I tried with "oninit -iv" option also. This time also i am getting the same
> errors in online.log file.
>
> # oninit -iv>
> This action will initialize IBM Informix Dynamic Server;
> any existing IBM Informix Dynamic Server databases will NOT be accessible -
> Do you wish to continue (y/n)? y
> Checking group membership to determine server run mode...succeeded
> Reading configuration file
> '/mount/fs1/informix/etc/onconfig.sportage2'...succeeded
> Creating /INFORMIXTMP/.infxdirs...succeeded
> Creating infos file "/mount/fs1/informix/etc/.infos.sportage2"...succeeded
> Linking conf file "/mount/fs1/informix/etc/.conf.sportage2"...succeeded
> Checking config parameters...succeeded
> Writing to infos file...succeeded
> WARNING : If you intend to use J/Foundation or GLS for Unicode feature(GLU)
> with this Server instance, please make sure that your SHMBASE value specifies
> in onconfig is 0x700000010000000 or above. Otherwise you will have problems
> while attaching or dynamically adding virtual shared memory segments. Please
> refer to Server machine notes for more information.
> Allocating and attaching to shared memory...succeeded
> Creating resident pool 4532 kbytes...succeeded
> Allocating 4016 kbytes for buffer pool of 4K page size...succeeded
> Initializing rhead structure...succeeded
> Initialization of Encryption...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 8 flushers...succeeded
> oninit: Fatal error in shared memory initialization
>
> WARNING: server initialization failed, or possibly timed out (if -w was
used).
> Check the message log, online.log, for errors.
> #
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
Hi,
Please see the outputs below...
Instance1 - sportage1
======================
# grep -i "servernum" ./etc/onconfig.sportage1# SERVERNUM - The unique ID for the IDS instance. Acceptable
SERVERNUM 0
Instance2 - sportage2
=====================
# grep -i "servernum" ./etc/onconfig.sportage2# SERVERNUM - The unique ID for the IDS instance. Acceptable
SERVERNUM 1
#
# ps -ef | grep -i oninitinformix 102476 336090 0 15:42:07 - 0:00 oninit -iyw 60
informix 327708 336090 0 15:42:10 - 0:00 oninit -iyw 60
informix 336090 340016 0 15:42:05 - 0:00 oninit -iyw 60
informix 340016 1 0 15:42:04 - 0:04 oninit -iyw 60
informix 344284 336090 0 15:42:05 - 0:00 oninit -iyw 60
informix 348186 336090 0 15:42:08 - 0:00 oninit -iyw 60
informix 360550 336090 0 15:42:09 - 0:00 oninit -iyw 60
informix 381000 336090 0 15:42:06 - 0:00 oninit -iyw 60
root 389336 266380 0 21:33:34 pts/0 0:00 grep -i oninit
# ipcs
IPC status from /dev/mem as of Wed Dec 31 18:00:00 CST 1969
T ID KEY MODE OWNER GROUP
Message Queues:
Shared Memory:
Semaphores:
#
Do i need to configure any "Shared Memory Configuration Parameters" in
onconfig file ???
Thanks in advance
Saravanan
I Hope "SHMBASE 0x700000010000000" should be set in the onconfig file... Already one demo instance (sportage1) is running on this AIX host and it does not show any IPCs. how can i make the second instance running in this setup.. Your help is highly appreciated. Thanks Saravanan
Your log file shows server can't access chunk file "online_root".
Please make sure you can access this file and assign proper permissions to it.
Then bring up server as user "informix"
16:03:24 Cannot Open Primary Chunk
'/mount/fs1/informix/sportage2/server/online_root', errno = 2
Regards,
-Ping
--- On Fri, 7/10/09, SARAVANAN A....@yahoo.com <SARAVANAN A....@yahoo.com>
wrote:
From: SARAVANAN A....@yahoo.com <SARAVANAN A....@yahoo.com>
Subject: Configuring 2nd informix instance on the same .... [16314]
To: ids@iiug.org
Date: Friday, July 10, 2009, 2:21 AM
Configuring 2nd informix instance on the same server is not going through in
my setup.....
Step1 : Informix Instance (sportage1) is created as a demo instance while
installing IDS on an AIX box. It is running now and i want to create an
another instance sportage2 on the same server.
Step 2 :
a) Created new onconfig.sportage2 . The following parameters are changed. New
dbspace rootdbs_sportage2 is created via onspaces command.
ROOTNAME rootdbs_sportage2
ROOTPATH /mount/fs1/informix/sportage2/server/online_root
DBSERVERNAME sportage2
SERVERNUM 1
b) Created new sqlhosts.sportage2
sportage2 onsoctcp sportage 9089
Step 3 :
profile_settings file is updated appropriately and sourced in.
INFORMIXSERVER=sportage2
INFORMIXDIR="/mount/fs1/informix"
ONCONFIG=onconfig.sportage2
INFORMIXSQLHOSTS="/mount/fs1/informix/etc/sqlhosts.sportage2"
PATH=${INFORMIXDIR}/bin:${PATH}
export INFORMIXSERVER INFORMIXDIR ONCONFIG INFORMIXSQLHOSTS PATH
Step 4:
ran oninit command
Observed the following error/warning.
# oninitWARNING : If you intend to use J/Foundation or GLS for Unicode feature(GLU)
with
this Server instance, please make sure that your SHMBASE value specifies in
onc
onfig is 0x700000010000000 or above. Otherwise you will have problems while
atta
ching or dynamically adding virtual shared memory segments. Please refer to
Serv
er machine notes for more information.
WARNING: server initialization failed, or possibly timed out (if -w was used).
Check the message log, online.log, for errors.
#
online.log file :
---------------------------
16:02:42 IBM Informix Dynamic Server Started.
16:02:42 WARNING: If you intend to use J/Foundation or GLS for Unicode
feature(GLU) with this Server instance, please make sure that your SHMBASE
value specifies in onconfig is 0x700000010000000 or
above. Otherwise you will have problems while attaching or dynamimically
adding virtual shared memory segments. Please refer to Server machine notes
for more information.
16:02:42 Warning: The IBM IDS Developer Edition license restriction limits
16:02:42 the total shared memory size for this server to 1048576 KB.
16:02:42 The size has been reset to the limit to bring up the database server.
16:03:18 IBM Informix Dynamic Server Started.
16:03:18 WARNING: If you intend to use J/Foundation or GLS for Unicode
feature(GLU) with this Server instance, please make sure that your SHMBASE
value specifies in onconfig is 0x700000010000000 or
above. Otherwise you will have problems while attaching or dynamimically
adding virtual shared memory segments. Please refer to Server machine notes
for more information.
16:03:18 Warning: The IBM IDS Developer Edition license restriction limits
16:03:18 the total shared memory size for this server to 1048576 KB.
16:03:18 The size has been reset to the limit to bring up the database server.
Sat Jul 11 16:03:19 2009
16:03:19 Event alarms enabled. ALARMPROG =
'/mount/fs1/informix/etc/alarmprogram.sh'
16:03:19 Booting Language <c> from module <>
16:03:19 Loading Module <CNULL>
16:03:19 Booting Language <builtin> from module <>
16:03:19 Loading Module <BUILTINNULL>
16:03:19 Warning: CONSOLE = /mount/fs1/informix/tmp/online.con open failed.
Redirecting output to '/dev/null'.
16:03:19 VP pid=221242 priority fixed at 60, former = 62
16:03:24 DR: DRAUTO is 0 (Off)
16:03:24 DR: ENCRYPT_HDR is 0 (HDR encryption Disabled)
16:03:24 AIX MP latch code enabled
16:03:24 Fast poll pollset enabled.
16:03:24 IBM Informix Dynamic Server Version 11.50.FC4DE Software Serial
Number AAA#B000000
16:03:24 Warning: stat() failed for chunk file
/mount/fs1/informix/sportage2/server/online_root
16:03:24 Cannot Open Primary Chunk
'/mount/fs1/informix/sportage2/server/online_root', errno = 2
16:03:24 oninit: Fatal error in shared memory initialization
16:03:24 IBM Informix Dynamic Server Stopped.
16:03:25 mt_shm_remove: WARNING: may not have removed all/correct segments
~
Please pass some hints to solve this problem.
Thanks
Saravanan
------WebKitFormBoundaryaHske7zZ+GA9As5O
*******************************************************************************
Forum Note: Use "Reply" to post a response in the discussion forum.
The first time you bring up an IDS instance you must initialize the root
chunk by starting the oninit with the '-i' flag.
Art
Art S. Kagel
Oninit (www.oninit.com)
IIUG Board of Directors (art@iiug.org)
Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Oninit, the IIUG, nor any other organization
with which I am associated either explicitly or implicitly. Neither do
those opinions reflect those of other individuals affiliated with any entity
with which I am affiliated nor those of the entities themselves.
On Fri, Jul 10, 2009 at 3:21 AM, <> wrote:
> Configuring 2nd informix instance on the same server is not going through
> in
> my setup.....
>
> Step1 : Informix Instance (sportage1) is created as a demo instance while
> installing IDS on an AIX box. It is running now and i want to create an
> another instance sportage2 on the same server.
>
> Step 2 :
> a) Created new onconfig.sportage2 . The following parameters are changed.
> New
> dbspace rootdbs_sportage2 is created via onspaces command.
>
> ROOTNAME rootdbs_sportage2
> ROOTPATH /mount/fs1/informix/sportage2/server/online_root
> DBSERVERNAME sportage2
> SERVERNUM 1>
> b) Created new sqlhosts.sportage2
>
> sportage2 onsoctcp sportage 9089>
> Step 3 :
> profile_settings file is updated appropriately and sourced in.
>
> INFORMIXSERVER=sportage2
> INFORMIXDIR="/mount/fs1/informix"
> ONCONFIG=onconfig.sportage2
> INFORMIXSQLHOSTS="/mount/fs1/informix/etc/sqlhosts.sportage2"
> PATH=${INFORMIXDIR}/bin:${PATH}
> export INFORMIXSERVER INFORMIXDIR ONCONFIG INFORMIXSQLHOSTS PATH>
> Step 4:
>
> ran oninit command
>
> Observed the following error/warning.
>
> # oninit> WARNING : If you intend to use J/Foundation or GLS for Unicode feature(GLU)
> with
> this Server instance, please make sure that your SHMBASE value specifies in
> onc
> onfig is 0x700000010000000 or above. Otherwise you will have problems while
> atta
> ching or dynamically adding virtual shared memory segments. Please refer to
> Serv
> er machine notes for more information.
>
> WARNING: server initialization failed, or possibly timed out (if -w was
> used).
> Check the message log, online.log, for errors.
> #
>
> online.log file :
> ---------------------------
> 16:02:42 IBM Informix Dynamic Server Started.
> 16:02:42 WARNING: If you intend to use J/Foundation or GLS for Unicode
> feature(GLU) with this Server instance, please make sure that your SHMBASE
> value specifies in onconfig is 0x700000010000000 or
> above. Otherwise you will have problems while attaching or dynamimically
> adding virtual shared memory segments. Please refer to Server machine notes
> for more information.
>
> 16:02:42 Warning: The IBM IDS Developer Edition license restriction limits
> 16:02:42 the total shared memory size for this server to 1048576 KB.
> 16:02:42 The size has been reset to the limit to bring up the database
> server.
> 16:03:18 IBM Informix Dynamic Server Started.
> 16:03:18 WARNING: If you intend to use J/Foundation or GLS for Unicode
> feature(GLU) with this Server instance, please make sure that your SHMBASE
> value specifies in onconfig is 0x700000010000000 or
> above. Otherwise you will have problems while attaching or dynamimically
> adding virtual shared memory segments. Please refer to Server machine notes
> for more information.
>
> 16:03:18 Warning: The IBM IDS Developer Edition license restriction limits
> 16:03:18 the total shared memory size for this server to 1048576 KB.
> 16:03:18 The size has been reset to the limit to bring up the database
> server.
>
> Sat Jul 11 16:03:19 2009
>
> 16:03:19 Event alarms enabled. ALARMPROG =
> '/mount/fs1/informix/etc/alarmprogram.sh'
> 16:03:19 Booting Language <c> from module <>
> 16:03:19 Loading Module <CNULL>
> 16:03:19 Booting Language <builtin> from module <>
> 16:03:19 Loading Module <BUILTINNULL>
> 16:03:19 Warning: CONSOLE = /mount/fs1/informix/tmp/online.con open failed.
> Redirecting output to '/dev/null'.
> 16:03:19 VP pid=221242 priority fixed at 60, former = 62
> 16:03:24 DR: DRAUTO is 0 (Off)
> 16:03:24 DR: ENCRYPT_HDR is 0 (HDR encryption Disabled)
> 16:03:24 AIX MP latch code enabled
> 16:03:24 Fast poll pollset enabled.
> 16:03:24 IBM Informix Dynamic Server Version 11.50.FC4DE Software Serial
> Number AAA#B000000
> 16:03:24 Warning: stat() failed for chunk file
> /mount/fs1/informix/sportage2/server/online_root
> 16:03:24 Cannot Open Primary Chunk
> '/mount/fs1/informix/sportage2/server/online_root', errno = 2
> 16:03:24 oninit: Fatal error in shared memory initialization
>
> 16:03:24 IBM Informix Dynamic Server Stopped.
>
> 16:03:25 mt_shm_remove: WARNING: may not have removed all/correct segments
> ~
>
> Please pass some hints to solve this problem.
>
> Thanks
> Saravanan
>
> ------WebKitFormBoundaryaHske7zZ+GA9As5O
>
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
--001636c5ae010c0c31046e5bc447
That's very odd. IDS ALWAYS creates at least two shared memory segments (except on HPUX with RESIDENT -1). Art Art S. Kagel Oninit (www.oninit.com) IIUG Board of Directors (art@iiug.org) Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Oninit, the IIUG, nor any other organization with which I am associated either explicitly or implicitly. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves. On Fri, Jul 10, 2009 at 8:29 AM, SARAVANAN AJ <saran_psg@rediffmail.com>wrote: > I Hope "SHMBASE 0x700000010000000" should be set in the onconfig file... > > Already one demo instance (sportage1) is running on this AIX host and it > does > not show any IPCs. > > how can i make the second instance running in this setup.. > > Your help is highly appreciated. > > Thanks > Saravanan > > > > ******************************************************************************* > Forum Note: Use "Reply" to post a response in the discussion forum. > > --001636c5a72e357fc1046e5bcf00
AHHHHH!!!!! That's the key, you didn't change the environment variable
ONCONFIG which is where oninit looks to find the name of the root chunk!
The last oninit -i probably trashed the root chunk for the first instance.
If that instance is still online, you can take an ontape -s -L 0 archive
just to be safe. Then I would shutdown the first instance and try to
restart it. If it doesn't start or is not in the condition that you left it
you can shutdown and restore the archive to get the first instance back.
To initialize and run the first instance you need to set and export the
ONCONFIG environment var to the second instance's onconfig file.
Art
Art S. Kagel
Oninit (www.oninit.com)
IIUG Board of Directors (art@iiug.org)
Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Oninit, the IIUG, nor any other organization
with which I am associated either explicitly or implicitly. Neither do
those opinions reflect those of other individuals affiliated with any entity
with which I am affiliated nor those of the entities themselves.
On Fri, Jul 10, 2009 at 10:12 AM, PING TANG <ptang83@yahoo.com> wrote:
> Your log file shows server can't access chunk file "online_root".
> Please make sure you can access this file and assign proper permissions to
> it.
> Then bring up server as user "informix"
>
> 16:03:24 Cannot Open Primary Chunk
> '/mount/fs1/informix/sportage2/server/online_root', errno = 2
>
> Regards,
>
> -Ping
> --- On Fri, 7/10/09, SARAVANAN A....@yahoo.com <SARAVANAN A....@yahoo.com>
> wrote:
>
> From: SARAVANAN A....@yahoo.com <SARAVANAN A....@yahoo.com>
> Subject: Configuring 2nd informix instance on the same .... [16314]
> To: ids@iiug.org
> Date: Friday, July 10, 2009, 2:21 AM
>
> Configuring 2nd informix instance on the same server is not going through
> in
> my setup.....
>
> Step1 : Informix Instance (sportage1) is created as a demo instance while
> installing IDS on an AIX box. It is running now and i want to create an
> another instance sportage2 on the same server.
>
> Step 2 :
> a) Created new onconfig.sportage2 . The following parameters are changed.
> New
> dbspace rootdbs_sportage2 is created via onspaces command.
>
> ROOTNAME rootdbs_sportage2
> ROOTPATH /mount/fs1/informix/sportage2/server/online_root
> DBSERVERNAME sportage2
> SERVERNUM 1>
> b) Created new sqlhosts.sportage2
>
> sportage2 onsoctcp sportage 9089>
> Step 3 :
> profile_settings file is updated appropriately and sourced in.
>
> INFORMIXSERVER=sportage2
> INFORMIXDIR="/mount/fs1/informix"
> ONCONFIG=onconfig.sportage2
> INFORMIXSQLHOSTS="/mount/fs1/informix/etc/sqlhosts.sportage2"
> PATH=${INFORMIXDIR}/bin:${PATH}
> export INFORMIXSERVER INFORMIXDIR ONCONFIG INFORMIXSQLHOSTS PATH>
> Step 4:
>
> ran oninit command
>
> Observed the following error/warning.
>
> # oninit> WARNING : If you intend to use J/Foundation or GLS for Unicode feature(GLU)
> with
> this Server instance, please make sure that your SHMBASE value specifies in
> onc
> onfig is 0x700000010000000 or above. Otherwise you will have problems while
> atta
> ching or dynamically adding virtual shared memory segments. Please refer to
> Serv
> er machine notes for more information.
>
> WARNING: server initialization failed, or possibly timed out (if -w was
> used).
> Check the message log, online.log, for errors.
> #
>
> online.log file :
> ---------------------------
> 16:02:42 IBM Informix Dynamic Server Started.
> 16:02:42 WARNING: If you intend to use J/Foundation or GLS for Unicode
> feature(GLU) with this Server instance, please make sure that your SHMBASE
> value specifies in onconfig is 0x700000010000000 or
> above. Otherwise you will have problems while attaching or dynamimically
> adding virtual shared memory segments. Please refer to Server machine notes
> for more information.
>
> 16:02:42 Warning: The IBM IDS Developer Edition license restriction limits
> 16:02:42 the total shared memory size for this server to 1048576 KB.
> 16:02:42 The size has been reset to the limit to bring up the database
> server.
> 16:03:18 IBM Informix Dynamic Server Started.
> 16:03:18 WARNING: If you intend to use J/Foundation or GLS for Unicode
> feature(GLU) with this Server instance, please make sure that your SHMBASE
> value specifies in onconfig is 0x700000010000000 or
> above. Otherwise you will have problems while attaching or dynamimically
> adding virtual shared memory segments. Please refer to Server machine notes
> for more information.
>
> 16:03:18 Warning: The IBM IDS Developer Edition license restriction limits
> 16:03:18 the total shared memory size for this server to 1048576 KB.
> 16:03:18 The size has been reset to the limit to bring up the database
> server.
>
> Sat Jul 11 16:03:19 2009
>
> 16:03:19 Event alarms enabled. ALARMPROG =
> '/mount/fs1/informix/etc/alarmprogram.sh'
> 16:03:19 Booting Language <c> from module <>
> 16:03:19 Loading Module <CNULL>
> 16:03:19 Booting Language <builtin> from module <>
> 16:03:19 Loading Module <BUILTINNULL>
> 16:03:19 Warning: CONSOLE = /mount/fs1/informix/tmp/online.con open failed.
> Redirecting output to '/dev/null'.
> 16:03:19 VP pid=221242 priority fixed at 60, former = 62
> 16:03:24 DR: DRAUTO is 0 (Off)
> 16:03:24 DR: ENCRYPT_HDR is 0 (HDR encryption Disabled)
> 16:03:24 AIX MP latch code enabled
> 16:03:24 Fast poll pollset enabled.
> 16:03:24 IBM Informix Dynamic Server Version 11.50.FC4DE Software Serial
> Number AAA#B000000
> 16:03:24 Warning: stat() failed for chunk file
> /mount/fs1/informix/sportage2/server/online_root
> 16:03:24 Cannot Open Primary Chunk
> '/mount/fs1/informix/sportage2/server/online_root', errno = 2
> 16:03:24 oninit: Fatal error in shared memory initialization
>
> 16:03:24 IBM Informix Dynamic Server Stopped.
>
> 16:03:25 mt_shm_remove: WARNING: may not have removed all/correct segments
> ~
>
> Please pass some hints to solve this problem.
>
> Thanks
> Saravanan
>
> ------WebKitFormBoundaryaHske7zZ+GA9As5O
>
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
--00504502d6c42fc625046e5bdbb4
Hi,
If the problem hasn't been solved yet, can you attach onconfig files
for sportage1 and sportage2 ?
Please also attach sportage2 message log file.
Best Regards,
HM
SARAVANAN AJ a écrit :
> Hi,
>
> Please see the outputs below...
>
> Instance1 - sportage1
> ======================
> # grep -i "servernum" ./etc/onconfig.sportage1> # SERVERNUM - The unique ID for the IDS instance. Acceptable
> SERVERNUM 0>
> Instance2 - sportage2
> =====================
> # grep -i "servernum" ./etc/onconfig.sportage2> # SERVERNUM - The unique ID for the IDS instance. Acceptable
> SERVERNUM 1
> #>
> # ps -ef | grep -i oninit> informix 102476 336090 0 15:42:07 - 0:00 oninit -iyw 60
> informix 327708 336090 0 15:42:10 - 0:00 oninit -iyw 60
> informix 336090 340016 0 15:42:05 - 0:00 oninit -iyw 60
> informix 340016 1 0 15:42:04 - 0:04 oninit -iyw 60
> informix 344284 336090 0 15:42:05 - 0:00 oninit -iyw 60
> informix 348186 336090 0 15:42:08 - 0:00 oninit -iyw 60
> informix 360550 336090 0 15:42:09 - 0:00 oninit -iyw 60
> informix 381000 336090 0 15:42:06 - 0:00 oninit -iyw 60
>
> root 389336 266380 0 21:33:34 pts/0 0:00 grep -i oninit
>
> # ipcs
> IPC status from /dev/mem as of Wed Dec 31 18:00:00 CST 1969
> T ID KEY MODE OWNER GROUP
> Message Queues:
>
> Shared Memory:
> Semaphores:
> #
>
> Do i need to configure any "Shared Memory Configuration Parameters" in
> onconfig file ???
>
> Thanks in advance
> Saravanan
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
Still i am not able to solve this problem.
I checked the permissions of the files and changed the ROOTPATH to
/mount/fs1/informix/sportage2/server/rootdbs_sportage2 and ran "oninit -i".
# ls -l /mount/fs1/informix/sportage2/servertotal 16
-rw-rw-r-- 1 informix informix 5478 Jul 11 22:02 online.log
-rw-rw---- 1 informix informix 0 Jul 11 15:52 rootdbs_sportage2
#
Instance is not started this time also.,
I have sent a mail with attachments. Your help is really appreciated.
Thanks
Saravanna
What is the name of the ONCONFIG file? Do you have the ONCONFIG environment
variable properly set to this name in the startup environment? Post the
terminal output of the oninit -iv and also the MSGPATH file contents
starting with the startup messages.
Art
Art S. Kagel
Oninit (www.oninit.com)
IIUG Board of Directors (art@iiug.org)
Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Oninit, the IIUG, nor any other organization
with which I am associated either explicitly or implicitly. Neither do
those opinions reflect those of other individuals affiliated with any entity
with which I am affiliated nor those of the entities themselves.
On Mon, Jul 13, 2009 at 12:50 AM, SARAVANAN AJ <saran_psg@rediffmail.com>wrote:
> Still i am not able to solve this problem.
>
> I checked the permissions of the files and changed the ROOTPATH to
> /mount/fs1/informix/sportage2/server/rootdbs_sportage2 and ran "oninit -i".
>
> # ls -l /mount/fs1/informix/sportage2/server> total 16
> -rw-rw-r-- 1 informix informix 5478 Jul 11 22:02 online.log
> -rw-rw---- 1 informix informix 0 Jul 11 15:52 rootdbs_sportage2
> #
>
> Instance is not started this time also.,
>
> I have sent a mail with attachments. Your help is really appreciated.
>
> Thanks
> Saravanna
>
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
--0016e6d32a1bcf441e046e96bee9
Thank you all. Problem got solved now. Thanks Saravanan ------WebKitFormBoundaryH2Gxg2MQt+wLg05x