User Tools

Site Tools


snapraid:scrub_for_bit_rot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
snapraid:scrub_for_bit_rot [2025/04/29 16:39] petersnapraid:scrub_for_bit_rot [2025/04/29 16:55] (current) peter
Line 14: Line 14:
  
  
-<WRAP notice>+<WRAP info>
 **NOTE:**  This command verifies the data in your array comparing it with the hash computed in the "sync" command. **NOTE:**  This command verifies the data in your array comparing it with the hash computed in the "sync" command.
  
Line 32: Line 32:
 </code> </code>
  
-<WRAP notice>+<WRAP info>
 **NOTE:**  Scrubbing should be run periodically to catch issues before they become serious. **NOTE:**  Scrubbing should be run periodically to catch issues before they become serious.
  
Line 40: Line 40:
  
 ---- ----
 +
 +===== Errors found during a scrub =====
 +
 +If during the scrub process, silent or input/output errors are found, the corresponding blocks are marked as bad in the "content" file, and listed in the "status" command.
 +
 +<code bash>
 +snapraid status
 +</code>
 +
 +
 +To fix them, you can use the **"fix"** command filtering for bad blocks with the **-e**, **--filter-error** options:
 +
 +<code bash>
 +snapraid -e fix
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  At the next "scrub" the errors will disappear from the "status" report if really fixed.
 +
 +  * To make it fast, you can use **-p bad** to scrub only blocks marked as bad: <code bash>
 +snapraid -p bad scrub</code>
 +
 +</WRAP>
 +
 +<WRAP warning>
 +**WARNING:**  Take care that running "scrub" on a not synced array may result in errors caused by removed or modified files.
 +
 +  * These errors are reported in the "scrub" result, but related blocks are not marked as bad. 
 +</WRAP>
 +
 +----
 +
 +
 +
  
  
snapraid/scrub_for_bit_rot.1745944754.txt.gz · Last modified: 2025/04/29 16:39 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki