Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

shmget: [EEXIST][17]: key XXXXXXXX: shared memory already exists ERROR

1,819 views
Skip to first unread message

June Nebab LKINY

unread,
Jan 11, 2011, 3:24:55 PM1/11/11
to informix-list
I can not bring up engine due to the following message:

   shmget: [EEXIST][17]: key XXXXXXXX: shared memory already exists
   mt_shm_init:  can't create resident segment

I ran "ipcs -m" and found the shared memory segment ID and key and cleaned it with "ipcrm -m <shmkeyid>" but the error persists and IDS engine is not starting up.

Tried changing SERVERNUM but error persists.

It is strange since I did not reboot the server nor did not change any onconfig parameter.


DISCLAIMER

This transmission and the information contained herein and/or in any attachments hereto and/or in any attachments thereto is privileged and/or confidential and is intended ONLY for the use of the individual(s) and/or entity(s) named above. If you are not the intended recipient, you are strictly prohibited from disclosing, printing, copying, using or disseminating this transmission and/or any such attachments and any information contained in this transmission and/or in any such attachments. ANY unauthorized interception of this transmission and/or any such attachments is a violation of federal criminal law.

If you have received this transmission in error please notify the sender immediately and delete the transmission and all such attachments.

Jarrod Teale

unread,
Jan 11, 2011, 3:26:41 PM1/11/11
to informix-list
If you are on version 11, try running "onclean -ky". It will rip out all of the memory segments for you.
 
Always post version and platform.
 


From: informix-l...@iiug.org [mailto:informix-l...@iiug.org] On Behalf Of June Nebab LKINY
Sent: Wednesday, 12 January 2011 9:25 a.m.
To: informix-list
Subject: shmget: [EEXIST][17]: key XXXXXXXX: shared memory already exists ERROR

June Nebab LKINY

unread,
Jan 11, 2011, 3:42:17 PM1/11/11
to informix-list, Jarrod Teale
onclean -ky results:

  onclean: Cleaning up processes and resources for 'prod117_net'...
  onclean: Cannot open the file /u/informix/11_7/etc/.conf.prod117_net.
  Ensure that the value of the INFORMIXSERVER environment variable
  matches the value of the DBSERVERNAME configuration parameter
  from your onconfig file.

The ".conf.prod117_net" file does not exist for some reason. 

$INFORMIXSERVER = prod117_shm
DBSERVERNAME = prod117_shm
DBSERVERALIASES = prod117_net

IDS 11.7 UC1GE


-------------------------------------
June A. Nebab
IBM Informix DBA/Linux System Admin
Lazare Kaplan International Inc.
19 W 44th Street
New York, NY 10036
800-554-3325
212-972-9700

"The World's Most Beautiful Diamond"
www.lazarediamonds.com
_______________________________________________ Informix-list mailing list Inform...@iiug.org http://www.iiug.org/mailman/listinfo/informix-list

Art Kagel

unread,
Jan 11, 2011, 3:48:50 PM1/11/11
to June Nebab LKINY, informix-list
Try running onmode -ky, that will usually kill any lingering shared memory segments. Or, if you have the $INFORMIXDIR/bin/onclean script, just run that and it will clean up.  Onclean is a recent addition, so depending on your version you may or may not have it. (This is why it is important to ALWAYS include your platform and version information when you post.)

Art

Art S. Kagel
Advanced DataTools (www.advancedatatools.com)
IIUG Board of Directors (a...@iiug.org)
Blog: http://informix-myview.blogspot.com/

Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference.  Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves.

Jarrod Teale

unread,
Jan 11, 2011, 3:49:34 PM1/11/11
to informix-list
June - I haven't seen that before.
Are you sure that the $INFORMIXSERVER variable is not set for the network connection, but for the shared memory?
It looks like the onclean process is trying to connect through the prod117_net alias name.
Maybe post your sqlhosts file for these two alias entries?
 
Jarrod


From: June Nebab LKINY [mailto:jne...@idealcut.com]
Sent: Wednesday, 12 January 2011 9:42 a.m.
To: informix-list
Cc: Jarrod Teale
Subject: Re: shmget: [EEXIST][17]: key XXXXXXXX: shared memory already exists ERROR

Subject: shmget: [EEXIST][17]: key XXXXXXXX: shared memory already exists ERROR

I can not bring up engine due to the following message:

   shmget: [EEXIST][17]: key XXXXXXXX: shared memory already exists
   mt_shm_init:  can't create resident segment

I ran "ipcs -m" and found the shared memory segment ID and key and cleaned it with "ipcrm -m <shmkeyid>" but the error persists and IDS engine is not starting up.

Tried changing SERVERNUM but error persists.

It is strange since I did not reboot the server nor did not change any onconfig parameter.


DISCLAIMER

This transmission and the information contained herein and/or in any attachments hereto and/or in any attachments thereto is privileged and/or confidential and is intended ONLY for the use of the individual(s) and/or entity(s) named above. If you are not the intended recipient, you are strictly prohibited from disclosing, printing, copying, using or disseminating this transmission and/or any such attachments and any information contained in this transmission and/or in any such attachments. ANY unauthorized interception of this transmission and/or any such attachments is a violation of federal criminal law.

If you have received this transmission in error please notify the sender immediately and delete the transmission and all such attachments.


_______________________________________________ Informix-list mailing list Inform...@iiug.org http://www.iiug.org/mailman/listinfo/informix-list

Art Kagel

unread,
Jan 11, 2011, 3:55:07 PM1/11/11
to June Nebab, informix-list
June, Jarrod's right.  Change INFORMIXSERVER to prod117_shm and try to run the onclean -ky and then oninit -v again.


Art

Art S. Kagel
Advanced DataTools (www.advancedatatools.com)
IIUG Board of Directors (a...@iiug.org)
Blog: http://informix-myview.blogspot.com/

Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference.  Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves.



June Nebab LKINY

unread,
Jan 11, 2011, 3:58:30 PM1/11/11
to Art Kagel, informix-list
Art,

Tried that a few times as root and as informix but the engine is not initialized at all so nothing to kill here.

Sorry, IDS 11.7UC1GE on RHEL 5.5

I tried onclean as was suggested earlier but the following message came up when I ran it:

    [dojo](PROD604:RT)(1)(informix)/u/informix/11_7/etc -> onclean
        onclean: Cleaning up processes and resources for 'prod117_net'...
        Do you wish to continue (y/n)? y

        onclean: Cannot open the file /u/informix/11_7/etc/.conf.prod117_net.
        Ensure that the value of the INFORMIXSERVER environment variable
        matches the value of the DBSERVERNAME configuration parameter
        from your onconfig file.
   [dojo](PROD604:RT)(1)(informix)/u/informix/11_7/etc ->






----- Original Message -----
From: "Art Kagel" <art....@gmail.com>
To: "June Nebab LKINY" <jne...@idealcut.com>
Cc: "informix-list" <inform...@iiug.org>
Sent: Tuesday, January 11, 2011 3:48:50 PM GMT -05:00 US/Canada Eastern
Subject: Re: shmget: [EEXIST][17]: key XXXXXXXX: shared memory already exists ERROR

Try running onmode -ky, that will usually kill any lingering shared memory segments. Or, if you have the $INFORMIXDIR/bin/onclean script, just run that and it will clean up.  Onclean is a recent addition, so depending on your version you may or may not have it. (This is why it is important to ALWAYS include your platform and version information when you post.)

Art

Art S. Kagel
Advanced DataTools (www.advancedatatools.com)
IIUG Board of Directors (a...@iiug.org)
Blog: http://informix-myview.blogspot.com/

Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference.  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 Tue, Jan 11, 2011 at 3:24 PM, June Nebab LKINY <jne...@idealcut.com> wrote:
I can not bring up engine due to the following message:

   shmget: [EEXIST][17]: key XXXXXXXX: shared memory already exists
   mt_shm_init:  can't create resident segment

I ran "ipcs -m" and found the shared memory segment ID and key and cleaned it with "ipcrm -m <shmkeyid>" but the error persists and IDS engine is not starting up.

Tried changing SERVERNUM but error persists.

It is strange since I did not reboot the server nor did not change any onconfig parameter.


DISCLAIMER

This transmission and the information contained herein and/or in any attachments hereto and/or in any attachments thereto is privileged and/or confidential and is intended ONLY for the use of the individual(s) and/or entity(s) named above. If you are not the intended recipient, you are strictly prohibited from disclosing, printing, copying, using or disseminating this transmission and/or any such attachments and any information contained in this transmission and/or in any such attachments. ANY unauthorized interception of this transmission and/or any such attachments is a violation of federal criminal law.

If you have received this transmission in error please notify the sender immediately and delete the transmission and all such attachments.


_______________________________________________
Informix-list mailing list
Inform...@iiug.org
http://www.iiug.org/mailman/listinfo/informix-list

June Nebab LKINY

unread,
Jan 11, 2011, 4:00:04 PM1/11/11
to Jarrod Teale, informix-list
Typo, sorry.  Yes, the $INFORMIXSERVER is set to the network connection ("prod117_net") as has been the case before. 

----- Original Message -----
From: "Jarrod Teale" <Jarrod...@fonterra.com>
To: "informix-list" <inform...@iiug.org>
Sent: Tuesday, January 11, 2011 3:49:34 PM GMT -05:00 US/Canada Eastern
Subject: RE: shmget: [EEXIST][17]: key XXXXXXXX: shared memory already exists ERROR

June - I haven't seen that before.
Are you sure that the $INFORMIXSERVER variable is not set for the network connection, but for the shared memory?
It looks like the onclean process is trying to connect through the prod117_net alias name.
Maybe post your sqlhosts file for these two alias entries?
 
Jarrod

From: June Nebab LKINY [mailto:jne...@idealcut.com]
Sent: Wednesday, 12 January 2011 9:42 a.m.
To: informix-list
Cc: Jarrod Teale
Subject: Re: shmget: [EEXIST][17]: key XXXXXXXX: shared memory already exists ERROR

onclean -ky results:


  onclean: Cleaning up processes and resources for 'prod117_net'...
  onclean: Cannot open the file /u/informix/11_7/etc/.conf.prod117_net.
  Ensure that the value of the INFORMIXSERVER environment variable
  matches the value of the DBSERVERNAME configuration parameter
  from your onconfig file.

The ".conf.prod117_net" file does not exist for some reason. 

$INFORMIXSERVER = prod117_shm
DBSERVERNAME = prod117_shm
DBSERVERALIASES = prod117_net

IDS 11.7 UC1GE


-------------------------------------
June A. Nebab
IBM Informix DBA/Linux System Admin
Lazare Kaplan International Inc.
19 W 44th Street
New York, NY 10036
800-554-3325
212-972-9700

"The World's Most Beautiful Diamond"
www.lazarediamonds.com

----- Original Message -----
From: "Jarrod Teale" <Jarrod...@fonterra.com>
To: "informix-list" <inform...@iiug.org>
Sent: Tuesday, January 11, 2011 3:26:41 PM GMT -05:00 US/Canada Eastern
Subject: RE: shmget: [EEXIST][17]: key XXXXXXXX: shared memory already exists ERROR

If you are on version 11, try running "onclean -ky". It will rip out all of the memory segments for you.
 
Always post version and platform.
 

From: informix-l...@iiug.org [mailto:informix-l...@iiug.org] On Behalf Of June Nebab LKINY
Sent: Wednesday, 12 January 2011 9:25 a.m.
To: informix-list
Subject: shmget: [EEXIST][17]: key XXXXXXXX: shared memory already exists ERROR

I can not bring up engine due to the following message:

   shmget: [EEXIST][17]: key XXXXXXXX: shared memory already exists
   mt_shm_init:  can't create resident segment

I ran "ipcs -m" and found the shared memory segment ID and key and cleaned it with "ipcrm -m <shmkeyid>" but the error persists and IDS engine is not starting up.

Tried changing SERVERNUM but error persists.

It is strange since I did not reboot the server nor did not change any onconfig parameter.


DISCLAIMER

This transmission and the information contained herein and/or in any attachments hereto and/or in any attachments thereto is privileged and/or confidential and is intended ONLY for the use of the individual(s) and/or entity(s) named above. If you are not the intended recipient, you are strictly prohibited from disclosing, printing, copying, using or disseminating this transmission and/or any such attachments and any information contained in this transmission and/or in any such attachments. ANY unauthorized interception of this transmission and/or any such attachments is a violation of federal criminal law.

If you have received this transmission in error please notify the sender immediately and delete the transmission and all such attachments.


_______________________________________________ Informix-list mailing list Inform...@iiug.org http://www.iiug.org/mailman/listinfo/informix-list
DISCLAIMER

This transmission and the information contained herein and/or in any attachments hereto and/or in any attachments thereto is privileged and/or confidential and is intended ONLY for the use of the individual(s) and/or entity(s) named above. If you are not the intended recipient, you are strictly prohibited from disclosing, printing, copying, using or disseminating this transmission and/or any such attachments and any information contained in this transmission and/or in any such attachments. ANY unauthorized interception of this transmission and/or any such attachments is a violation of federal criminal law.

If you have received this transmission in error please notify the sender immediately and delete the transmission and all such attachments.


_______________________________________________ Informix-list mailing list Inform...@iiug.org http://www.iiug.org/mailman/listinfo/informix-list
0 new messages