X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3CC6BD1BB16 for ; Wed, 7 Apr 2004 16:45:12 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 76479-03 for ; Wed, 7 Apr 2004 16:45:10 -0300 (ADT) Received: from txsnet.tx.nrcs.usda.gov (txsnet.tx.nrcs.usda.gov [199.158.131.3]) by svr1.postgresql.org (Postfix) with ESMTP id 341C6D1BA93 for ; Wed, 7 Apr 2004 16:45:08 -0300 (ADT) Received: from txtemple20d119 ([199.157.14.119]) by txsnet.tx.nrcs.usda.gov (8.9.3/8.9.3/USDA-ITC $Revision: 1.5 $) with ESMTP id OAA26987; Wed, 7 Apr 2004 14:49:24 -0500 (CDT) From: "Tom Bakken" To: "'Tom Lane'" Cc: Subject: Re: Out of space Date: Wed, 7 Apr 2004 14:42:35 -0500 Message-ID: <001f01c41cd8$7a127480$770e9dc7@agwest.one.usda.gov> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0020_01C41CAE.913C6C80" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.5709 In-Reply-To: <22307.1081358540@sss.pgh.pa.us> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/118 X-Sequence-Number: 13091 This is a multi-part message in MIME format. ------=_NextPart_000_0020_01C41CAE.913C6C80 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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=20 -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us]=20 Sent: Wednesday, April 07, 2004 12:22 PM To: Tom Bakken Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Out of space=20 "Tom Bakken" 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 ------=_NextPart_000_0020_01C41CAE.913C6C80 Content-Type: text/x-vcard; name="Tom.Bakken@tx.usda.gov.vcf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Tom.Bakken@tx.usda.gov.vcf" 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=3DQUOTED-PRINTABLE:;;101 South Main=3D0D=3D0ASuite 102;Te= mple;TX;76502;United States of America LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:101 South Main=3D0D=3D0ASuite 102=3D= 0D=3D0ATemple, TX 76502=3D0D=3D0AUnited States of Am=3D erica EMAIL;PREF;INTERNET:Tom.Bakken@tx.usda.gov REV:20040301T143942Z END:VCARD ------=_NextPart_000_0020_01C41CAE.913C6C80--