You are not logged in.

#1 2014-03-14 13:44:04

eduardo.eae
Member
From: Reconquista - Argentina
Registered: 2010-01-24
Posts: 68

Problem with btrfs space usage (not using df)

btrfs fi df / gives me

Data, single: total=912.00GiB, used=902.97GiB
System, DUP: total=32.00MiB, used=128.00KiB
Metadata, DUP: total=3.00GiB, used=1.83GiB

ncdu gives me

Total disk usage: 647,4GiB  Apparent size: 647,4GiB  Items: 126368

Where are those ~250GiB extra?

There are no snapshots yet. The ncdu value is scanning (as root, to be able to read every file) /var/lib/btrfs, where I have mounted my partition as subvolid=0. Using compress=lzo and autodefrag. Most of the files are media (music, videos and photos).

Something to worry or is just the way btrfs shows this info?

Offline

#2 2014-03-14 16:02:09

teekay
Member
Registered: 2011-10-26
Posts: 271

Re: Problem with btrfs space usage (not using df)

You also have to look at "btrfs fi show" output to get a complete picture.

What seems to be the case is that data chunks worth ~250GB more got allocated at some point (maybe you once had that much more data on the pool), but they won't get freed up automatically.
As long as you still have eough free space (looking at the "btrfs fi show" output that is), this is more a cosmetic issue. When allocated space grows near the maximum available, you should do a "btrfs fi balance"

Read more here:
https://btrfs.wiki.kernel.org/index.php/SysadminGuide
https://btrfs.wiki.kernel.org/index.php … e_space.3F
https://btrfs.wiki.kernel.org/index.php … s_of_space

Offline

#3 2014-03-14 16:12:36

eduardo.eae
Member
From: Reconquista - Argentina
Registered: 2010-01-24
Posts: 68

Re: Problem with btrfs space usage (not using df)

btrfs fi show /

Label: root  uuid: 97ccc2db-5bdf-45f6-8d9f-daadea02b918
        Total devices 1 FS bytes used 912.91GiB
        devid    1 size 1.82TiB used 926.06GiB path /dev/sda1

I forgot to mention, not too long ago I did a btrfs fi balance, and the problem remained.
I hope is just a cosmetic issue as you mention.

* What annoys me is that is a fairly new system. Working for just a couple of months as homeserver.

Last edited by eduardo.eae (2014-03-14 16:15:10)

Offline

Board footer

Powered by FluxBB