Linux-BTRFS Archive on
 help / color / Atom feed
From: Dan Mons <>
Subject: tree-checker read errors
Date: Fri, 22 May 2020 16:14:07 +1000
Message-ID: <> (raw)

Reporting as per the instructions in the BtrFS wiki.

I have a BtrFS RAID1 file system on two 8TB spindle drives.  Was
created fresh on Ubuntu 18.04.2 with the 4.18 kernel, May 2019.  Lives
its life mounted with compress-force=zstd.

No problems with weekly scrubs across upgrades:
* 18.04.2, kernel 4.18
* 18.04.3, kernel 5.0
* 18.04.4, kernel 5.3

Upgraded to Ubuntu 20.04 LTS with the 5.4 kernel in May 2020, and saw
lots (50 instances in syslog) of errors in the next weekly scrub:

May 17 22:31:26 server kernel: [456527.977063] BTRFS critical (device
sdd): corrupt leaf: block=1552203186176 slot=82 extent
bytenr=135271284736 len=4177879734039097329 invalid extent data ref
hash, item has 0x39facf7b95b42ff0 key has 0x39facf7b95b42ff1
May 17 22:31:26 server kernel: [456527.977483] BTRFS error (device
sdd): block=1552203186176 read time tree block corruption detected

Eventually causing the scrub to fail with status "aborted" about one
quarter of the way through its normal run time.

Rebooting back into the 5.3 kernel (uname says 5.3.0-46-generic)
allows a scrub to run completely and exit 0, no errors found or
reported.  File system appears to be working fine under this kernel.

I'll attempt to try some later kernels provided by Canonical's
"mainline kernel" project.  I have debs for 5.6.13 which I'll install
and test when I can get some downtime in the next week.

If there's any other information that can help, please let me know.


             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-22  6:14 Dan Mons [this message]
2020-05-22  6:36 ` Qu Wenruo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-BTRFS Archive on

Archives are clonable:
	git clone --mirror linux-btrfs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-btrfs linux-btrfs/ \
	public-inbox-index linux-btrfs

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone