Re: Orphan files filling root partition after crash

Поиск
Список
Период
Сортировка
От Peter J. Holzer
Тема Re: Orphan files filling root partition after crash
Дата
Msg-id 20240303230428.6nvxibnhtbgq3h3q@hjp.at
обсуждение исходный текст
Ответ на Re: Orphan files filling root partition after crash  (Dimitrios Apostolou <jimis@gmx.net>)
Ответы Re: Orphan files filling root partition after crash
Список pgsql-general
On 2024-02-28 20:30:35 +0100, Dimitrios Apostolou wrote:
> On Wed, 28 Feb 2024, Laurenz Albe wrote:
> > On Wed, 2024-02-28 at 12:16 +0100, Dimitrios Apostolou wrote:
> > > So what is the moral of the story? How to guard against this?
> >
> > Monitor disk usage ...
>
> It happened *fast*. And it was quite a big suprise coming
> from "just" a disk-full situation.

Been there.

To prevent this in the future I wrote a small script to monitor disk
space (on multiple hosts and multiple file systems) every few seconds
and invoke another script (which just terminates all database
connections - a bit drastic but effective) if free space runs low:
https://github.com/hjp/platzangst

        hp

--
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Вложения

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

Предыдущее
От: veem v
Дата:
Сообщение: When manual analyze is needed
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: Orphan files filling root partition after crash