Overview of our desktop machines:
a) each desktop machine has two NVME drives
b) on each NVME drive, there is a dedicated installation of Tumbleweed. (primary and secondary)
c) each TW installation (primary and secondary) has a separate partition for root and a separate partition for /home
… this is in case of boot failure, there is another install to boot from (which happened yesterday)
Yesterday, after a zypper dup … after it finished, I noticed errors when I ran GUI Yast, so I thought I should reboot because I ran zypper dup. I rebooted to the primary TW, and as I’m waiting for the KDE login screen, I see the command line instead.
So I logged in and ran dmesg and noticed both journal errors and btrfs errors.
I did capture the output of dmesg to a file. I booted to the secondary TW on the other drive and did two backups of the primary /home to a 3rd hard drive and an external backup drive.
So, a few minutes ago, I booted up to the primary TW installation again and it repeated the journal errors and btrfs errors, and ended up at a command line.
Out of curiosity, I logged in as my regular user and ran startx and I have a KDE Plasma desktop running, as if nothing is wrong. I did some research on the journal errors and btrfs errors to find a solution. But no definite answer.
So, my question to the experts … because I’m confused how to attempt to fix this:
====== Is it a corrupted journal problem or a corrupted btrfs problem?
Any suggestions on next steps?
I snipped out the end of dmesg output, where the major errors showed up, shown below
==============near the end of dmesg output =================
[ 12.566777] BTRFS error (device nvme0n1p3): unable to find ref byte nr 1766604800 parent 1308884992 root 265 owner 12003347 offset 0
[ 12.566784] ------------[ cut here ]------------
[ 12.566785] BTRFS: Transaction aborted (error -2)
[ 12.566806] WARNING: CPU: 8 PID: 116 at fs/btrfs/extent-tree.c:3074 __btrfs_free_extent+0xd2c/0x10f0 [btrfs]
[ 12.566882] Modules linked in: nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib cmac algif_hash algif_skcipher af_alg nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_tables ebtable_nat ebtable_broute ip6table_nat ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_raw iptable_security iscsi_ibft iscsi_boot_sysfs ip_set nfnetlink ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter bpfilter vboxnetadp(O) vboxnetflt(O) qrtr snd_seq snd_seq_device vboxdrv(O) bnep joydev nls_iso8859_1 nls_cp437 vfat fat rtw88_8822be rtw88_8822b rtw88_pci rtw88_core snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi mac80211 snd_hda_intel btusb snd_intel_dspcfg intel_rapl_msr snd_intel_sdw_acpi btrtl intel_rapl_common snd_hda_codec eeepc_wmi btbcm asus_wmi edac_mce_amd btintel snd_hda_core battery btmtk ledtrig_audio snd_hwdep bluetooth kvm_amd sparse_keymap
[ 12.566930] libarc4 snd_pcm platform_profile xfs cfg80211 kvm igb ecdh_generic snd_timer asus_wmi_sensors irqbypass hid_logitech_hidpp mxm_wmi wmi_bmof pcspkr i2c_piix4 rfkill efi_pstore k10temp snd dca soundcore tiny_power_button gpio_amdpt gpio_generic button acpi_cpufreq fuse configfs dmi_sysfs ip_tables x_tables hid_logitech_dj hid_generic usbhid amdgpu crct10dif_pclmul xhci_pci crc32_pclmul xhci_pci_renesas polyval_clmulni polyval_generic gf128mul drm_ttm_helper ttm xhci_hcd ghash_clmulni_intel video iommu_v2 sha512_ssse3 drm_buddy gpu_sched aesni_intel drm_display_helper nvme crypto_simd cryptd usbcore cec ccp rc_core nvme_core sp5100_tco wmi btrfs blake2b_generic xor raid6_pq libcrc32c crc32c_intel sg dm_multipath dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua msr efivarfs
[ 12.566976] CPU: 8 PID: 116 Comm: kworker/u64:6 Tainted: G W O 6.2.12-1-default #1 openSUSE Tumbleweed cf30e455e68e00d1061d6e53870e1ba6290ba30f
[ 12.566980] Hardware name: ASUS System Product Name/ROG CROSSHAIR VII HERO (WI-FI), BIOS 4007 12/09/2020
[ 12.566981] Workqueue: events_unbound btrfs_preempt_reclaim_metadata_space [btrfs]
[ 12.567071] RIP: 0010:__btrfs_free_extent+0xd2c/0x10f0 [btrfs]
[ 12.567144] Code: fe ff ff 44 89 e6 48 c7 c7 a0 f6 76 c0 e8 9c 97 e3 df 0f 0b e9 a2 fa ff ff be fe ff ff ff 48 c7 c7 a0 f6 76 c0 e8 84 97 e3 df <0f> 0b e9 dd fd ff ff 8b 94 24 a8 00 00 00 48 8b 7c 24 30 49 89 d8
[ 12.567147] RSP: 0018:ffffb326805abbc0 EFLAGS: 00010282
[ 12.567149] RAX: 0000000000000000 RBX: 00000000694c4000 RCX: 0000000000000027
[ 12.567151] RDX: ffff9b9d7ec224c8 RSI: 0000000000000001 RDI: ffff9b9d7ec224c0
[ 12.567152] RBP: ffff9b8ee1cca7e0 R08: 0000000000000000 R09: ffffb326805aba68
[ 12.567154] R10: 0000000000000003 R11: ffff9b9d7e7fffe8 R12: 0000000000000000
[ 12.567155] R13: 0000000000000000 R14: ffff9b8ec16b9478 R15: ffff9b8e96756930
[ 12.567156] FS: 0000000000000000(0000) GS:ffff9b9d7ec00000(0000) knlGS:0000000000000000
[ 12.567158] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 12.567160] CR2: 00005651d010cb28 CR3: 0000000894e10000 CR4: 00000000003506e0
[ 12.567162] Call Trace:
[ 12.567163] <TASK>
[ 12.567165] ? btrfs_block_rsv_release+0xb3/0x1c0 [btrfs 5cf1c926e84f6974482b86f4a2b4538a9fab6b09]
[ 12.567254] __btrfs_run_delayed_refs+0x2c1/0x1210 [btrfs 5cf1c926e84f6974482b86f4a2b4538a9fab6b09]
[ 12.567330] ? start_transaction+0x22b/0x5c0 [btrfs 5cf1c926e84f6974482b86f4a2b4538a9fab6b09]
[ 12.567410] ? kmem_cache_alloc+0x166/0x380
[ 12.567414] ? join_transaction+0xf0/0x400 [btrfs 5cf1c926e84f6974482b86f4a2b4538a9fab6b09]
[ 12.567494] btrfs_run_delayed_refs+0x55/0x200 [btrfs 5cf1c926e84f6974482b86f4a2b4538a9fab6b09]
[ 12.567568] flush_space+0x1ca/0x610 [btrfs 5cf1c926e84f6974482b86f4a2b4538a9fab6b09]
[ 12.567657] ? __switch_to_asm+0x3a/0x80
[ 12.567661] ? finish_task_switch.isra.0+0x94/0x2f0
[ 12.567665] ? btrfs_get_alloc_profile+0xbd/0x1a0 [btrfs 5cf1c926e84f6974482b86f4a2b4538a9fab6b09]
[ 12.567752] btrfs_preempt_reclaim_metadata_space+0x93/0x1b0 [btrfs 5cf1c926e84f6974482b86f4a2b4538a9fab6b09]
[ 12.567841] process_one_work+0x20a/0x420
[ 12.567845] worker_thread+0x4a/0x3b0
[ 12.567848] ? __pfx_worker_thread+0x10/0x10
[ 12.567851] kthread+0xda/0x100
[ 12.567855] ? __pfx_kthread+0x10/0x10
[ 12.567859] ret_from_fork+0x2c/0x50
[ 12.567864] </TASK>
[ 12.567865] ---[ end trace 0000000000000000 ]---
[ 12.567867] BTRFS: error (device nvme0n1p3: state A) in __btrfs_free_extent:3074: errno=-2 No such entry
[ 12.567871] BTRFS info (device nvme0n1p3: state EA): forced readonly
[ 12.567873] BTRFS error (device nvme0n1p3: state EA): failed to run delayed ref for logical 1766604800 num_bytes 4096 type 184 action 2 ref_mod 1: -2
[ 12.567879] BTRFS: error (device nvme0n1p3: state EA) in btrfs_run_delayed_refs:2151: errno=-2 No such entry
[ 12.749706] ------------[ cut here ]------------
[ 12.749709] WARNING: CPU: 4 PID: 602 at fs/btrfs/transaction.c:144 btrfs_put_transaction+0x127/0x130 [btrfs]
[ 12.749772] Modules linked in: nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib cmac algif_hash algif_skcipher af_alg nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_tables ebtable_nat ebtable_broute ip6table_nat ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_raw iptable_security iscsi_ibft iscsi_boot_sysfs ip_set nfnetlink ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter bpfilter vboxnetadp(O) vboxnetflt(O) qrtr snd_seq snd_seq_device vboxdrv(O) bnep joydev nls_iso8859_1 nls_cp437 vfat fat rtw88_8822be rtw88_8822b rtw88_pci rtw88_core snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi mac80211 snd_hda_intel btusb snd_intel_dspcfg intel_rapl_msr snd_intel_sdw_acpi btrtl intel_rapl_common snd_hda_codec eeepc_wmi btbcm asus_wmi edac_mce_amd btintel snd_hda_core battery btmtk ledtrig_audio snd_hwdep bluetooth kvm_amd sparse_keymap
[ 12.749813] libarc4 snd_pcm platform_profile xfs cfg80211 kvm igb ecdh_generic snd_timer asus_wmi_sensors irqbypass hid_logitech_hidpp mxm_wmi wmi_bmof pcspkr i2c_piix4 rfkill efi_pstore k10temp snd dca soundcore tiny_power_button gpio_amdpt gpio_generic button acpi_cpufreq fuse configfs dmi_sysfs ip_tables x_tables hid_logitech_dj hid_generic usbhid amdgpu crct10dif_pclmul xhci_pci crc32_pclmul xhci_pci_renesas polyval_clmulni polyval_generic gf128mul drm_ttm_helper ttm xhci_hcd ghash_clmulni_intel video iommu_v2 sha512_ssse3 drm_buddy gpu_sched aesni_intel drm_display_helper nvme crypto_simd cryptd usbcore cec ccp rc_core nvme_core sp5100_tco wmi btrfs blake2b_generic xor raid6_pq libcrc32c crc32c_intel sg dm_multipath dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua msr efivarfs
[ 12.749851] CPU: 4 PID: 602 Comm: btrfs-transacti Tainted: G W O 6.2.12-1-default #1 openSUSE Tumbleweed cf30e455e68e00d1061d6e53870e1ba6290ba30f
[ 12.749855] Hardware name: ASUS System Product Name/ROG CROSSHAIR VII HERO (WI-FI), BIOS 4007 12/09/2020
[ 12.749856] RIP: 0010:btrfs_put_transaction+0x127/0x130 [btrfs]
[ 12.749913] Code: 48 8b bb a0 01 00 00 48 c7 c6 b3 b0 76 c0 e8 70 e7 0b 00 e9 67 ff ff ff 0f 0b e9 fb fe ff ff 0f 0b eb c1 0f 0b e9 35 ff ff ff <0f> 0b e9 3e ff ff ff 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90
[ 12.749915] RSP: 0018:ffffb32680f3fe30 EFLAGS: 00010282
[ 12.749917] RAX: ffff9b8eae28f980 RBX: ffff9b8e8acf5c00 RCX: 0000000000000000
[ 12.749919] RDX: ffff9b8e8acf5c28 RSI: 0000000000000246 RDI: ffff9b8e8acf5c10
[ 12.749920] RBP: ffff9b8ea1e1f000 R08: 0000000000000000 R09: ffffb32680f3fde8
[ 12.749921] R10: 0000000010080000 R11: 0000000000000000 R12: ffff9b8e8acf5c00
[ 12.749922] R13: ffff9b8ea1e1f428 R14: ffff9b8ea1e1f450 R15: ffff9b8e8acf5c28
[ 12.749923] FS: 0000000000000000(0000) GS:ffff9b9d7eb00000(0000) knlGS:0000000000000000
[ 12.749925] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 12.749926] CR2: 00007f8e318ae8ae CR3: 0000000894e10000 CR4: 00000000003506e0
[ 12.749927] Call Trace:
[ 12.749930] <TASK>
[ 12.749932] btrfs_cleanup_transaction.isra.0+0xb3/0x540 [btrfs 5cf1c926e84f6974482b86f4a2b4538a9fab6b09]
[ 12.749991] ? __pfx_autoremove_wake_function+0x10/0x10
[ 12.749996] transaction_kthread+0x154/0x1b0 [btrfs 5cf1c926e84f6974482b86f4a2b4538a9fab6b09]
[ 12.750053] ? __pfx_transaction_kthread+0x10/0x10 [btrfs 5cf1c926e84f6974482b86f4a2b4538a9fab6b09]
[ 12.750109] kthread+0xda/0x100
[ 12.750113] ? __pfx_kthread+0x10/0x10
[ 12.750116] ret_from_fork+0x2c/0x50
[ 12.750121] </TASK>
[ 12.750122] ---[ end trace 0000000000000000 ]---
[ 13.633415] igb 0000:06:00.0 enp6s0: igb: enp6s0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
[ 13.741509] IPv6: ADDRCONF(NETDEV_CHANGE): enp6s0: link becomes ready
[ 13.758389] NET: Registered PF_PACKET protocol family
[ 42.324281] systemd-journald[678]: /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Journal file corrupted, rotating.
[ 42.324304] systemd-journald[678]: Failed to rotate /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Read-only file system
[ 42.324427] systemd-journald[678]: Failed to open journal file '/var/log/journal/a9637f095381461d9ace3985c0ae5331/user-1000.journal' for rotation: Read-only file system
[ 42.326662] systemd-journald[678]: Failed to write entry to /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal (30 items, 780 bytes) despite vacuuming, ignoring: Bad message
[ 42.347100] systemd-journald[678]: /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Journal file corrupted, rotating.
[ 42.347114] systemd-journald[678]: Failed to rotate /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Read-only file system
[ 42.347212] systemd-journald[678]: Failed to open journal file '/var/log/journal/a9637f095381461d9ace3985c0ae5331/user-1000.journal' for rotation: Read-only file system
[ 42.356512] systemd-journald[678]: Failed to rotate /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Read-only file system
[ 42.356612] systemd-journald[678]: Failed to open journal file '/var/log/journal/a9637f095381461d9ace3985c0ae5331/user-1000.journal' for rotation: Read-only file system
[ 42.593376] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.595644] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.596128] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.598293] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.607818] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.609936] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.617373] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.619480] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.626549] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.628651] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.635872] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.638151] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.642955] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.645072] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.649856] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.651951] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.652187] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.654279] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.663790] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.665895] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.670988] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.673071] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.676585] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.678023] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.680865] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 42.682091] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 49.925294] systemd-journald[678]: Failed to write entry to /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal (21 items, 580 bytes) despite vacuuming, ignoring: Bad message (Dropped 23 similar message(s))
[ 110.919171] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 110.919416] systemd-journald[678]: /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Journal file corrupted, rotating. (Dropped 65 similar message(s))
[ 110.919430] systemd-journald[678]: Failed to rotate /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Read-only file system (Dropped 64 similar message(s))
[ 110.919534] systemd-journald[678]: Failed to open journal file '/var/log/journal/a9637f095381461d9ace3985c0ae5331/user-1000.journal' for rotation: Read-only file system (Dropped 64 similar message(s))
[ 110.921614] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 110.921635] systemd-journald[678]: Failed to write entry to /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal (29 items, 702 bytes) despite vacuuming, ignoring: Bad message (Dropped 42 similar message(s))
[ 110.935811] systemd-journald[678]: /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Journal file corrupted, rotating.
[ 110.935823] systemd-journald[678]: Failed to rotate /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Read-only file system
[ 110.935917] systemd-journald[678]: Failed to open journal file '/var/log/journal/a9637f095381461d9ace3985c0ae5331/user-1000.journal' for rotation: Read-only file system
[ 110.945027] systemd-journald[678]: /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Journal file corrupted, rotating.
[ 110.945039] systemd-journald[678]: Failed to rotate /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Read-only file system
[ 110.945132] systemd-journald[678]: Failed to open journal file '/var/log/journal/a9637f095381461d9ace3985c0ae5331/user-1000.journal' for rotation: Read-only file system
[ 110.997316] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 110.998878] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 130.055468] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 130.057635] systemd-journald[678]: Failed to open user journal file, falling back to system journal: Read-only file system
[ 130.057644] systemd-journald[678]: Failed to write entry to /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal (29 items, 728 bytes) despite vacuuming, ignoring: Bad message (Dropped 43 similar message(s))
[ 172.113536] logitech-hidpp-device 0003:046D:1025.0008: HID++ 1.0 device connected.
[ 172.117677] systemd-journald[678]: /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Journal file corrupted, rotating. (Dropped 42 similar message(s))
[ 172.117696] systemd-journald[678]: Failed to rotate /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Read-only file system (Dropped 42 similar message(s))
[ 172.117808] systemd-journald[678]: Failed to open journal file '/var/log/journal/a9637f095381461d9ace3985c0ae5331/user-1000.journal' for rotation: Read-only file system (Dropped 42 similar message(s))
[ 172.120061] systemd-journald[678]: Failed to write entry to /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal (13 items, 398 bytes) despite vacuuming, ignoring: Bad message
[ 172.129602] systemd-journald[678]: /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Journal file corrupted, rotating.
[ 172.129614] systemd-journald[678]: Failed to rotate /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Read-only file system
[ 172.129709] systemd-journald[678]: Failed to open journal file '/var/log/journal/a9637f095381461d9ace3985c0ae5331/user-1000.journal' for rotation: Read-only file system
[ 172.131902] systemd-journald[678]: /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Journal file corrupted, rotating.
[ 172.131913] systemd-journald[678]: Failed to rotate /var/log/journal/a9637f095381461d9ace3985c0ae5331/system.journal: Read-only file system
[ 172.132007] systemd-journald[678]: Failed to open journal file '/var/log/journal/a9637f095381461d9ace3985c0ae5331/user-1000.journal' for rotation: Read-only file system
================== end of dmesg output ===================