linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Suddenly cannot change metadata profile any longer
@ 2015-02-15 21:01 Holger Hoffstätte
  2015-02-16 15:18 ` Suddenly cannot change metadata profile any longer (BISECTED) Holger Hoffstätte
  0 siblings, 1 reply; 4+ messages in thread
From: Holger Hoffstätte @ 2015-02-15 21:01 UTC (permalink / raw)
  To: linux-btrfs


Here's a new one (with kernel 3.18.7++):

$btrfs --version
Btrfs v3.18.2 (also tried 3.19-rc2)

$mount /dev/sdf1 /mnt/usb

$btrfs filesystem df /mnt/usb
Data, single: total=8.00MiB, used=256.00KiB
System, single: total=32.00MiB, used=16.00KiB
Metadata, single: total=1.00GiB, used=112.00KiB
GlobalReserve, single: total=16.00MiB, used=0.00B

Note: metadata=single - done right after mkfs for the initial balance.

$btrfs balance start -mconvert=dup /mnt/usb    
Done, had to relocate 2 out of 3 chunks

root>btrfs filesystem df /mnt/usb              
Data, single: total=8.00MiB, used=512.00KiB
System, single: total=32.00MiB, used=16.00KiB
Metadata, single: total=1.00GiB, used=192.00KiB
GlobalReserve, single: total=16.00MiB, used=0.00B

Wait, what? Still single?

This used to work, but somehow no longer does (verified on another
filesystem). If it's dup, it stays dup; if it's single, it stays single.

What works is the very first balance after the mkfs - it successfully
changes from the initial default dup to single, but subsequent balances
don't work. They also don't really fail.

Any ideas what might have caused this? Must have been a recent patch.

Holger


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Suddenly cannot change metadata profile any longer (BISECTED)
  2015-02-15 21:01 Suddenly cannot change metadata profile any longer Holger Hoffstätte
@ 2015-02-16 15:18 ` Holger Hoffstätte
  2015-02-22 18:01   ` Holger Hoffstätte
  0 siblings, 1 reply; 4+ messages in thread
From: Holger Hoffstätte @ 2015-02-16 15:18 UTC (permalink / raw)
  To: linux-btrfs

On Sun, 15 Feb 2015 21:01:07 +0000, Holger Hoffstätte wrote:

> Here's a new one (with kernel 3.18.7++):
> 
> $btrfs --version
> Btrfs v3.18.2 (also tried 3.19-rc2)
> 
> $mount /dev/sdf1 /mnt/usb
> 
> $btrfs filesystem df /mnt/usb
> Data, single: total=8.00MiB, used=256.00KiB
> System, single: total=32.00MiB, used=16.00KiB
> Metadata, single: total=1.00GiB, used=112.00KiB
> GlobalReserve, single: total=16.00MiB, used=0.00B
> 
> Note: metadata=single - done right after mkfs for the initial balance.
> 
> $btrfs balance start -mconvert=dup /mnt/usb    
> Done, had to relocate 2 out of 3 chunks
> 
> root>btrfs filesystem df /mnt/usb              
> Data, single: total=8.00MiB, used=512.00KiB
> System, single: total=32.00MiB, used=16.00KiB
> Metadata, single: total=1.00GiB, used=192.00KiB
> GlobalReserve, single: total=16.00MiB, used=0.00B
> 
> Wait, what? Still single?
> 
> This used to work, but somehow no longer does (verified on another
> filesystem). If it's dup, it stays dup; if it's single, it stays single.
> 
> What works is the very first balance after the mkfs - it successfully
> changes from the initial default dup to single, but subsequent balances
> don't work. They also don't really fail.

Bisection found that commit 2f0810880f082fa8ba66ab2c33b02e4ff9770a5e [1]
in the integration tree is the cause:

  btrfs: delete chunk allocation attemp when setting block group ro

Reverting/omitting this patch lets me rebalance/convert at will.

thanks,
Holger

[1] https://git.kernel.org/cgit/linux/kernel/git/mason/linux-btrfs.git/commit/?h=integration&id=2f0810880f082fa8ba66ab2c33b02e4ff9770a5e


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Suddenly cannot change metadata profile any longer (BISECTED)
  2015-02-16 15:18 ` Suddenly cannot change metadata profile any longer (BISECTED) Holger Hoffstätte
@ 2015-02-22 18:01   ` Holger Hoffstätte
  2015-02-23 19:39     ` Chris Mason
  0 siblings, 1 reply; 4+ messages in thread
From: Holger Hoffstätte @ 2015-02-22 18:01 UTC (permalink / raw)
  To: linux-btrfs

On Mon, 16 Feb 2015 15:18:40 +0000, Holger Hoffstätte wrote:

>> What works is the very first balance after the mkfs - it successfully
>> changes from the initial default dup to single, but subsequent balances
>> don't work. They also don't really fail.
> 
> Bisection found that commit 2f0810880f082fa8ba66ab2c33b02e4ff9770a5e [1]
> in the integration tree is the cause:
> 
>   btrfs: delete chunk allocation attemp when setting block group ro
> 
> Reverting/omitting this patch lets me rebalance/convert at will.

Just for the list archives: Chris mailed me privately that they could
reproduce the problem and will provide a fix post-3.20-rc1
(since that commit already went in with the merge window).

-h


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Suddenly cannot change metadata profile any longer (BISECTED)
  2015-02-22 18:01   ` Holger Hoffstätte
@ 2015-02-23 19:39     ` Chris Mason
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Mason @ 2015-02-23 19:39 UTC (permalink / raw)
  To: Holger Hoffstätte; +Cc: linux-btrfs



On Sun, Feb 22, 2015 at 1:01 PM, Holger Hoffstätte 
<holger.hoffstaette@googlemail.com> wrote:
> On Mon, 16 Feb 2015 15:18:40 +0000, Holger Hoffstätte wrote:
> 
>>>  What works is the very first balance after the mkfs - it 
>>> successfully
>>>  changes from the initial default dup to single, but subsequent 
>>> balances
>>>  don't work. They also don't really fail.
>> 
>>  Bisection found that commit 
>> 2f0810880f082fa8ba66ab2c33b02e4ff9770a5e [1]
>>  in the integration tree is the cause:
>> 
>>    btrfs: delete chunk allocation attemp when setting block group ro
>> 
>>  Reverting/omitting this patch lets me rebalance/convert at will.
> 
> Just for the list archives: Chris mailed me privately that they could
> reproduce the problem and will provide a fix post-3.20-rc1
> (since that commit already went in with the merge window).

Apparently reply-to-all is harder than it looks.  Thanks for forwarding 
this along.

-chris




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-23 19:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-15 21:01 Suddenly cannot change metadata profile any longer Holger Hoffstätte
2015-02-16 15:18 ` Suddenly cannot change metadata profile any longer (BISECTED) Holger Hoffstätte
2015-02-22 18:01   ` Holger Hoffstätte
2015-02-23 19:39     ` Chris Mason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).