Raid5 Balance Failing - LP15.6 - v5.0.14

Thanks for this, Dan! through this and the libera.chat #btrfs channel I was able to find that in situations like mine when given an error similar to

[340187.174817] BTRFS error (device sdc): unrepaired sectors detected, full stripe 7231569395712 data stripe 2 errors 14-15

this for loop can help track down the files:

for i in {14..15} ; do btrfs insp logical -o $((7231569395712 + (5 * 64 + $i) * 4096)) /mnt2/Media ; done

where the range in braces is your errors, the large number is your logical address, and 5 is the number of devices in the affected pool.

cleaning out the affected files now and then running another scrub.

3 Likes