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
- 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.
38
39
- Scrub frequency can also be customized in case you don't want to do it every time the script runs.
39
40
- It is still recommended to run scrub frequently.
40
-
- Extra information can be added, like SnapRAID's disk health report o SnapRAID array status.
41
-
- When the script is done sends an email with the results, both in case of error or success.
41
+
- Extra information can be added, like SnapRAID's disk health report or SnapRAID array status.
42
+
- 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.
42
43
43
44
### Additional Information
44
45
- Docker container management
@@ -49,7 +50,7 @@ Contributions are welcome!
49
50
- Custom Hooks
50
51
- Define shell commands or scripts to run before and after SnapRAID operations.
51
52
- 3rd Party notification support
52
-
- Healthchecks.io, Telegram and Discord can be used to track script execution time, status and promptly alert about errors.
53
+
- [Healthchecks.io](https://healthchecks.io), Telegram and Discord can be used to track script execution time, status and promptly alert about errors.
53
54
- Notification Hook: if your favourite notification service is not supported by this script, you can use a custom notification command or even another mail binary
54
55
- Important messages are also sent to the system log.
55
56
- Emails are still the best place to get detailed but readable information.
@@ -252,7 +253,7 @@ Email address is set. Sending email report to yourmail@example.com [Tue 20 Apr 1
252
253
# Requirements
253
254
-[`markdown`](https://packages.debian.org/buster/python3-markdown) to format emails - will be installed if not found
254
255
-`curl` to use Healhchecks - will be installed if not found
255
-
-`hd-idle` to spin down disks - [Link](https://github.com/adelolmo/hd-idle)
256
+
-`hd-idle` to spin down disks - [Link](https://github.com/adelolmo/hd-idle), installation instructions [below](#installing-hd-idle-for-automatic-disk-spindown)
256
257
257
258
# Installation
258
259
@@ -277,9 +278,26 @@ If you start with empty disks, you cannot use (yet) this script, since it expect
277
278
278
279
First run `snapraid sync`. Once completed, the array will be ready to be used with this script.
279
280
280
-
## OMV5 and SnapRAID plugin
281
+
## OMV5/6 and SnapRAID plugin
282
+
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.
281
283
282
-
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 script from the scheduled jobs.
284
+
## Installing `hd-idle` for Automatic Disk Spindown
285
+
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.
286
+
287
+
**NOTE:** This script is NOT compatible with the `hd-idle` version found in the Debian repositories. You *must* use the updated `hd-idle` binaries for spindown to work. If you receive and error such as `hd-idle cannot spindown scsi disk /dev//dev/sda:` then that is a sign that you are using the old/buggy version. Follow the instructions below to update.
288
+
289
+
1. Remove any previously existing versions of `hd-idle`, either by manually removing the binaries, or running `apt remove hd-idle` to remove the version from the default respositories.
290
+
2. For all recent Ubuntu and Debian releases, install the developers's repository using instructions [on the developer's website](https://adelolmo.github.io/). The command snippet below will select the correct repository based on your current release, and add it to your apt sources.
3. Run `apt update`, and `apt install hd-idle` to install the updated version. You do not need to specify the respository, apt will automatically install the newset version from the new repository.
299
+
4. In your `script-config.sh` file, change `SPINDOWN=0` to `SPINDOWN=1` to enable spindown.
300
+
5. If you wish to use `hd-idle` as a service to manage your disks outside of the scope of the Snapraid AIO Script, refer to these [additional instructions](https://forum.openmediavault.org/index.php?thread/37438-how-to-spin-down-hard-drives-with-hd-idle/) on the OpenMediaVault forum.
283
301
284
302
# Upgrade
285
303
If you are using a previous version of the script, do not use your config file. Please move your preferences to the new `script-config.sh` found in the archive.
0 commit comments