mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-02 21:00:13 -05:00
Deployed 9d12bcf23 to latest with MkDocs 1.6.1 and mike 2.2.0
This commit is contained in:
parent
2828418a1c
commit
f191b5e0c0
2 changed files with 65 additions and 7 deletions
|
|
@ -1782,6 +1782,23 @@
|
|||
</span>
|
||||
</a>
|
||||
|
||||
<nav class="md-nav" aria-label="Unraid vs. mergerfs + NonRAID vs. mergerfs + SnapRAID">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#detecting-and-repairing-silent-corruption" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Detecting and repairing silent corruption
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
|
@ -2679,6 +2696,23 @@
|
|||
</span>
|
||||
</a>
|
||||
|
||||
<nav class="md-nav" aria-label="Unraid vs. mergerfs + NonRAID vs. mergerfs + SnapRAID">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#detecting-and-repairing-silent-corruption" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Detecting and repairing silent corruption
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
|
@ -3204,12 +3238,36 @@ the array's parity protection.</p>
|
|||
</tbody>
|
||||
</table>
|
||||
<p>For frequently changing files, live parity protects the latest writes
|
||||
against disk failure, but it also reflects accidental deletions. For a
|
||||
mostly static media library, SnapRAID keeps parity work off the write
|
||||
path and uses stored checksums to detect silent corruption during a
|
||||
scrub. It may also recover a synced file deleted since the last sync;
|
||||
new or changed data on a failed disk is not protected until synced.
|
||||
None of the three replaces an independent backup.</p>
|
||||
against disk failure, but it also reflects accidental deletions. SnapRAID
|
||||
is better suited to mostly static data: it may recover a synced file
|
||||
deleted before the next sync, but it cannot recover writes made to a
|
||||
failed disk since the last sync. None of the three replaces an
|
||||
independent backup.</p>
|
||||
<h4 id="detecting-and-repairing-silent-corruption">Detecting and repairing silent corruption</h4>
|
||||
<p>Suppose a disk reads a photo without reporting an error, but one block
|
||||
now contains the wrong bytes. An <a href="https://docs.unraid.net/unraid-os/using-unraid-to/manage-storage/array/array-health-and-maintenance/#parity-checks">Unraid parity check</a>
|
||||
or a <a href="https://github.com/qvr/nonraid#startstop-a-parity-check">NonRAID parity check</a>
|
||||
can report that data and parity disagree. Neither array check compares
|
||||
the photo with a checksum of its original contents. A <em>correcting</em>
|
||||
check updates parity to match what the disks return. If the photo is
|
||||
wrong, that makes parity consistent with the damaged photo rather than
|
||||
repairing it. A checksumming filesystem such as Btrfs or ZFS can detect
|
||||
damage separately; its ability to repair it depends on having a good
|
||||
copy or other redundancy available to the filesystem.</p>
|
||||
<p><strong>SnapRAID records both parity and a checksum for each synced data
|
||||
block.</strong> When <code>snapraid scrub</code> reads the photo, it can identify the
|
||||
damaged block by comparing it with the checksum saved in the content
|
||||
file. It also checks parity: if the data checksums match but parity
|
||||
does not, it is parity that needs repair. Scrubbing checks a portion
|
||||
of the array by default and flags errors; it does not rewrite files
|
||||
or repair them as applications read them.</p>
|
||||
<p>As described in the <a href="https://www.snapraid.it/manual">SnapRAID manual</a>,
|
||||
<code>snapraid -e fix</code> targets blocks flagged as bad. With intact content
|
||||
metadata and enough surviving data and parity, it can reconstruct the
|
||||
damaged block or regenerate damaged parity. <code>snapraid -p bad scrub</code>
|
||||
then rechecks the flagged blocks. The reference is the <strong>last sync</strong>:
|
||||
if the photo was already corrupt when first synced, its checksum
|
||||
cannot tell you what the photo should have contained.</p>
|
||||
<h2 id="nonraid">NonRAID</h2>
|
||||
<ul>
|
||||
<li><a href="https://github.com/qvr/nonraid">https://github.com/qvr/nonraid</a></li>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue