snapraid:scrub_for_bit_rot
This is an old revision of the document!
Table of Contents
SnapRAID - Scrub for Bit Rot
Over time, files can become corrupted due to bit rot.
- SnapRAID can scrub files to detect and correct errors.
Scrub
sudo snapraid scrub
NOTE: This command verifies the data in your array comparing it with the hash computed in the “sync” command.
- Every run of the command checks about the 8% of the array, but not data already scrubbed in the previous 10 days.
Scrub using different options
The -p, –plan option can be used to specify a different amount, and the -o, –older-than option to specify a different age in days.
For example, to check 5% of the array older than 20 days use:
sudo snapraid scrub -p 10
NOTE: Scrubbing should be run periodically to catch issues before they become serious.
- -p 10: limits scrubbing to 10% of files, reducing disk wear.
snapraid/scrub_for_bit_rot.1745944754.txt.gz · Last modified: 2025/04/29 16:39 by peter