pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gaetano Mendola <mendola@bigfoot.com>
To: Duffy House <kevin07@optonline.net>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: device full ---> postgres will not start
Date: Mon, 27 Oct 2003 00:41:06 +0100
Message-ID: <3F9C5B92.4060800@bigfoot.com> (raw)
In-Reply-To: <GGEMLFEGHEKNIPGEHJBEIEJFCHAA.kevin07@optonline.net>
References: <GGEMLFEGHEKNIPGEHJBEIEJFCHAA.kevin07@optonline.net>

Duffy House wrote:

> Hello:
>  
> It looks like I got caught sleeping.
>  
> I am running Postgresql 7.2 under Red Hat 7.3.
> Postgresql failed today.  When I tried to restart it, I got a message 
> stating that the device is full.
> I used df to confirm that /var where postgres reside is full.  /var is 
> on a 4 Gig device.
> Postgresql is the only application on this machine. 
>  
> Please note, the backup of the database from the prior day, is 45 Meg 
> zipped.
> I do not know how the database could be soaking up a 4 Gig device.
>  
> Questions:
>  
> How can I recover from this situation?

Var contain also all log file of your box I guess.
Go on your directory data  ( on RH is on /var/lib/pgsql/data )
and do :

du -sh

if is really 4GB move your data directory in another big partition,
make a simbolink link with your old location, start postgres and
do a vacuum full of your database.

if is not really 4GB  do a log rotate of your logs.




Regards
Gaetano Mendola




view thread (7+ messages)  latest in thread

Message-ID: <3F9C5B92.4060800@bigfoot.com>
Permalink:  ../3F9C5B92.4060800@bigfoot.com/
Also on:    postgresql.org/message-id/3F9C5B92.4060800@bigfoot.com

 · 

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: mendola@bigfoot.com, kevin07@optonline.net
  Subject: Re: device full ---> postgres will not start
  In-Reply-To: <3F9C5B92.4060800@bigfoot.com>
  References: <GGEMLFEGHEKNIPGEHJBEIEJFCHAA.kevin07@optonline.net> <3F9C5B92.4060800@bigfoot.com>

* 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