Re: Initdb fails on openwrt in "creating template1 database" - Mailing list pgsql-general

From Clemens Eisserer
Subject Re: Initdb fails on openwrt in "creating template1 database"
Date
Msg-id CAFvQSYQ=1N=uc24dRW4V3DTeOStBkQMRKFNTyxgvSPna4-9T=g@mail.gmail.com
Whole thread Raw
In response to Re: Initdb fails on openwrt in "creating template1 database"  (Scott Marlowe <scott.marlowe@gmail.com>)
Responses Re: Initdb fails on openwrt in "creating template1 database"  (Adrian Klaver <adrian.klaver@gmail.com>)
Re: Initdb fails on openwrt in "creating template1 database"  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Initdb fails on openwrt in "creating template1 database"  (Ben Chobot <bench@silentmedia.com>)
List 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@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

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Initdb fails on openwrt in "creating template1 database"
Next
From: aasat
Date:
Subject: Fetch from refcursor and transactions