From: Christoph Anton Mitterer <calestyo@scientia.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: Unrecoverable fs corruption?
Date: Sat, 02 Jan 2016 05:32:21 +0100 [thread overview]
Message-ID: <1451709141.8761.16.camel@scientia.net> (raw)
In-Reply-To: <pan$775e4$fad1d9d7$a69e525a$ff4dac1a@cox.net>
[-- Attachment #1: Type: text/plain, Size: 1929 bytes --]
On Fri, 2016-01-01 at 08:13 +0000, Duncan wrote:
> you can also try a read-only scrub
OT: I just wondered, would a balance include everything a scrub
includes (i.e. read+verify all data and rebuild an errors on different
devices / block copies)... of course in addition to also copying all
"good" data... and perhaps with the difference, that you don't get that
detailed information as in scrub but only the kernel log messages about
errors?
> In this case,
> you'll need to recover from the degraded-mount working device as if
> the
> second one had entirely failed.
>
> What I'd do in this case, if you haven't done so already, is that
> read-
> only btrfs scrub, just to see where you are in terms of corruption on
> the
> remaining device.
I don't think that this is the best order of the steps - at least not
when it's about precious data.
Doing a scrub at this phase, would just read all data, telling you the
status,... but first you should try to copy as much as possible (just
in case the remaining good drive fails as well) and *then* do the scrub
to see what's actually good or not.
Alternatively the first step could be backing up to another drive in
the sense of dd-copy (beware of the problem of UUID collisions in
btrfs: you MUST make sure here that the kernel doesn't see[0] devices
with the same IDs, which is of course the case with dd, unless you
write to e.g. an image file and not a device)
This has advantages and disadvantages:
- btrfs rebuild would only rebuild those block that are actually
used... so you need to do less reads from a possibly soon-to-be-dying
device
- OTOH, you only copy the blocks which btrfs thinks are actually
used,... and if later it would turn out that there are filesystem
corruptions in these, you don't have any other areas (with possibly
older data) where you could try some last-resort-recoveries..
Cheers,
Chris.
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 5930 bytes --]
next prev parent reply other threads:[~2016-01-02 4:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-31 23:36 Unrecoverable fs corruption? Alexander Duscheleit
2016-01-01 1:22 ` Chris Murphy
2016-01-01 8:13 ` Duncan
2016-01-02 4:32 ` Christoph Anton Mitterer [this message]
2016-01-03 15:00 ` Duncan
2016-01-04 0:05 ` Christoph Anton Mitterer
2016-01-06 7:35 ` Duncan
2016-01-02 10:53 ` Alexander Duscheleit
2016-01-02 21:19 ` Henk Slager
2016-01-03 15:53 ` Duncan
2016-01-03 16:24 ` Martin Steigerwald
2016-01-03 16:08 ` Duncan
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=1451709141.8761.16.camel@scientia.net \
--to=calestyo@scientia.net \
--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;
as well as URLs for NNTP newsgroup(s).