pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: DHSC Webmaster <webmaster@dhs-club.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: PG 7.0.3 & RH 7 IPC problems?
Date: Thu, 29 Mar 2001 11:21:24 -0500
Message-ID: <22534.985882884@sss.pgh.pa.us> (raw)
In-Reply-To: <3AC350FD.877FE31D@dhs-club.com>
References: <3AC350FD.877FE31D@dhs-club.com>

DHSC Webmaster <webmaster@dhs-club.com> writes:
> [postgres@atl01371 data]$ nohup postmaster -D /usr/local/pgsql/data -i
> -B 128 -N 64 > /usr/local/pgsql/data/logs/log.txt
> IpcMemoryCreate: shmget failed (Invalid argument) key=5432001,
> size=2048000, permission=600

Not sure about Linux, but on HPUX there are two possible reasons for
shmget to return EINVAL:

          [EINVAL]       size is less than the system-imposed minimum or
                         greater than the system-imposed maximum.

          [EINVAL]       A shared memory identifier exists for key but the
                         size of the segment associated with it is less
                         than size and size is not equal to zero.

In other words, you could get this if there is an old segment of smaller
size and the same key still laying about, which there might well be if
you were foolish enough to kill -9 the old postmaster.  Use ipcs and
ipcrm to check and clean up.

7.1 uses a slightly different approach that hopefully avoids this
particular failure scenario...

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <22534.985882884@sss.pgh.pa.us>
Permalink:  ../22534.985882884@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22534.985882884@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, webmaster@dhs-club.com
  Subject: Re: PG 7.0.3 & RH 7 IPC problems?
  In-Reply-To: <22534.985882884@sss.pgh.pa.us>
  References: <3AC350FD.877FE31D@dhs-club.com> <22534.985882884@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox