linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: <dsmith@tgen.org>
To: <linux-btrfs@vger.kernel.org>
Cc: <dsmith@tgen.org>
Subject: FS won't mount, open_ctree failed, Assertion !(path->slots[0] == 0) failed
Date: Wed, 7 Dec 2011 02:39:31 +0000	[thread overview]
Message-ID: <CB041FF1.1FD66%dsmith@tgen.org> (raw)

So I'm having a bit of trouble with one of my btrfs filesystems.  It isn't mounting after a power failure.  I can't get restore or btrfsck to run, even on backup supers.  I've pasted some output below.  My btrfs-progs below come from git this morning, running on linux 3.2.0.

# mount /dev/md2 /media/test/
mount: wrong fs type, bad option, bad superblock on /dev/md2,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

dmesg:
[26423.775471] device label LUMBERYARD devid 1 transid 1268960 /dev/md2
[26423.860966] parent transid verify failed on 25487586828288 wanted 1268960 found 1246404
[26423.860974] parent transid verify failed on 25487586828288 wanted 1268960 found 1246404
[26423.860979] parent transid verify failed on 25487586828288 wanted 1268960 found 1246404
[26423.872936] btrfs: open_ctree failed

# ./btrfsck /dev/md2
parent transid verify failed on 25487586828288 wanted 1268960 found 1246404
parent transid verify failed on 25487586828288 wanted 1268960 found 1246404
parent transid verify failed on 25487586828288 wanted 1268960 found 1246404
parent transid verify failed on 25487586828288 wanted 1268960 found 1246404
Ignoring transid failure
btrfsck: root-tree.c:46: btrfs_find_last_root: Assertion `!(path->slots[0] == 0)' failed.
Aborted
# ./btrfsck -s 1 /dev/md2
using SB copy 1, bytenr 67108864
parent transid verify failed on 25483242758144 wanted 1268944 found 1268949
parent transid verify failed on 25483242758144 wanted 1268944 found 1268949
parent transid verify failed on 25483242758144 wanted 1268944 found 1268957
parent transid verify failed on 25483242758144 wanted 1268944 found 1268957
Ignoring transid failure
btrfsck: root-tree.c:46: btrfs_find_last_root: Assertion `!(path->slots[0] == 0)' failed.
Aborted
# ./btrfsck -s 2 /dev/md2
using SB copy 2, bytenr 274877906944
parent transid verify failed on 25483242758144 wanted 1268944 found 1268949
parent transid verify failed on 25483242758144 wanted 1268944 found 1268949
parent transid verify failed on 25483242758144 wanted 1268944 found 1268957
parent transid verify failed on 25483242758144 wanted 1268944 found 1268957
Ignoring transid failure
btrfsck: root-tree.c:46: btrfs_find_last_root: Assertion `!(path->slots[0] == 0)' failed.
Aborted

# ./find-root /dev/md2
http://pastebin.com/3umfQHhh

# ./restore -i -f 25483145760768 /dev/md2 /tmp
parent transid verify failed on 25487586828288 wanted 1268960 found 1246404
parent transid verify failed on 25487586828288 wanted 1268960 found 1246404
parent transid verify failed on 25487586828288 wanted 1268960 found 1246404
parent transid verify failed on 25487586828288 wanted 1268960 found 1246404
Ignoring transid failure
restore: root-tree.c:46: btrfs_find_last_root: Assertion `!(path->slots[0] == 0)' failed.
Aborted
# ./restore -i -u 1 /dev/md2 /tmp
parent transid verify failed on 25483242758144 wanted 1268944 found 1268949
parent transid verify failed on 25483242758144 wanted 1268944 found 1268949
parent transid verify failed on 25483242758144 wanted 1268944 found 1268957
parent transid verify failed on 25483242758144 wanted 1268944 found 1268957
Ignoring transid failure
restore: root-tree.c:46: btrfs_find_last_root: Assertion `!(path->slots[0] == 0)' failed.
Aborted
# ./restore -i -u 1 -f 25483145760768 /dev/md2 /tmp
parent transid verify failed on 25483242758144 wanted 1268944 found 1268949
parent transid verify failed on 25483242758144 wanted 1268944 found 1268949
parent transid verify failed on 25483242758144 wanted 1268944 found 1268957
parent transid verify failed on 25483242758144 wanted 1268944 found 1268957
Ignoring transid failure
restore: root-tree.c:46: btrfs_find_last_root: Assertion `!(path->slots[0] == 0)' failed.
Aborted

All further restores with various combinations of superblocks and bytenr's I tried produced output identical to one of the restores above.

As the newest data on this filesystem had not been backed up, it would be nice if I could either return the filesystem to a mountable state, or recover specific files to another filesystem.  Any ideas?

-- David Smith



             reply	other threads:[~2011-12-07  2:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-07  2:39 dsmith [this message]
2011-12-23  9:37 ` FS won't mount, open_ctree failed, Assertion !(path->slots[0] == 0) failed Evan LeCompte
2011-12-23 18:15   ` Chris Mason
2011-12-25 18:56     ` Evan LeCompte
2011-12-25 19:00     ` Evan LeCompte
2011-12-26 19:06     ` Evan LeCompte
2011-12-27 11:14       ` Martin Steigerwald
2011-12-27 11:18       ` Martin Steigerwald

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=CB041FF1.1FD66%dsmith@tgen.org \
    --to=dsmith@tgen.org \
    --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).