I'm using BTRFS with two 1TB drives formatted as a single 2TB partition. I can't figure out how much space is actually in use in my system, most tools give me different results:
du -cksh /
says 791GiB- Filelight says
/
is 44GiB (I'm inclined to believe this as it's a fairly new install) btrfs fi df -h /
says 947GiB
My guess is these tools are measuring different things. What I want to know as a user is how many bytes I can still cram into the filesystem before it goes kaput.
Edit: I was recommended btrfs fi usage /
, here's what it says:
Overall:
Device size: 1.86TiB
Device allocated: 955.02GiB
Device unallocated: 952.42GiB
Device missing: 0.00B
Used: 939.36GiB
Free (estimated): 966.78GiB (min: 490.57GiB)
Free (statfs, df): 966.78GiB
Data ratio: 1.00
Metadata ratio: 2.00
Global reserve: 512.00MiB (used: 0.00B)
Multiple profiles: no
Data,single: Size:945.01GiB, Used:930.64GiB (98.48%)
/dev/nvme0n1p2 471.01GiB
/dev/nvme1n1 474.00GiB
Metadata,DUP: Size:5.00GiB, Used:4.36GiB (87.13%)
/dev/nvme0n1p2 6.00GiB
/dev/nvme1n1 4.00GiB
System,DUP: Size:8.00MiB, Used:128.00KiB (1.56%)
/dev/nvme0n1p2 16.00MiB
Unallocated:
/dev/nvme0n1p2 476.54GiB
/dev/nvme1n1 475.87GiB
Seems to corroborate the other btrfs
command, but then the follow up is, how can I know what's taking all this space? Is this space actually taken by files, or is this just overhead?