From: Hans van Kranenburg <hans.van.kranenburg@mendix.com>
To: Lionel Bouton <lionel-subscription@bouton.name>,
Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: help : "bad tree block start" -> btrfs forced readonly
Date: Fri, 17 Mar 2017 10:42:22 +0100 [thread overview]
Message-ID: <9a41b998-746f-53d5-c208-805f1b9fdc86@mendix.com> (raw)
In-Reply-To: <2994d13d-c65c-0794-8a83-a68ff258f109@bouton.name>
On 03/17/2017 10:27 AM, Lionel Bouton wrote:
> Hi,
>
> Le 17/03/2017 à 09:43, Hans van Kranenburg a écrit :
>> btrfs-debug-tree -b 3415463870464
>
> Here is what it gives me back :
>
> btrfs-debug-tree -b 3415463870464 /dev/sdb
> btrfs-progs v4.6.1
> checksum verify failed on 3415463870464 found A85405B7 wanted 01010101
> checksum verify failed on 3415463870464 found A85405B7 wanted 01010101
> bytenr mismatch, want=3415463870464, have=72340172838076673
> ERROR: failed to read 3415463870464
So in the place where checksum is supposed to be stored, it has 01010101
and recomputing the checksum of the garbage results in A85405B7. Found /
wanted is also confusing here, since 01010101 is what it found, but
A85405B7 is what it 'found out'.
> Is there a way to remove part of the tree and keep the rest ? It could
> help minimize the time needed to restore data.
No, that's not how it works. Those trees are not file/directory
structure trees.
You can try btrfs-debug-tree <blockdevice> and see how far it gets
dumping everything it can find, and then search for 3415463870464 in the
output. Somewhere, there has to be another object (one level higher)
which points to this address. If you find it, you can find out in which
tree the block lives.
--
Hans van Kranenburg
next prev parent reply other threads:[~2017-03-17 9:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-17 4:32 help : "bad tree block start" -> btrfs forced readonly Lionel Bouton
2017-03-17 8:11 ` Lionel Bouton
2017-03-17 8:43 ` Hans van Kranenburg
2017-03-17 9:27 ` Lionel Bouton
2017-03-17 9:42 ` Hans van Kranenburg [this message]
2017-03-17 9:51 ` Roman Mamedov
2017-03-17 10:03 ` Lionel Bouton
2017-03-17 14:17 ` Lionel Bouton
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=9a41b998-746f-53d5-c208-805f1b9fdc86@mendix.com \
--to=hans.van.kranenburg@mendix.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=lionel-subscription@bouton.name \
/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).