Scrubs and SMART Tests?

Status
Not open for further replies.

travanx

Explorer
Joined
Jul 1, 2014
Messages
62
I setup everything, 9.2.1.5, and the server has been running fine for 42 days now. Setup long and short SMART tests and scrubs along with working email. How can I tell that the tests and scrub are working? Are these supposed to send an email once they are done, or only if there is a problem? Can I run something at the command to double check something is going on?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
They only email if there's a problem. If you want to confirm that they were run at the command line, you can do

# zpool status

...which should give something like:

Code:
[dan@freenas2] /% zpool status
  pool: tank
 state: ONLINE
  scan: scrub repaired 0 in 14h24m with 0 errors on Mon Aug 11 12:24:33 2014
config:

NAME                                            STATE     READ WRITE CKSUM
tank                                            ONLINE       0     0     0
  raidz1-0                                      ONLINE       0     0     0
    gptid/022178f1-eb29-11e3-9477-0cc47a01304d  ONLINE       0     0     0
    gptid/0276c43b-eb29-11e3-9477-0cc47a01304d  ONLINE       0     0     0
    gptid/02cce33f-eb29-11e3-9477-0cc47a01304d  ONLINE       0     0     0
  raidz1-1                                      ONLINE       0     0     0
    gptid/7c562d2e-eba4-11e3-9c09-0cc47a01304d  ONLINE       0     0     0
    gptid/7c9e8718-eba4-11e3-9c09-0cc47a01304d  ONLINE       0     0     0
    gptid/7ce9a87f-eba4-11e3-9c09-0cc47a01304d  ONLINE       0     0     0

errors: No known data errors

...and of course the relevant part is the "scrub . . . on Mon Aug 11"
 

travanx

Explorer
Joined
Jul 1, 2014
Messages
62
Thanks. Wanted to make sure this is setup correctly.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
and SMART tests can be checked yourself with smartctl -a /dev/(diskid)
 
Status
Not open for further replies.
Top