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

From: Sergey Fukanchik <fukanchik(at)gmail(dot)com>
To: "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:45:52
Message-ID: CAB+D6kVEpN-=RE1RR2Zmcduc1dukN_pyg3-GbPqNsxS3wYBNng@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Another possibility is orphaned files.
See https://www.dbi-services.com/blog/can-there-be-orphaned-data-files-in-postgresql/
and https://github.com/bdrouvot/pg_orphaned
--
Sergey

On Wed, 9 Oct 2024 at 19:02, Greg Sabino Mullane <htamfids(at)gmail(dot)com> wrote:
>
> 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
>

--
Sergey

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Eddie Mishler 2024-10-09 18:40:16 Re: txid_current vs xact_commit stats
Previous Message Greg Sabino Mullane 2024-10-09 16:01:17 Re: Disk is filling up with large files. How can I clean?