You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,8 @@ Contributions are welcome!
32
32
- After some preliminary checks, the script will execute `snapraid diff` to figure out if parity info is out of date, which means checking for changes since the last execution. During this step, the script will ensure drives are fine by reading parity and content files.
33
33
- One of the following will happen:
34
34
- If parity info is out of sync **and** the number of deleted or changed files exceed the threshold you have configured it **stops**. You may want to take a look to the output log.
35
-
- If parity info is out of sync **and** the number of deleted or changed files exceed the threshold, you can still **force a sync** after a number of warnings. It's useful If you often get a false alarm but you're confident enough. This is called "Sync with threshold warnings"
35
+
- If parity info is out of sync **and** the number of deleted or changed files exceed the threshold, you can still **force a sync** after a number of warnings. It's useful If you often get a false alarm but you're confident enough. This is called "Sync with threshold warnings"
36
+
- Instead of forcing a sync based on the number of deleted files, you may consider the `ADD_DEL_THRESHOLD` feature, by allowing a sync that would otherwise violate the delete threshold, if the ratio of added to deleted files is greater than the value set.
36
37
- If parity info is out of sync **but** the number of deleted or changed files did not exceed the threshold, it **executes a sync** to update the parity info.
37
38
- When the parity info is in sync, either because nothing has changed or after a successfully sync, it runs the `snapraid scrub` command to validate the integrity of the data, both the files and the parity info. If sync was cancelled or other issues were found, scrub will not be run.
38
39
- Note that each run of the scrub command will validate only a configurable portion of parity info to avoid having a long running job and affecting the performance of the server.
@@ -64,6 +65,7 @@ If you don't know what to do, I recommend using the default values and see how i
64
65
- Sync always (forced sync).
65
66
- Sync after a number of breached threshold warnings.
66
67
- Sync only if thresholds warnings are not breached (enabled by default).
68
+
- Sync even if the delete threshold has been breached, but the ratio of added to deleted files is greater than the value set.
67
69
- User definable thresholds for deleted and updated files.
68
70
- Scrub options
69
71
- Enable or disable scrub job.
@@ -283,7 +285,7 @@ If you start with empty disks, you cannot use (yet) this script, since it expect
283
285
First run `snapraid sync`. Once completed, the array will be ready to be used with this script.
284
286
285
287
## OMV5/6 and SnapRAID plugin
286
-
Ignore what you see at _OMV GUI > Services > SnapRAID > Diff Script Settings_, since it only applies to the plugin's built-in script. Also don't forget to remove the built-in `omv-snapraid-diff`script from _OMV GUI > System > Scheduled Tasks_, either by deleting the job, or simply disabling it.
288
+
Ignore what you see at _OMV GUI > Services > SnapRAID > Diff Script Settings_, since it only applies to the plugin's built-in script. Also don't forget to remove the built-in `omv-snapraid-diff`job from _OMV GUI > System > Scheduled Tasks_, either by deleting the job, or simply disabling it.
287
289
288
290
## Installing `hd-idle` for Automatic Disk Spindown
289
291
If you would like to enable automatic disk spindown after the script job runs, then you will need to install `hd-idle`. The version included in default Debian and Ubuntu repositories is buggy and out of date - fortunately developer [adelolmo](https://github.com/adelolmo/hd-idle) has improved the project and released an updated version.
0 commit comments