initdb error

From: David Noel <david(dot)i(dot)noel(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: initdb error
Date: 2012-12-13 15:38:51
Message-ID: CAHAXwYBahzGt1QwqZAfT_aiA8UG6wj_u00yhOCAYT_BrjCyEVQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm running into the following error message when running initdb (FreeBSD host):

ygg# /usr/local/etc/rc.d/postgresql initdb -D /zdb/pgsql/data --debug
The files belonging to this database system will be owned by user "pgsql".
This user must also own the server process.

The database cluster will be initialized with locales
COLLATE: C
CTYPE: en_US.UTF-8
MESSAGES: en_US.UTF-8
MONETARY: en_US.UTF-8
NUMERIC: en_US.UTF-8
TIME: en_US.UTF-8
The default text search configuration will be set to "english".

creating directory /zdb/pgsql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 32MB
creating configuration files ... ok
creating template1 database in /zdb/pgsql/data/base/1 ... FATAL:
could not open file "pg_xlog/000000010000000000000001" (log file 0,
segment 1): No such file or directory
child process exited with exit code 1
initdb: removing data directory "/zdb/pgsql/data"

My best guess is that it has something to do with permissions, but I
really have no idea. Has anyone seen this before and found a way
around it?

-David

Responses

Browse pgsql-general by date

  From Date Subject
Next Message seiliki 2012-12-13 15:42:02 Re: How to keep the last row of a data set?
Previous Message Thomas Markus 2012-12-13 15:14:25 Re: How to keep the last row of a data set?