7.4.3 initdb: could not create semaphores - Mailing list pgsql-admin

From teknet@poczta.onet.pl
Subject 7.4.3 initdb: could not create semaphores
Date
Msg-id 20040702132114Z2653033-22184+44473@kps3.test.onet.pl
Whole thread Raw
Responses Re: 7.4.3 initdb: could not create semaphores  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin

Hello

I have FreeBSD5.1, postgresql 7.4.3, when i tried to:

initdb -D /usr/local/pgsql/data

i receive:

......

selecting default max_connections... 10
selecting default shared_buffers... 50
creating configuration files... ok
creating template1 database in /usr/local/pgsql/data//base/1... FATAL:  could not create semaphores: No space left on device
DETAIL:  Failed system call was semget(1, 17, 03600).
HINT:  This error does *not* mean that you have run out of disk space.
        It occurs when either the system limit for the maximum number of semaphore sets (SEMMNI), or the system wide maximum number of semaphores (SEMMNS), would be exceeded.  You need to raise the respective kernel parameter.  Alternatively, reduce PostgreSQL's consumption of semaphores by reducing its max_connections parameter (currently 10).
        The PostgreSQL documentation contains more information about configuring your system for PostgreSQL.

initdb: failed
initdb: removing data directory "/usr/local/pgsql/data/"

When i tried to edit in /usr/local/share/postgres/postgresql.conf

and set max_connection = 8 nothing changed, initdb again used:

selecting default max_connections... 10

Why ?

How can i sovle this problem ?

 

Thanx

Michal

pgsql-admin by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: Postgres IDENT auth problems...
Next
From: Corey.Brune@transplace.com
Date:
Subject: Re: 7.4.3 initdb: could not create semaphores