[Bug 1024241] New: unable to mount a btrfs fs with balance in progress
http://bugzilla.suse.com/show_bug.cgi?id=1024241 Bug ID: 1024241 Summary: unable to mount a btrfs fs with balance in progress Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.2 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-maintainers@forge.provo.novell.com Reporter: fcrozat@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Due to boo#1017461, my system ended up rebooting while a balance was in progress on my home partition (hosted on encrypted LUKS ) Unfortunately, kernel wasn't able to mount the filesystem back (include latest STABLE and latest HEAD 4.10rc* one) in rw mode. I was able to mount it in ro but just skip_balance wasn't possible. And in ro mode, it is impossible to cancel the balance in progress. After following david advice, I formated the fs and restored the content. I did a btrfs-image of the system before the format, it is available on demand. logs when trying to mount: [ 60.255462] BTRFS info (device dm-0): disk space caching is enabled [ 60.255466] BTRFS info (device dm-0): has skinny extents [ 60.323047] BTRFS info (device dm-0): detected SSD devices, enabling SSD mode [ 60.369203] BTRFS warning (device dm-0): block group 33315356672 has wrong amount of free space [ 60.369205] BTRFS warning (device dm-0): failed to load free space cache for block group 33315356672, rebuilding it now [ 60.370888] ------------[ cut here ]------------ [ 60.370905] WARNING: CPU: 3 PID: 3634 at ../fs/btrfs/extent-tree.c:2967 btrfs_run_delayed_refs+0x27f/0x2b0 [btrfs] [ 60.370906] BTRFS: Transaction aborted (error -17) [ 60.370906] Modules linked in: cmac fuse xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp tun br_netfilter bridge stp llc ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables af_packet rfcomm bnep dm_crypt hid_logitech_hidpp hid_generic hid_logitech_dj uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core videodev usbhid btusb btrtl btbcm btintel bluetooth dell_led intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel iTCO_wdt snd_hda_codec_hdmi iTCO_vendor_support ppdev kvm irqbypass snd_hda_codec_realtek crct10dif_pclmul snd_hda_codec_generic dell_wmi crc32_pclmul sparse_keymap mei_wdt ghash_clmulni_intel [ 60.370934] dell_laptop dell_smbios dcdbas arc4 dell_smm_hwmon joydev int3403_thermal aesni_intel iwlmvm aes_x86_64 parport_pc lrw glue_helper ablk_helper mac80211 parport cryptd pcspkr snd_soc_rt5640 snd_soc_rl6231 snd_soc_core i2c_i801 i2c_smbus snd_compress snd_hda_intel iwlwifi snd_hda_codec snd_hda_core snd_hwdep snd_pcm cfg80211 snd_timer fjes elan_i2c snd snd_soc_sst_acpi gpio_lynxpoint wmi dell_rbtn snd_soc_sst_match dw_dmac int3400_thermal 8250_dw int3406_thermal int3402_thermal rfkill acpi_pad acpi_thermal_rel i2c_designware_platform i2c_designware_core ac battery lpc_ich e1000e mfd_core ptp pps_core shpchp mei_me mei thermal fan soundcore acpi_als processor_thermal_device tpm_tis kfifo_buf int340x_thermal_zone tpm_tis_core intel_soc_dts_iosf tpm industrialio btrfs xor zlib_deflate raid6_pq [ 60.370964] crc32c_intel serio_raw i915 ehci_pci i2c_algo_bit xhci_pci ehci_hcd drm_kms_helper xhci_hcd syscopyarea sysfillrect sysimgblt fb_sys_fops sdhci_pci usbcore drm video sdhci_acpi sdhci mmc_core i2c_hid button sg dm_multipath dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua efivarfs [ 60.370978] CPU: 3 PID: 3634 Comm: mount Not tainted 4.9.8-1.gaf90696-default #1 [ 60.370979] Hardware name: Dell Inc. Latitude E7250/0TVD2T, BIOS A15 12/26/2016 [ 60.370980] ffffa51ec24a7870 ffffffffb13c80b0 ffffa51ec24a78c0 0000000000000000 [ 60.370982] ffffa51ec24a78b0 ffffffffb108454b 00000b9700000008 ffffffffc05c436a [ 60.370984] ffff952d08ca5320 ffff952cfd9d7000 ffff952ced7bb898 ffff952cdf0b0800 [ 60.370985] Call Trace: [ 60.370998] [<ffffffffb13c80b0>] dump_stack+0x63/0x83 [ 60.371001] [<ffffffffb108454b>] __warn+0xcb/0xf0 [ 60.371005] [<ffffffffb10845bf>] warn_slowpath_fmt+0x4f/0x60 [ 60.371016] [<ffffffffc052593f>] btrfs_run_delayed_refs+0x27f/0x2b0 [btrfs] [ 60.371033] [<ffffffffc053950b>] commit_cowonly_roots+0x8b/0x2d0 [btrfs] [ 60.371044] [<ffffffffc05258c3>] ? btrfs_run_delayed_refs+0x203/0x2b0 [btrfs] [ 60.371057] [<ffffffffc05a6b75>] ? btrfs_qgroup_account_extents+0x75/0x170 [btrfs] [ 60.371068] [<ffffffffc053bf74>] btrfs_commit_transaction.part.25+0x3d4/0xa60 [btrfs] [ 60.371080] [<ffffffffc053c63b>] btrfs_commit_transaction+0x3b/0x70 [btrfs] [ 60.371093] [<ffffffffc0592c88>] btrfs_recover_relocation+0x268/0x480 [btrfs] [ 60.371105] [<ffffffffc0538dc7>] open_ctree+0x2027/0x2500 [btrfs] [ 60.371114] [<ffffffffc050cb17>] btrfs_mount+0xd37/0xe60 [btrfs] [ 60.371117] [<ffffffffb13ddfbd>] ? find_next_zero_bit+0x1d/0x20 [ 60.371120] [<ffffffffb11cb750>] ? pcpu_next_unpop+0x40/0x50 [ 60.371122] [<ffffffffb1234678>] mount_fs+0x38/0x150 [ 60.371125] [<ffffffffb125158e>] ? alloc_vfsmnt+0x19e/0x230 [ 60.371126] [<ffffffffb1251687>] vfs_kern_mount+0x67/0x110 [ 60.371135] [<ffffffffc050bf85>] btrfs_mount+0x1a5/0xe60 [btrfs] [ 60.371137] [<ffffffffb13ddfbd>] ? find_next_zero_bit+0x1d/0x20 [ 60.371139] [<ffffffffb11cb750>] ? pcpu_next_unpop+0x40/0x50 [ 60.371141] [<ffffffffb1234678>] mount_fs+0x38/0x150 [ 60.371143] [<ffffffffb125158e>] ? alloc_vfsmnt+0x19e/0x230 [ 60.371144] [<ffffffffb1251687>] vfs_kern_mount+0x67/0x110 [ 60.371146] [<ffffffffb125406b>] do_mount+0x1bb/0xc40 [ 60.371149] [<ffffffffb11c6eb2>] ? memdup_user+0x42/0x60 [ 60.371150] [<ffffffffb1254e03>] SyS_mount+0x83/0xd0 [ 60.371153] [<ffffffffb171e6bb>] entry_SYSCALL_64_fastpath+0x1e/0xad [ 60.372536] ---[ end trace 96138ebad247653d ]--- [ 60.372538] BTRFS: error (device dm-0) in btrfs_run_delayed_refs:2967: errno=-17 Object already exists [ 60.372573] BTRFS warning (device dm-0): Skipping commit of aborted transaction. [ 60.372574] BTRFS: error (device dm-0) in cleanup_transaction:1850: errno=-17 Object already exists [ 60.372612] BTRFS warning (device dm-0): failed to recover relocation: -17 [ 60.372687] BTRFS error (device dm-0): cleaner transaction attach returned -30 [ 60.651848] BTRFS error (device dm-0): open_ctree failed btrfs check reported this (latest version): checking extents checking free space cache block group 33315356672 has wrong amount of free space failed to load free space cache for block group 33315356672 Wanted offset 52105904128, found 52105838592 Wanted offset 52105904128, found 52105838592 cache appears valid but isn't 52105838592 block group 162701246464 has wrong amount of free space failed to load free space cache for block group 162701246464 Checking filesystem on /dev/mapper/cr_home UUID: d4df8c6f-be9b-45e2-9900-b5be07ac3bc0 found 90055303168 bytes used err is -22 total csum bytes: 83122632 total tree bytes: 3092611072 total fs tree bytes: 2798665728 total extent tree bytes: 160317440 btree space waste bytes: 437740884 file data blocks allocated: 6481758683136 referenced 150319349760 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1024241
Frederic Crozat
http://bugzilla.suse.com/show_bug.cgi?id=1024241
Libor Pechacek
http://bugzilla.suse.com/show_bug.cgi?id=1024241
http://bugzilla.suse.com/show_bug.cgi?id=1024241#c1
Tomáš Chvátal
participants (1)
-
bugzilla_noreply@novell.com