Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo@cn.fujitsu.com>
To: Mordechay Kaganer <mkaganer@gmail.com>,
	Qu Wenruo <quwenruo.btrfs@gmx.com>
Cc: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: Transaction aborted (error -17) after crash
Date: Wed, 18 Nov 2015 13:31:04 +0800	[thread overview]
Message-ID: <564C0D18.6040802@cn.fujitsu.com> (raw)
In-Reply-To: <CA+xOVSMN+_H546rx3UCQht1yYd6F9KLr1vzAfK+JVHJXUF0rOw@mail.gmail.com>



Mordechay Kaganer wrote on 2015/11/18 07:18 +0200:
> B.H.
>
> On Wed, Nov 18, 2015 at 5:02 AM, Qu Wenruo <quwenruo.btrfs@gmx.com> wrote:
>>
>>
>> 在 2015年11月17日 13:12, Mordechay Kaganer 写道:
>>>
>>> B.H.
>>>
>>>
>>> [  836.026606] BTRFS warning (device md1): block group 12969790406656
>>> has wrong amount of free space
>>> [  836.026610] BTRFS warning (device md1): failed to load free space
>>> cache for block group 12969790406656, rebuild it now
>>> [ 1033.619798] BTRFS warning (device md1): block group 15322358743040
>>> has wrong amount of free space
>>> [ 1033.619801] BTRFS warning (device md1): failed to load free space
>>> cache for block group 15322358743040, rebuild it now
>>
>>
>> Block group seems to be corrupted, maybe some other place in extent tree is
>> also corrupted.
>>
>> Personally speaking, this would not be a huge problem and can be fix by
>> btrfsck --init-extent-tree --repair to fix it.
>
> Thanks. That's what i get so far (it takes several hours to complete
> because the partition is huge):
>
> # btrfsck --init-extent-tree --repair /dev/md1
> enabling repair mode
> Checking filesystem on /dev/md1
> UUID: e16cc571-d897-473a-91d3-7673ea91d4cc
> Creating a new extent tree
> Failed to find [12968716681216, 168, 16384]
> btrfs unable to find ref byte nr 12968927035392 parent 0 root 1  owner
> 1 offset 0
> Failed to find [12968716730368, 168, 16384]
> btrfs unable to find ref byte nr 12969060089856 parent 0 root 1  owner
> 0 offset 1
> parent transid verify failed on 1103806464 wanted 19 found 13821
> Ignoring transid failure
> Failed to find [12968716779520, 168, 16384]
> btrfs unable to find ref byte nr 12968933851136 parent 0 root 1  owner
> 0 offset 1
>
> Does it mean something screwed up and unrecoverable?

Hard to say yet.

Is that the only error?

And did you tried btrfsck --init-extent-tree alone?
Although IIRC --init-extent-tree implies --repair, but it seems that 
extent tree is not correctly rebuilt at least.

>
>>
>> But you must ensure other tree is not corrupted, by using btrfsck without
>> any option to check the filesystem.
>
> I did run btrfs check --repair without other options.

Oh, I was meant to execute "btrfs check" without any other options, 
especially exclude "--repair"...


> Finished without
> problems as far as i understand the output.

That's a good news, at least it doesn't make the problem worse.

And, it would be quite helpful if you can post all the output(for both 
btrfsck --init-extent-tree, and btrfsck), to give us a better view of 
what's going wrong.

Thanks,
Qu

> Also tried mount with -o
> clear_cache. All this doesn't seem to help - tried rsync after that
> and the FS went read only with the same error message.
>

  reply	other threads:[~2015-11-18  5:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-17  5:12 Transaction aborted (error -17) after crash Mordechay Kaganer
2015-11-18  3:02 ` Qu Wenruo
2015-11-18  5:18   ` Mordechay Kaganer
2015-11-18  5:31     ` Qu Wenruo [this message]
2015-11-18 12:02       ` Mordechay Kaganer
2015-11-18 12:28         ` Qu Wenruo

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=564C0D18.6040802@cn.fujitsu.com \
    --to=quwenruo@cn.fujitsu.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=mkaganer@gmail.com \
    --cc=quwenruo.btrfs@gmx.com \
    /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