[feature request] or [bug] Automatic Btrfs Balancing task did not work probably.

asked 2015-10-27 12:13:13 +0300

evo3de gravatar image

updated 2015-10-27 12:18:08 +0300

I have a lot of problems with the Btrfs, there is a lot of space allocated > 90%. So i have to run the balancer manually. I guess that the auto balancing task is running once. I would prefer to redo this balancing command untis message: "No balancing required"

Yesterday i did it 6 times until this message comes, and today 3 times. (today, the task sould be was run)

Problem of running full is presistent on 3 devices

edit retag flag offensive close delete

Comments

1

If I were you, I would buy a big microSD card and move some files from the phone there. I always have at least 2-3GB free, I have never manually balanced the filesystem and I've never had any filesystem-related problems (having used Jolla daily for almost two years now). I'd advise you do the same.

nodevel ( 2015-10-27 12:35:21 +0300 )edit

Really funny @nodevel i´ve outsorced as much i can to my sdcard

evo3de ( 2015-10-27 12:57:29 +0300 )edit

@evo3de That's not supposed to be funny, but a safe workaround, since it is a known fact that btrfs has problems with the concept of free space. I'm saying what worked for me even since automatic balance wasn't even in place.

What does "as much as I can" mean? How much free space do you have?

nodevel ( 2015-10-27 13:05:14 +0300 )edit

9,4 of 13,7 is in use

evo3de ( 2015-10-27 13:38:35 +0300 )edit
1

I don't use the "balancer", I always use the btrfs balance command manually. Start (terminal devel-su) with btrfs balance start -musage=0 -dusage=0 / to delete unused chunks. After that, you may increase -musage= and -dusage= up to 50 to concentrate the chunks (making one full from two half full ones). Try out btrfs fi df / to see how much space is used by chunks ("total") and how much is used by the data inside the chunks ("used"). You will also see the amount of duplicate data there.

I think, there's no "perfect" state of the disk in btrfs. It's okay when there's some space left for new chunks, that's all (btrfs fi show). It's not a thing like "defrag" in Win95. If you are interested in linux generally, I recommend you (assuming you are german) the "c't Linux 2015 Sonderheft", there's an article about btrfs, too.

Robomike ( 2015-10-27 22:36:11 +0300 )edit