Identifying hidden disk space using bind mounts

Solution Verified - Updated -

Issue

  • Discrepancies exist between df and du command outputs.

  • The filesystem reflects 100% utilization, but standard directory scans do not account for the consumed space.

    # df -h /
    Filesystem                  Size  Used Avail Use%  Mounted on
    /dev/mapper/vg_data-lv_data   6G    6G     0 100%  /data
    
    # du -sch /
    3G    /data
    3G    total
    

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