Chris Moore
Hall of Famer
- Joined
- May 2, 2015
- Messages
- 10,080
If you use the regular system scheduler for scrubs, and you have your email setup, you should get notification at the start and at the end. I do. Why are you using cron?is there a script that can send to email when the scrub and smart test started and finished and email the result after the scrubbing and smart test? it seems I am not receiving any emails when scrub and smart test run and finish...
thanks!
edit: i create a cron job to start the scrubbing of my pool and after that i received an email that scrubbing is finished.
is there a script that can send an email when the scrubbing starts?
I don't know of a way to be notified about SMART tests. I just schedule them to run at a certain time in the morning and know how long they take to run. Then I have the script that mails the SMART report send me the report at a time of day when I know all the tests will have finished. If you are talking the Long SMART test, the time it takes to run is dictated by drive size but usually takes a little more than an hour per terabyte but that also depends on the brand of drive. You just have to look at the test history to compare when you know that you started the test to when the drive reports (in it's log) that the test finished. Short SMART tests usually complete in under 5 minutes regardless of drive size.