It seems btrfs-balancer cannot balance properly [duplicate]
asked 2017-03-26 21:19:09 +0200
This post is a wiki. Anyone with karma >75 is welcome to improve it.
Hi,
I'm using SailFish OS 2.0.4.14 (didn't upgrade to 2.0.5 because of Wifi issues).
I have 75% of the space occupied :
$ df -h /home/
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p28 14G 9.8G 3.3G 75% /home
But sudo btrfs-balancer allocation
says Allocated: 100 %
so I run a :
$ time sudo btrfs-balancer balance
Balancing... 0 %
Balancing... 10 %
Balancing... 10 %
Balancing... 20 %
Balancing... 35 %
Balancing... 50 %
Balancing... 75 %
Balancing... 96 %
Balancing... 97 %
Balancing... 98 %
Balancing... 100 %
Finished.
real 2m29.322s
user 0m0.030s
sys 0m0.030s
Then I check with :
$ sudo btrfs-balancer allocation
Total: 14763950080 bytes
Used: 14763950080 bytes
Allocated: 100 %
But a "btrfs df" says :
$ btrfs filesystem df /
Data, single: total=12.51GiB, used=9.24GiB
System, DUP: total=40.00MiB, used=4.00KiB
System, single: total=4.00MiB, used=0.00
Metadata, DUP: total=586.00MiB, used=283.70MiB
Metadata, single: total=8.00MiB, used=0.00
I have the btrfs-balance
tool from :
$ zypper what-provides btrfs-balancer
Loading repository data...
Reading installed packages...
S | Name | Type | Version | Arch | Repository
--+----------------+---------+-------------+---------+-----------
i | btrfs-balancer | package | 1.2.4-1.2.4 | armv7hl | jolla
After stopping the Android support and 10 balancings, the result is still the same :(
Knowing that my /home FS is 687 MiB and "my android_storage" FS is 1.76 GiB.
Therefore my personal data takes upto 2480 MiB out of 14078 MiB (size of /home FS) that is 17.61%
All the rest does not belong to the nemo user.
Can you help me ?
I think that for btrfs-balancer to be able to get one or two superblocks of unallocated space on Jolla, df -h should show max 7.5 GB of data. This of course depends on the amount and size of files too.
Manatus ( 2017-03-27 08:22:44 +0200 )editI have to run
till ( 2017-03-27 15:33:41 +0200 )editbtrfs-balancer balance
at least three times before the allocation returns to normal@till I did it more than 5 times but still no improvement :( :
SebM ( 2017-03-27 16:12:40 +0200 )editempty some space on your device,then run btfs balancer. when my device was near 100%, i had to empty 6 gb to get significant improvements
pawel ( 2017-03-27 21:55:47 +0200 )edit@pawel 75% is the df usage of my filesystem AFTER I had freed the space I could.
SebM ( 2017-03-28 17:08:42 +0200 )edit