Received: from sss.pgh.pa.us (sss.pgh.pa.us [209.114.132.154]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f2TGLQK43564 for ; Thu, 29 Mar 2001 11:21:26 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.3/8.11.3) with ESMTP id f2TGLOw22537; Thu, 29 Mar 2001 11:21:24 -0500 (EST) To: DHSC Webmaster cc: pgsql-admin@postgresql.org Subject: Re: PG 7.0.3 & RH 7 IPC problems? In-reply-to: <3AC350FD.877FE31D@dhs-club.com> References: <3AC350FD.877FE31D@dhs-club.com> Comments: In-reply-to DHSC Webmaster message dated "Thu, 29 Mar 2001 10:13:01 -0500" Date: Thu, 29 Mar 2001 11:21:24 -0500 Message-ID: <22534.985882884@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200103/231 X-Sequence-Number: 1080 DHSC Webmaster 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