From: Roman Mamedov <rm@romanrm.net>
To: Victor Banon <banon.victor@gmail.com>
Cc: remi@georgianit.com, linux-btrfs@vger.kernel.org
Subject: Re: BTRFS errors following bad SATA connection
Date: Thu, 2 Jan 2025 18:33:29 +0500 [thread overview]
Message-ID: <20250102183329.35047254@nvm> (raw)
In-Reply-To: <a0dbac20-475c-4e40-84a6-8f0e9159ec8f@gmail.com>
On Thu, 2 Jan 2025 10:32:43 +0100
Victor Banon <banon.victor@gmail.com> wrote:
> So I understand I possibly have 1000 corrupted files somewhere with no way
> of identifying which without using a backup for comparison.
Btrfs stores checksums for data, so unless you turned that off, reading
corrupted files will return an I/O error, not bad content. So you can just
reread all files into /dev/null, and the corrupted ones will be unreadable.
Overall for your FS it's not looking good, there is no proper fix for "parent
transid verify failed" and this may require a reformat.
I remember reading something about the mdadm RAID5 making this issue of Btrfs
worse, due to mdraid "write hole", which its PPL feature is supposed to fix.
Basically, while with one disk it's either "written" or "not", with mdraid it
could be written on some disk but not on others, and it may present older
portion of the ondisk state to the FS, where all breaks loose.
--
With respect,
Roman
next prev parent reply other threads:[~2025-01-02 13:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <9443ea9c-08dc-4d08-81a6-cb91940e791e@gmail.com>
2025-01-01 18:25 ` BTRFS errors following bad SATA connection Victor Banon
2025-01-01 23:40 ` remi
2025-01-02 9:32 ` Victor Banon
2025-01-02 13:33 ` Roman Mamedov [this message]
2025-01-02 13:40 ` Victor Banon
2025-01-03 8:21 ` Victor Banon
2025-01-03 12:09 ` Roman Mamedov
2025-01-03 12:42 ` Victor Banon
2025-01-03 13:45 ` Roman Mamedov
2025-01-03 18:47 ` Victor Banon
2025-01-03 21:04 ` Roman Mamedov
2025-01-03 21:24 ` Victor Banon
2025-01-04 13:57 ` Roman Mamedov
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=20250102183329.35047254@nvm \
--to=rm@romanrm.net \
--cc=banon.victor@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=remi@georgianit.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