pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: digoal@126.com <digoal@126.com>
Cc: pgsql-bugs <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 13:16:45 +0200
Message-ID: <20140416111645.GC17874@awork2.anarazel.de> (raw)
In-Reply-To: <534E655A.8030200@vmware.com>
References: <20140414014442.15385.74268@wrigleys.postgresql.org>
	<534E3222.609@vmware.com>
	<201404161620172127337@126.com>
	<534E607B.8050502@vmware.com>
	<20140416105916.GB16358@awork2.anarazel.de>
	<534E655A.8030200@vmware.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2014-04-16 14:11:22 +0300, Heikki Linnakangas wrote:
> On 04/16/2014 01:59 PM, Andres Freund wrote:
> >On 2014-04-16 13:50:35 +0300, Heikki Linnakangas wrote:
> >>On 04/16/2014 11:20 AM, digoal@126.com wrote:
> >>>HI,
> >>>    I can reproduce this.
> >>
> >>Ok. Can you try with the attached patch applied, please?
> >
> >Perhaps this should also support partial writes, akin to
> >79ce29c734c6a652b2f7193bda537cff0c8eb8c1? I don't find it all that
> >unreasonble for the OS to refuse 16MB - or even bigger - writes in some
> >scenarios.
> 
> The write in XLogFileInit is always 8kB (XLOG_BLCKSZ).

Oh, then disregard that. I just remembered you fixing it for normal wal
writes...

A strace (or the platform's equivalent) might be interesting. Digoal?

> But yeah, it might
> make sense to retry. Although I wonder why XLogFileInit would be
> particularly vulnerable to short writes. I'm afraid if we fix that, next
> we'll start seeing failures from other writes, to data files.

I personally think we indeed should fix that generally, but that's not a
small change. We'd probably need some wrappers to make that happen
sensibly.

Greetings,

Andres Freund

-- 
 Andres Freund	                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (15+ messages)  latest in thread

Message-ID: <20140416111645.GC17874@awork2.anarazel.de>
Permalink:  ../20140416111645.GC17874@awork2.anarazel.de/
Also on:    postgresql.org/message-id/20140416111645.GC17874@awork2.anarazel.de

 · 

reply

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: andres@2ndquadrant.com, 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: <20140416111645.GC17874@awork2.anarazel.de>
  References: <20140414014442.15385.74268@wrigleys.postgresql.org> <534E3222.609@vmware.com> <201404161620172127337@126.com> <534E607B.8050502@vmware.com> <20140416105916.GB16358@awork2.anarazel.de> <534E655A.8030200@vmware.com> <20140416111645.GC17874@awork2.anarazel.de>

* 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