All of lore.kernel.org
 help / color / mirror / Atom feed
* multiple btrfsck runs
@ 2013-03-16 12:02 Russell Coker
  2013-03-16 12:24 ` cwillu
  0 siblings, 1 reply; 7+ messages in thread
From: Russell Coker @ 2013-03-16 12:02 UTC (permalink / raw)
  To: linux-btrfs

Is it expected that running btrfsck more than once will keep reporting errors?

Below is the end of a btrfsck output when run the second time.

backpointer mismatch on [111942471680 32768]
owner ref check failed [111942471680 32768]
ref mismatch on [111942504448 40960] extent item 1, found 0
Incorrect local backref count on 111942504448 root 5 owner 160739 offset 
3440640 found 0 wanted 1 back 0x14331f48
backpointer mismatch on [111942504448 40960]
owner ref check failed [111942504448 40960]
Errors found in extent allocation tree
checking fs roots
root 5 inode 427603 errors 400
found 79658786895 bytes used err is 1
total csum bytes: 75604824
total tree bytes: 2109984768
total fs tree bytes: 1835044864
btree space waste bytes: 593880456
file data blocks allocated: 1065636474880
 referenced 133464895488
Btrfs Btrfs v0.19

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/

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

* Re: multiple btrfsck runs
  2013-03-16 12:02 multiple btrfsck runs Russell Coker
@ 2013-03-16 12:24 ` cwillu
  2013-03-16 12:44   ` Marc MERLIN
  2013-03-16 12:46   ` Russell Coker
  0 siblings, 2 replies; 7+ messages in thread
From: cwillu @ 2013-03-16 12:24 UTC (permalink / raw)
  To: russell; +Cc: linux-btrfs

On Sat, Mar 16, 2013 at 6:02 AM, Russell Coker <russell@coker.com.au> wrote:
> Is it expected that running btrfsck more than once will keep reporting errors?

Without options, btrfsck does not write to the disk.

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

* Re: multiple btrfsck runs
  2013-03-16 12:24 ` cwillu
@ 2013-03-16 12:44   ` Marc MERLIN
  2013-03-16 13:13     ` cwillu
  2013-03-16 12:46   ` Russell Coker
  1 sibling, 1 reply; 7+ messages in thread
From: Marc MERLIN @ 2013-03-16 12:44 UTC (permalink / raw)
  To: cwillu; +Cc: russell, linux-btrfs

On Sat, Mar 16, 2013 at 06:24:47AM -0600, cwillu wrote:
> On Sat, Mar 16, 2013 at 6:02 AM, Russell Coker <russell@coker.com.au> wrote:
> > Is it expected that running btrfsck more than once will keep reporting errors?
> 
> Without options, btrfsck does not write to the disk.

Aaaaah, that explains why I never got it to work the day I wanted to try
it.
I should note that waht you're saying is neither documented in the man
page, nor in https://btrfs.wiki.kernel.org/index.php/Btrfsck

For that matter, the wiki actually states there are no options.

Is that mostly intentional so that whoever isn't reading the source
doesn't really run the tool because it's not ready?

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/

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

* Re: multiple btrfsck runs
  2013-03-16 12:24 ` cwillu
  2013-03-16 12:44   ` Marc MERLIN
@ 2013-03-16 12:46   ` Russell Coker
  2013-03-16 13:08     ` cwillu
  1 sibling, 1 reply; 7+ messages in thread
From: Russell Coker @ 2013-03-16 12:46 UTC (permalink / raw)
  To: cwillu; +Cc: linux-btrfs

On Sat, 16 Mar 2013, cwillu <cwillu@cwillu.com> wrote:
> On Sat, Mar 16, 2013 at 6:02 AM, Russell Coker <russell@coker.com.au> wrote:
> > Is it expected that running btrfsck more than once will keep reporting
> > errors?
> 
> Without options, btrfsck does not write to the disk.

The man page for the version in Debian doesn't document any options.

The source indicates that --repair might be the one that's desired, is that 
correct?

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/

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

* Re: multiple btrfsck runs
  2013-03-16 12:46   ` Russell Coker
@ 2013-03-16 13:08     ` cwillu
  2013-03-27  8:27       ` Russell Coker
  0 siblings, 1 reply; 7+ messages in thread
From: cwillu @ 2013-03-16 13:08 UTC (permalink / raw)
  To: russell; +Cc: linux-btrfs

On Sat, Mar 16, 2013 at 6:46 AM, Russell Coker <russell@coker.com.au> wrote:
> On Sat, 16 Mar 2013, cwillu <cwillu@cwillu.com> wrote:
>> On Sat, Mar 16, 2013 at 6:02 AM, Russell Coker <russell@coker.com.au> wrote:
>> > Is it expected that running btrfsck more than once will keep reporting
>> > errors?
>>
>> Without options, btrfsck does not write to the disk.
>
> The man page for the version in Debian doesn't document any options.
>
> The source indicates that --repair might be the one that's desired, is that
> correct?

Yes.  However, unless something is actually broken, or you've been
advised by a developer, I'd stick with btrfs scrub.

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

* Re: multiple btrfsck runs
  2013-03-16 12:44   ` Marc MERLIN
@ 2013-03-16 13:13     ` cwillu
  0 siblings, 0 replies; 7+ messages in thread
From: cwillu @ 2013-03-16 13:13 UTC (permalink / raw)
  To: Marc MERLIN; +Cc: russell, linux-btrfs

On Sat, Mar 16, 2013 at 6:44 AM, Marc MERLIN <marc@merlins.org> wrote:
> On Sat, Mar 16, 2013 at 06:24:47AM -0600, cwillu wrote:
>> On Sat, Mar 16, 2013 at 6:02 AM, Russell Coker <russell@coker.com.au> wrote:
>> > Is it expected that running btrfsck more than once will keep reporting errors?
>>
>> Without options, btrfsck does not write to the disk.
>
> Aaaaah, that explains why I never got it to work the day I wanted to try
> it.
> I should note that waht you're saying is neither documented in the man
> page, nor in https://btrfs.wiki.kernel.org/index.php/Btrfsck
>
> For that matter, the wiki actually states there are no options.
>
> Is that mostly intentional so that whoever isn't reading the source
> doesn't really run the tool because it's not ready?

At least a bit, yeah.  People have getting better about updating the
documentation recently though.

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

* Re: multiple btrfsck runs
  2013-03-16 13:08     ` cwillu
@ 2013-03-27  8:27       ` Russell Coker
  0 siblings, 0 replies; 7+ messages in thread
From: Russell Coker @ 2013-03-27  8:27 UTC (permalink / raw)
  To: cwillu; +Cc: linux-btrfs

On Sun, 17 Mar 2013, cwillu <cwillu@cwillu.com> wrote:
> On Sat, Mar 16, 2013 at 6:46 AM, Russell Coker <russell@coker.com.au> wrote:
> > On Sat, 16 Mar 2013, cwillu <cwillu@cwillu.com> wrote:
> >> On Sat, Mar 16, 2013 at 6:02 AM, Russell Coker <russell@coker.com.au> 
wrote:
> >> > Is it expected that running btrfsck more than once will keep reporting
> >> > errors?
> >> 
> >> Without options, btrfsck does not write to the disk.
> > 
> > The man page for the version in Debian doesn't document any options.
> > 
> > The source indicates that --repair might be the one that's desired, is
> > that correct?
> 
> Yes.  However, unless something is actually broken, or you've been
> advised by a developer, I'd stick with btrfs scrub.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

I've got a filesystem that causes a kernel panic and can't even get to the 
scrub stage, so btrfsck is necessary.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703211

While this is an upstream bug, I've filed the above Debian bug report about it.  
Sometimes in such situations the DD will fix the bug and send the patch 
upstream.

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/

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

end of thread, other threads:[~2013-03-27  8:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-16 12:02 multiple btrfsck runs Russell Coker
2013-03-16 12:24 ` cwillu
2013-03-16 12:44   ` Marc MERLIN
2013-03-16 13:13     ` cwillu
2013-03-16 12:46   ` Russell Coker
2013-03-16 13:08     ` cwillu
2013-03-27  8:27       ` Russell Coker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.