pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tom Bakken <tom.bakken@tx.usda.gov>
Cc: pgsql-admin@postgresql.org
Subject: Re: Out of space
Date: Wed, 07 Apr 2004 18:24:30 -0400
Message-ID: <5003.1081376670@sss.pgh.pa.us> (raw)
In-Reply-To: <005301c41ce8$7062a580$770e9dc7@agwest.one.usda.gov>
References: <005301c41ce8$7062a580$770e9dc7@agwest.one.usda.gov>

"Tom Bakken" <tom.bakken@tx.usda.gov> writes:
> OK, it's truncated and now I've got plenty of space, but it's still
> complaining that it can't find the xlogtemp.1405:

> FATAL 2:  ZeroFill(/var/lib/pgsql/data/pg_xlog/xlogtemp.1405) failed: No
> such file or directory

I think the "no such file" errno is probably actively misleading.  I
took another look at the CVS logs and realized that in 7.1.2, there is
no guarantee that that message actually reflects the cause of the write
failure --- if write() indicates it couldn't write all the bytes, but
does not set errno, then the reported errno will be left over from the
last failed operation.  We had patched this by 7.1.3, which is the
version I was looking at locally.  Since ENOENT can't be returned by
write() AFAIK, it seems certain that this is indeed a leftover errno
setting.

In short, I still think you are running into some kind of
out-of-disk-space failure.  I'm not sure what, but you might look to
whether you've exceeded the postgres user's disk space quota, or
anything along that line.  Keep in mind also that an unprivileged user
account normally can't fill the disk as full as root can.

			regards, tom lane



view thread (16+ messages)  latest in thread

Message-ID: <5003.1081376670@sss.pgh.pa.us>
Permalink:  ../5003.1081376670@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5003.1081376670@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tom.bakken@tx.usda.gov
  Subject: Re: Out of space
  In-Reply-To: <5003.1081376670@sss.pgh.pa.us>
  References: <005301c41ce8$7062a580$770e9dc7@agwest.one.usda.gov> <5003.1081376670@sss.pgh.pa.us>

* 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