Btrfs balance error and need help. openSuse 15.4

The system is running iffy and found lots problem with btrfs system.
Done scrub and balance but the error is still there.
what should I do? Thank you in advance for your help.

pepe@linux-c7mb:~> sudo btrfs balance start /
[sudo] password for root:
WARNING:

    Full balance without filters requested. This operation is very
    intense and takes potentially very long. It is recommended to
    use the balance filters to narrow down the scope of balance.
    Use 'btrfs balance start --full-balance' option to skip this
    warning. The operation will start in 10 seconds.
    Use Ctrl-C to stop it.

10 9 8 7 6 5 4 3 2 1
Starting balance without any filters.
ERROR: error during balancing ‘/’: Input/output error
There may be more info in syslog - try dmesg | tail
pepe@linux-c7mb:~> dmesg | tail
dmesg: read kernel buffer failed: Operation not permitted
pepe@linux-c7mb:~> sudo dmesg | tail
[ 861.414654] BTRFS error (device sda2): bdev /dev/sda2 errs: wr 9, rd 2, flush 0, corrupt 38173, gen 0
[ 861.414665] BTRFS warning (device sda2): csum failed root -9 ino 259 off 127950848 csum 0x73cd939a expected csum 0x8941f998 mirror 1
[ 861.414668] BTRFS error (device sda2): bdev /dev/sda2 errs: wr 9, rd 2, flush 0, corrupt 38174, gen 0
[ 861.414679] BTRFS warning (device sda2): csum failed root -9 ino 259 off 127954944 csum 0x3efa672b expected csum 0x8941f998 mirror 1
[ 861.414682] BTRFS error (device sda2): bdev /dev/sda2 errs: wr 9, rd 2, flush 0, corrupt 38175, gen 0
[ 861.414695] BTRFS warning (device sda2): csum failed root -9 ino 259 off 127959040 csum 0x7eed6f3d expected csum 0x8941f998 mirror 1
[ 861.414698] BTRFS error (device sda2): bdev /dev/sda2 errs: wr 9, rd 2, flush 0, corrupt 38176, gen 0
[ 861.414711] BTRFS warning (device sda2): csum failed root -9 ino 259 off 127963136 csum 0x8b3339f8 expected csum 0x8941f998 mirror 1
[ 861.414715] BTRFS error (device sda2): bdev /dev/sda2 errs: wr 9, rd 2, flush 0, corrupt 38177, gen 0
[ 861.927830] BTRFS info (device sda2): balance: ended with status: -5
pepe@linux-c7mb:~>

sudo btrfs balance start /mnt

There seems to be missing /mint option on your command

What made you think it would fix anything? Scrub can only fix csum errors if another good copy is available, and by default there is none for a single disk filesystem. And balance never fixes any corruption; if anything, it can only make it worse (any massive changes when filesystem is already corrupted can only make it worse).

You should contact btrfs mailing list (linux-btrfs (at) vger.kernel.org). You will need to provide the full output of dmesg and the output of btrfs check at the very least. It is highly recommended to boot from a live distribution with more recent btrfs-progs like Tumbleweed to run btrfs check. Do not btrfs check --repair unless advised on mailing list.

By looking at the dmesg | grep for checksum while doing btrfs check, I was able to find the corrupt files. I manually all the corrupt files (not important files) and then, run “btrfs scrub”. After that, the drive reported “btrfs check” without any error. I think this works for now and will contact the btrfs mailing list if see more issue in future. Everything looks fine now. Thank you for your help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.