snapraid:scrub_for_bit_rot
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
snapraid:scrub_for_bit_rot [2025/04/29 16:24] – created peter | snapraid:scrub_for_bit_rot [2025/04/29 16:55] (current) – peter | ||
---|---|---|---|
Line 7: | Line 7: | ||
---- | ---- | ||
+ | ===== Scrub ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo snapraid scrub | ||
+ | </ | ||
+ | |||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * 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: | ||
<code bash> | <code bash> | ||
sudo snapraid scrub -p 10 | sudo snapraid scrub -p 10 | ||
</ | </ | ||
- | < | + | < |
**NOTE: | **NOTE: | ||
Line 19: | Line 40: | ||
---- | ---- | ||
+ | |||
+ | ===== Errors found during a scrub ===== | ||
+ | |||
+ | If during the scrub process, silent or input/ | ||
+ | |||
+ | <code bash> | ||
+ | snapraid status | ||
+ | </ | ||
+ | |||
+ | |||
+ | To fix them, you can use the **" | ||
+ | |||
+ | <code bash> | ||
+ | snapraid -e fix | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * To make it fast, you can use **-p bad** to scrub only blocks marked as bad: <code bash> | ||
+ | snapraid -p bad scrub</ | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP warning> | ||
+ | **WARNING: | ||
+ | |||
+ | * These errors are reported in the " | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | |||
snapraid/scrub_for_bit_rot.1745943870.txt.gz · Last modified: 2025/04/29 16:24 by peter