Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* btrfs error: write time tree block corruption detected
@ 2021-03-06  9:10 chil L1n
  2021-03-08  8:41 ` Johannes Thumshirn
  0 siblings, 1 reply; 8+ messages in thread
From: chil L1n @ 2021-03-06  9:10 UTC (permalink / raw)
  To: linux-btrfs

Hi,

Just noticed that one of my btrfs mounts on a server was in read-only mode.

dmesg shows:
[2217355.427810] BTRFS info (device sda3): scrub: started on devid 1
[2221262.216646] BTRFS info (device sda3): scrub: finished on devid 1
with status: 0
[2390153.679168] BTRFS info (device sda4): scrub: started on devid 1
[2393339.627095] BTRFS info (device sda4): scrub: finished on devid 1
with status: 0
[2555511.868642] BTRFS critical (device sda4): corrupt leaf: root=258
block=250975895552 slot=78, bad key order, prev (256703 108 3276800)
current (256703 108 1310720)
[2555511.868650] BTRFS error (device sda4): block=250975895552 write
time tree block corruption detected
[2555511.916529] BTRFS: error (device sda4) in
btrfs_commit_transaction:2279: errno=-5 IO failure (Error while
writing out transaction)
[2555511.916544] BTRFS info (device sda4): forced readonly
[2555511.916547] BTRFS warning (device sda4): Skipping commit of
aborted transaction.
[2555511.916551] BTRFS: error (device sda4) in
cleanup_transaction:1832: errno=-5 IO failure
[2555511.916560] BTRFS info (device sda4): delayed_refs has NO entry
[2555511.916687] BTRFS info (device sda4): delayed_refs has NO entry

Running "btrfs check" shows no further issues:

sudo btrfs check --force --readonly /dev/sda4
Opening filesystem to check...
WARNING: filesystem mounted, continuing because of --force
Checking filesystem on /dev/sda4
UUID: 72deb54c-96dd-42cf-a809-bef1a135f409
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space cache
[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 242436075520 bytes used, no error found
total csum bytes: 235186808
total tree bytes: 961773568
total fs tree bytes: 665829376
total extent tree bytes: 43728896
btree space waste bytes: 122086726
file data blocks allocated: 447700926464
 referenced 257665265664

Kernel:
Linux amd8 5.4.0-65-generic #73-Ubuntu SMP Mon Jan 18 17:25:17 UTC
2021 x86_64 x86_64 x86_64 GNU/Linux

Can someone help me to pinpoint the cause of this issue and prevent it
from happening again?
If more info is needed from my side, please let me know.

Cheers,

chill

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

end of thread, other threads:[~2021-03-08 10:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-06  9:10 btrfs error: write time tree block corruption detected chil L1n
2021-03-08  8:41 ` Johannes Thumshirn
2021-03-08  8:56   ` chil L1n
2021-03-08  9:23     ` Qu Wenruo
2021-03-08  9:28       ` Qu Wenruo
2021-03-08  9:33       ` Qu Wenruo
2021-03-08 10:02         ` chil L1n
2021-03-08 10:09           ` Qu Wenruo

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