Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WaNpt-0003Yi-Bo for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Apr 2014 11:17:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WaNps-0004Mk-OI for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Apr 2014 11:17:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WaNpr-0004Md-QS for pgsql-bugs@postgresql.org; Wed, 16 Apr 2014 11:16:59 +0000 Received: from moutng.kundenserver.de ([212.227.17.24]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WaNpp-0000ct-8k for pgsql-bugs@postgresql.org; Wed, 16 Apr 2014 11:16:59 +0000 Received: from anarazel.de (p5DDC7393.dip0.t-ipconnect.de [93.220.115.147]) by mrelayeu.kundenserver.de (node=mreue105) with ESMTP (Nemesis) id 0MIf3g-1WYByH4BnU-002GPc; Wed, 16 Apr 2014 13:16:46 +0200 Received: by anarazel.de (Postfix, from userid 1000) id 413D0100A39; Wed, 16 Apr 2014 13:16:45 +0200 (CEST) Date: Wed, 16 Apr 2014 13:16:45 +0200 From: Andres Freund To: Heikki Linnakangas Cc: "digoal@126.com" , pgsql-bugs Subject: Re: BUG #10013: PostgreSQL 9.4 initdb FATAL: could not write to file "pg_xlog/xlogtemp.3590": No space left on devi Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <534E655A.8030200@vmware.com> X-Provags-ID: V02:K0:610oor+eZBxQbFfIjSSp1ft7nv3saNr+FFY47CwRLtV aIxjUZe7+/ghIf5mUQV1m3N6ORGpVXdSv7KZGd/echzECpVM4w 7qyxlJlFZa9szow2thEG1VDhc0xmeJOL0ZCOCynynWWV9D+4E8 sSWJnwOpkIrJRUw3ySMKbzl25XW+teg3BIkpcSUafGivqQ2N/e cBMUohvU5OPeCB/EhKYsjfNYUH38CIJRo290ysXeNp/XWAcc4F j5nFakY3TSMXpVb/i8pp9xuM8XPlj5U+POyqkhuRjcc0JFMmuP SyrQH88lKQ9NQfVK3nGDpvPR0X3ltrA6Wl5f1zAi/dvUuduVTq t5yl525/S/VSYCQhLQJ1LlLA8Ypr//b3eXoS9rJPI X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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