shrinking filesystems still feels way too painful in 2026

Posted by DahliaDevsiantBop@reddit | linuxadmin | View on Reddit | 42 comments

ran into this again today and just need a sanity check from other linux admins.

we have a few linux boxes on ec2 and some bare metal that run data-heavy services. one job went sideways during a patch/cleanup window and dumped a bunch of temp data/logs. disk usage got high, so the volume got expanded to keep things from falling over.

cleanup finished later and actual usage dropped way back down.

so now we have a big mostly-empty volume sitting there.

growing the thing was easy. shrinking it back down is where everything gets annoying.

with xfs, there’s no shrink. with ext4, you’re basically looking at unmounting and doing it carefully. in practice that usually turns into:

monitoring/cost tools can tell us “hey, you’re wasting storage,” but from the linux side the answer is usually “yeah, and i’d rather waste storage than break a stable system.”

how are people handling this now?

do you just accept that live filesystems are mostly a one-way street, or has anyone found a cleaner way to reclaim space without doing the whole migration dance?