Not all the blocks are trimmed using fstrim on RHEL 7.9 .

Solution Verified - Updated -

Issue

When using fstrim to reclaim space from deleted files not all the data blocks are trimmed and not all the space is being reclaimed back to the storage.

Environment

  • Red Hat Enterprise Linux 7
  • SCSI device with non zero OPTIMAL UNMAP GRANULARITY.
  • SCSI device with LBPRZ bit set.
  • SCSI device with UGAVALID bit set.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content