SMART test not running

Status
Not open for further replies.

Mester

Cadet
Joined
Nov 15, 2011
Messages
5
Hi,

I have FreeNAS 8.0.2 on my HP ProLiant Microserver. At last I could configure SMART for the harddrive and the daemon start normally. But for some reason it seem SMART tests are not running. Here is my smartd.conf file:
################################################
# smartd.conf generated by FreeNAS
################################################
/dev/ada0 -n never -W 0,0,0 -m ***@***.*** -s S/(01|02|03|04|05|06|07|08|09|10|11|12)/(00)/(1|2|3|4|5|6)/(15)
/dev/ada0 -n never -W 0,0,0 -m ***@***.*** -s L/(01|02|03|04|05|06|07|08|09|10|11|12)/(00)/(7)/(15)

And this is what I get when I enter smartd -q showtests
smartd 5.41 2011-06-09 r3365 [FreeBSD 8.2-RELEASE-p3 amd64] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

Opened configuration file /usr/local/etc/smartd.conf
Drive: /dev/ada0, implied '-a' Directive on line 4 of file /usr/local/etc/smartd.conf
Drive: /dev/ada0, implied '-a' Directive on line 5 of file /usr/local/etc/smartd.conf
Configuration file /usr/local/etc/smartd.conf parsed.
Device: /dev/ada0, opened
Device: /dev/ada0, WDC WD1002FAEX-00Z3A0, S/N:WD-WCATR6367970, WWN:5-0014ee-2b04e0ac4, FW:05.01D05, 1.00 TB
Device: /dev/ada0, found in smartd database.
Device: /dev/ada0, is SMART capable. Adding to "monitor" list.
Device: /dev/ada0, opened
Device: /dev/ada0, WDC WD1002FAEX-00Z3A0, S/N:WD-WCATR6367970, WWN:5-0014ee-2b04e0ac4, FW:05.01D05, 1.00 TB
Device: /dev/ada0, found in smartd database.
Device: /dev/ada0, is SMART capable. Adding to "monitor" list.
Monitoring 2 ATA and 0 SCSI devices

Next scheduled self tests (at most 5 of each type per device):

Totals [Tue Nov 22 10:35:55 2011 CET - Mon Feb 20 10:35:55 2012 CET]:
Device: /dev/ada0, will do 0 tests of type L
Device: /dev/ada0, will do 0 tests of type S
Device: /dev/ada0, will do 0 tests of type C
Device: /dev/ada0, will do 0 tests of type O
Device: /dev/ada0, will do 0 tests of type L
Device: /dev/ada0, will do 0 tests of type S
Device: /dev/ada0, will do 0 tests of type C
Device: /dev/ada0, will do 0 tests of type O
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Figured it out, looks like selecting every day causes this issue, as a workaround select the disks one by one or use every 2 days...

Fixed in r8766
 

Mester

Cadet
Joined
Nov 15, 2011
Messages
5
What I tried to set up is to run a short test on my ada0 disk on every day at 15:00 except on Sunday, and run a full test on the same disk on Sunday.
So what should I set and where on the GUI to set it up?
 

Mester

Cadet
Joined
Nov 15, 2011
Messages
5
Instead of set it to run everyday (using the horizontal bar), select all the days in another tab

Thank you, this way it works.
But I still have a problem: I use this FreeNAS machine as backup target for our servers. This way I have to change the hard disk once a week. I do it by exporting volume, shutting down machine, changing disk and then auto importing volume. There's only one problem with it: I have to set up the SMART tests after auto importing volume. And it's not a good thing to have to click on every day to make the setup.
So is there a hope that the next release of FreeNAS will handle every N day correctly?
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Yes, this has been fixed already and will be in next version..
However is worth to say that run SMART test every single day may be overkill... try every 2 or 3 days...
 

budmannxx

Contributor
Joined
Sep 7, 2011
Messages
120
Has the issue with the slider been fixed? I'm using FreeNAS-8.0.3-RELEASE-x64 (9395), and when I select "1" with the "Day of month > Every N day of month" slider I still get the (00) in the DD spot in smartd.conf (and no scheduled tests according to the "smartd -q showtests" command. As you suggested, manually selecting all 31 days on the "Each selected day of month" tab gets to the correct result, but it seems silly to have to do that for each test.

FWIW, I'm only trying to schedule tests once a week on Wednesdays, but the "Day of month" box has to be populated with something (either via slider or selecting the days).
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Using "FreeNAS 8.0.3-Multimedia-p1" I have been unable to get the SMART Test to run. I've only tried the short test. I have tried the work around as well.

Here is my configuration settings:
SMART is enabled for all my hard drives.
E-Mail is set up as I receive the two morning reports each day.

(ada0) Created an hourly CRON for drive (ada0) with smartctl -t short /dev/ada0

(ada1) Created SMART Test, Short test for a single drive with testing as defaults "Each Selected Hour" = (multiple), Each Selected Day = (multiple).

(ada2) Created SMART Test, Short test for single drive with testing as defaults but changed "Every N hour" = 1, "Every N Day" = 1.

(ada3) Created SMART Test, Long test for a single drive with testing defaults "Each Selected Hour" = 13, 16, 19, 22, Each Selected Day = 06.

Rebooted the machine in case it made a difference.

Checked periodically to see if the drives were being tested via smartctl -a /dev/ada0 or ada1 or ada2 or ada3:

ada0 only shows new testing being done.


So I have created three ways to run a SMART short test and one Long test, the only one that works is the CRON job.

I would not expect ada2 to work based on what I've read however I would think the others would work fine. I'm not sure how the daily message is queued up.

Unfortunately none of these results in an email with the results of the SMART test.

Here is the smartd.conf file contents:

Code:
################################################
# smartd.conf generated by FreeNAS  (Email address changed below)
################################################
/dev/ada0 -n standby -W 0,0,0 -m joe@va.net
/dev/ada1 -n standby -W 0,0,0 -m joe@va.net -s S/(01|02|03|04|05|06|07|08|09|10|11|12)/(05|06|07|08|09|10|11|17|23|29)/(1|2|3|4|5|6|7)/(12|13|14|15|16|17|18|19|20|21)
/dev/ada2 -n standby -W 0,0,0 -m joe@va.net -s S/(01|02|03|04|05|06|07|08|09|10|11|12)/(00)/(1|2|3|4|5|6|7)/(00)
/dev/ada3 -n standby -W 0,0,0 -m joe@va.net -s L/(01|02|03|04|05|06|07|08|09|10|11|12)/(06)/(1|2|3|4|5|6|7)/(13|16|19|22)


-Mark

EDIT: If I get this working I wouldn't do a SMART test except once a week for each drive so the above settings is being used only to get the thing running.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
I'm not sure but i think if only one of the entries is wrong the smartd will not run at all... So if you fix ada2 (select the hours instead of "Every N hour" = 1) you should be fine...
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
I'll give that a try and eventually report back. Headed out on work travel again in a few minutes.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
I've been running this configuration for two days and it appears the short test is being conducted. The long test has not met the criteria to run yet so I'm fine with that. I just changed that criteria so it should run later today but the below config file is before that minor change.

So I'm still not getting a report stating SMART testing was run. I am using the same email address to which I receive my daily security run and daily output run reports.

Code:
################################################
# smartd.conf generated by FreeNAS (Email address changed)
################################################
/dev/ada0 -n standby -W 0,0,0 -m joe@test.net
/dev/ada1 -n standby -W 0,0,0 -m joe@test.net -s S/(01|02|03|04|05|06|07|08|09|10|11|12)/(07|08|09|10|11|12|13)/(1|2|3|4|5|6|7)/(14)
/dev/ada2 -n standby -W 0,0,0 -m joe@test.net
/dev/ada3 -n standby -W 0,0,0 -m joe@test.net -s L/(01|02|03|04|05|06|07|08|09|10|11|12)/(06)/(1|2|3|4|5|6|7)/(13)


Thanks for you help.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
AFAIK the email in smartd is not used to report back of tests, it is just to email in case of errors are detected... but I might be wrong.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
AFAIK the email in smartd is not used to report back of tests, it is just to email in case of errors are detected... but I might be wrong.
That is too bad and might be true. It's nice to know if it passes but I can live with that, at least I have the tests running now.

Thanks.
 
Status
Not open for further replies.
Top