Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-24-2021, 07:04 PM   #1
LQ Newbie
Registered: Jan 2014
Location: Central New York
Distribution: Slackware
Posts: 20

Rep: Reputation: 4
BTRFS raid1 corrupt leaf error?


I have a RockPro64 NAS with two identical 8 TB drives in a BTRFS raid1 configuration on top of LUKS. I'm running Open Media Vault, aarch64. Every so often, generally once after each rsync backup over the network, I get kernel messages about a corrupt leaf in /dev/mapper/sda-crypt like this:
[Sat Apr 24 17:20:35 2021] BTRFS critical (device dm-1): corrupt leaf, non-root leaf's nritems is 0: block=3001724190720, roo
t=1752, slot=0

[Sat Apr 24 17:20:35 2021] BTRFS info (device dm-1): leaf 3001724190720 total ptrs 0 free space 16283
though at an always increasing block number and varying root.

The filesystem always mounts without errors, so it seems as though any corruption has been fixed. A scrub never finds any errors, but I understand that this error would be invisible to a scrub. I tried different SATA cables and a different SATA adapter, but the errors still show up. Both drives show up as healthy--they have very few power-on hours!--under smartctl -a.

I also get messages such as
[Sat Apr 24 13:46:48 2021] BTRFS info (device dm-1): bdev /dev/mapper/sda-crypt errs: wr 274, rd 0, flush 2, corrupt 0, gen 29
after mounting the filesystem, but only for /dev/mapper/sda-crypt, never for /dev/mapper/sdb-crypt.

I'm going to try another drive power supply next, but only because that's a quick check. I also have another identical new drive and could swap it out and rebuild the RAID, but it may not be the drive.

Has anyone seen an error like this before? Any advice?
Old 04-24-2021, 08:26 PM   #2
Senior Member
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 3,802

Rep: Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728
I have not seen that, but BTRFS has several superior auto-correction features that might normally correct before the operator would notice unless they go LOOKING for it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] docker on btrfs using much space in /var/lib/docker/btrfs taumeister Linux - Containers 2 01-25-2018 04:13 PM
btrfs filesystem df /mnt/btrfs/ shows bothe data and metdata with raid1 and single. gonus Linux - Software 3 07-17-2014 02:48 PM
LXer: Rollback To A Working State With btrfs + apt-btrfs-snapshot On Ubuntu 12.10 LXer Syndicated Linux News 0 11-25-2012 10:42 AM
ext4 vs btrfs, and with btrfs do I still need to use LVM? blue_k Linux - Software 4 08-17-2012 11:31 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration