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 Busby||Date: 2002-12-31 04:10:24|
|Subject: Trigger to spawn process?|
|Previous:||From: Mike Mascari||Date: 2002-12-31 01:13:36|
|Subject: Re: lock table question |