From: Tom Bakken <tom.bakken@tx.usda.gov>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Out of space
Date: Wed, 7 Apr 2004 14:42:35 -0500
Message-ID: <001f01c41cd8$7a127480$770e9dc7@agwest.one.usda.gov> (raw)
In-Reply-To: <22307.1081358540@sss.pgh.pa.us>
I looked in the pg_log file and it's missing xlogtemp.1091.:
[root@linux04 data]# tail pg_log
DEBUG: Redo record at (1, 516646732); Undo record at (0, 0); Shutdown TRUE
DEBUG: NextTransactionId: 28728439; NextOid: 9098648
FATAL 2: ZeroFill(/var/lib/pgsql/data/pg_xlog/xlogtemp.1033) failed: No
such file or directory
/usr/bin/postmaster: Startup proc 1033 exited with status 512 - abort
DEBUG: database system was shut down at 2004-04-07 12:14:38 CDT
DEBUG: CheckPoint record at (1, 516646732)
DEBUG: Redo record at (1, 516646732); Undo record at (0, 0); Shutdown TRUE
DEBUG: NextTransactionId: 28728439; NextOid: 9098648
FATAL 2: ZeroFill(/var/lib/pgsql/data/pg_xlog/xlogtemp.1091) failed: No
such file or directory
/usr/bin/postmaster: Startup proc 1091 exited with status 512 - abort
I'm sure I didn't delete it. Regardless, hopefully based on this one of you
might have a suggestion.
[root@linux04 data]#
Tom Bakken
Information Resource Manager
Texas USDA, Rural Development
-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Wednesday, April 07, 2004 12:22 PM
To: Tom Bakken
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Out of space
"Tom Bakken" <tom.bakken@tx.usda.gov> writes:
> I've been running a postgres for 2 or 3 years without a problem. This
> morning my disk space for the database filled up. I need to know what
> transaction/log files I can truncate or delete without compromising the
> system. These files are located under /var/lib/pgsql/data/
I wouldn't recommend deleting *any* files manually --- unless you find
core files or old files underneath a pgsql_tmp subdirectory. Those you
could zap at little risk.
The best approach is to free up a small amount of space elsewhere,
enough so you can get through a CHECKPOINT without failing. The
checkpoint will hopefully free up some space in pg_xlog. After that you
can look at dropping tables you don't need any more, VACUUM FULL, etc.
regards, tom lane
Attachments:Tom.Bakken@tx.usda.gov.vcf (text/x-vcard, 446B) download
BEGIN:VCARD
VERSION:2.1
N:Bakken;Tom
FN:Tom.Bakken@tx.usda.gov
ORG:Texas State Office
TEL;WORK;VOICE:(254) 742-9726
TEL;WORK;FAX:(254) 742-9709
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;101 South Main=0D=0ASuite 102;Temple;TX;76502;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:101 South Main=0D=0ASuite 102=0D=0ATemple, TX 76502=0D=0AUnited States of Am=
erica
EMAIL;PREF;INTERNET:Tom.Bakken@tx.usda.gov
REV:20040301T143942Z
END:VCARD
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: tom.bakken@tx.usda.gov, tgl@sss.pgh.pa.us
Subject: Re: Out of space
In-Reply-To: <001f01c41cd8$7a127480$770e9dc7@agwest.one.usda.gov>
References: <22307.1081358540@sss.pgh.pa.us> <001f01c41cd8$7a127480$770e9dc7@agwest.one.usda.gov>
* 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