On 2020/6/6 上午12:26, Matt Zagrabelny wrote: > Greetings, > > I'm getting a readonly btrfs filesystem. Here is the relevant dmesg: > > Linux version 5.5.0-1-amd64 (debian-kernel@xxxxxxxxxxxxxxxx) (gcc > version 9.3.0 (Debian 9.3.0-8)) #1 SMP Debian 5.5.13-2 (2020-03-30) > [...] > BTRFS error (device sda2): tree first key mismatch detected, > bytenr=165532581888 parent_transid=2459281 key > expected=(68186292224,169,1073741824) has=(68186292224,169,0) > BTRFS error (device sda2): tree first key mismatch detected, > bytenr=165532581888 parent_transid=2459281 key > expected=(68186292224,169,1073741824) has=(68186292224,169,0) Note 1073741824 = 0x40000000, which is just one bit flipped. It looks like your memory is not reliable, thus one bit flipped and cause the first key mismatch. Btrfs is trying its best to detect any suspicious data, thus it rejects the offending data and falls RO. So I strongly recommend to do a full memtest. > BTRFS error (device sda2): tree first key mismatch detected, > bytenr=165532581888 parent_transid=2459281 key > expected=(68186292224,169,1073741824) has=(68186292224,169,0) > BTRFS error (device sda2): tree first key mismatch detected, > bytenr=165532581888 parent_transid=2459281 key > expected=(68186292224,169,1073741824) has=(68186292224,169,0) > BTRFS error (device sda2): tree first key mismatch detected, > bytenr=165532581888 parent_transid=2459281 key > expected=(68186292224,169,1073741824) has=(68186292224,169,0) > BTRFS error (device sda2): tree first key mismatch detected, > bytenr=165532581888 parent_transid=2459281 key > expected=(68186292224,169,1073741824) has=(68186292224,169,0) > BTRFS error (device sda2): tree first key mismatch detected, > bytenr=165532581888 parent_transid=2459281 key > expected=(68186292224,169,1073741824) has=(68186292224,169,0) > BTRFS error (device sda2): tree first key mismatch detected, > bytenr=165532581888 parent_transid=2459281 key > expected=(68186292224,169,1073741824) has=(68186292224,169,0) > BTRFS error (device sda2): tree first key mismatch detected, > bytenr=165532581888 parent_transid=2459281 key > expected=(68186292224,169,1073741824) has=(68186292224,169,0) > BTRFS error (device sda2): tree first key mismatch detected, > bytenr=165532581888 parent_transid=2459281 key > expected=(68186292224,169,1073741824) has=(68186292224,169,0) > BTRFS error (device sda2): tree first key mismatch detected, > bytenr=165532581888 parent_transid=2459281 key > expected=(68186292224,169,1073741824) has=(68186292224,169,0) > ------------[ cut here ]------------ > BTRFS: Transaction aborted (error -117) > WARNING: CPU: 3 PID: 286 at fs/btrfs/extent-tree.c:2209 > btrfs_run_delayed_refs+0x1a1/0x1f0 [btrfs] > Modules linked in: cmac bnep cpufreq_userspace cpufreq_powersave > cpufreq_conservative binfmt_misc nls_ascii nls_cp437 vfat fat > intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp > coretemp uvcvideo kvm_intel kvm btusb videobuf2_vmalloc > videobuf2_memops btrtl videobuf2_v4l2 btbcm irqbypass videobuf2_common > btintel iwldvm mac80211 bluetooth videodev dell_laptop > crct10dif_pclmul drbg ghash_clmulni_intel ansi_cprng > snd_hda_codec_hdmi snd_hda_codec_idt ecdh_generic aesni_intel > snd_hda_codec_generic ecc dell_smm_hwmon libarc4 crypto_simd crc16 mc > ledtrig_audio cryptd ppdev snd_hda_intel glue_helper joydev mei_wdt > iTCO_wdt snd_intel_dspcfg dell_wmi snd_hda_codec dell_smbios wmi_bmof > iwlwifi dell_smo8800 snd_hda_core iTCO_vendor_support intel_cstate > snd_hwdep intel_uncore snd_pcm watchdog sg intel_rapl_perf pcspkr > snd_timer serio_raw sparse_keymap parport_pc dcdbas dell_rbtn cfg80211 > dell_wmi_descriptor mei_me efi_pstore snd ac efivars evdev mei parport > soundcore > rfkill efivarfs ip_tables x_tables autofs4 btrfs blake2b_generic xor > zstd_decompress zstd_compress raid6_pq libcrc32c crc32c_generic sr_mod > cdrom sd_mod hid_generic usbhid hid nouveau mxm_wmi i2c_algo_bit ttm > ahci libahci xhci_pci drm_kms_helper libata xhci_hcd sdhci_pci > crc32_pclmul ehci_pci drm cqhci ehci_hcd psmouse crc32c_intel sdhci > i2c_i801 e1000e scsi_mod usbcore mmc_core lpc_ich ptp mfd_core > usb_common pps_core wmi battery video button > CPU: 3 PID: 286 Comm: btrfs-transacti Tainted: G W > 5.5.0-1-amd64 #1 Debian 5.5.13-2 > Hardware name: Dell Inc. Latitude E6430/0H3MT5, BIOS A18 01/18/2016 > RIP: 0010:btrfs_run_delayed_refs+0x1a1/0x1f0 [btrfs] > Code: 41 5f c3 49 8b 54 24 50 f0 48 0f ba aa 28 17 00 00 02 72 1b 83 > f8 fb 74 37 89 c6 48 c7 c7 40 c0 84 c0 89 04 24 e8 71 47 2f f3 <0f> 0b > 8b 04 24 89 c1 ba a1 08 00 00 4c 89 e7 89 04 24 48 c7 c6 00 > RSP: 0018:ffffaec08084fe00 EFLAGS: 00010286 > RAX: 0000000000000000 RBX: 00000000000001a8 RCX: 0000000000000007 > RDX: 0000000000000007 RSI: 0000000000000096 RDI: ffff98501dcd9a40 > RBP: ffff984fb22e7d58 R08: 000000000000047c R09: 0000000000000004 > R10: 0000000000000000 R11: 0000000000000001 R12: ffff98501af1ae38 > R13: ffff98501bad1230 R14: ffff98501bad0378 R15: ffff984fb22e7c00 > FS: 0000000000000000(0000) GS:ffff98501dcc0000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 0000563a7b0aa168 CR3: 000000028bc0a001 CR4: 00000000001606e0 > Call Trace: > btrfs_commit_transaction+0x57/0xa20 [btrfs] > ? start_transaction+0xbb/0x4c0 [btrfs] > transaction_kthread+0x13c/0x180 [btrfs] > kthread+0xf9/0x130 > ? btrfs_cleanup_transaction+0x5c0/0x5c0 [btrfs] > ? kthread_park+0x90/0x90 > ret_from_fork+0x35/0x40 > ---[ end trace 717f06ffcf003459 ]--- > BTRFS: error (device sda2) in btrfs_run_delayed_refs:2209: errno=-117 unknown > BTRFS info (device sda2): forced readonly > > Is this a helpful message for the developers? > > Does it look like hardware failure? Yep. I recommend to check for memory, with that problem ruled out, btrfs check to ensure there is no on-disk problem. If any, backup your data asap. Thanks, Qu > > I can provide more details. > > Let me know what you think. > > Thanks, > > -Matt >
Attachment:
signature.asc
Description: OpenPGP digital signature
