From: Austin S Hemmelgarn <ahferroin7@gmail.com>
To: Jon Panozzo <jonp@lime-technology.com>
Cc: Duncan <1i5t5.duncan@cox.net>, Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: Scrub on btrfs single device only to detect errors, not correct them?
Date: Mon, 7 Dec 2015 10:39:05 -0500 [thread overview]
Message-ID: <5665A819.9030804@gmail.com> (raw)
In-Reply-To: <CA+pSGYdE8FxCGjR_=gU58jej6AuMMZ-wn6EzyE_g0n7Trqb_Hw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1329 bytes --]
On 2015-12-07 10:12, Jon Panozzo wrote:
> This is what I was thinking as well. In my particular use-case,
> parity is only really used today to reconstruct an entire device due
> to a device failure. I think if btrfs scrub detected errors on a
> single device, I could do a "reverse reconstruct" where instead of
> syncing TO the parity disk, I sync FROM the parity disk TO the btrfs
> single device with the error, replacing physical blocks that are out
> of sync with parity (thus repairing the scrub-found errrors). The
> downside to this approach is I would have to perform the reverse-sync
> against the entire btrfs block device, which could be much more
> time-consuming than if I could single out the specific block addresses
> and just sync those. That said, I guess option A is better than no
> option at all.
>
> I would be curious if any of the devs or other members of this mailing
> list have tried to correlate btrfs internal block addresses to a true
> block-address on the device being used. Any interesting articles /
> links that show how to do this? Not expecting much, but if someone
> does know, I'd be very grateful.
I think there is a tool in btrfs-progs to do it, but I've never used it,
and you would still need to get scrub to spit out actual error addresses
for you.
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3019 bytes --]
next prev parent reply other threads:[~2015-12-07 15:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-06 19:15 Scrub on btrfs single device only to detect errors, not correct them? Jon Panozzo
2015-12-06 20:42 ` Chris Murphy
2015-12-07 3:48 ` Duncan
2015-12-07 14:43 ` Jon Panozzo
2015-12-08 13:38 ` Duncan
2015-12-07 14:47 ` Jon Panozzo
2015-12-07 15:01 ` Austin S Hemmelgarn
2015-12-07 15:12 ` Jon Panozzo
2015-12-07 15:39 ` Austin S Hemmelgarn [this message]
2015-12-08 14:15 ` 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=5665A819.9030804@gmail.com \
--to=ahferroin7@gmail.com \
--cc=1i5t5.duncan@cox.net \
--cc=jonp@lime-technology.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox