You are not logged in.

#1 2022-08-06 00:39:37

verita84
Member
Registered: 2022-08-06
Posts: 1

BTRFS Corruption on Laptop NVMe Drive

Hello, I am struggling with BTRFS on my laptop. I am getting these errors over and over again after running a scrub:

Aug 05 18:27:28 archlinux kernel: BTRFS warning (device nvme0n1p2): checksum error at logical 97493213184 on dev /dev/nvme0n1p2, physical 99649085440, root 280, inode 181292, offset 1216245760: path resolving failed with ret=-2
Aug 05 18:27:28 archlinux kernel: BTRFS error (device nvme0n1p2): bdev /dev/nvme0n1p2 errs: wr 0, rd 0, flush 0, corrupt 618, gen 0
Aug 05 18:27:28 archlinux kernel: BTRFS error (device nvme0n1p2): unable to fixup (regular) error at logical 97493213184 on dev /dev/nvme0n1p2
Aug 05 18:12:25 archlinux kernel: BTRFS warning (device nvme0n1p2): checksum error at logical 185196027904 on dev /dev/nvme0n1p2, physical 185204416512, root 259, inode 210491, offset 1304633344, length 4096, links 1 (path: Photos/Videos/B/B171D43C-9E25-486A-96D1-C5CD4DB657E1.mov)

Files will get corrupted it says when I add new files to the lapto like with Flatpak, Rsync, or Syncthing.
I formatted the drive many times and recreated the filesystem on my laptop and a San Disk Thumb-drive  and the issue persists on the thumb-drive even. The drive passed the SMART tests and the built-in diagnostic tools that came with the laptop. It's only 2 years old.
Ext4 works perfectly fine on the same device so the issue has to be with BTRFS.

I tried searching for known bugs and issues bit I can't find any.  Anyone else noticing this weird behavior?

** Update *** I just did a reboot and then a scrub and no errors were reported. Something is wrong here....

Hardware Info:
Linux archlinux 5.18.16-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 03 Aug 2022 11:25:04 +0000 x86_64 GNU/Linux
Non-Volatile memory controller: Sandisk Corp WD Blue SN500 / PC SN520 NVMe SSD

Label: 'arch'  uuid: 897fb6bc-cd0f-4fd9-8a7d-b1c1925b503b
    Total devices 1 FS bytes used 167.09GiB
    devid    1 size 238.28GiB used 172.02GiB path /dev/nvme0n1p2

btrfs-progs 5.18.1-1

/dev/nvme0n1p2 on / type btrfs (rw,noatime,nodiratime,compress=zlib:3,ssd,space_cache=v2,autodefrag,subvolid=267,subvol=/@)

# btrfs dev stats /dev/nvme0n1p2
[/dev/nvme0n1p2].write_io_errs    0
[/dev/nvme0n1p2].read_io_errs     0
[/dev/nvme0n1p2].flush_io_errs    0
[/dev/nvme0n1p2].corruption_errs  619
[/dev/nvme0n1p2].generation_errs  0

Last edited by verita84 (2022-08-06 01:00:30)

Offline

Board footer

Powered by FluxBB