Deployed 9d12bcf23 to latest with MkDocs 1.6.1 and mike 2.2.0

This commit is contained in:
Antonio SJ Musumeci 2026-12-02 12:21:04 -06:00
parent 58aae69f41
commit 53c5a44a4c
2 changed files with 15 additions and 46 deletions

View file

@ -3255,13 +3255,13 @@ the array's parity protection.</p>
<td>Accidental deletion or overwrite</td>
<td>Live parity follows the change. Restoring the old file requires a separate snapshot or backup.</td>
<td>NonRAID parity follows the change too. mergerfs does not keep previous versions.</td>
<td>Before the next sync, a targeted <code>fix</code> can restore the last synced version if enough data and parity remain.</td>
<td>The last synced version may be recoverable until the next sync.</td>
</tr>
<tr>
<td>Silent corruption</td>
<td>An array check detects a parity mismatch. A correcting check rewrites parity, not the damaged file.</td>
<td>Same as Unraid; file data checksums depend on the underlying filesystem or another tool.</td>
<td><code>scrub</code> checks data blocks against saved checksums and checks parity. <code>fix -e</code> can repair flagged data or parity blocks.</td>
<td>Scrubs check data against saved checksums and verify parity. SnapRAID can repair damaged data or parity blocks.</td>
</tr>
<tr>
<td>Adding a populated disk</td>
@ -3272,50 +3272,19 @@ the array's parity protection.</p>
</tbody>
</table>
<h4 id="recovering-an-accidentally-deleted-or-overwritten-file">Recovering an accidentally deleted or overwritten file</h4>
<p>Suppose <code>photos/trip.jpg</code> was present at the last SnapRAID sync and was
later deleted or saved over. <strong>Pause scheduled syncs and avoid further
writes before attempting recovery.</strong> A sync that records the deletion
or overwrite replaces the recovery point. SnapRAID does not keep a
version history, and it cannot restore a version that was never synced.</p>
<p>For a file on the configured SnapRAID data disk <code>d1</code>, use the path
relative to that disk's root, not the mergerfs mount path:</p>
<ul>
<li><strong>Deleted:</strong> <code>snapraid -d d1 -m -f /photos/trip.jpg fix</code> restores only
a missing file; it leaves an existing file alone.</li>
<li><strong>Overwritten:</strong> Save a copy of the current file elsewhere if you
want to keep it. <code>snapraid -d d1 -f /photos/trip.jpg fix</code> omits the
missing-file filter so it can replace the file with its synced contents.</li>
</ul>
<p>The disk and path filters keep <code>fix</code> from reverting unrelated edits.
Recovery needs the saved content metadata and enough matching data and
parity blocks. Changes on other disks since the sync can make some
blocks unrecoverable. Keep an independent backup for older versions or
damage beyond what parity can repair.</p>
<p>Unraid and NonRAID protect new writes immediately, including mistaken
ones. SnapRAID can instead <a href="https://www.snapraid.it/manual#sec4-3">restore a deleted or overwritten file</a>
as it was at the last sync, if enough data and parity remain. It does
not keep older versions or protect edits made between syncs. None of
these setups 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>
<p><a href="https://docs.unraid.net/unraid-os/using-unraid-to/manage-storage/array/array-health-and-maintenance/#parity-checks">Unraid</a>
and <a href="https://github.com/qvr/nonraid#startstop-a-parity-check">NonRAID</a>
check whether parity agrees with the data on disk, not whether a file
still contains the right bytes. File checksums come from the filesystem
or another tool. <a href="https://www.snapraid.it/manual#sec4-1">SnapRAID scrubbing</a>
checks data against the last synced checksums, so SnapRAID can identify
the damaged blocks and use parity to repair them when enough data survives.</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