Stop pretending your SSD knows it’s empty
Disk & Filesystem Management (Du/Df/Lsblk/Fstrim)
Stop pretending your SSD knows it’s empty
🧩 The Challenge
You finally cleared out that massive batch of stale logs on your virtualized server, but the underlying SAN is still reporting the disk is nearly full. It’s infuriating because the storage layer has no idea the blocks were actually freed.
💡 The Fix
Running a manual trim command forces the filesystem to tell the storage controller which blocks are ready for reuse. You’ll regain that physical space immediately.
fstrim -av
⚙️ Why It Works
Because modern filesystems are lazy to save performance, they don’t immediately inform the hardware about deleted data unless you trigger this operation. It essentially clears the stale metadata so the storage backend can reclaim the underlying capacity.
🚀 Pro-Tip: Add it to a weekly cron job if your distribution doesn’t handle the systemd timer automatically.
Linux Tips & Tricks | © ngelinux.com | 9/27/2026
