Since the HGST NAS drives I just bought don't have TLER enabled by default, I wrote a quick script to enable it on all my drives at boot. To use the script, place it somewhere static and then add it as a preinit command in the init/shutdown scripts. I use it as follows:
I put it in /data because my pool is encrypted with a password. The script will iterate through all drives and try to enable TLER. A failure is a no-op.
The scripts are here:
https://github.com/fhriley/freenas_config/blob/master/bin/set_tler.py
https://github.com/fhriley/freenas_config/blob/master/bin/disks.py
Code:
/data/config/bin/set_tler.py 7 7
I put it in /data because my pool is encrypted with a password. The script will iterate through all drives and try to enable TLER. A failure is a no-op.
The scripts are here:
https://github.com/fhriley/freenas_config/blob/master/bin/set_tler.py
https://github.com/fhriley/freenas_config/blob/master/bin/disks.py
Last edited: