Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WaNkd-0003IG-4X for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Apr 2014 11:11:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WaNkc-0002HG-Jf for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Apr 2014 11:11:34 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WaNkb-0002H9-IA for pgsql-bugs@postgresql.org; Wed, 16 Apr 2014 11:11:33 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WaNkU-0001kv-EW for pgsql-bugs@postgresql.org; Wed, 16 Apr 2014 11:11:32 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id F2DA7283B4; Wed, 16 Apr 2014 04:11:24 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id DB5121ABFA; Wed, 16 Apr 2014 04:11:24 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 45DF4120033; Wed, 16 Apr 2014 04:11:17 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Wed, 16 Apr 2014 04:11:16 -0700 (PDT) Message-ID: <534E655A.8030200@vmware.com> Date: Wed, 16 Apr 2014 14:11:22 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0 MIME-Version: 1.0 To: Andres Freund 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 References: <20140414014442.15385.74268@wrigleys.postgresql.org> <534E3222.609@vmware.com> <201404161620172127337@126.com> <534E607B.8050502@vmware.com> <20140416105916.GB16358@awork2.anarazel.de> In-Reply-To: <20140416105916.GB16358@awork2.anarazel.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.6 (-------) 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 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). 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. But wait for Digoal to run with the extra let's see if this was in fact a short write. Could also be a quota or similar. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs