linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* wrong values in "df" and "btrfs filesystem df"
@ 2011-04-09  6:25 Helmut Hullen
  2011-04-09  9:11 ` Hugo Mills
  0 siblings, 1 reply; 17+ messages in thread
From: Helmut Hullen @ 2011-04-09  6:25 UTC (permalink / raw)
  To: linux-btrfs

Hallo, linux-btrfs,

First I create an array of 2 disks with

  mkfs.btrfs -d raid0 -m raid1 /dev/sdb1 /dev/sdd1

and mount it at /srv/MM.

Then I fill it with about 1,6 TByte.
And then I add /dev/sde1 via

  btrfs device add /dev/sde1 /srv/MM
  btrfs filesystem balance /srv/MM
    (it run about 20 hours)

Then I work on it, copy some new files, delete some old files - all  
works well. Only

  df /srv/MM
  btrfs filesystem df /srv/MM

show some completely wrong values:

# df /srv/MM

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sdd1            5846053400 1593436456 2898463184  36% /srv/MM

# btrfs filesystem df /srv/MM

Data, RAID0: total=1.67TB, used=1.48TB
System, RAID1: total=16.00MB, used=112.00KB
System: total=4.00MB, used=0.00
Metadata, RAID1: total=3.75GB, used=2.26GB

# btrfs-show

Label: MMedia  uuid: 120b036a-883f-46aa-bd9a-cb6a1897c8d2
	Total devices 3 FS bytes used 1.48TB
	devid    3 size 1.81TB used 573.76GB path /dev/sdb1
	devid    2 size 1.81TB used 573.77GB path /dev/sde1
	devid    1 size 1.82TB used 570.01GB path /dev/sdd1

Btrfs Btrfs v0.19

------------------------------------------------

"df" shows an "Available" value which isn't related to any real value.  
The sum of "used" and "Available" is far away from the really existent  
disk space. When I copy additional files to "/srv/MM" then "used" still  
shows the right value, and the sum grows (slowly) to the max. available  
space.

In "btrfs filesystem df /srv/MM" the line

  Data, RAID0: total=1.67TB, used=1.48TB

shows a "total" value which isn't related to any existent value; maybe  
it still shows the used space before adding the third partition.
This (wrong) value seems not to change.

Kernel 2.6.38.1
btrfs from november 2010

Viele Gruesse!
Helmut

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

end of thread, other threads:[~2011-04-13  5:35 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-09  6:25 wrong values in "df" and "btrfs filesystem df" Helmut Hullen
2011-04-09  9:11 ` Hugo Mills
2011-04-09  9:46   ` Stephane Chazelas
2011-04-09 12:28   ` Helmut Hullen
2011-04-09 16:36   ` Calvin Walton
2011-04-09 17:05     ` Helmut Hullen
2011-04-09 17:26       ` Calvin Walton
2011-04-09 18:15         ` Helmut Hullen
2011-04-09 19:35           ` Peter Stuge
2011-04-09 20:38             ` Hugo Mills
2011-04-10 10:13   ` Miao Xie
2011-04-11  7:29     ` Stephane Chazelas
2011-04-11  7:56       ` Arne Jansen
2011-04-11  9:06       ` Helmut Hullen
2011-04-12  7:22       ` Miao Xie
2011-04-12  8:17         ` Stephane Chazelas
2011-04-13  5:35           ` Miao Xie

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).