Re: Initdb fails on openwrt in "creating template1 database"

From: Clemens Eisserer <linuxhippy(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Initdb fails on openwrt in "creating template1 database"
Date: 2011-12-23 09:58:38
Message-ID: CAFvQSYQ=1N=uc24dRW4V3DTeOStBkQMRKFNTyxgvSPna4-9T=g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

>> There are about 800mb free space on /, any idea what could be the problem here?
>
> Could you be running out of file system nodes?

Don't think so - its a standard ext4 filesystem on a flush drive,
nothing special.
Also I've added about 128mb of swap space, so that shouldn't be an issue.

Just tried the same with a 2GB usb drive and got the same result :/

postgres(at)OpenWrt:~$ LC_COLLATE="C" initdb --pwprompt -D /var/postgres/data/
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.
The default database encoding has accordingly been set to SQL_ASCII.
The default text search configuration will be set to "english".

fixing permissions on existing directory /var/postgres/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 12MB
creating configuration files ... ok
creating template1 database in /var/postgres/data/base/1 ... FATAL:
could not write to file "pg_xlog/xlogtemp.1385": No space left on
device
child process exited with exit code 1
initdb: removing contents of data directory "/var/postgres/data"

Any idea what could be wrong here?

Thanks, Clemems

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message aasat 2011-12-23 13:13:45 Fetch from refcursor and transactions
Previous Message Shankar Palaniappan 2011-12-23 09:32:49 Re: Unable to connect to PostgreSQL server : Could not get socket error status