public inbox for [email protected]  
help / color / mirror / Atom feed
From: Sergey Fukanchik <[email protected]>
To: [email protected] <[email protected]>
Subject: Re: Disk is filling up with large files. How can I clean?
Date: Wed, 9 Oct 2024 19:45:52 +0300
Message-ID: <CAB+D6kVEpN-=RE1RR2Zmcduc1dukN_pyg3-GbPqNsxS3wYBNng@mail.gmail.com> (raw)
In-Reply-To: <CAKAnmmKUaeqPjsMdaqK6F8xk0kJ1nzkYN_tbR7i-0xiQp_dVqw@mail.gmail.com>
References: <GV1PR08MB83052D322AD3FB9A65125339B87E2@GV1PR08MB8305.eurprd08.prod.outlook.com>
	<CAKAnmmKUaeqPjsMdaqK6F8xk0kJ1nzkYN_tbR7i-0xiQp_dVqw@mail.gmail.com>

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 <[email protected]> wrote:
>
> On Wed, Oct 9, 2024 at 4:10 AM Mikael Petterson <[email protected]> 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






view thread (4+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Disk is filling up with large files. How can I clean?
  In-Reply-To: <CAB+D6kVEpN-=RE1RR2Zmcduc1dukN_pyg3-GbPqNsxS3wYBNng@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox