linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Btrfs occupies more space than du reports...
@ 2018-02-23 11:21 Shyam Prasad N
  2018-02-23 13:23 ` Austin S. Hemmelgarn
  0 siblings, 1 reply; 4+ messages in thread
From: Shyam Prasad N @ 2018-02-23 11:21 UTC (permalink / raw)
  To: Btrfs BTRFS

Hi,

Can someone explain me why there is a difference in the number of
blocks reported by df and du commands below?

=====================
# df -h /dc
Filesystem      Size  Used Avail Use% Mounted on
/dev/drbd1      746G  519G  225G  70% /dc

# btrfs filesystem df -h /dc/
Data, single: total=518.01GiB, used=516.58GiB
System, DUP: total=8.00MiB, used=80.00KiB
Metadata, DUP: total=2.00GiB, used=1019.72MiB
GlobalReserve, single: total=352.00MiB, used=0.00B

# du -sh /dc
467G    /dc
=====================

df shows 519G is used. While recursive check using du shows only 467G.
The filesystem doesn't contain any snapshots/extra subvolumes.
Neither does it contain any mounted filesystem under /dc.
I also considered that it could be a void left behind by one of the
open FDs held by a process. So I rebooted the system. Still no
changes.

The situation is even worse on a few other systems with similar configuration.

-- 
-Shyam

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-02-28 15:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-23 11:21 Btrfs occupies more space than du reports Shyam Prasad N
2018-02-23 13:23 ` Austin S. Hemmelgarn
2018-02-28 11:26   ` Shyam Prasad N
2018-02-28 15:10     ` Andrei Borzenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).