linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Rebuilding chunk root?
@ 2012-09-24 13:28 Sami Haahtinen
  2012-09-24 14:02 ` Hugo Mills
  0 siblings, 1 reply; 4+ messages in thread
From: Sami Haahtinen @ 2012-09-24 13:28 UTC (permalink / raw)
  To: linux-btrfs

Hi,

Due to certain unfortunate chain of events, I managed to overwrite a
small portion of my btrfs array which had only single redundancy for
metadata. The data itself is present and only a small portion (2.5%)
of the array was overwritten.

After quite a bit of debugging and tinkering, I realized that my chunk
root was in the portion that was overwritten. After reading through
the documentation I was able to pull together it's still unclear to me
whether chunk root is something that can be rebuilt.

A transcript of btrfsck trying to recover with superblock 2 which is
uncorrupted by itself:

root@sysresccd /root/btrfs-progs % ./btrfsck --super 2 /dev/patience/home
using SB copy 2, bytenr 274877906944
Check tree block failed, want=139264, have=0
Check tree block failed, want=139264, have=0
Check tree block failed, want=139264, have=0
read block failed check_tree_block
Couldn't read chunk root

If I'm interpreting the output correctly, it's trying to read bytes
from address 139264, which would fall into the corrupted area.

Regards,
--
Sami Haahtinen
Bad Wolf Oy
+358443302775

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-09-24 16:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-24 13:28 Rebuilding chunk root? Sami Haahtinen
2012-09-24 14:02 ` Hugo Mills
2012-09-24 15:12   ` David Sterba
2012-09-24 16:43     ` Sami Haahtinen

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).