https://github.com/danb35/zpscan-scale
Light drive failure LEDs on SAS backplanes under TrueNAS SCALE
https://github.com/danb35/zpscan-scale
Last synced: 8 months ago
JSON representation
Light drive failure LEDs on SAS backplanes under TrueNAS SCALE
- Host: GitHub
- URL: https://github.com/danb35/zpscan-scale
- Owner: danb35
- License: gpl-3.0
- Created: 2024-01-06T21:09:53.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-07T08:34:30.000Z (over 2 years ago)
- Last Synced: 2024-12-19T10:45:34.573Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 15.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zpscan-scale
This is a script to monitor your ZFS pools in TrueNAS SCALE, and light up the FAULT LED on compatible SAS backplanes when a disk fails or otherwise goes offline.
# WARNING
This script has had very minimal testing and should not be relied on for production use.
## Requirements
This script is only intended to run under TrueNAS SCALE, and has only been tested under version 23.10.1. It **will not** work under TrueNAS CORE. It may work under other Linux installations, but most likely only if you have created your pool using gptid designators.
This script relies on [encled](https://github.com/amarao/sdled). `git clone` that repository to some place on your server.
## Installation
`git clone` this repository to a convenient place on your system.
## Configuration
Change to this repository's directory, and `cp zpscan-config.example zpscan-config`. Then edit `zpscan-config` and set the path to the `encled` script there.
## Usage
In the TrueNAS web UI, set a cron job to run the `zpscan-scale.sh` script on your desired schedule; I'd suggest somewhere between every 15 minutes and every hour.
## Status
As noted above, this script has received minimal testing. It's been shown to work with a Supermicro SAS2 expander backplane on one system. It's expected, but hasn't been shown, to work with other SAS backplanes. It's unlikely that it will work when a disk has completely failed to the extent that it's no longer seen by the kernel.