Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WaKL8-0001V1-5T for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Apr 2014 07:33:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WaKL7-00067d-Ko for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Apr 2014 07:33:01 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WaKL6-00067Q-Jl for pgsql-bugs@postgresql.org; Wed, 16 Apr 2014 07:33:00 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WaKL0-0006KW-UZ for pgsql-bugs@postgresql.org; Wed, 16 Apr 2014 07:32:58 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 7ADE4282F2; Wed, 16 Apr 2014 00:32:53 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 76DC9B29B4; Wed, 16 Apr 2014 00:32:53 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id DB0ACC004A; Wed, 16 Apr 2014 00:32:45 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA; Wed, 16 Apr 2014 00:32:44 -0700 (PDT) Message-ID: <534E3222.609@vmware.com> Date: Wed, 16 Apr 2014 10:32:50 +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: digoal@126.com, 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 References: <20140414014442.15385.74268@wrigleys.postgresql.org> In-Reply-To: <20140414014442.15385.74268@wrigleys.postgresql.org> Content-Type: text/plain; charset=UTF-8; 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/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=e0c91a7ff015fab0ccbb0f75b6819f29ae00295e;sf=tgz > 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