Re: Disk is filling up with large files. How can I clean?

From: Greg Sabino Mullane <htamfids(at)gmail(dot)com>
To: Mikael Petterson <mikaelpetterson(at)hotmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Disk is filling up with large files. How can I clean?
Date: 2024-10-09 16:01:17
Message-ID: CAKAnmmKUaeqPjsMdaqK6F8xk0kJ1nzkYN_tbR7i-0xiQp_dVqw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Oct 9, 2024 at 4:10 AM Mikael Petterson <mikaelpetterson(at)hotmail(dot)com>
wrote:

> Hi,
>
> I find our disk is filling up.
>
> sudo find /var/lib -type f -size +100M -exec ls -lh {} \; | awk '{ print
> $9 ": " $5 }'
>
...

Those files only add up to about 30GB. That's pretty small these days :
time for a bigger disk? Or perhaps the space is elsewhere: probably want to
do something like
sudo find / -xdev -maxdepth 2 -exec du -sh {} \; | grep -E 'G|M' | sort -g

Cheers,
Greg

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sergey Fukanchik 2024-10-09 16:45:52 Re: Disk is filling up with large files. How can I clean?
Previous Message Adrian Klaver 2024-10-09 15:24:38 Re: Disk is filling up with large files. How can I clean?