public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Pepie 34 <pepie34@gmail.com>, linux-btrfs@vger.kernel.org
Subject: Re: Endless mount and backpointer mismatch
Date: Tue, 28 Jan 2020 09:23:42 +0800	[thread overview]
Message-ID: <f7966f07-38e1-f72e-984d-31f46dd2f5ec@gmx.com> (raw)
In-Reply-To: <c541f131-c60b-4957-0f86-3039da69f788@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1958 bytes --]



On 2020/1/28 上午5:20, Pepie 34 wrote:
> Dear BTRFS community,
> 
> I've a raid 1 setup on two luks encrypted drives for 4 years that serves
> me as btrbk backup target from an other computer.
> There is a lot of ro snaptshots on it.
> 
> I've mistakenly launched a balance on it which was extremely slow and
> tried to cancelled it.
> After two days of cancelling without results, I decided to power off the
> computer.
> 
> After the reboot, even with the skip_balance mount option, the mounting
> is endless, no error in the kernel message and it never mounts.

Is there anything like "relocating block group XXXX flags XXXX" ?

> 
> What I have done so far:
> - mount the volume with the ro option (fast to mount, data OK).
> - scrub in ro mode, no error found

So data are all OK.
Just need a way to cancel the balance.

> - btrfs check
> In the extent check  there is plenty of errors like this :
> =>
> ref mismatch on [9404816285696 32768] extent item 6, found 5
> 
> incorrect local backref count on 9404816285696 parent 5712684302336
> owner 0 offset 0 found 0 wanted 1 back 0x55f371ee1ad0
> backref disk bytenr does not match extent record, bytenr=9404816285696,
> ref bytenr=0
> backpointer mismatch on [9404816285696 32768]
> <=

It could be caused by half-balanced fs.
Need to re-check after we cancel the balance.

> No errors in other checks, though checking "quota groups" is very slow.

That's caused by the nature of qgroup.

> 
> What should I do ? btrfs check --repair ?
> btrfs check --init-extent-tree ?
> btrfs --clear-space-cache ?

None of the options should affect data, but none of them are recommened.

Since the problem is about the balance.

Have you tried to mount the fs with RO,skip_balance, then remount it rw?

Thanks,
Qu

> 
> Will the "init extent tree" option break btrfs receive with old snapshot
> parents ?
> 
> Best regards,
> 
> Pepie34
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  parent reply	other threads:[~2020-01-28  1:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-27 21:20 Endless mount and backpointer mismatch Pepie 34
2020-01-27 21:48 ` Chris Murphy
2020-01-27 21:59   ` Pepie 34
2020-01-28  1:23 ` Qu Wenruo [this message]
2020-01-28 17:32   ` Pepie 34
2020-02-05 12:50     ` Pepie 34

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=f7966f07-38e1-f72e-984d-31f46dd2f5ec@gmx.com \
    --to=quwenruo.btrfs@gmx.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=pepie34@gmail.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