Postgres run out of disk space

Поиск
Список
Период
Сортировка
От Wenzhe Zhou
Тема Postgres run out of disk space
Дата
Msg-id 4.3.2.7.2.20021230171255.02bf4e88@mira-sjc5-6.cisco.com
обсуждение исходный текст
Ответы Re: Postgres run out of disk space  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Postgres run out of disk space  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список 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.

Wenzhe



В списке pgsql-general по дате отправления:

Предыдущее
От: "Mike Mascari"
Дата:
Сообщение: Re: lock table question
Следующее
От: "David Busby"
Дата:
Сообщение: Trigger to spawn process?