From: Leonard Lausen <leonard@lausen.nl>
To: linux-btrfs@vger.kernel.org
Subject: BTRFS critical corrupt leaf bad key order
Date: Tue, 15 Jan 2019 11:28:28 +0000 [thread overview]
Message-ID: <87d0oyw46b.fsf@lausen.nl> (raw)
Hi everyone,
I just found my btrfs filesystem to be remounted read-only with the
following in my journalctl [1]:
Jan 15 08:56:40 leonard-xps13 kernel: BTRFS critical (device dm-2): corrupt leaf: root=2 block=1350630375424 slot=68, bad key order, prev (10510212874240 169 0) current (1714119868416 169 0)
Jan 15 08:56:40 leonard-xps13 kernel: BTRFS: error (device dm-2) in __btrfs_free_extent:6831: errno=-5 IO failure
Jan 15 08:56:40 leonard-xps13 kernel: BTRFS info (device dm-2): forced readonly
Jan 15 08:56:40 leonard-xps13 kernel: BTRFS: error (device dm-2) in btrfs_run_delayed_refs:2978: errno=-5 IO failure
Jan 15 08:56:40 leonard-xps13 kernel: BTRFS info (device dm-2): delayed_refs has NO entry
Following Qu Wenruo's comment from 4th Sep 2018, I have generated the
following tree-dumps:
sudo btrfs inspect dump-tree -t root /dev/mapper/vg1-root > /tmp/btrfsdumproot
sudo btrfs inspect dump-tree -b 1350630375424 /dev/mapper/vg1-root > /tmp/btrfsdump1350630375424
The root dump is at https://termbin.com/lz0l and the block dump at
https://termbin.com/oev5 . The number 1350630375424 does not occur in
the root dump. The root dump has 16715 lines, the block dump only 645.
Would this imply that the corrupt tree block was not yet commited? What
actions do you recommend to take next?
My kernel version is 4.20.2. I am writing this email via ssh from the
affected system on some working server. Besides the error message above
and the fact that the filesystem is readonly, I have not yet found any
issues on the affected system. Note that the error was occuring under
high system load while compiling a bunch of software on a tmpfs (and the
compilation was successful, but installation failed in the end due to
trying to copy to the by then read-only btrfs root filessytem).
Does this suggest a hardware issue?
Thank you for your help and taking the time to read this.
Best regards
Leonard
[1]: For unknown reason, the dmesg output does not reach back to the
time of the error, but only contains log messages from after the
filesystem was mounted ro.
next reply other threads:[~2019-01-15 11:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-15 11:28 Leonard Lausen [this message]
2019-01-15 11:48 ` BTRFS critical corrupt leaf bad key order Qu Wenruo
2019-01-15 11:51 ` David Sterba
2019-01-15 12:17 ` Qu Wenruo
2019-01-15 12:03 ` David Sterba
2019-01-15 12:22 ` Qu Wenruo
2019-01-15 12:28 ` Leonard Lausen
2019-01-15 12:31 ` Qu Wenruo
2019-01-16 1:38 ` Chris Murphy
2019-01-16 1:52 ` Qu Wenruo
2019-01-15 12:27 ` Qu Wenruo
2019-01-15 15:17 ` Leonard Lausen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d0oyw46b.fsf@lausen.nl \
--to=leonard@lausen.nl \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox