Find out why your thin-provisioned disk is lying to your cloud provider

Disk & Filesystem Management (Du/Df/Lsblk/Fstrim)

Find out why your thin-provisioned disk is lying to your cloud provider

🧩 The Challenge

Ever notice your cloud dashboard says you’re using 100GB but the instance reports half that? It drives me nuts because the hypervisor keeps billing for the blocks I deleted months ago.

💡 The Fix

You need to tell the underlying storage controller which blocks are actually free so it can reclaim that wasted space. Just run a trim operation to sync up reality with the filesystem.

fstrim -av

⚙️ Why It Works

This utility sends a discard command to the underlying hardware or virtual disk controller for all unused blocks in your mounted filesystems. It’s the only way to shrink the actual footprint of a sparse or thin-provisioned image on the host side.

🚀 Pro-Tip: Don’t run this during a heavy write burst; schedule it as a weekly cron job during your quietest hours.

Linux Tips & Tricks | © ngelinux.com | 10/12/2026

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted