Bug 1217191

Summary: btrfs balance is broken on 4.0 kernel
Product: [Fedora] Fedora Reporter: Devin Henderson <devin>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: amcnabb, bugzilla, bugzilla, gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda, mchehab
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kernel-4.0.6-200.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-27 12:39:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.