Skip to content

Commit 9dc1330

Browse files
author
Oliver Cervera
authored
Merge pull request #35 from phidauex/master
Update README.md w/ instructions on hd-idle
2 parents 496b748 + fd16e5d commit 9dc1330

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

README.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Contributions are welcome!
2121
- [Installation](#installation)
2222
* [First Run](#first-run)
2323
* [OMV5 and SnapRAID plugin](#omv5-and-snapraid-plugin)
24+
* [Installing `hd-idle`](#installing-hd-idle-for-automatic-disk-spindown)
2425
- [Upgrade](#upgrade)
2526
- [Known Issues](#known-issues)
2627
- [Credits](#credits)
@@ -37,8 +38,8 @@ Contributions are welcome!
3738
- 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.
3839
- Scrub frequency can also be customized in case you don't want to do it every time the script runs.
3940
- 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.
4243

4344
### Additional Information
4445
- Docker container management
@@ -49,7 +50,7 @@ Contributions are welcome!
4950
- Custom Hooks
5051
- Define shell commands or scripts to run before and after SnapRAID operations.
5152
- 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.
5354
- 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
5455
- Important messages are also sent to the system log.
5556
- 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
252253
# Requirements
253254
- [`markdown`](https://packages.debian.org/buster/python3-markdown) to format emails - will be installed if not found
254255
- `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)
256257

257258
# Installation
258259

@@ -277,9 +278,26 @@ If you start with empty disks, you cannot use (yet) this script, since it expect
277278

278279
First run `snapraid sync`. Once completed, the array will be ready to be used with this script.
279280

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.
281283

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.
291+
292+
```
293+
sudo apt-get install apt-transport-https
294+
wget -O - http://adelolmo.github.io/andoni.delolmo@gmail.com.gpg.key | sudo apt-key add -
295+
echo "deb http://adelolmo.github.io/$(lsb_release -cs) $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/adelolmo.github.io.list
296+
```
297+
298+
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.
283301

284302
# Upgrade
285303
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

Comments
 (0)