Scenario:
=========
During a system reboot, our startup routines are automated and try to
bring up the Informix instances. These are standard commands that
usually work without incident.
The startup process (PID 1) runs a script in the inittab that sets the
Informix environment and issues "oninit" followed by "onstat -" a few
seconds later. These activities are logged so we can see what happens.
Problem:
========
Some of our systems are giving the following messages:
>Starting up instance...Executing "oninit" for instance "data1"
>oninit: Fatal error in shared memory creation
>
>Verifying instance "data1" status using "onstat -"...
>IBM Informix Dynamic Server Version 9.40.FC3 -- On-Line -- Up
When we check the instance afterward, it has shut itself down. However,
if we run the same script from a terminal after the system has been
started, the instance starts up fine. To top it all off, we have
another site using the same version and O/S level, same startup
routine, and it starts fine on that one.
>Starting up instance...Executing "oninit" for instance "data2"
>
>Verifying instance "data2" status using "onstat -"...
>IBM Informix Dynamic Server Version 9.40.FC3 -- On-Line -- Up
Any ideas why during a system reboot the instance may not want to
start, but will start okay afterward? Nothing should be in ipcs at that
point to interfere, but the only error I get from "onstat -m" complains
about a shared memory conflict:
09:55:43 IBM Informix Dynamic Server Started.
09:55:43 shmget: [EEXIST][17]: key 52584801: shared memory alreadyexists
09:55:43 mt_shm_init: can't create resident segment
Environment:
============
IBM RS/6000 Running AIX 5.2 (64-bit)
Informix IDS 9.40 FC3
↪ replying to steven_nospam at Yahoo! Canada
Your startup script is starting more than one instance on this machine
and is not changing environments properly for each instance?
Or in the ONCONFIG they do not have unique SERVERNUM's?
In the startup script run
echo $INFORMIXDIR/etc/$ONCONFIG
grep SERVERNUM $INFORMIXDIR/etc/$ONCONFIG
before each oninit command to see the problem.
env >> f