17
6
I have a question concerning unrecoverable errors on a BTRFS file system. Specifically, I've run a BTRFS Scrub recently after experiencing a problem with one of my RAM sticks and it seems to have discovered 4 uncorrectable errors. This is the output:
scrub status for <UUID>
scrub started at Thu Dec 25 15:19:22 2014 and was aborted after 89882 seconds
total bytes scrubbed: 1.87TiB with 4 errors
error details: csum=4
corrected errors: 0, uncorrectable errors: 4, unverified errors: 0
Luckily I have everything backed up in a tertiary backup so I am not particularly concerned about losing the files (I'm well aware of the issues associated with the experimental status of BTRFS, I have multiple backups to keep my data safe, and determined to continue using it so please no: "Solution; don't use BTRFS" posts).
I would like to know, however, how to determine which files are associated with the uncorrectable errors? I want to find them, delete them, and replace them with their backed up copies.
If anyone has information on how to do this, I would love to hear from you.
Thank you in advance.
as far as I understand, you are using tail to limit the number of lines displayed and to ignore duplicates. I would recommend using
sort | uniq
to get rid of the duplicates like so:dmesg | grep "checksum error at" | cut -d\ -f24- | sed 's/.$//' | sort | uniq
– niklasfi – 2018-09-02T20:21:02.160