Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Russell Coker <russell@coker.com.au>
To: linux-btrfs@vger.kernel.org, Qu Wenruo <wqu@suse.com>
Subject: Re: strangely uncorrectable errors with RAID-5
Date: Sat, 15 Mar 2025 03:54:22 +1100	[thread overview]
Message-ID: <3349775.aeNJFYEL58@xev> (raw)
In-Reply-To: <1924801.tdWV9SEqCh@xev>

On Friday, 14 March 2025 23:27:51 AEDT Russell Coker wrote:
> Just to see if anything had changed I ran the same tests with RAID-5 data
> and metadata again with the Debian kernel 6.12.17-amd64 and this time got
> properly uncorrectable errors in less than a minute.  I don't know if the
> error happened faster and worse than before because of some kernel
> difference, luck, or some timing difference when running on different
> hardware.

I did it again but with RAID-5 data and RAID-1 metadata and it took a few 
hours this time but again got to an uncorrectable state.

[15653.298999] BTRFS warning (device vdc): checksum error at logical 
5157748736 on dev /dev/vdc, physical 1673199616: metadata leaf (level 0) in 
tree 5
[15653.299001] BTRFS error (device vdc): unable to fixup (regular) error at 
logical 5157748736 on dev /dev/vdc physical 1673199616
[15653.299002] BTRFS warning (device vdc): checksum error at logical 
5157748736 on dev /dev/vdc, physical 1673199616: metadata leaf (level 0) in 
tree 5
[15653.299003] BTRFS error (device vdc): unable to fixup (regular) error at 
logical 5157748736 on dev /dev/vdc physical 1673199616
[15653.299005] BTRFS warning (device vdc): checksum error at logical 
5157748736 on dev /dev/vdc, physical 1673199616: metadata leaf (level 0) in 
tree 5
[15653.299006] BTRFS error (device vdc): unable to fixup (regular) error at 
logical 5157748736 on dev /dev/vdc physical 1673199616
[15653.299007] BTRFS warning (device vdc): checksum error at logical 
5157748736 on dev /dev/vdc, physical 1673199616: metadata leaf (level 0) in 
tree 5
[15653.299009] BTRFS error (device vdc): unable to fixup (regular) error at 
logical 5157748736 on dev /dev/vdc physical 1673199616
[15653.299010] BTRFS warning (device vdc): checksum error at logical 
5157748736 on dev /dev/vdc, physical 1673199616: metadata leaf (level 0) in 
tree 5

Below is the script that broke it.

#!/bin/bash
set -e
while true ; do
  for DEV in c d e f ; do
    dd if=/dev/zero of=/dev/vd$DEV oseek=$((20+$RANDOM%3*1000)) bs=1024k 
count=1000
    sync
    btrfs scrub start -B /mnt
    sync
  done
  date
done

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/




  reply	other threads:[~2025-03-14 16:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-20 10:09 strangely uncorrectable errors with RAID-5 Russell Coker
2024-10-20 21:01 ` Qu Wenruo
2024-10-21  3:55   ` Russell Coker
2024-10-21  4:26     ` Qu Wenruo
2025-03-14 12:27       ` Russell Coker
2025-03-14 16:54         ` Russell Coker [this message]
2025-03-14 19:32           ` Thiago Ramon
2025-03-15  2:51             ` Russell Coker
2025-03-15  5:19             ` Andrei Borzenkov

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=3349775.aeNJFYEL58@xev \
    --to=russell@coker.com.au \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=wqu@suse.com \
    /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