https://github.com/danb35/zpscan
Light disk failure LEDs on Supermicro SAS backplanes under FreeNAS
https://github.com/danb35/zpscan
Last synced: about 1 year ago
JSON representation
Light disk failure LEDs on Supermicro SAS backplanes under FreeNAS
- Host: GitHub
- URL: https://github.com/danb35/zpscan
- Owner: danb35
- Created: 2018-02-06T01:10:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-15T20:19:27.000Z (almost 7 years ago)
- Last Synced: 2025-02-28T08:28:48.379Z (over 1 year ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zpscan.sh
This script is designed to notify you of disk failures on your FreeNAS server, and light the disk failure LED on your SuperMicro SAS2 backplane. It is unknown whether it will work with other manufacturers' backplanes. It's unlikely this script will work as is in any environment other than a FreeNAS server.
# Installation
Download the script to someplace on your pool, and make it executable using `chmod +x zpscan.sh`.
# Usage
This script should be run as a regular cron job--the frequency is up to you, but I'd suggest between 15 minutes and an hour. The command to run is `/path/to/zpool.sh [email_address]`. The email address is optional; if set, the script will email you on disk failure.
# Operation
The script runs regularly. If the pool is healthy, it writes a text file to `/root/.sas2ircu/drives-` listing your drives and their locations on your backplane. If not, it writes a text file to `/root/.sas2ircu/locs-` with the locations of any failed disks, turns on the warning LEDs for those locations, and (optionally) sends an email to the specified email address.
# Further Discussion
Further discussion can be directed to [this thread](https://forums.freenas.org/index.php?resources/disk-failure-leds-for-supermicro-sas-backplanes.74/) on the FreeNAS forums.