I have a btrfs partition. When I run df -h
, it shows:
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 113G 101G 8.3G 93% /home
From Why is that? Is it because reserved space for root as wth ext2/3/4? Or is it something else? If the former, how can I change it and reclaim those 4GB ?
As per btrfs wiki, I know that metadata are stored twice which inflates the size of "Used" data:
user@machine:~$ df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 894G 311G 583G 35% /
^^^^
user@machine:~$ btrfs fi df /
Metadata: total=18.00GB, >>used=6.10GB<< *2= 12.20GB
Data: total=358.00GB, >>used=298.37GB<< *1= 298.37GB
System: total=12.00MB, >>used=40.00KB<< *1= 0.00GB
== 310.57GB
~~ 311 GB
But this still does not explain why Used + Avail < Size.
df
output. I have updated the question with this. – sup Apr 28 '12 at 08:32lsof
show any deleted files? (The btrfs output from your system would have been a bit more appropriate than that from the wiki.) – Mat Apr 28 '12 at 16:53lsof |grep 'DEL'|wc -l
gives the number of deleted files, it is 338. They do not seem big though (can I get their overall size somehow?) – sup Apr 28 '12 at 18:31