Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* Understanding "btrfs filesystem usage"
@ 2018-10-29 18:11 Ulli Horlacher
  2018-10-29 21:57 ` Remi Gauvin
  0 siblings, 1 reply; 8+ messages in thread
From: Ulli Horlacher @ 2018-10-29 18:11 UTC (permalink / raw)
  To: linux-btrfs

I want to know how many free space is left and have problems in
interpreting the output of: 

btrfs filesystem usage
btrfs filesystem df
btrfs filesystem show


In detail:


root@diaspora:~# btrfs filesystem usage /local
Overall:
    Device size:                 883.51GiB
    Device allocated:            825.51GiB
    Device unallocated:           58.00GiB
    Device missing:                  0.00B
    Used:                        494.45GiB
    Free (estimated):            387.94GiB      (min: 387.94GiB)
    Data ratio:                       1.00
    Metadata ratio:                   1.00
    Global reserve:              320.00MiB      (used: 0.00B)

Data,single: Size:823.47GiB, Used:493.53GiB
   /dev/sda4     823.47GiB

Metadata,single: Size:2.01GiB, Used:938.67MiB
   /dev/sda4       2.01GiB

System,single: Size:32.00MiB, Used:128.00KiB
   /dev/sda4      32.00MiB

Unallocated:
   /dev/sda4      58.00GiB


root@diaspora:~# btrfs filesystem df /local
Data, single: total=823.47GiB, used=493.53GiB
System, single: total=32.00MiB, used=128.00KiB
Metadata, single: total=2.01GiB, used=938.67MiB
GlobalReserve, single: total=320.00MiB, used=0.00B


root@diaspora:~# btrfs filesystem show /local
Label: 'local'  uuid: 11faaa39-5805-4e92-a891-e8ceb4afa9f7
        Total devices 1 FS bytes used 494.45GiB
        devid    1 size 883.51GiB used 825.51GiB path /dev/sda4


What does the last line mean?
825.51GiB used = allocated by (file) data?
In this case I would have only 58 GB free disk space left?

"btrfs filesystem usage" says 494 GB used, but
"btrfs filesystem show" says 825 GB used?!

The man pages do not explain the different meanings of "used" and
"allocated"  

And at last:

root@diaspora:~# df -HT /local
Filesystem     Type   Size  Used Avail Use% Mounted on
/dev/sda4      btrfs  949G  532G  417G  57% /local



-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK         
Universitaet Stuttgart         E-Mail: horlacher@tik.uni-stuttgart.de
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<20181029181141.GA31256@rus.uni-stuttgart.de>

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

end of thread, other threads:[~2018-10-31 12:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-29 18:11 Understanding "btrfs filesystem usage" Ulli Horlacher
2018-10-29 21:57 ` Remi Gauvin
2018-10-29 22:45   ` Hugo Mills
2018-10-30 13:24     ` Eli V
2018-10-30 16:10   ` Ulli Horlacher
2018-10-30 17:12     ` Austin S. Hemmelgarn
2018-10-30 17:46     ` Chris Murphy
2018-10-31 12:07     ` Ulli Horlacher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox