All of lore.kernel.org
 help / color / mirror / Atom feed
From: 4e868df3 <4e868df3@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: corrupt leaf
Date: Wed, 26 Feb 2020 22:59:32 -0700	[thread overview]
Message-ID: <CADq=pg=g47zrfKiqGFUHOJg8=+bdSGQeawihKcVcp_BahzPT+Q@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 455 bytes --]

I updated kernels recently and now am getting a corrupt leaf error.
The drives decrypt and mount, and I can touch a file briefly until the
mount switches over to read-only mode. Extended SMART tests show all 6
of my drives have a healthy status. I have a backup of the data. The
array is configured as RAID10. As the BTRFS filesystem remains
accessible / read-only, I am able to take an additional backup. What
is the best way to recover from this error?

[-- Attachment #2: info.txt --]
[-- Type: text/plain, Size: 4178 bytes --]

layout: proxmox with direct /dev passthrough to VMs

$ uname -a
VM: Linux server0 5.5.6-arch1-1 #1 SMP PREEMPT Mon, 24 Feb 2020 12:20:16 +0000 x86_64 GNU/Linux
proxmox: Linux pxe 4.15.18-26-pve #1 SMP PVE 4.15.18-54 (Sat, 15 Feb 2020 15:34:24 +0100) x86_64 GNU/Linux

$ btrfs --version (VM)
btrfs-progs v5.4

$ btrfs fi show
Label: none  uuid: 8c1dea88-fa40-4e6e-a1a1-214ea6bcdb00
        Total devices 6 FS bytes used 2.88TiB
        devid    1 size 2.73TiB used 1.02TiB path /dev/mapper/luks0
        devid    2 size 2.73TiB used 1.02TiB path /dev/mapper/luks1
        devid    3 size 2.73TiB used 1.02TiB path /dev/mapper/luks2
        devid    4 size 2.73TiB used 1.02TiB path /dev/mapper/luks3
        devid    5 size 2.73TiB used 1.02TiB path /dev/mapper/luks4
        devid    6 size 2.73TiB used 1.02TiB path /dev/mapper/luks5

$ btrfs fi df /mnt/raid  
Data, RAID10: total=3.05TiB, used=2.87TiB
System, RAID10: total=103.88MiB, used=320.00KiB
Metadata, RAID10: total=6.09GiB, used=4.46GiB
GlobalReserve, single: total=512.00MiB, used=0.00B

$ dmesg | grep BTRFS
[   19.060581] BTRFS: device fsid 8c1dea88-fa40-4e6e-a1a1-214ea6bcdb00 devid 5 transid 361687 /dev/dm-5 scanned by systemd-udevd (553)
[   19.061232] BTRFS: device fsid 8c1dea88-fa40-4e6e-a1a1-214ea6bcdb00 devid 1 transid 361687 /dev/dm-0 scanned by systemd-udevd (526)
[   19.062756] BTRFS: device fsid 8c1dea88-fa40-4e6e-a1a1-214ea6bcdb00 devid 2 transid 361687 /dev/dm-3 scanned by systemd-udevd (538)
[   19.063265] BTRFS: device fsid 8c1dea88-fa40-4e6e-a1a1-214ea6bcdb00 devid 4 transid 361687 /dev/dm-2 scanned by systemd-udevd (545)
[   19.071525] BTRFS: device fsid 8c1dea88-fa40-4e6e-a1a1-214ea6bcdb00 devid 6 transid 361687 /dev/dm-1 scanned by systemd-udevd (557)
[   19.073708] BTRFS: device fsid 8c1dea88-fa40-4e6e-a1a1-214ea6bcdb00 devid 3 transid 361687 /dev/dm-4 scanned by systemd-udevd (533)
[   19.190159] BTRFS info (device dm-0): enabling auto defrag
[   19.190172] BTRFS info (device dm-0): disk space caching is enabled
[   19.190174] BTRFS info (device dm-0): has skinny extents
[   19.448971] BTRFS info (device dm-0): bdev /dev/mapper/luks0 errs: wr 13790, rd 387, flush 0, corrupt 3532, gen 578
[   19.448977] BTRFS info (device dm-0): bdev /dev/mapper/luks5 errs: wr 13673, rd 207, flush 0, corrupt 3540, gen 705
[  130.172956] BTRFS info (device dm-0): the free space cache file (9692905472) is invalid, skip it
[  130.206490] BTRFS info (device dm-0): the free space cache file (32241483776) is invalid, skip it
[  130.221862] BTRFS info (device dm-0): the free space cache file (38683934720) is invalid, skip it
[  130.254926] BTRFS info (device dm-0): the free space cache file (54790062080) is invalid, skip it
[  130.256586] BTRFS info (device dm-0): the free space cache file (58011287552) is invalid, skip it
[  130.261085] BTRFS info (device dm-0): the free space cache file (61232513024) is invalid, skip it
[  130.261771] BTRFS info (device dm-0): the free space cache file (67674963968) is invalid, skip it
[  130.395696] BTRFS critical (device dm-0): corrupt leaf: root=7 block=2533706842112 slot=5, csum end range (68761223168) goes beyond the start range (68761178112) of the next csum item
[  130.395829] BTRFS error (device dm-0): block=2533706842112 read time tree block corruption detected
[  130.406624] BTRFS critical (device dm-0): corrupt leaf: root=7 block=2533706842112 slot=5, csum end range (68761223168) goes beyond the start range (68761178112) of the next csum item
[  130.406803] BTRFS error (device dm-0): block=2533706842112 read time tree block corruption detected
[  130.412343] BTRFS critical (device dm-0): corrupt leaf: root=7 block=2533706842112 slot=5, csum end range (68761223168) goes beyond the start range (68761178112) of the next csum item
[  130.412526] BTRFS error (device dm-0): block=2533706842112 read time tree block corruption detected
[  130.414847] BTRFS critical (device dm-0): corrupt leaf: root=7 block=2533706842112 slot=5, csum end range (68761223168) goes beyond the start range (68761178112) of the next csum item
[  130.415056] BTRFS error (device dm-0): block=2533706842112 read time tree block corruption detected

             reply	other threads:[~2020-02-27  6:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-27  5:59 4e868df3 [this message]
2020-02-27  6:30 ` corrupt leaf Chris Murphy
2020-02-27  7:23   ` 4e868df3
2020-02-27  8:03     ` Chris Murphy
2020-02-27  8:25 ` Qu Wenruo
2020-02-28  2:28   ` 4e868df3
2020-02-28  3:01     ` Qu Wenruo
2020-02-29 15:47       ` 4e868df3
2020-03-01  0:41         ` Qu Wenruo
2020-03-01  6:11           ` 4e868df3
2020-03-01 11:40             ` Qu Wenruo
2020-03-02  6:35         ` Chris Murphy

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='CADq=pg=g47zrfKiqGFUHOJg8=+bdSGQeawihKcVcp_BahzPT+Q@mail.gmail.com' \
    --to=4e868df3@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.