Thread (2 messages) 2 messages, 2 authors, 2021-12-11

Re: filesystem corrupt - error -117

From: Qu Wenruo <hidden>
Date: 2021-12-11 08:39:28


On 2021/12/11 16:28, Mia wrote:
Hi,

just an addition, I'm now unable to mount and boot the server.

https://drive.google.com/file/d/1QfqCR7oqKbaTxokCGWVmqNCR5vMul7Xy/view?usp=sharing
This is just log tree, thus btrfs-rescue zero-log can easily repair that.

This bug looks like something fixed by Filipe, but I'm not familiar
enough with log tree code.

Add Filipe to this thread.

Thanks,
Qu

Regards
Mia

------ Originalnachricht ------
Von: "Mia" [off-list ref]
An: "Patrik Lundquist" [off-list ref]; "Qu Wenruo"
[off-list ref]; linux-btrfs@vger.kernel.org
Gesendet: 11.12.2021 09:20:39
Betreff: Re: filesystem corrupt - error -117
quoted
Hello,

after the switching to the newer kernel I had no further problems
until now.
It happened again.

[1653860.040458] BTRFS error (device sda3): tree first key mismatch
detected, bytenr=543379832832 parent_transid=1349283 key
expected=(468977471488,168,16384) has=(468983328768,168,61440)
[1653860.041095] ------------[ cut here ]------------
[1653860.041098] BTRFS: Transaction aborted (error -117)
[1653860.041289] WARNING: CPU: 2 PID: 219 at
fs/btrfs/extent-tree.c:2148 btrfs_run_delayed_refs+0x1a6/0x1f0 [btrfs]
[1653860.041291] Modules linked in: dm_mod veth ip6t_REJECT
nf_reject_ipv6 ip6_tables nf_log_ipv6 xfrm_user xfrm_algo br_netfilter
xt_recent ipt_REJECT nf_reject_ipv4 xt_multiport xt_comment
xt_hashlimit xt_conntrack xt_addrtype xt_mark xt_nat xt_CT
nfnetlink_log xt_NFLOG nf_log_ipv4 nf_log_common xt_LOG nf_nat_tftp
nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip nf_nat_pptp nf_nat_irc
nf_nat_h323 nf_nat_ftp nf_nat_amanda ts_kmp nf_conntrack_amanda
nf_conntrack_sane nf_conntrack_tftp nf_conntrack_sip nf_conntrack_pptp
nf_conntrack_netlink nf_conntrack_netbios_ns nf_conntrack_broadcast
nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nft_counter
nft_chain_nat xt_CHECKSUM xt_MASQUERADE nf_nat nf_conntrack
nf_defrag_ipv6 nf_defrag_ipv4 xt_tcpudp nft_compat wireguard
libchacha20poly1305 chacha_x86_64 nf_tables poly1305_x86_64
ip6_udp_tunnel udp_tunnel libblake2s nfnetlink blake2s_x86_64
curve25519_x86_64 libcurve25519_generic libchacha libblake2s_generic
overlay bridge stp llc fuse ext4
[1653860.041392]  amd_energy crc32_pclmul crc16 mbcache
ghash_clmulni_intel jbd2 aesni_intel libaes crypto_simd cryptd
glue_helper joydev sg virtio_console virtio_balloon evdev serio_raw
pcspkr qemu_fw_cfg sunrpc ip_tables x_tables autofs4 btrfs
blake2b_generic xor raid6_pq libcrc32c crc32c_generic hid_generic
usbhid hid sd_mod sr_mod cdrom t10_pi crc_t10dif crct10dif_generic
ata_generic virtio_net net_failover virtio_scsi failover bochs_drm
drm_vram_helper drm_ttm_helper ttm drm_kms_helper cec ata_piix
uhci_hcd drm libata ehci_hcd usbcore crct10dif_pclmul crct10dif_common
virtio_pci crc32c_intel virtio_ring psmouse virtio usb_common scsi_mod
i2c_piix4 floppy button
[1653860.041483] CPU: 2 PID: 219 Comm: btrfs-transacti Tainted:
G             L    5.10.0-0.bpo.9-amd64 #1 Debian 5.10.70-1~bpo10+1
[1653860.041484] Hardware name: netcup KVM Server, BIOS RS 2000 G9
06/01/2021
[1653860.041530] RIP: 0010:btrfs_run_delayed_refs+0x1a6/0x1f0 [btrfs]
[1653860.041535] Code: 8b 55 50 f0 48 0f ba aa 40 0a 00 00 02 72 20 83
f8 fb 74 39 83 f8 e2 74 34 89 c6 48 c7 c7 68 0d 86 c0 89 04 24 e8 ac
12 4b e7 <0f> 0b 8b 04 24 89 c1 ba 64 08 00 00 48 89 ef 89 04 24 48 c7
c6 a0
[1653860.041538] RSP: 0018:ffffa9ea8040fe10 EFLAGS: 00010282
[1653860.041541] RAX: 0000000000000000 RBX: ffff9d51c5fb9f70 RCX:
0000000000000027
[1653860.041543] RDX: 0000000000000027 RSI: ffff9d54efd18a00 RDI:
ffff9d54efd18a08
[1653860.041546] RBP: ffff9d51c5fb9f70 R08: 0000000000000000 R09:
c0000000ffffefff
[1653860.041548] R10: 0000000000000001 R11: ffffa9ea8040fc18 R12:
ffff9d51f0cda800
[1653860.041550] R13: ffff9d51e183b460 R14: ffff9d51e183b340 R15:
0000000000000cca
[1653860.041556] FS:  0000000000000000(0000) GS:ffff9d54efd00000(0000)
knlGS:0000000000000000
[1653860.041558] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[1653860.041561] CR2: 00007fd3ecdd1000 CR3: 0000000102288000 CR4:
0000000000350ee0
[1653860.041583] Call Trace:
[1653860.041675]  btrfs_commit_transaction+0x57/0xb70 [btrfs]
[1653860.041722]  ? start_transaction+0xd3/0x580 [btrfs]
[1653860.041767]  transaction_kthread+0x15d/0x180 [btrfs]
[1653860.041810]  ? btrfs_cleanup_transaction+0x580/0x580 [btrfs]
[1653860.041817]  kthread+0x116/0x130
[1653860.041821]  ? __kthread_cancel_work+0x40/0x40
[1653860.041826]  ret_from_fork+0x22/0x30
[1653860.041831] ---[ end trace af79c203a5452514 ]---
[1653860.041835] BTRFS: error (device sda3) in
btrfs_run_delayed_refs:2148: errno=-117 Filesystem corrupted
[1653860.042111] BTRFS info (device sda3): forced readonly

root@rx1 ~ # btrfs fi show
Label: none  uuid: 21306973-6bf3-4877-9543-633d472dcb46
    Total devices 1 FS bytes used 186.78GiB
    devid    1 size 319.00GiB used 199.08GiB path /dev/sda3

root@rx1 ~ # btrfs fi df
/
:(
Data, single: total=194.89GiB, used=185.16GiB
System, single: total=32.00MiB, used=48.00KiB
Metadata, single: total=4.16GiB, used=1.62GiB
GlobalReserve, single: total=385.84MiB, used=0.00B

root@rx1 ~ # btrfs --version
btrfs-progs v5.10.1

root@rx1 ~ # uname -a
Linux rx1 5.10.0-0.bpo.9-amd64 #1 SMP Debian 5.10.70-1~bpo10+1
(2021-10-10) x86_64 GNU/Linux

Regards
Mia

------ Originalnachricht ------
Von: "Mia" [off-list ref]
An: "Patrik Lundquist" [off-list ref]; "Qu Wenruo"
[off-list ref]
Cc: "Linux Btrfs" <redacted>
Gesendet: 26.10.2021 19:28:14
Betreff: Re: filesystem corrupt - error -117
quoted
Hi Patrik,

good suggestion, I'm on 5.10.0-0.bpo.8-amd64 #1 SMP Debian
5.10.46-4~bpo10+1 (2021-08-07) now.

Hi Qu,
regarding the memtest. This is a virtual machine, I have no access to
the host system.
I don't know if a memtest inside the vm would bring legit results?

Regards
Mia

------ Originalnachricht ------
Von: "Patrik Lundquist" [off-list ref]
An: "Mia" [off-list ref]
Cc: "Linux Btrfs" <redacted>
Gesendet: 26.10.2021 16:12:45
Betreff: Re: filesystem corrupt - error -117
quoted
On Tue, 26 Oct 2021 at 09:15, Mia [off-list ref] wrote:
quoted
 Problem with updating is that this is currently still Debian 10 and a
 production environment and I don't know when it is possible to
upgrade
 because of dependencies.
Maybe you can install the buster-backports kernel which currently is
5.10.70?

https://backports.debian.org/Instructions/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help