S.M.A.R.T. : I see no errors in log and no any tests performed on HDD

Status
Not open for further replies.

voljka

Cadet
Joined
Aug 4, 2011
Messages
5
Hello. I have a problem with SMART monitoring: smartctl -a /dev/ada[0..3] command display absolutely no test was running, but I setup short test for every hour/every day/every month for all four HDD.
When I start SMART test manually from shell it runs, and I see it result with smartctl.
So, I say there is a problem somethere.
My system: HP Microserver + FreeNAS-8r7257-amd64+ 4 x Seagate Barracuda Green (Adv. Format) ST2000DL003-9VT166
I noted same problem with FreeNAS 8.0.1 Beta 4 also.
I see absolutely no errors in /var/log/messages due to smart service reconfiguration through GUI.
/usr/local/etc/smartd.conf looks correct:
Storage2# cat smartd.conf
################################################
# smartd.conf generated by FreeNAS
################################################
/dev/ada0 -n never -W 0,0,0 -s S/(1|2|3|4|5|6|7|8|9|10|11|12)/../(1|2|3|4|5|6|7)/..
/dev/ada1 -n never -W 0,0,0 -s S/(1|2|3|4|5|6|7|8|9|10|11|12)/../(1|2|3|4|5|6|7)/..
/dev/ada2 -n never -W 0,0,0 -s S/(1|2|3|4|5|6|7|8|9|10|11|12)/../(1|2|3|4|5|6|7)/..
/dev/ada3 -n never -W 0,0,0 -s S/(1|2|3|4|5|6|7|8|9|10|11|12)/../(1|2|3|4|5|6|7)/..

Please advise, I do not know where to dig
 

tpusztai

Cadet
Joined
Sep 26, 2011
Messages
7
I have the same problem with my FreeNAS-8.0.1-RC2-amd64 (7813) box.

After some experimenting and reading I found that the problem is in the smartd.conf file created by the web GUI. It can be seen on your screen dump, too. The values in the field specifying the month should contain the leading zeros, as warned by the smartd.conf man page.

To check the time for which your tests are actually scheduled, use the "smartd -q showtests" command.

What I don't know is how to bypass the GUI and write this configuration file by hand in a way that the system remembers it after the next reboot, i.e, how to write it to the USB drive.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
I have the same problem with my FreeNAS-8.0.1-RC2-amd64 (7813) box.

After some experimenting and reading I found that the problem is in the smartd.conf file created by the web GUI. It can be seen on your screen dump, too. The values in the field specifying the month should contain the leading zeros, as warned by the smartd.conf man page.

To check the time for which your tests are actually scheduled, use the "smartd -q showtests" command.

What I don't know is how to bypass the GUI and write this configuration file by hand in a way that the system remembers it after the next reboot, i.e, how to write it to the USB drive.

Thanks for the input, this has been very usefull...
A fix has been committed in r7954 and will be available in the next release
 

matt8534

Cadet
Joined
Jul 19, 2011
Messages
7
I have a 3Ware controller.

When I run "smartd -q showtests" i get the following output:
Code:
[root@lockbox] ~# smartd -q showtests
smartd 5.41 2011-06-09 r3365 [FreeBSD 8.2-RELEASE-p2 amd64] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

Opened configuration file /usr/local/etc/smartd.conf
Configuration file /usr/local/etc/smartd.conf parsed.
Device: /dev/da0, open() failed: AMCC/3ware controller, please try adding '-d 3ware,N',
you may need to replace /dev/da0 with /dev/twaN or /dev/tweN
Unable to monitor any SMART enabled devices. Try debug (-d) option. Exiting...


The smart.conf is:
Code:
################################################
# smartd.conf generated by FreeNAS
################################################
/dev/da0 -n never -W 20,10,30 -m myemail@emailaddress.com -s S/(1|2|3|4|5|6|7|8|9|10|11|12)/../(1|2|3|4|5|6)/(03)


I've tried manually editing the smart.conf, but when I go to start the S.M.A.R.T service in the webGUI, the smart.conf file gets overwritten.

I believe the correct smart.conf file for my hardware should look something like this:
Code:
-d 3ware,0 /dev/twa0 -n never -W 20,10,30 -m myemail@emailaddress.com -s S/(1|2|3|4|5|6|7|8|9|10|11|12)/../(1|2|3|4|5|6)/(03)
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
I have a 3Ware controller.

When I run "smartd -q showtests" i get the following output:
Code:
[root@lockbox] ~# smartd -q showtests
smartd 5.41 2011-06-09 r3365 [FreeBSD 8.2-RELEASE-p2 amd64] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

Opened configuration file /usr/local/etc/smartd.conf
Configuration file /usr/local/etc/smartd.conf parsed.
Device: /dev/da0, open() failed: AMCC/3ware controller, please try adding '-d 3ware,N',
you may need to replace /dev/da0 with /dev/twaN or /dev/tweN
Unable to monitor any SMART enabled devices. Try debug (-d) option. Exiting...


The smart.conf is:
Code:
################################################
# smartd.conf generated by FreeNAS
################################################
/dev/da0 -n never -W 20,10,30 -m myemail@emailaddress.com -s S/(1|2|3|4|5|6|7|8|9|10|11|12)/../(1|2|3|4|5|6)/(03)


I've tried manually editing the smart.conf, but when I go to start the S.M.A.R.T service in the webGUI, the smart.conf file gets overwritten.

I believe the correct smart.conf file for my hardware should look something like this:
Code:
-d 3ware,0 /dev/twa0 -n never -W 20,10,30 -m myemail@emailaddress.com -s S/(1|2|3|4|5|6|7|8|9|10|11|12)/../(1|2|3|4|5|6)/(03)

I believe you can add "-d 3ware,0" to the SMART Extra options in each disk, from the View Disks icon...
 

matt8534

Cadet
Joined
Jul 19, 2011
Messages
7
I've tried that, but it adds it to the end. Also, I need to change
Code:
/dev/da0


to

Code:
/dev/twa0
 

matt8534

Cadet
Joined
Jul 19, 2011
Messages
7
Was excited to see in the Readme of the 8.0.1 Release "Fix smartd.conf generation bug. (r7956)". However, the smartd.conf still doesn't get generated correctly for a 3ware card.
 
Status
Not open for further replies.
Top