Hacker News new | ask | show | jobs
by esseph 4 days ago
XFS tip:

If you truncate a file it doesn't update metadata. That's how you can get back space for the journal log to start cleaning up crap without rebooting the box and/or taking services down.

2 comments

My initialisation script creates five 100M files in /root (which is on /) to give something to manually delete for breathing room.
Thank you, I’ll keep this in my hat for the next time.