Skip to content

Commit 72230d6

Browse files
author
Oliver Cervera
authored
Merge pull request #95 from auanasgheps/master
Align dev with master
2 parents 77a3e34 + ecbaa73 commit 72230d6

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Contributions are welcome!
2020
- [Requirements](#requirements)
2121
- [Installation](#installation)
2222
* [First Run](#first-run)
23-
* [OMV and SnapRAID plugin](#omv6-and-snapraid-plugin)
23+
* [OMV and SnapRAID plugin](#omv-and-snapraid-plugin)
2424
* [Installing `hd-idle`](#installing-hd-idle-for-automatic-disk-spindown)
2525
- [Upgrade](#upgrade)
2626
- [Known Issues](#known-issues)
@@ -36,13 +36,13 @@ Contributions are welcome!
3636
- 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.
3737
- 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.
3838
- 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.
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.
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.
4040
- Scrub frequency can also be customized in case you don't want to do it every time the script runs.
4141
- It is still recommended to run scrub frequently.
4242
- Extra information can be added, like SnapRAID's disk health report or SnapRAID array status.
4343
- When the script is done sends an email with the results, both in case of error or success, and triggers any 3rd party notifications configured.
4444

45-
### Additional Information
45+
### Additional Features
4646
- Docker container management
4747
- Manage containers before SnapRAID operations and restore them when finished. It avoids nasty errors aboud data being written during SnapRAID sync.
4848
- Support for local and remote Docker instances. Also manage multiple remote Docker instances at once.
@@ -65,7 +65,7 @@ If you don't know what to do, I recommend using the default values and see how i
6565

6666
### Customizable features
6767
- Sync options
68-
- Sync always (forced sync).
68+
- Sync always (Forced Sync).
6969
- Sync after a number of breached threshold warnings.
7070
- Sync only if thresholds warnings are not breached (enabled by default).
7171
- Sync even if the delete threshold has been breached, but the ratio of added to deleted files is greater than the value set.

script-config.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,13 @@ UP_THRESHOLD=500
7070
# result in an ADD_DEL_THRESHOLD of 0.76 (3800/5000)
7171
ADD_DEL_THRESHOLD=0
7272

73-
# Set number of warnings before we force a sync job. This option comes in handy
74-
# when you cannot be bothered to manually start a sync job when DEL_THRESHOLD
75-
# is breached due to false alarm. Set to 0 to ALWAYS force a sync (i.e. ignore
76-
# the delete threshold above) Set to -1 to NEVER force a sync (i.e. need to
77-
# manual sync if delete threshold is breached).
73+
# Set number of warnings before forcing a sync, or force the sync every time
74+
# ignoring thresholds (Forced Sync). This option comes in handy when you cannot be
75+
# bothered to manually start a sync job when DEL_THRESHOLD or UP_TRESHOLD are
76+
# breached due to false alarm.
77+
# Set to 0 to ALWAYS force a sync (Forced Sync, ignoring the thresholds above)
78+
# Set to -1 to NEVER force a sync, the default behaviour (need to manual sync if
79+
# thresholds are breached).
7880
SYNC_WARN_THRESHOLD=-1
7981

8082
# Set percentage and age, in days, of blocks in array to scrub if it is in sync.

0 commit comments

Comments
 (0)