linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Andreen <harv@ruin.nu>
To: linux-btrfs@vger.kernel.org
Subject: Filesystem not mountable after reset, bad tree block
Date: Thu, 5 Jan 2012 23:59:47 +0100	[thread overview]
Message-ID: <201201052359.47932.harv@ruin.nu> (raw)

Hi,

Today one of my machines (running kernel 3.0.6) locked up, sadly the monitor 
was stuck in power saving mode and no access over network so not sure exactly 
what happened. After restarting the machine, the root filesystem is no longer 
mountable the following output appears: 

device label SSD devid 1 transid 507930 /dev/sdb2
btrfs bad tree block start 0 188205998080
btrfs bad tree block start 0 188205998080
btrfs bad tree block start 0 188205998080
btrfs: open_ctree failed

I downloaded the latest btrfs-progs, but getting similar output from several 
of the programs:

# ./btrfs-debug-tree /dev/sdb2
Check tree block failed, want=188205998080, have=0
Check tree block failed, want=188205998080, have=0
Check tree block failed, want=188205998080, have=0
Check tree block failed, want=188205998080, have=0
Check tree block failed, want=188205998080, have=0
read block failed check_tree_block
btrfs-debug-tree: disk-io.c:447: find_and_setup_root: Assertion `!(!root-
>node)' failed.
Aborted

The find-root program seems to think there is a root (and poentially some 
older roots?), but not sure how to use that information.

# ./find-root /dev/sdb2 
Super think's the tree root is at 131212083200, chunk root 20983808
Well block 13856997376 seems great, but generation doesn't match, have=321485, 
want=507930
Well block 16362573824 seems great, but generation doesn't match, have=317992, 
want=507930
Well block 16367947776 seems great, but generation doesn't match, have=321490, 
want=507930
Well block 36317024256 seems great, but generation doesn't match, have=195981, 
want=507930
Well block 39698722816 seems great, but generation doesn't match, have=273675, 
want=507930
Well block 39714439168 seems great, but generation doesn't match, have=320627, 
want=507930
Well block 43016519680 seems great, but generation doesn't match, have=272156, 
want=507930
Well block 43031748608 seems great, but generation doesn't match, have=302652, 
want=507930
Well block 47617982464 seems great, but generation doesn't match, have=274708, 
want=507930
Found tree root at 131212083200

Anything else I can do to debug this or potentially recover a few bits before 
reformatting?

/Michael

             reply	other threads:[~2012-01-05 22:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-05 22:59 Michael Andreen [this message]
2012-01-07 12:05 ` Filesystem not mountable after reset, bad tree block Kai Krakow
2012-01-07 16:01   ` Hugo Mills
2012-01-08 22:34     ` Michael Andreen

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=201201052359.47932.harv@ruin.nu \
    --to=harv@ruin.nu \
    --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).