public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Victor Banon <banon.victor@gmail.com>
To: Roman Mamedov <rm@romanrm.net>
Cc: remi@georgianit.com, linux-btrfs@vger.kernel.org
Subject: Re: BTRFS errors following bad SATA connection
Date: Fri, 3 Jan 2025 13:42:25 +0100	[thread overview]
Message-ID: <032d71e6-954e-4fc6-bf43-18a6762d08b9@gmail.com> (raw)
In-Reply-To: <20250103170900.7016c4c4@nvm>

On 03/01/2025 13:09, Roman Mamedov wrote:
> When it stops mounting :)
Ok :) So there is hope... So far the file system is usable, it just 
occasionally goes into read-only when it encounters i/o errors (like 
during a scrub for example).
> As is, surely it is easier to restore 3900 files from the backup rather than
> everything?

Absolutely! But I'm a bit worried because I've already identified and 
deleted thousands of files, and errors persisted, and new corrupted 
files kept popping up. It's possible I've been doing it wrong, so I'll 
give it a go.

How do I identify which 3900 files are mismatched so that I can delete 
them? (I'm assuming it's fine if I delete them now and restore them at a 
later date once everything is stable - some of these files are the ones 
that are not backed up anyway so I don't really have a choice)

> The problem is, it could be that the transid mismatch errors won't go away
> even if you replace all the files, or you might not be able to do so. Attempt
> to delete or otherwise manipulate some of them might fail with the same errors
> in dmesg.
So far I have had no issues deleting files, with the sole exception of 
the file in the trash bin I mentioned above. I'm not sure what to do 
about that one, apart from hoping it goes away if I fix everything else. 
Do you have any advice?
> Should not be, unless your backup system silently stores half-copied files
> into the backup until the point it got an I/O error, and does not warn you of
> the error, or you miss the warning.
>
Ok, that's good news :) Thanks a lot for all your help, I really 
appreciate it.

  reply	other threads:[~2025-01-03 12:42 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
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 [this message]
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=032d71e6-954e-4fc6-bf43-18a6762d08b9@gmail.com \
    --to=banon.victor@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=remi@georgianit.com \
    --cc=rm@romanrm.net \
    /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