Re: Please review and comment, dealing with btrfs full issues

2014-05-07 Thread David Sterba
On Tue, May 06, 2014 at 05:43:24PM +0100, Hugo Mills wrote: So in my case when I hit that case, I had to use dusage=0 to recover. Anything above that just didn't work. I suspect when using more than zero the first chunk it wanted to balance wasn't empty - and it had nowhere to put it.

Smallest-n balance filter (was Re: Please review and comment, dealing with btrfs full issues)

2014-05-07 Thread Hugo Mills
On Wed, May 07, 2014 at 04:09:27PM +0200, David Sterba wrote: On Tue, May 06, 2014 at 05:43:24PM +0100, Hugo Mills wrote: So in my case when I hit that case, I had to use dusage=0 to recover. Anything above that just didn't work. I suspect when using more than zero the first chunk it

Re: Smallest-n balance filter (was Re: Please review and comment, dealing with btrfs full issues)

2014-05-07 Thread David Sterba
On Wed, May 07, 2014 at 03:23:01PM +0100, Hugo Mills wrote: N=n F=0 while (N 0) { balance -dusage=F,limit=N N -= number of balanced chunks F++ } The patch is in branch dev/balance-limit in my git repos. We can then implement the n-least-full as a synthetic

Re: Please review and comment, dealing with btrfs full issues

2014-05-06 Thread Marc MERLIN
On Mon, May 05, 2014 at 07:07:29PM +0200, Brendan Hide wrote: In the case above, because the filesystem is only 55% full, I can ask balance to rewrite all chunks that are more than 55% full: legolas:~# btrfs balance start -dusage=50 /mnt/btrfs_pool1 -dusage=50 will balance all chunks that

Re: Please review and comment, dealing with btrfs full issues

2014-05-06 Thread Brendan Hide
Hi, Marc. Inline below. :) On 2014/05/06 02:19 PM, Marc MERLIN wrote: On Mon, May 05, 2014 at 07:07:29PM +0200, Brendan Hide wrote: In the case above, because the filesystem is only 55% full, I can ask balance to rewrite all chunks that are more than 55% full: legolas:~# btrfs balance start

Re: Please review and comment, dealing with btrfs full issues

2014-05-06 Thread Hugo Mills
On Tue, May 06, 2014 at 06:30:31PM +0200, Brendan Hide wrote: Hi, Marc. Inline below. :) On 2014/05/06 02:19 PM, Marc MERLIN wrote: On Mon, May 05, 2014 at 07:07:29PM +0200, Brendan Hide wrote: In the case above, because the filesystem is only 55% full, I can ask balance to rewrite all

Re: Please review and comment, dealing with btrfs full issues

2014-05-06 Thread Duncan
Brendan Hide posted on Tue, 06 May 2014 18:30:31 +0200 as excerpted: So in my case when I hit that case, I had to use dusage=0 to recover. Anything above that just didn't work. I suspect when using more than zero the first chunk it wanted to balance wasn't empty - and it had nowhere to put

Please review and comment, dealing with btrfs full issues

2014-05-05 Thread Marc MERLIN
I've just written this new page: http://marc.merlins.org/perso/btrfs/post_2014-05-04_Fixing-Btrfs-Filesystem-Full-Problems.html First, are there problems in it? Second, are there other FS full issues I should mention in it? Thanks, Marc -- A mouse is a device used to point at the xterm you

Re: Please review and comment, dealing with btrfs full issues

2014-05-05 Thread Brendan Hide
On 05/05/14 14:16, Marc MERLIN wrote: I've just written this new page: http://marc.merlins.org/perso/btrfs/post_2014-05-04_Fixing-Btrfs-Filesystem-Full-Problems.html First, are there problems in it? Second, are there other FS full issues I should mention in it? Thanks, Marc In the case above,

Re: Please review and comment, dealing with btrfs full issues

2014-05-05 Thread Brendan Hide
On 05/05/14 19:07, Brendan Hide wrote: On 05/05/14 14:16, Marc MERLIN wrote: I've just written this new page: http://marc.merlins.org/perso/btrfs/post_2014-05-04_Fixing-Btrfs-Filesystem-Full-Problems.html First, are there problems in it? Second, are there other FS full issues I should

Re: Please review and comment, dealing with btrfs full issues

2014-05-05 Thread Calvin Walton
On Mon, 2014-05-05 at 19:07 +0200, Brendan Hide wrote: On 05/05/14 14:16, Marc MERLIN wrote: I've just written this new page: http://marc.merlins.org/perso/btrfs/post_2014-05-04_Fixing-Btrfs-Filesystem-Full-Problems.html First, are there problems in it? Second, are there other FS full

Re: Please review and comment, dealing with btrfs full issues

2014-05-05 Thread Russell Coker
On Mon, 5 May 2014 14:36:09 Calvin Walton wrote: The standard response on the mailing list for this issue is to temporarily add an additional device to the filesystem (even e.g. a 4GB USB flash drive is often enough) - this will add space to allocate a few new chunks, allowing the balance to