Bug 1217191 - btrfs balance is broken on 4.0 kernel
Summary: btrfs balance is broken on 4.0 kernel
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-29 17:56 UTC by Devin Henderson
Modified: 2015-06-30 20:12 UTC (History)
9 users (show)

Fixed In Version: kernel-4.0.6-200.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-27 12:39:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Devin Henderson 2015-04-29 17:56:05 UTC
Description of problem:


I've run

btrfs balance start -dconvert=raid1 -mconvert=raid1 /mnt

twice now on my btrfs mount (2tb data, 2x5tb drives). It takes 10+ hours, seems to be working, but when its done nothing has changed. The btrfs mount is still data=single, metadata=DUP.

This appears to be a bug in the 4.0 kernel. See here:

https://patchwork.kernel.org/patch/6238111/

and here:

http://article.gmane.org/gmane.comp.file-systems.btrfs/44696

Comment 1 Chris Murphy 2015-05-15 00:41:02 UTC
Known regression.

Original revert message 19.Apr
http://thread.gmane.org/gmane.comp.file-systems.btrfs/44477
Chris Mason working on a tested fix 29.Apr
http://thread.gmane.org/gmane.comp.file-systems.btrfs/44477

kernel-4.1.0.rc3 this is still a bug.

Comment 2 Chris Murphy 2015-05-15 00:46:17 UTC
Bad paste

Chris Mason working on tested fix:
http://article.gmane.org/gmane.comp.file-systems.btrfs/44801

Comment 4 Josh Boyer 2015-06-11 16:34:12 UTC
A bunch of patches finally got submitted for 4.0.y stable today.  I'll look at bringing them in.

Comment 5 Josh Boyer 2015-06-11 18:35:48 UTC
Patches applied.  They'll be in the next build.

Comment 6 Devin Henderson 2015-06-11 18:58:53 UTC
Niiice. Thanks Josh!

Comment 7 Devin Henderson 2015-06-23 06:49:46 UTC
It looks like this was finally fixed upstream, in 4.0.6:

https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.6

Comment 8 Fedora Update System 2015-06-23 20:22:39 UTC
kernel-4.0.6-300.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/kernel-4.0.6-300.fc22

Comment 9 Fedora Update System 2015-06-23 20:23:10 UTC
kernel-4.0.6-200.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/kernel-4.0.6-200.fc21

Comment 10 Fedora Update System 2015-06-25 08:18:44 UTC
Package kernel-4.0.6-300.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kernel-4.0.6-300.fc22'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-10677/kernel-4.0.6-300.fc22
then log in and leave karma (feedback).

Comment 11 Devin Henderson 2015-06-25 11:47:58 UTC
I created a btrfs volume using two loopback devices and I was able to balance the volume to raid1 successfully using kernel-4.0.6-300. I've added positive karma to the package.

Thanks everyone!

Comment 12 Fedora Update System 2015-06-27 12:39:18 UTC
kernel-4.0.6-300.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2015-06-30 20:12:37 UTC
kernel-4.0.6-200.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.