dbTalk Databases Forums  

Fatal error in shared memory during system reboot

comp.databases.informix comp.databases.informix


Discuss Fatal error in shared memory during system reboot in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
steven_nospam at Yahoo! Canada
 
Posts: n/a

Default Fatal error in shared memory during system reboot - 08-24-2005 , 01:14 PM






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:

Quote:
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.

Quote:
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 already
exists
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



Reply With Quote
  #2  
Old   
Obnoxio The Clown
 
Posts: n/a

Default Re: Fatal error in shared memory during system reboot - 08-24-2005 , 03:02 PM







steven_nospam at Yahoo! Canada said:
Quote:
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 already
exists
09:55:43 mt_shm_init: can't create resident segment
And what does ipcs report?

Quote:
Environment:
============
IBM RS/6000 Running AIX 5.2 (64-bit)
Informix IDS 9.40 FC3


--

Bye now,
Obnoxio

"C'est pas parce qu'on n'a rien ` dire qu'il faut fermer sa gueule"
- Coluche

A smile is a gift that is free to the giver and precious to the recipient.
But giving someone the finger is free too, and I find it more personal and
sincere.
sending to informix-list


Reply With Quote
  #3  
Old   
david@smooth1.co.uk
 
Posts: n/a

Default Re: Fatal error in shared memory during system reboot - 08-24-2005 , 03:45 PM




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


Reply With Quote
  #4  
Old   
Dirk Moolman
 
Posts: n/a

Default RE: Fatal error in shared memory during system reboot - 08-25-2005 , 05:54 AM




Did you shut down properly ? If you did not, you will first have to
delete the files in /INFORMIXTMP before starting up.


-----Original Message-----
From: owner-informix-list (AT) iiug (DOT) org [mailtowner-informix-list (AT) iiug (DOT) org]
On Behalf Of steven_nospam at Yahoo! Canada
Sent: 24 August 2005 08:15 PM
To: informix-list (AT) iiug (DOT) org
Subject: Fatal error in shared memory during system reboot

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:

Quote:
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.

Quote:
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 already
exists
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
sending to informix-list


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.