public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* corrupt leaf, invalid data ref objectid value, read time tree block corruption detected Inbox
@ 2024-11-26 16:11 Brett Dikeman
  2024-11-26 21:30 ` Qu Wenruo
  0 siblings, 1 reply; 7+ messages in thread
From: Brett Dikeman @ 2024-11-26 16:11 UTC (permalink / raw)
  To: linux-btrfs

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

Greetings,

I have a filesystem that re-mounted read-only very shortly after I
started a btrfs defrag with zst compression enabled (which is not to
say I think this was the cause.) The volume  resides on a Debian
Bookworm system and is very simple configuration/feature-wise; it does
not use quotas, snapshots, or sub-volumes. In the few hours prior to
running the defrag command, I deleted a large number of files that
totaled about 100GB of space. Prior to that, the filesystem hasn't
seen changes in months; even atimes are disabled.

btrfs check completes with no errors generated in dmesg or the
terminal during the check, it takes what seems like a reasonable
amount of time with not much interruption in disk activity. A scrub
progresses at expected speeds but suddenly stops with a status of
"success" after a few GB.). There are no signs of drive failure from
SMART parameters, and no kernel messages that would suggest drive
failure, such as timeouts or SATA errors. However, I am currently
running a nondestructive-write badblocks test to address this
possibility a bit more - both drives have made it  in to 10% so far,
with no errors in dmesg or badblocks.

What I have tried:

- upgraded btrfsprogs to bookworm-backports because bookworm's
btrfsprogs is old enough that it doesn't include several rescue
commands.
- clearing the zero log
- clearing the inode cache
- clearing the space cache.

It was mounting OK until around when I updated the tools package and
ran some of the above commands. During one attempt to run a scrub,
there was dmesg output I unfortunately did not catch, but I remember
something that looked similar to what I've seen when I had md array
that ended up with different-aged metadata when one drive was booted
out of a 4-drive array; I had to force md to ignore its timestamp.

Any recommendations on how to proceed would be greatly appreciated.
dmesg output is included as an attachment.

uname -a output:
6.11.5+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.5-1~bpo12+1
(2024-11-11) x86_64 GNU/Linux

btrfs version:
btrfs-progs v6.6.3

#  btrfs fi show
Label: none  uuid: b1e76acd-525d-46f2-b2a6-b0403dcdc135
Total devices 2 FS bytes used 1.37TiB
devid    1 size 1.82TiB used 1.44TiB path /dev/sdd
devid    2 size 1.82TiB used 1.44TiB path /dev/sdc

[-- Attachment #2: dmesg-11-25-2024.txt --]
[-- Type: text/plain, Size: 2617 bytes --]

[Mon Nov 25 16:22:06 2024] BTRFS info (device sdd): first mount of filesystem b1e76acd-525d-46f2-b2a6-b0403dcdc135
[Mon Nov 25 16:22:06 2024] BTRFS info (device sdd): using crc32c (crc32c-intel) checksum algorithm
[Mon Nov 25 16:22:06 2024] BTRFS info (device sdd): using free-space-tree
[Mon Nov 25 16:22:10 2024] BTRFS info (device sdd): creating free space tree
[Mon Nov 25 16:22:19 2024] page: refcount:4 mapcount:0 mapping:000000009ee5aade index:0x2d25109b pfn:0x3b322f
[Mon Nov 25 16:22:19 2024] memcg:ffff9d6daeb20800
[Mon Nov 25 16:22:19 2024] aops:btree_aops [btrfs] ino:1
[Mon Nov 25 16:22:19 2024] flags: 0x17ffffc0004000(private|node=0|zone=2|lastcpupid=0x1fffff)
[Mon Nov 25 16:22:19 2024] raw: 0017ffffc0004000 0000000000000000 dead000000000122 ffff9d6f58a94ef8
[Mon Nov 25 16:22:19 2024] raw: 000000002d25109b ffff9d6f1c1114a0 00000004ffffffff ffff9d6daeb20800
[Mon Nov 25 16:22:19 2024] page dumped because: eb page dump
[Mon Nov 25 16:22:19 2024] BTRFS critical (device sdd): corrupt leaf: block=3102325977088 slot=12 extent bytenr=6781779968 len=139264 invalid data ref objectid value 18446744073709551604
[Mon Nov 25 16:22:19 2024] BTRFS error (device sdd): read time tree block corruption detected on logical 3102325977088 mirror 2
[Mon Nov 25 16:22:19 2024] page: refcount:3 mapcount:0 mapping:000000009ee5aade index:0x2d25109b pfn:0x3b322f
[Mon Nov 25 16:22:19 2024] memcg:ffff9d6daeb20800
[Mon Nov 25 16:22:19 2024] aops:btree_aops [btrfs] ino:1
[Mon Nov 25 16:22:19 2024] flags: 0x17ffffd0004020(lru|private|node=0|zone=2|lastcpupid=0x1fffff)
[Mon Nov 25 16:22:19 2024] raw: 0017ffffd0004020 ffffe6488d169c08 ffff9d6daeb21210 ffff9d6f58a94ef8
[Mon Nov 25 16:22:19 2024] raw: 000000002d25109b ffff9d6f1c1114a0 00000003ffffffff ffff9d6daeb20800
[Mon Nov 25 16:22:19 2024] page dumped because: eb page dump
[Mon Nov 25 16:22:19 2024] BTRFS critical (device sdd): corrupt leaf: block=3102325977088 slot=12 extent bytenr=6781779968 len=139264 invalid data ref objectid value 18446744073709551604
[Mon Nov 25 16:22:19 2024] BTRFS error (device sdd): read time tree block corruption detected on logical 3102325977088 mirror 1
[Mon Nov 25 16:22:19 2024] BTRFS error (device sdd state A): Transaction aborted (error -5)
[Mon Nov 25 16:22:19 2024] BTRFS: error (device sdd state A) in btrfs_create_free_space_tree:1197: errno=-5 IO failure
[Mon Nov 25 16:22:19 2024] BTRFS warning (device sdd state EA): failed to create free space tree: -5
[Mon Nov 25 16:22:19 2024] BTRFS error (device sdd state EA): commit super ret -30
[Mon Nov 25 16:22:19 2024] BTRFS error (device sdd state EA): open_ctree failed

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

end of thread, other threads:[~2024-12-27 22:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-26 16:11 corrupt leaf, invalid data ref objectid value, read time tree block corruption detected Inbox Brett Dikeman
2024-11-26 21:30 ` Qu Wenruo
2024-11-26 23:09   ` Brett Dikeman
2024-11-27  3:17     ` Qu Wenruo
2024-11-30  1:11       ` Nicholas D Steeves
2024-11-30  4:37         ` Qu Wenruo
2024-12-27 22:25       ` Nicholas D Steeves

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