From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: digoal@126.com
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #10013: PostgreSQL 9.4 initdb FATAL: could not write to file "pg_xlog/xlogtemp.3590": No space left on devi
Date: Wed, 16 Apr 2014 10:32:50 +0300
Message-ID: <534E3222.609@vmware.com> (raw)
In-Reply-To: <20140414014442.15385.74268@wrigleys.postgresql.org>
References: <20140414014442.15385.74268@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 04/14/2014 04:44 AM, digoal@126.com wrote:
> The following bug has been logged on the website:
>
> Bug reference: 10013
> Logged by: digoal.zhou
> Email address: digoal@126.com
> PostgreSQL version: Unsupported/Unknown
> Operating system: CentOS 6.4 x64
> Description:
>
> I use recent postgresql snapshot from
> http://git.postgresql.org/gitweb/?p=postgresql.git;a=snapshot;h=e0c91a7ff015fab0ccbb0f75b6819f29ae00...
> but when initdb, error reported.
>
> [df output that shows plenty of disk space]
>
> pg94@db-172-16-3-150-> initdb -D /home/pg94/pg_root --debug
> ...
> DEBUG: creating and filling new WAL file
> FATAL: could not write to file "pg_xlog/xlogtemp.3590": No space left on
> device
Can you reproduce this, or was it a one-off failure?
The function reports "No space left on device" if the write() syscall
reports ENOSPC, but also on a short write, i.e. if write() reports
success but didn't write the whole buffer but only part of it. On a
local disk, a short write usually indicates running out of disk space,
but I'm not sure if there might be some other conditions when that
happens, especially with more exotic filesystems. Was there anything
special about the filesystem you're using?
If you can reproduce this, we could add some more debugging to see if it
was a short write or a ENOSPC.
- Heikki
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: hlinnakangas@vmware.com, digoal@126.com
Subject: Re: BUG #10013: PostgreSQL 9.4 initdb FATAL: could not write to file "pg_xlog/xlogtemp.3590": No space left on devi
In-Reply-To: <534E3222.609@vmware.com>
References: <20140414014442.15385.74268@wrigleys.postgresql.org> <534E3222.609@vmware.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox