Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* btrfs check: free space cache has more free space than block group item
@ 2021-05-20  6:45 Octavia Togami
  2021-05-20  6:57 ` Octavia Togami
  0 siblings, 1 reply; 4+ messages in thread
From: Octavia Togami @ 2021-05-20  6:45 UTC (permalink / raw)
  To: linux-btrfs

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

Hi,

I recently was trying to expand my root drive while booted into it, so
I made a new partition and did `btrfs device add /dev/the-partition
/`, then `btrfs balance start -dconvert=raid0 -mconvert=raid1 /`. It
segfaulted, and I determined it would be easier for me to just boot
into a live CD and move/resize it there; but when gparted attempted to
do the operation it failed `btrfs check`. I updated all my packages,
and then re-ran `btrfs check` and the output is attached. Is there a
fix?

[-- Attachment #2: btrfscheck.txt --]
[-- Type: text/plain, Size: 3307 bytes --]

$ sudo btrfs check /dev/nvme0n1p6
Opening filesystem to check...
Checking filesystem on /dev/nvme0n1p6
UUID: 2d80eaf7-6588-41b3-add3-1d4a3a2996eb
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space cache
there is no free space entry for 37904760832-37904769024
there is no free space entry for 37904760832-38676725760
cache appears valid but isn't 37602983936
wanted bytes 32768, found 8192 for off 64778121216
wanted bytes 742150144, found 8192 for off 64778121216
cache appears valid but isn't 64446529536
there is no free space entry for 67701403648-67701432320
there is no free space entry for 67701403648-68741496832
cache appears valid but isn't 67667755008
wanted bytes 86016, found 36864 for off 69345017856
wanted bytes 470220800, found 36864 for off 69345017856
cache appears valid but isn't 68741496832
there is no free space entry for 148766654464-148766662656
there is no free space entry for 148766654464-149272133632
cache appears valid but isn't 148198391808
wanted bytes 57344, found 40960 for off 149788758016
wanted bytes 557117440, found 40960 for off 149788758016
cache appears valid but isn't 149272133632
there is no free space entry for 156842475520-156842496000
there is no free space entry for 156842475520-157862068224
cache appears valid but isn't 156788326400
wanted bytes 81920, found 12288 for off 184625696768
wanted bytes 79917056, found 12288 for off 184625696768
cache appears valid but isn't 183631872000
wanted bytes 49152, found 40960 for off 185781424128
wanted bytes 1071673344, found 40960 for off 185781424128
cache appears valid but isn't 185779355648
wanted bytes 24576, found 16384 for off 209754497024
wanted bytes 754475008, found 16384 for off 209754497024
cache appears valid but isn't 209435230208
wanted bytes 53248, found 40960 for off 219845599232
wanted bytes 327049216, found 40960 for off 219845599232
cache appears valid but isn't 219098906624
wanted bytes 57344, found 45056 for off 228183281664
wanted bytes 579301376, found 45056 for off 228183281664
cache appears valid but isn't 227688841216
block group 307145736192 has wrong amount of free space, free space cache has 53121024 block group has 53145600
failed to load free space cache for block group 307145736192
wanted bytes 61440, found 53248 for off 335025065984
wanted bytes 37957632, found 53248 for off 335025065984
cache appears valid but isn't 333989281792
block group 465102176256 has wrong amount of free space, free space cache has 25473024 block group has 25464832
ERROR: free space cache has more free space than block group item, this could leads to serious corruption, please contact btrfs developers
failed to load free space cache for block group 465102176256
wanted bytes 204800, found 53248 for off 686116798464
wanted bytes 444628992, found 53248 for off 686116798464
cache appears valid but isn't 685487685632
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 302503555072 bytes used, error(s) found
total csum bytes: 186250760
total tree bytes: 4315594752
total fs tree bytes: 3686187008
total extent tree bytes: 335773696
btree space waste bytes: 908309019
file data blocks allocated: 589240479744
 referenced 416490016768


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

end of thread, other threads:[~2021-05-20 17:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-20  6:45 btrfs check: free space cache has more free space than block group item Octavia Togami
2021-05-20  6:57 ` Octavia Togami
2021-05-20 12:22   ` Wang Yugui
2021-05-20 17:20     ` Octavia Togami

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox