Uncorrectable errors in scrub : btrfs
"""
The correct approach to deal with file corruption on BTRFS is:
Scrub to detect corruption
Get the file path from dmesg
Delete it (if you have a backup)
Check if old snapshots still reference that file
If so, either delete those, or ignore errors from those roots. If you have a snapshot rotation/cleanup script, you may leave them to be deleted on their own.
Run another scrub, if it results in status code = 0 (success), then there's no file corruption
Then, if you wish, zero de device stats with btrfs dev stats -z. I do this after dealing with each and every recovery/corruption/etc, so I can better track how much damage there is after each incident.
Running btrfs check --repair is NOT recommended, there's no indication on your post about filesystem-structure damage, but even if there was, it should be your last step.
If you want to check for filesystem-structure corruption, run a btrfs check without repair.
"""
September 1, 2022 at 1:58:06 PM GMT+2
- permalink
-
-
https://www.reddit.com/r/btrfs/comments/plmm01/uncorrectable_errors_in_scrub/