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
f191b5e0c0
commit
58aae69f41
2 changed files with 55 additions and 7 deletions
|
|
@ -1785,6 +1785,17 @@
|
|||
<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="#recovering-an-accidentally-deleted-or-overwritten-file" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Recovering an accidentally deleted or overwritten file
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#detecting-and-repairing-silent-corruption" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
|
@ -2699,6 +2710,17 @@
|
|||
<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="#recovering-an-accidentally-deleted-or-overwritten-file" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
||||
Recovering an accidentally deleted or overwritten file
|
||||
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#detecting-and-repairing-silent-corruption" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
|
|
@ -3230,6 +3252,18 @@ the array's parity protection.</p>
|
|||
<td>Surviving disks remain readable. <code>snapraid fix</code> restores recoverable files from the last sync; it does not serve the missing disk live.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
</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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Adding a populated disk</td>
|
||||
<td>Adding a disk while preserving existing parity normally requires clearing it first.</td>
|
||||
<td>Adding a mergerfs branch does not add it to NonRAID. Adding a disk to the protected array normally requires clearing it too.</td>
|
||||
|
|
@ -3237,12 +3271,26 @@ the array's parity protection.</p>
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>For frequently changing files, live parity protects the latest writes
|
||||
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="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>
|
||||
<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>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue