XFS filesystem shows more space used in df than in du

Solution Verified - Updated -

Issue

  • When running df -h, the XFS filesystem shows a certain amount of space used:
# df -h /boot
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb1       496M  385M  112M  78% /boot
  • But the output of the du -sh command shows a much lower number:
# du -sh /boot
134M    /boot
  • There are no filesystems mounted under /boot, so there can not be any data hidden under another mountpoint.

Environment

  • Red Hat Enterprise Linux 10
  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7

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