Thread: Running postgresql/initdb on linux/parisc problem

Running postgresql/initdb on linux/parisc problem

From
Martin Guy
Date:
Hi,

I'm currently porting gentoo on parsic aka hppa stations and I can't run
postgresql. It seems to be a common error but common workaround are not
working. (Log is at the bottom)

I've tryied what is described in
http://developer.postgresql.org/docs/postgres/kernel-resources.html with no
result.

ipcs show zero semaphores and the result of
cat /proc/sys/kernel/shmmax && cat /proc/sys/kernel/sem
is :
134217728
250     32000   32      128

Tanks in advance for your help.

    Guy Martin


PS : can you CC to me cause I've not subscribe



--- Log start ---
b180l postgresql # ebuild postgresql-7.3.ebuild config
 * >>> Creating data directory ...
 * >>> Initializing the database ...
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale C.

Fixing permissions on existing directory /var/lib/postgresql/data... ok
creating directory /var/lib/postgresql/data/base... ok
creating directory /var/lib/postgresql/data/global... ok
creating directory /var/lib/postgresql/data/pg_xlog... ok
creating directory /var/lib/postgresql/data/pg_clog... ok
creating template1 database in /var/lib/postgresql/data/base/1...
IpcSemaphoreCreate: semget(key=129, num=17, 03600) failed: No space left on
device

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 1).

The PostgreSQL Administrator's Guide contains more information about
configuring your system for PostgreSQL.

sed: couldn't write 74 items to stdout: Broken pipe
cat: write error: Broken pipe

initdb failed.
 * If you are upgrading from a pre-7.3 version of PostgreSQL, please read
 * the README.adddepend file for information on how to properly migrate
 * all serial columns, unique keys and foreign keys to this version.
b180l postgresql #
--- Log end ---

Rem : This is a simple script that runs initdb -D /var/lib/data