Skip site navigation (1) Skip section navigation (2)

Postgres run out of disk space

From: Wenzhe Zhou <wzhou(at)cisco(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Postgres run out of disk space
Date: 2002-12-31 01:53:25
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
On one of my Linux machine, Postgres server ran out of disk space on its data partition.
To trace the problem, I turn on Postgres debug log (set debug_level = 2 in conf file).
We use all of default setting for WAL. 
Accoring to the debug log (postmaster.log), there are only read operations (select query)
in one hour and twenty minutes. While in that period of time, I saw log messages like
"DEBUG:  recycled transaction log file xxxxxx" in every one minute and used disk space
increase 105 MB. It looks like the server is busy to write to DB, and transaction log files are recycled in every one minutes. How could this happen? I can't figure out why the
database was updated since there is no write (update/delete/insert) query in that
period of time. 

We run Vacuum Full and Reindex to reclaim disk space only in pre-scheduled time.
To prevent from running out of disk space, we stop of all of clients which send
write query when disk usage hit a RED light (for example disk usage is more than 90%)
before the scheduled database maintenance time. Since Vacuum Full and Reindex need
some working disk space, how much free disk space I need to reserve?  

Thanks in advance.



pgsql-general by date

Next:From: David BusbyDate: 2002-12-31 04:10:24
Subject: Trigger to spawn process?
Previous:From: Mike MascariDate: 2002-12-31 01:13:36
Subject: Re: lock table question

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group