Setting up a S.M.A.R.T. test

Status
Not open for further replies.

Caliber

Dabbler
Joined
Jul 31, 2013
Messages
15
Please bear with me, I have very little experiance with *nix systems.

Over the weekend I got my FreeNAS box running and it seems to be working fine, and decided to run a S.M.A.R.T. test.

I set up a Long Self-Test to run every night, to make sure it ran that night. (I've disabled it since).
KTkIq2z.png


I checked that S.M.A.R.T. was enabled on all drives.
2Hg7vZP.png


I enabled S.M.A.R.T. service and checked the configuration (I left out the e-mail because it would be sufficient to read the report file at this time).
dbiDpqZ.png


The first thing I noticed the next day when I was going to check the results, is that there doesn't seem to be a way to do this via the GUI. Is this correct?

At the moment I had a monitor connected to the FreeNAS box. On screen it read:
"Configuration file /usr/local/etc/smartd.conf parsed but has no entries (like /dev/hda)"

Entering "EE /usr/local/etc/smartd.conf" gives me
Code:
################################################
# smartd.conf generated by /etc/rc.d/ix-smartd
################################################
/dev/ada0 -n never -W 0,0,0 -s L/(01|02|03|04|05|06|07|08|09|10|11|12)/../(1|2|3|4|5|6|7)/(01)
/dev/ada1 -n never -W 0,0,0 -s L/(01|02|03|04|05|06|07|08|09|10|11|12)/../(1|2|3|4|5|6|7)/(01)
/dev/ada2 -n never -W 0,0,0 -s L/(01|02|03|04|05|06|07|08|09|10|11|12)/../(1|2|3|4|5|6|7)/(01)
/dev/ada3 -n never -W 0,0,0 -s L/(01|02|03|04|05|06|07|08|09|10|11|12)/../(1|2|3|4|5|6|7)/(01)
/dev/ada4 -n never -W 0,0,0 -s L/(01|02|03|04|05|06|07|08|09|10|11|12)/../(1|2|3|4|5|6|7)/(01)


So my questions are:
What did I do wrong? How do I see the results from the test (once I manage to run it)? Is it only possible via mail? Can I do it using smartctl commands, or are those two separate things?

Help will be greatly appreciated. Thanks in advance!
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
You did nothing wrong :). There is no screen in FreeNAS GUI to see the result of the test. You can check the result of the test for ada0 by running smartctl -l selftest /dev/ada0
If you enter an e-mail address, the system will e-mail you if a test fails. However, due to a bug, if you set any of the temperatures, you also need to add -a as a S.M.A.R.T. extra option for every drive to keep receiving e-mails about failed tests.
 

Caliber

Dabbler
Joined
Jul 31, 2013
Messages
15
Oh, there you go. =)

# smartctl -l selftest /dev/ada0
Code:
# smartctl -l selftest /dev/ada0                             
smartctl 6.1 2013-03-16 r3800 [FreeBSD 9.1-STABLE amd64] (local build)       
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org 
                                                                             
=== START OF READ SMART DATA SECTION ===                                     
SMART Self-test log structure revision number 1                             
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA
_of_first_error                                                             
# 1  Extended offline    Completed without error      00%        46        -  

(likewise for the other 4) At first I thought it said "Remaining lifetime hours 46" and thought it was a bit gloomy..

Thanks a lot! And I'll make sure to add -a just in case.
 

camilo suarez

Explorer
Joined
Feb 28, 2014
Messages
86
do i still have to add -a to the temps to receive the emails? or this bug have been corrected?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Should be fixed in 9.2.0+ from what I see in ticket 2537.
 
Status
Not open for further replies.
Top