diff --git a/latest/project_comparisons/index.html b/latest/project_comparisons/index.html index 80565a7c..78a6850d 100644 --- a/latest/project_comparisons/index.html +++ b/latest/project_comparisons/index.html @@ -3255,13 +3255,13 @@ the array's parity protection.

Accidental deletion or overwrite Live parity follows the change. Restoring the old file requires a separate snapshot or backup. NonRAID parity follows the change too. mergerfs does not keep previous versions. -Before the next sync, a targeted fix can restore the last synced version if enough data and parity remain. +The last synced version may be recoverable until the next sync. Silent corruption An array check detects a parity mismatch. A correcting check rewrites parity, not the damaged file. Same as Unraid; file data checksums depend on the underlying filesystem or another tool. -scrub checks data blocks against saved checksums and checks parity. fix -e can repair flagged data or parity blocks. +Scrubs check data against saved checksums and verify parity. SnapRAID can repair damaged data or parity blocks. Adding a populated disk @@ -3272,50 +3272,19 @@ the array's parity protection.

Recovering an accidentally deleted or overwritten file

-

Suppose photos/trip.jpg was present at the last SnapRAID sync and was -later deleted or saved over. Pause scheduled syncs and avoid further -writes before attempting recovery. 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.

-

For a file on the configured SnapRAID data disk d1, use the path -relative to that disk's root, not the mergerfs mount path:

- -

The disk and path filters keep fix 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.

+

Unraid and NonRAID protect new writes immediately, including mistaken +ones. SnapRAID can instead restore a deleted or overwritten file +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.

Detecting and repairing silent corruption

-

Suppose a disk reads a photo without reporting an error, but one block -now contains the wrong bytes. An Unraid parity check -or a NonRAID parity check -can report that data and parity disagree. Neither array check compares -the photo with a checksum of its original contents. A correcting -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.

-

SnapRAID records both parity and a checksum for each synced data -block. When snapraid scrub 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.

-

As described in the SnapRAID manual, -snapraid -e fix 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. snapraid -p bad scrub -then rechecks the flagged blocks. The reference is the last sync: -if the photo was already corrupt when first synced, its checksum -cannot tell you what the photo should have contained.

+

Unraid +and NonRAID +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. SnapRAID scrubbing +checks data against the last synced checksums, so SnapRAID can identify +the damaged blocks and use parity to repair them when enough data survives.

NonRAID