Re: Unexpectedly high disk space usage

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: Lists <lists(at)benjamindsmith(dot)com>
Cc: Postgresql Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Unexpectedly high disk space usage
Date: 2012-11-06 04:51:49
Message-ID: CAMkU=1zDVLSf20zMSFCyZqEKxiG0nMLG5v8G2P=7Fhuck7B0HQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Nov 5, 2012 at 7:01 PM, Lists <lists(at)benjamindsmith(dot)com> wrote:
> We upgraded to 9.1 from 8.4 over the summer a few months ago, to new DB
> servers with more disk space and memory. Unexpectedly, the DB servers have
> steadily increased their disk space usage since. Reported system load
> doesn't seem to be affected. It's happening to all our DB servers running
> 9.1.
>
> When we reload all pg_dumps from our worst-affected server into an offline
> server, the disk space usage is about 26 GB, but the production database is
> using 166 GB. (# df /var/lib/pgsql;)

My first guesses would be things that are not directly under the
databases control, such as:

1) your server logs are accumulating and you aren't doing anything about them
2) you are taking backup snapshots to somewhere in that directory and
not cleaning them up
3) your archive_command is failing (which you should see reports of in
the server logs) and so you are accumulating xlog files.

Cheers,

Jeff

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Darren Duncan 2012-11-06 06:28:26 Re: Hot Standby Not So Hot Anymore
Previous Message Lonni J Friedman 2012-11-06 04:40:16 Re: Hot Standby Not So Hot Anymore