[Bug 751679] New: btrfs filesystem balance results in bug in /home/abuild/rpmbuild/BUILD/kernel-desktop-3.1.9/linux-3.1/fs/btrfs/relocation.c:3787 relocate_block_group+0x4a6/0x560 [btrfs]()
https://bugzilla.novell.com/show_bug.cgi?id=751679
https://bugzilla.novell.com/show_bug.cgi?id=751679#c0
Summary: btrfs filesystem balance results in bug in
/home/abuild/rpmbuild/BUILD/kernel-desktop-3.1.9/linux
-3.1/fs/btrfs/relocation.c:3787
relocate_block_group+0x4a6/0x560 [btrfs]()
Classification: openSUSE
Product: openSUSE 12.1
Version: Final
Platform: x86-64
OS/Version: openSUSE 12.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Kernel
AssignedTo: kernel-maintainers@forge.provo.novell.com
ReportedBy: guido.juckeland@tu-dresden.de
QAContact: qa@suse.de
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML,
like Gecko) Chrome/17.0.963.78 Safari/535.11
Whenever I try to rebalance my root-fs (which is btrfs) I see a number of the
following bugs via syslog:
Mar 10 21:08:43 denkbrett kernel: [70267.675658] ------------[ cut here
]------------
Mar 10 21:08:43 denkbrett kernel: [70267.675705] WARNING: at
/home/abuild/rpmbuild/BUILD/kernel-desktop-3.1.9/linux-3.1/fs/btrfs/relocation.c:3787
relocate_block_group+0x4a6/0x560 [btrfs]()
Mar 10 21:08:43 denkbrett kernel: [70267.675707] Hardware name: 3323REG
Mar 10 21:08:43 denkbrett kernel: [70267.675708] Modules linked in: qcserial
usb_wwan usbserial nls_iso8859_1 nls_cp437 vfat fat ip6t_LOG xt_tcpudp
xt_pkttype ipt_LOG xt_limit af_packet rfcomm bnep vboxpci vboxnetadp vboxnetflt
vboxdrv ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_raw xt_NOTRACK
ipt_REJECT iptable_raw iptable_filter ip6table_mangle nf_conntrack_netbios_ns
nf_conntrack_broadcast nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack
nf_conntrack ip6table_filter ip6_tables x_tables cpufreq_conservative
cpufreq_userspace cpufreq_powersave acpi_cpufreq mperf microcode binfmt_misc
snd_hda_codec_hdmi snd_hda_codec_conexant ecb hdj_mod uvcvideo videodev
snd_rawmidi snd_seq_device sr_mod arc4 snd_hda_intel btusb v4l2_compat_ioctl32
snd_hda_codec snd_hwdep snd_pcm bluetooth thinkpad_acpi cdrom snd_timer
iTCO_wdt snd sg iwlagn i2c_i801 mac80211 mei(C) pcspkr soundcore tpm_tis
intel_ips cfg80211 rfkill tpm tpm_bios snd_page_alloc iTCO_vendor_support ac
battery e1000e wmi autofs4 btrfs zlib_deflate i9
Mar 10 21:08:43 denkbrett kernel: 15 drm_kms_helper drm i2c_algo_bit thermal
button video processor thermal_sys [last unloaded: usbserial]
Mar 10 21:08:43 denkbrett kernel: [70267.675754] Pid: 5306, comm: btrfs
Tainted: G WC 3.1.9-1.4-desktop #1
Mar 10 21:08:43 denkbrett kernel: [70267.675755] Call Trace:
Mar 10 21:08:43 denkbrett kernel: [70267.675768] [<ffffffff810043fa>]
dump_trace+0xaa/0x2b0
Mar 10 21:08:43 denkbrett kernel: [70267.675775] [<ffffffff815843d3>]
dump_stack+0x69/0x6f
Mar 10 21:08:43 denkbrett kernel: [70267.675781] [<ffffffff8105390b>]
warn_slowpath_common+0x7b/0xc0
Mar 10 21:08:43 denkbrett kernel: [70267.675792] [<ffffffffa01aae66>]
relocate_block_group+0x4a6/0x560 [btrfs]
Mar 10 21:08:43 denkbrett kernel: [70267.675870] [<ffffffffa01ab0e3>]
btrfs_relocate_block_group+0x1c3/0x300 [btrfs]
Mar 10 21:08:43 denkbrett kernel: [70267.675943] [<ffffffffa018a69b>]
btrfs_relocate_chunk.isra.45+0x4b/0x420 [btrfs]
Mar 10 21:08:43 denkbrett kernel: [70267.676001] [<ffffffffa018dc6f>]
btrfs_balance+0x1df/0x270 [btrfs]
Mar 10 21:08:43 denkbrett kernel: [70267.676059] [<ffffffffa01959f0>]
btrfs_ioctl+0x590/0x6e0 [btrfs]
Mar 10 21:08:43 denkbrett kernel: [70267.676190] [<ffffffff811653e5>]
do_vfs_ioctl+0x85/0x2e0
Mar 10 21:08:43 denkbrett kernel: [70267.676196] [<ffffffff811656d8>]
sys_ioctl+0x98/0xa0
Mar 10 21:08:43 denkbrett kernel: [70267.676201] [<ffffffff815a4c12>]
system_call_fastpath+0x16/0x1b
Mar 10 21:08:43 denkbrett kernel: [70267.676207] [<00007f5b81a5dd67>]
0x7f5b81a5dd66
Mar 10 21:08:43 denkbrett kernel: [70267.676209] ---[ end trace
bb88747ca473d205 ]---
I did the rebalance hoping that I could gain some room on my rather small SSD:
denkbrett:~ # df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 21G 19G 404M 98% /
..
/dev/sda3 21G 19G 404M 98% /
..
/dev/sda1 197M 31M 157M 17% /boot
/dev/sda4 98G 87G 9.8G 90% /home
The command seems to run fine, but the bugs appear in syslog. Also the result
is not really convincing. I had hoped to gain some more space...
Reproducible: Always
Steps to Reproduce:
1. run "btrfs filesystem balance /" on a btrfs rootfs
Actual Results:
command runs but above mentioned kernel bugs appear
Expected Results:
no kernel bugs
--- Comment #1 from David Sterba
https://bugzilla.novell.com/show_bug.cgi?id=751679
https://bugzilla.novell.com/show_bug.cgi?id=751679#c2
--- Comment #2 from David Sterba
https://bugzilla.novell.com/show_bug.cgi?id=751679
https://bugzilla.novell.com/show_bug.cgi?id=751679#c3
--- Comment #3 from David Sterba
https://bugzilla.novell.com/show_bug.cgi?id=751679
https://bugzilla.novell.com/show_bug.cgi?id=751679#c4
--- Comment #4 from David Sterba
https://bugzilla.novell.com/show_bug.cgi?id=751679
https://bugzilla.novell.com/show_bug.cgi?id=751679#c5
--- Comment #5 from David Sterba
https://bugzilla.novell.com/show_bug.cgi?id=751679
https://bugzilla.novell.com/show_bug.cgi?id=751679#c6
--- Comment #6 from David Sterba
https://bugzilla.novell.com/show_bug.cgi?id=751679
https://bugzilla.novell.com/show_bug.cgi?id=751679#c7
--- Comment #7 from David Sterba
https://bugzilla.novell.com/show_bug.cgi?id=751679
https://bugzilla.novell.com/show_bug.cgi?id=751679#c8
--- Comment #8 from David Sterba
https://bugzilla.novell.com/show_bug.cgi?id=751679
https://bugzilla.novell.com/show_bug.cgi?id=751679#c9
--- Comment #9 from David Sterba
https://bugzilla.novell.com/show_bug.cgi?id=751679
https://bugzilla.novell.com/show_bug.cgi?id=751679#c10
David Sterba
https://bugzilla.novell.com/show_bug.cgi?id=751679
https://bugzilla.novell.com/show_bug.cgi?id=751679#c
David Sterba
https://bugzilla.novell.com/show_bug.cgi?id=751679
https://bugzilla.novell.com/show_bug.cgi?id=751679#c11
--- Comment #11 from Guido Juckeland Guido Juckeland
https://bugzilla.novell.com/show_bug.cgi?id=751679
https://bugzilla.novell.com/show_bug.cgi?id=751679#c12
David Sterba
The warning resulted from a stupidity from my side. I was unaware that zypper creates snapshots around every update and that opensuse just does snapshots on regular intervals. Thus, the file system was actually full and could not be balanced.
So we need to look into that again, there were some reports (aka WTFs) when there was no space left due to old snapshots and the user was not quite aware of that.
After deleting the snapshots (where I ran into bug 735188 as well), everything is fine again.
JFYI, the referenced bug is fixed in 3.3 and in opensuse kernel. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=751679
https://bugzilla.novell.com/show_bug.cgi?id=751679#c13
--- Comment #13 from Guido Juckeland Guido Juckeland
So we need to look into that again, there were some reports (aka WTFs) when there was no space left due to old snapshots and the user was not quite aware of that. Jep - that would really help. Weird was, that "df" actually thought that their was still some space left.
JFYI, the referenced bug is fixed in 3.3 and in opensuse kernel.
Will that be backported to 3.1 in openSuSE 12.1? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=751679
https://bugzilla.novell.com/show_bug.cgi?id=751679#c14
Jon Nelson
https://bugzilla.novell.com/show_bug.cgi?id=751679
https://bugzilla.novell.com/show_bug.cgi?id=751679#c15
David Sterba
participants (1)
-
bugzilla_noreply@novell.com