Re: Disk is filling up with large files. How can I clean? - Mailing list pgsql-general

From Sergey Fukanchik
Subject Re: Disk is filling up with large files. How can I clean?
Date
Msg-id CAB+D6kVEpN-=RE1RR2Zmcduc1dukN_pyg3-GbPqNsxS3wYBNng@mail.gmail.com
Whole thread Raw
In response to Re: Disk is filling up with large files. How can I clean?  (Greg Sabino Mullane <htamfids@gmail.com>)
List 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@gmail.com> wrote:
>
> On Wed, Oct 9, 2024 at 4:10 AM Mikael Petterson <mikaelpetterson@hotmail.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
iselsewhere: probably want to do something like 
> sudo find / -xdev -maxdepth 2 -exec du -sh {} \; | grep -E 'G|M' | sort -g
>
> Cheers,
> Greg
>


--
Sergey



pgsql-general by date:

Previous
From: Greg Sabino Mullane
Date:
Subject: Re: Disk is filling up with large files. How can I clean?
Next
From: Eddie Mishler
Date:
Subject: Re: txid_current vs xact_commit stats