All of lore.kernel.org
 help / color / mirror / Atom feed
* block group 11778977169408 has wrong amount of free space
@ 2017-09-04  0:31 Christoph Anton Mitterer
  2017-09-04  1:03 ` Christoph Anton Mitterer
  2017-09-04  1:51 ` Christoph Anton Mitterer
  0 siblings, 2 replies; 4+ messages in thread
From: Christoph Anton Mitterer @ 2017-09-04  0:31 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 1165 bytes --]

Hey.

Just got the following:
$ uname -a
Linux heisenberg 4.12.0-1-amd64 #1 SMP Debian 4.12.6-1 (2017-08-12)
x86_64 GNU/Linux

$ btrfs version
btrfs-progs v4.12

on a filesystem:

# btrfs check  /dev/mapper/data-a2 ; echo $?
Checking filesystem on /dev/mapper/data-a2
UUID: f8acb432-7604-46ba-b3ad-0abe8e92c4db
checking extents
checking free space cache
block group 11778977169408 has wrong amount of free space
failed to load free space cache for block group 11778977169408
checking fs roots
checking csums
checking root refs
found 4404625739776 bytes used, no error found
total csum bytes: 4293007908
total tree bytes: 7511900160
total fs tree bytes: 1856258048
total extent tree bytes: 1097859072
btree space waste bytes: 887753954
file data blocks allocated: 4397113839616
 referenced 4515055988736
0

Any idea what could cause these free space issues and how to clean them
up? Thought that should work with recent kernels.... could that mean
some data will be corrupted when I do e.g. mount with clean_cache?

Interestingly, $? is still 0... even though errors were found.
And kernel log shows nothing.


Cheers,
Chris.

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 5930 bytes --]

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

* Re: block group 11778977169408 has wrong amount of free space
  2017-09-04  0:31 block group 11778977169408 has wrong amount of free space Christoph Anton Mitterer
@ 2017-09-04  1:03 ` Christoph Anton Mitterer
  2017-09-04  1:51 ` Christoph Anton Mitterer
  1 sibling, 0 replies; 4+ messages in thread
From: Christoph Anton Mitterer @ 2017-09-04  1:03 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 142 bytes --]

Just checked, and mounting with clear_cache, and then re-fscking
doesn't even fix the problem...

Output stays the same.

Cheers,
Chris.

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 5930 bytes --]

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

* Re: block group 11778977169408 has wrong amount of free space
  2017-09-04  0:31 block group 11778977169408 has wrong amount of free space Christoph Anton Mitterer
  2017-09-04  1:03 ` Christoph Anton Mitterer
@ 2017-09-04  1:51 ` Christoph Anton Mitterer
  2017-09-04  4:57   ` Qu Wenruo
  1 sibling, 1 reply; 4+ messages in thread
From: Christoph Anton Mitterer @ 2017-09-04  1:51 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 874 bytes --]

Did another mount with clear_cache,rw (cause it was ro before)... now I
get even more errors:
# btrfs check  /dev/mapper/data-a2 ; echo $?
Checking filesystem on /dev/mapper/data-a2
UUID: f8acb432-7604-46ba-b3ad-0abe8e92c4db
checking extents
checking free space cache
block group 9857516175360 has wrong amount of free space
failed to load free space cache for block group 9857516175360
block group 11778977169408 has wrong amount of free space
failed to load free space cache for block group 11778977169408
checking fs roots
checking csums
checking root refs
found 4404625330176 bytes used, no error found
total csum bytes: 4293007908
total tree bytes: 7511883776
total fs tree bytes: 1856258048
total extent tree bytes: 1097842688
btree space waste bytes: 887738230
file data blocks allocated: 4397113446400
 referenced 4515055595520
0

what the???

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 5930 bytes --]

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

* Re: block group 11778977169408 has wrong amount of free space
  2017-09-04  1:51 ` Christoph Anton Mitterer
@ 2017-09-04  4:57   ` Qu Wenruo
  0 siblings, 0 replies; 4+ messages in thread
From: Qu Wenruo @ 2017-09-04  4:57 UTC (permalink / raw)
  To: Christoph Anton Mitterer, linux-btrfs



On 2017年09月04日 09:51, Christoph Anton Mitterer wrote:
> Did another mount with clear_cache,rw (cause it was ro before)... now I
> get even more errors:
> # btrfs check  /dev/mapper/data-a2 ; echo $?
> Checking filesystem on /dev/mapper/data-a2
> UUID: f8acb432-7604-46ba-b3ad-0abe8e92c4db
> checking extents
> checking free space cache
> block group 9857516175360 has wrong amount of free space
> failed to load free space cache for block group 9857516175360
> block group 11778977169408 has wrong amount of free space
> failed to load free space cache for block group 11778977169408
> checking fs roots
> checking csums
> checking root refs
> found 4404625330176 bytes used, no error found
> total csum bytes: 4293007908
> total tree bytes: 7511883776
> total fs tree bytes: 1856258048
> total extent tree bytes: 1097842688
> btree space waste bytes: 887738230
> file data blocks allocated: 4397113446400
>   referenced 4515055595520
> 0
> 
> what the???
>

IIRC clear_cache will only clear the cache of modified block groups for 
v1 space cache.

And that's why we have btrfs check --clear-space-cache v1, which will 
wipe out all (v1) space cache.

Thanks,
Qu

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

end of thread, other threads:[~2017-09-04  4:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-04  0:31 block group 11778977169408 has wrong amount of free space Christoph Anton Mitterer
2017-09-04  1:03 ` Christoph Anton Mitterer
2017-09-04  1:51 ` Christoph Anton Mitterer
2017-09-04  4:57   ` Qu Wenruo

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.