Scrub finds errors but sends no mail about it?

Status
Not open for further replies.

Sir.Robin

Guru
Joined
Apr 14, 2012
Messages
554
So i'm having my first failed HDD with FreeNAS.

Scrub started tonight as ususal and sends me an email that it is starting. Fine.

Then i have a warning from SMART about high temperature. Then another warning that SMART can't read output from same drive.

I log in and find a faulted drive. Also:

Code:
NAS01>zpool status
  pool: vol01
state: ONLINE
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
  see: http://www.sun.com/msg/ZFS-8000-9P
  scan: scrub repaired 128K in 1h25m with 0 errors on Mon Aug 26 01:25:46 2013
config:
 
        NAME                                            STATE    READ WRITE CKSUM
        vol01                                          ONLINE      0    0    0
          raidz2-0                                      ONLINE      0    0    0
            gptid/86d84000-cd12-11e1-a47c-6805ca067a1c  ONLINE      0    0    0
            gptid/872de5bd-cd12-11e1-a47c-6805ca067a1c  ONLINE      43 11.8K    0
            gptid/8782b665-cd12-11e1-a47c-6805ca067a1c  ONLINE      0    0    0
            gptid/87d95cb6-cd12-11e1-a47c-6805ca067a1c  ONLINE      0    0    0
            gptid/882f02b9-cd12-11e1-a47c-6805ca067a1c  ONLINE      0    0    0
            gptid/88849c56-cd12-11e1-a47c-6805ca067a1c  ONLINE      0    0    0
 
errors: No known data errors


So my feeling is that it really should send an email WARNING about the errors found during scrub.
The next time SMART could be ok but scrub could still find r/w errors.
That could leave a faulted drive unreplaced for longer than nessessary.

Can email notification of scrub errors be enabled?


Edit:
I see now that the zpool status output is included in the Daily run output" but when errors are found i still think it should highlight it.
Maybe include "ERRORS FOUND" in the mail header?
 
Status
Not open for further replies.
Top