shmmax syntax in onconfig file
Posted in 2018
Topics: Performance & Tuning, Storage & Space Management, Server Administration
SA here that needs to set the shared memory for Informix. I am not worried
about performance at this point, just need to be able to get the informix
server to start. The onconfig file syntax is a bit odd.
All I want to set is approximately 4gb of shared memory.
"WARNING: server initialization failed, or possibly timed out (if -w was
used). Check the message log, online.log, for errors.
16:34:31 Warning: stat() failed for chunk file /opt/IBM/informix/tmp/demo_on.ro
otdbs
16:34:31 Trusted host cache successfully built:/etc/hosts.equiv.
16:34:31 Cannot Open Primary Chunk '/opt/IBM/informix/tmp/demo_on.rootdbs', err
no = 2
16:34:31 oninit: Fatal error in shared memory initialization
16:34:31 IBM Informix Dynamic Server Stopped.
16:34:31 mt_shm_remove: WARNING: may not have removed all/correct segments
Cannot Open Primary Chunk '/opt/IBM/informix/tmp/demo_on.rootdbs',
Make sure the file exists, Informix:Informix 660 or someuser:somegroup 600
if non-root install
Cheers
Paul
-----Original Message-----
From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of
MATTHEW MURDOCK
Sent: Thursday, February 01, 2018 4:38 PM
To: ids@iiug.org
Subject: shmmax syntax in onconfig file [40629]
SA here that needs to set the shared memory for Informix. I am not worried
about performance at this point, just need to be able to get the informix
server to start. The onconfig file syntax is a bit odd.
All I want to set is approximately 4gb of shared memory.
"WARNING: server initialization failed, or possibly timed out (if -w was
used). Check the message log, online.log, for errors.
16:34:31 Warning: stat() failed for chunk file
/opt/IBM/informix/tmp/demo_on.ro
otdbs
16:34:31 Trusted host cache successfully built:/etc/hosts.equiv.
16:34:31 Cannot Open Primary Chunk '/opt/IBM/informix/tmp/demo_on.rootdbs',
err
no = 2
16:34:31 oninit: Fatal error in shared memory initialization
16:34:31 IBM Informix Dynamic Server Stopped.
16:34:31 mt_shm_remove: WARNING: may not have removed all/correct segments
****************************************************************************
***
Forum Note: Use "Reply" to post a response in the discussion forum.
Despite the error in the log, shared memory is not your problem here.
The file for the root dbspace does not exist. You are using the delivered
onconfig file by the looks of it, and that expects an empty file to exist in
the location specified by ROOTPATH - which you have set as
$INFORMIXDIR/tmp/demo_on.rootdbs
Either that, or you have not pointed the environment variable ONCONFIG to
the name of an onconfig file that you have modified.
If you want to continue with the default ROOTPATH, you will need to create
the file. Assuming that you have the directory /opt/IBM/informix/tmp
created already, you will need to:
cd /opt/IBM/informix/tmp
touch demo_on.rootdbs
chown informix:informix demo_on.rootdbs
chmod 660 demo_on.rootdbs
This is just to get something up and running. Best practices would be to
create the file elsewhere in a directory that will store all your space,
then create a symbolic link to the file and have ROOTPATH reference that.
Mike Walker
Advanced DataTools Corporation
-----Original Message-----
From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of
MATTHEW MURDOCK
Sent: Thursday, February 01, 2018 3:38 PM
To: ids@iiug.org
Subject: shmmax syntax in onconfig file [40629]
SA here that needs to set the shared memory for Informix. I am not worried
about performance at this point, just need to be able to get the informix
server to start. The onconfig file syntax is a bit odd.
All I want to set is approximately 4gb of shared memory.
"WARNING: server initialization failed, or possibly timed out (if -w was
used). Check the message log, online.log, for errors.
16:34:31 Warning: stat() failed for chunk file
/opt/IBM/informix/tmp/demo_on.ro otdbs
16:34:31 Trusted host cache successfully built:/etc/hosts.equiv.
16:34:31 Cannot Open Primary Chunk '/opt/IBM/informix/tmp/demo_on.rootdbs',
err
no = 2
16:34:31 oninit: Fatal error in shared memory initialization
16:34:31 IBM Informix Dynamic Server Stopped.
16:34:31 mt_shm_remove: WARNING: may not have removed all/correct segments
****************************************************************************
***
Forum Note: Use "Reply" to post a response in the discussion forum.