shared memory already exists
Posted in 2007
On AIX 5.3 with IDS, oninit failed with "Fatal error in shared memory creation" / shmget EEXIST "shared memory already exists" (key 52604801), even though no server processes were running; the poster asked whether a reboot was the only cure. Replies said no: use ipcs to identify the orphaned informix shared memory segments and semaphores and remove them with ipcrm (one poster supplied an awk one-liner to build the ipcrm command), or alternatively change SERVERNUM in the config so IDS uses different keys and clean up the stale segments afterwards. The poster thanked both; no further confirmation is recorded.
Auto-generated by DrWatson from the posts below — may be imperfect; read the full thread.
Topics: General Discussion
HI, guys,
AIX5.3 , IDS UC5
If we see the following problem, the only way is to turn off/on the power?
informix@otto $ oninit
oninit: Fatal error in shared memory creation
informix@otto $
informix@otto $ onstat -m
*** WARNING: IBM Informix Dynamic Server is no longer running. ***
16:42:20 IBM Informix Dynamic Server Started.
16:42:20 shmget: [EEXIST][17]: key 52604801: shared memory already exists
16:42:20 mt_shm_init: can't create resident segment
Thanks,
Frank
informix@otto $ ps -ef | grep informix
informix 692352 831686 1 17:03:15 pts/2 0:00 -ksh
informix 761990 831994 0 16:22:08 pts/1 0:01 -ksh
informix 774304 692352 0 16:41:42 pts/2 0:00 ps -ef
informix 856432 692352 0 16:41:42 pts/2 0:00 grep informix
informix@otto $ ipcs
IPC status from /dev/mem as of Tue Jan 23 16:41:49 CUT 2007
T ID KEY MODE OWNER GROUP
Message Queues:
q 0 0x4107001c -Rrw-rw---- root printq
Shared Memory:
m 1048577 0xffffffff --rw-rw---- root system
m 1048578 0x780001d4 --rw-rw-rw- root system
m 4194309 0x52604802 --rw-rw---- root informix
m 4194310 0x52604803 --rw-rw-rw- root informix
m 4194311 0x52604801 --rw-rw---- root informix
Semaphores:
s 3145728 0x0100b28f --ra------- root system
s 1 0x6200b15c --ra-r--r-- root system
s 1048578 00000000 --ra-ra-ra- root informix
s 1048579 00000000 --ra-ra-ra- root informix
s 4194308 00000000 --ra-ra-ra- root informix
s 1048584 00000000 --ra-ra-ra- root informix
Hi Frank,
An other method is to change your SERVERNUM in the configurationfile,
IDS will use other shared memory addresses.
After that you can cleanup your shared memory
Jacques
-----Original Message-----
From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of
FRANK
Sent: dinsdag 23 januari 2007 17:40
To: ids@iiug.org
Subject: shared memory already exists [8276]
HI, guys,
AIX5.3 , IDS UC5
If we see the following problem, the only way is to turn off/on the
power?
informix@otto $ oninit
oninit: Fatal error in shared memory creation
informix@otto $
informix@otto $ onstat -m
*** WARNING: IBM Informix Dynamic Server is no longer running. ***
16:42:20 IBM Informix Dynamic Server Started.
16:42:20 shmget: [EEXIST][17]: key 52604801: shared memory already
exists
16:42:20 mt_shm_init: can't create resident segment
Thanks,
Frank
informix@otto $ ps -ef | grep informix
informix 692352 831686 1 17:03:15 pts/2 0:00 -ksh
informix 761990 831994 0 16:22:08 pts/1 0:01 -ksh
informix 774304 692352 0 16:41:42 pts/2 0:00 ps -ef
informix 856432 692352 0 16:41:42 pts/2 0:00 grep informix
informix@otto $ ipcs
IPC status from /dev/mem as of Tue Jan 23 16:41:49 CUT 2007
T ID KEY MODE OWNER GROUP
Message Queues:
q 0 0x4107001c -Rrw-rw---- root printq
Shared Memory:
m 1048577 0xffffffff --rw-rw---- root system
m 1048578 0x780001d4 --rw-rw-rw- root system
m 4194309 0x52604802 --rw-rw---- root informix
m 4194310 0x52604803 --rw-rw-rw- root informix
m 4194311 0x52604801 --rw-rw---- root informix
Semaphores:
s 3145728 0x0100b28f --ra------- root system
s 1 0x6200b15c --ra-r--r-- root system
s 1048578 00000000 --ra-ra-ra- root informix
s 1048579 00000000 --ra-ra-ra- root informix
s 4194308 00000000 --ra-ra-ra- root informix
s 1048584 00000000 --ra-ra-ra- root informix
************************************************************************
*******
Forum Note: Use "Reply" to post a response in the discussion forum.
use ipcs to find the segments to kill, and ipcrm to remove them. I have
this in my toolbox:
a=`ipcs | grep ^[ms] | awk '{strg=sprintf("%s -%s %s",strg,$1,$2)} END
{print strg}'`
sudo ipcrm $a
j.
-----Original Message-----
From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org]On Behalf Of
FRANK
Sent: Tuesday, January 23, 2007 11:40 AM
To: ids@iiug.org
Subject: shared memory already exists [8276]
HI, guys,
AIX5.3 , IDS UC5
If we see the following problem, the only way is to turn off/on the power?
informix@otto $ oninit
oninit: Fatal error in shared memory creation
informix@otto $
informix@otto $ onstat -m
*** WARNING: IBM Informix Dynamic Server is no longer running. ***
16:42:20 IBM Informix Dynamic Server Started.
16:42:20 shmget: [EEXIST][17]: key 52604801: shared memory already exists
16:42:20 mt_shm_init: can't create resident segment
Thanks,
Frank
informix@otto $ ps -ef | grep informix
informix 692352 831686 1 17:03:15 pts/2 0:00 -ksh
informix 761990 831994 0 16:22:08 pts/1 0:01 -ksh
informix 774304 692352 0 16:41:42 pts/2 0:00 ps -ef
informix 856432 692352 0 16:41:42 pts/2 0:00 grep informix
informix@otto $ ipcs
IPC status from /dev/mem as of Tue Jan 23 16:41:49 CUT 2007
T ID KEY MODE OWNER GROUP
Message Queues:
q 0 0x4107001c -Rrw-rw---- root printq
Shared Memory:
m 1048577 0xffffffff --rw-rw---- root system
m 1048578 0x780001d4 --rw-rw-rw- root system
m 4194309 0x52604802 --rw-rw---- root informix
m 4194310 0x52604803 --rw-rw-rw- root informix
m 4194311 0x52604801 --rw-rw---- root informix
Semaphores:
s 3145728 0x0100b28f --ra------- root system
s 1 0x6200b15c --ra-r--r-- root system
s 1048578 00000000 --ra-ra-ra- root informix
s 1048579 00000000 --ra-ra-ra- root informix
s 4194308 00000000 --ra-ra-ra- root informix
s 1048584 00000000 --ra-ra-ra- root informix
****************************************************************************
***
Forum Note: Use "Reply" to post a response in the discussion forum.
Thank you, Jack. Frank
On 1/23/07, Jack Parker <jack.parker4@verizon.net> wrote:
>
>
> use ipcs to find the segments to kill, and ipcrm to remove them. I have
> this in my toolbox:
>
> a=`ipcs | grep ^[ms] | awk '{strg=sprintf("%s -%s %s",strg,$1,$2)} END
> {print strg}'`
> sudo ipcrm $a
>
> j.
> -----Original Message-----
> From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org]On Behalf Of
> FRANK
> Sent: Tuesday, January 23, 2007 11:40 AM
> To: ids@iiug.org
> Subject: shared memory already exists [8276]
>
> HI, guys,
>
> AIX5.3 , IDS UC5
>
> If we see the following problem, the only way is to turn off/on the power?
>
> informix@otto $ oninit
> oninit: Fatal error in shared memory creation
> informix@otto $
>
> informix@otto $ onstat -m
> *** WARNING: IBM Informix Dynamic Server is no longer running. ***
>
> 16:42:20 IBM Informix Dynamic Server Started.
> 16:42:20 shmget: [EEXIST][17]: key 52604801: shared memory already exists
> 16:42:20 mt_shm_init: can't create resident segment
>
> Thanks,
> Frank
>
> informix@otto $ ps -ef | grep informix
> informix 692352 831686 1 17:03:15 pts/2 0:00 -ksh
> informix 761990 831994 0 16:22:08 pts/1 0:01 -ksh
> informix 774304 692352 0 16:41:42 pts/2 0:00 ps -ef
> informix 856432 692352 0 16:41:42 pts/2 0:00 grep informix
>
> informix@otto $ ipcs
> IPC status from /dev/mem as of Tue Jan 23 16:41:49 CUT 2007
> T ID KEY MODE OWNER GROUP
> Message Queues:
> q 0 0x4107001c -Rrw-rw---- root printq
>
> Shared Memory:
> m 1048577 0xffffffff --rw-rw---- root system
> m 1048578 0x780001d4 --rw-rw-rw- root system
> m 4194309 0x52604802 --rw-rw---- root informix
> m 4194310 0x52604803 --rw-rw-rw- root informix
> m 4194311 0x52604801 --rw-rw---- root informix
> Semaphores:
> s 3145728 0x0100b28f --ra------- root system
> s 1 0x6200b15c --ra-r--r-- root system
> s 1048578 00000000 --ra-ra-ra- root informix
> s 1048579 00000000 --ra-ra-ra- root informix
> s 4194308 00000000 --ra-ra-ra- root informix
> s 1048584 00000000 --ra-ra-ra- root informix
>
>
> ****************************************************************************
> ***
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
Thank you, Jacques. Frank
On 1/23/07, Lapeire, Jacques <jacques.lapeire@siemens.com> wrote:
>
>
> Hi Frank,
>
> An other method is to change your SERVERNUM in the configurationfile,
> IDS will use other shared memory addresses.
>
> After that you can cleanup your shared memory
>
> Jacques
>
> -----Original Message-----
> From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of
> FRANK
> Sent: dinsdag 23 januari 2007 17:40
> To: ids@iiug.org
> Subject: shared memory already exists [8276]
>
> HI, guys,
>
> AIX5.3 , IDS UC5
>
> If we see the following problem, the only way is to turn off/on the
> power?
>
> informix@otto $ oninit
> oninit: Fatal error in shared memory creation
> informix@otto $
>
> informix@otto $ onstat -m
> *** WARNING: IBM Informix Dynamic Server is no longer running. ***
>
> 16:42:20 IBM Informix Dynamic Server Started.
> 16:42:20 shmget: [EEXIST][17]: key 52604801: shared memory already
> exists
> 16:42:20 mt_shm_init: can't create resident segment
>
> Thanks,
> Frank
>
> informix@otto $ ps -ef | grep informix
> informix 692352 831686 1 17:03:15 pts/2 0:00 -ksh
> informix 761990 831994 0 16:22:08 pts/1 0:01 -ksh
> informix 774304 692352 0 16:41:42 pts/2 0:00 ps -ef
> informix 856432 692352 0 16:41:42 pts/2 0:00 grep informix
>
> informix@otto $ ipcs
> IPC status from /dev/mem as of Tue Jan 23 16:41:49 CUT 2007
> T ID KEY MODE OWNER GROUP
> Message Queues:
> q 0 0x4107001c -Rrw-rw---- root printq
>
> Shared Memory:
> m 1048577 0xffffffff --rw-rw---- root system
> m 1048578 0x780001d4 --rw-rw-rw- root system
> m 4194309 0x52604802 --rw-rw---- root informix
> m 4194310 0x52604803 --rw-rw-rw- root informix
> m 4194311 0x52604801 --rw-rw---- root informix
> Semaphores:
> s 3145728 0x0100b28f --ra------- root system
> s 1 0x6200b15c --ra-r--r-- root system
> s 1048578 00000000 --ra-ra-ra- root informix
> s 1048579 00000000 --ra-ra-ra- root informix
> s 4194308 00000000 --ra-ra-ra- root informix
> s 1048584 00000000 --ra-ra-ra- root informix
>
> ************************************************************************
> *******
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
>
>
*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
it executes the following commando:
user root:
# ipcs -ma |grep informix
user informix:
$ onstat -
send: online.log
bye
>From: "FRANK" <yunyaoqu@gmail.com>
>Reply-To: ids@iiug.org
>To: ids@iiug.org
>Subject: shared memory already exists [8276]
>Date: Tue, 23 Jan 2007 11:39:34 -0500 (EST)
>
>HI, guys,
>
>AIX5.3 , IDS UC5
>
>If we see the following problem, the only way is to turn off/on the power?
>
>informix@otto $ oninit
>oninit: Fatal error in shared memory creation
>informix@otto $
>
>informix@otto $ onstat -m
>*** WARNING: IBM Informix Dynamic Server is no longer running. ***
>
>16:42:20 IBM Informix Dynamic Server Started.
>16:42:20 shmget: [EEXIST][17]: key 52604801: shared memory already exists
>16:42:20 mt_shm_init: can't create resident segment
>
>Thanks,
>Frank
>
>informix@otto $ ps -ef | grep informix
>informix 692352 831686 1 17:03:15 pts/2 0:00 -ksh
>informix 761990 831994 0 16:22:08 pts/1 0:01 -ksh
>informix 774304 692352 0 16:41:42 pts/2 0:00 ps -ef
>informix 856432 692352 0 16:41:42 pts/2 0:00 grep informix
>
>informix@otto $ ipcs
>IPC status from /dev/mem as of Tue Jan 23 16:41:49 CUT 2007
>T ID KEY MODE OWNER GROUP
>Message Queues:
>q 0 0x4107001c -Rrw-rw---- root printq
>
>Shared Memory:
>m 1048577 0xffffffff --rw-rw---- root system
>m 1048578 0x780001d4 --rw-rw-rw- root system
>m 4194309 0x52604802 --rw-rw---- root informix
>m 4194310 0x52604803 --rw-rw-rw- root informix
>m 4194311 0x52604801 --rw-rw---- root informix
>Semaphores:
>s 3145728 0x0100b28f --ra------- root system
>s 1 0x6200b15c --ra-r--r-- root system
>s 1048578 00000000 --ra-ra-ra- root informix
>s 1048579 00000000 --ra-ra-ra- root informix
>s 4194308 00000000 --ra-ra-ra- root informix
>s 1048584 00000000 --ra-ra-ra- root informix
>
>
>*******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
_________________________________________________________________
Consigue aquí las mejores y mas recientes ofertas de trabajo en América
Latina y USA: http://latam.msn.com/empleos/