mirror of
https://github.com/Spearfoot/FreeNAS-scripts
synced 2025-12-06 01:23:19 +00:00
Update README.md
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
# FreeNAS Scripts
|
||||
Bash scripts for use on FreeNAS servers
|
||||
|
||||
These are my versions of useful scripts available at the ["Scripts to report SMART, ZPool and UPS status, HDD/CPU T°, HDD identification and backup the config"](https://forums.freenas.org/index.php?threads/scripts-to-report-smart-zpool-and-ups-status-hdd-cpu-t%C2%B0-hdd-identification-and-backup-the-config.27365/) thread on the FreeNAS forum. The original author is FreeNAS forum member BiduleOhm, with others contributing suggestions and code changes.
|
||||
`smart_report.sh` and `zpool_report.sh` are my versions of these useful scripts available at the ["Scripts to report SMART, ZPool and UPS status, HDD/CPU T°, HDD identification and backup the config"](https://forums.freenas.org/index.php?threads/scripts-to-report-smart-zpool-and-ups-status-hdd-cpu-t%C2%B0-hdd-identification-and-backup-the-config.27365/) thread on the FreeNAS forum. The original author is FreeNAS forum member BiduleOhm, with others contributing suggestions and code changes. I have modified the syntax and made minor changes in formatting and spacing of the generated reports.
|
||||
|
||||
I have modified the syntax, using the excellent Bash lint system at https://www.shellcheck.net as a guide, and have made minor changes in formatting and spacing of the generated reports.
|
||||
The other scripts are my own work unless otherwise noted.
|
||||
|
||||
I used the excellent shell script static analysis tool at https://www.shellcheck.net to insure that all of this code is free of issues. But this doesn't mean you won't find any errors. ☺️
|
||||
|
||||
# smart_report.sh
|
||||
|
||||
@@ -35,4 +37,4 @@ Sets the Error Recovery Control (aka SCTERC or TLER) read and write values on yo
|
||||
|
||||
By default, the script sets both the read and write timeout value to 7 seconds. You can change either or both of these values to better suit your environment.
|
||||
|
||||
Some hard drives retain these values when powered down, but some do not - including the HGST 7K4000 drives I use in one of my systems. For this reason, I configure my FreeNAS servers to run as a post-init startup script.
|
||||
Some hard drives retain these values when powered down, but some do not - including the HGST 7K4000 drives I use in one of my systems. For this reason, I configure my FreeNAS servers to run `set_hdd_src.sh` as a post-init startup script.
|
||||
|
||||
Reference in New Issue
Block a user