smart testing of pool drives no longer working

Status
Not open for further replies.

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
Checking #smartctl -a /dev/daX this morning on my 6 disc RAIDz2 pool, I've noted
it's been a long while (compared to the past testing history) since testing has been
performed. I've posted the readouts below in code tags.

Code:
[root@freenas] ~# smartctl -a /dev/da0
smartctl 6.3 2014-07-26 r3976 [FreeBSD 9.3-RELEASE-p26 amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:  Western Digital Red
Device Model:  DELETED
Serial Number:  DELETED
LU WWN Device Id: 5 0014ee 0ae528ca9
Firmware Version: 80.00A80
User Capacity:  3,000,592,982,016 bytes [3.00 TB]
Sector Sizes:  512 bytes logical, 4096 bytes physical
Rotation Rate:  5400 rpm
Device is:  In smartctl database [for details use: -P show]
ATA Version is:  ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:  Sun Oct 25 12:00:02 2015 CDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
  was never started.
  Auto Offline Data Collection: Disabled.
Self-test execution status:  (  0) The previous self-test routine completed
  without error or no self-test has ever
  been run.
Total time to complete Offline
data collection:  (38640) seconds.
Offline data collection
capabilities:  (0x7b) SMART execute Offline immediate.
  Auto Offline data collection on/off support.
  Suspend Offline collection upon new
  command.
  Offline surface scan supported.
  Self-test supported.
  Conveyance Self-test supported.
  Selective Self-test supported.
SMART capabilities:  (0x0003) Saves SMART data before entering
  power-saving mode.
  Supports SMART auto save timer.
Error logging capability:  (0x01) Error logging supported.
  General Purpose Logging supported.
Short self-test routine
recommended polling time:  (  2) minutes.
Extended self-test routine
recommended polling time:  ( 388) minutes.
Conveyance self-test routine
recommended polling time:  (  5) minutes.
SCT capabilities:  (0x703d) SCT Status supported.
  SCT Error Recovery Control supported.
  SCT Feature Control supported.
  SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME  FLAG  VALUE WORST THRESH TYPE  UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate  0x002f  200  200  051  Pre-fail  Always  -  0
  3 Spin_Up_Time  0x0027  180  178  021  Pre-fail  Always  -  5983
  4 Start_Stop_Count  0x0032  100  100  000  Old_age  Always  -  92
  5 Reallocated_Sector_Ct  0x0033  200  200  140  Pre-fail  Always  -  0
  7 Seek_Error_Rate  0x002e  200  200  000  Old_age  Always  -  0
  9 Power_On_Hours  0x0032  085  085  000  Old_age  Always  -  11293
10 Spin_Retry_Count  0x0032  100  253  000  Old_age  Always  -  0
11 Calibration_Retry_Count 0x0032  100  253  000  Old_age  Always  -  0
12 Power_Cycle_Count  0x0032  100  100  000  Old_age  Always  -  91
192 Power-Off_Retract_Count 0x0032  200  200  000  Old_age  Always  -  63
193 Load_Cycle_Count  0x0032  200  200  000  Old_age  Always  -  28
194 Temperature_Celsius  0x0022  120  107  000  Old_age  Always  -  30
196 Reallocated_Event_Count 0x0032  200  200  000  Old_age  Always  -  0
197 Current_Pending_Sector  0x0032  200  200  000  Old_age  Always  -  0
198 Offline_Uncorrectable  0x0030  100  253  000  Old_age  Offline  -  0
199 UDMA_CRC_Error_Count  0x0032  200  200  000  Old_age  Always  -  0
200 Multi_Zone_Error_Rate  0x0008  200  200  000  Old_age  Offline  -  0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description  Status  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline  Completed without error  00%  10050  -
# 2  Extended offline  Completed without error  00%  9959  -
# 3  Short offline  Completed without error  00%  9892  -
# 4  Short offline  Completed without error  00%  9707  -
# 5  Extended offline  Completed without error  00%  9567  -
# 6  Short offline  Completed without error  00%  9464  -
# 7  Short offline  Completed without error  00%  9368  -
# 8  Extended offline  Completed without error  00%  9279  -
# 9  Short offline  Completed without error  00%  9152  -
#10  Short offline  Completed without error  00%  8961  -
#11  Extended offline  Interrupted (host reset)  60%  8821  -
#12  Short offline  Completed without error  00%  8723  -
#13  Short offline  Completed without error  00%  8651  -
#14  Extended offline  Completed without error  00%  8566  -
#15  Short offline  Completed without error  00%  8244  -
#16  Extended offline  Completed without error  00%  8102  -
#17  Short offline  Completed without error  00%  7999  -
#18  Short offline  Completed without error  00%  7904  -
#19  Extended offline  Completed without error  00%  7815  -
#20  Short offline  Completed without error  00%  7688  -
#21  Short offline  Completed without error  00%  7502  -


Code:
[root@freenas] ~# smartctl -a /dev/da1
smartctl 6.3 2014-07-26 r3976 [FreeBSD 9.3-RELEASE-p26 amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:  Western Digital Red
Device Model:  WDC WD30EFRX-68EUZN0
Serial Number:  DELETED
LU WWN Device Id: 5 0014ee 003a7d3dd
Firmware Version: 80.00A80
User Capacity:  3,000,592,982,016 bytes [3.00 TB]
Sector Sizes:  512 bytes logical, 4096 bytes physical
Rotation Rate:  5400 rpm
Device is:  In smartctl database [for details use: -P show]
ATA Version is:  ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:  Sun Oct 25 12:03:09 2015 CDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
  was never started.
  Auto Offline Data Collection: Disabled.
Self-test execution status:  (  0) The previous self-test routine completed
  without error or no self-test has ever
  been run.
Total time to complete Offline
data collection:  (40860) seconds.
Offline data collection
capabilities:  (0x7b) SMART execute Offline immediate.
  Auto Offline data collection on/off support.
  Suspend Offline collection upon new
  command.
  Offline surface scan supported.
  Self-test supported.
  Conveyance Self-test supported.
  Selective Self-test supported.
SMART capabilities:  (0x0003) Saves SMART data before entering
  power-saving mode.
  Supports SMART auto save timer.
Error logging capability:  (0x01) Error logging supported.
  General Purpose Logging supported.
Short self-test routine
recommended polling time:  (  2) minutes.
Extended self-test routine
recommended polling time:  ( 410) minutes.
Conveyance self-test routine
recommended polling time:  (  5) minutes.
SCT capabilities:  (0x703d) SCT Status supported.
  SCT Error Recovery Control supported.
  SCT Feature Control supported.
  SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME  FLAG  VALUE WORST THRESH TYPE  UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate  0x002f  200  200  051  Pre-fail  Always  -  0
  3 Spin_Up_Time  0x0027  175  172  021  Pre-fail  Always  -  6233
  4 Start_Stop_Count  0x0032  100  100  000  Old_age  Always  -  91
  5 Reallocated_Sector_Ct  0x0033  200  200  140  Pre-fail  Always  -  0
  7 Seek_Error_Rate  0x002e  200  200  000  Old_age  Always  -  0
  9 Power_On_Hours  0x0032  085  085  000  Old_age  Always  -  11293
10 Spin_Retry_Count  0x0032  100  253  000  Old_age  Always  -  0
11 Calibration_Retry_Count 0x0032  100  253  000  Old_age  Always  -  0
12 Power_Cycle_Count  0x0032  100  100  000  Old_age  Always  -  91
192 Power-Off_Retract_Count 0x0032  200  200  000  Old_age  Always  -  62
193 Load_Cycle_Count  0x0032  200  200  000  Old_age  Always  -  28
194 Temperature_Celsius  0x0022  119  107  000  Old_age  Always  -  31
196 Reallocated_Event_Count 0x0032  200  200  000  Old_age  Always  -  0
197 Current_Pending_Sector  0x0032  200  200  000  Old_age  Always  -  0
198 Offline_Uncorrectable  0x0030  100  253  000  Old_age  Offline  -  0
199 UDMA_CRC_Error_Count  0x0032  200  200  000  Old_age  Always  -  0
200 Multi_Zone_Error_Rate  0x0008  200  200  000  Old_age  Offline  -  0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description  Status  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline  Completed without error  00%  10050  -
# 2  Extended offline  Completed without error  00%  9960  -
# 3  Short offline  Completed without error  00%  9893  -
# 4  Short offline  Completed without error  00%  9707  -
# 5  Extended offline  Completed without error  00%  9567  -
# 6  Short offline  Completed without error  00%  9464  -
# 7  Short offline  Completed without error  00%  9368  -
# 8  Extended offline  Completed without error  00%  9280  -
# 9  Short offline  Completed without error  00%  9152  -
#10  Short offline  Completed without error  00%  8961  -
#11  Extended offline  Interrupted (host reset)  60%  8821  -
#12  Short offline  Completed without error  00%  8723  -
#13  Short offline  Completed without error  00%  8651  -
#14  Extended offline  Completed without error  00%  8567  -
#15  Short offline  Completed without error  00%  8245  -
#16  Extended offline  Completed without error  00%  8103  -
#17  Short offline  Completed without error  00%  8000  -
#18  Short offline  Completed without error  00%  7904  -
#19  Extended offline  Completed without error  00%  7815  -
#20  Short offline  Completed without error  00%  7688  -
#21  Short offline  Completed without error  00%  7502  -

Code:
[root@freenas] ~# smartctl -a /dev/da2
smartctl 6.3 2014-07-26 r3976 [FreeBSD 9.3-RELEASE-p26 amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:  Western Digital Red
Device Model:  WDC WD30EFRX-68EUZN0
Serial Number: DELETED
LU WWN Device Id: 5 0014ee 0ae712785
Firmware Version: 80.00A80
User Capacity:  3,000,592,982,016 bytes [3.00 TB]
Sector Sizes:  512 bytes logical, 4096 bytes physical
Rotation Rate:  5400 rpm
Device is:  In smartctl database [for details use: -P show]
ATA Version is:  ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:  Sun Oct 25 12:07:44 2015 CDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
  was never started.
  Auto Offline Data Collection: Disabled.
Self-test execution status:  (  0) The previous self-test routine completed
  without error or no self-test has ever
  been run.
Total time to complete Offline
data collection:  (41460) seconds.
Offline data collection
capabilities:  (0x7b) SMART execute Offline immediate.
  Auto Offline data collection on/off support.
  Suspend Offline collection upon new
  command.
  Offline surface scan supported.
  Self-test supported.
  Conveyance Self-test supported.
  Selective Self-test supported.
SMART capabilities:  (0x0003) Saves SMART data before entering
  power-saving mode.
  Supports SMART auto save timer.
Error logging capability:  (0x01) Error logging supported.
  General Purpose Logging supported.
Short self-test routine
recommended polling time:  (  2) minutes.
Extended self-test routine
recommended polling time:  ( 416) minutes.
Conveyance self-test routine
recommended polling time:  (  5) minutes.
SCT capabilities:  (0x703d) SCT Status supported.
  SCT Error Recovery Control supported.
  SCT Feature Control supported.
  SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME  FLAG  VALUE WORST THRESH TYPE  UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate  0x002f  200  200  051  Pre-fail  Always  -  0
  3 Spin_Up_Time  0x0027  179  178  021  Pre-fail  Always  -  6008
  4 Start_Stop_Count  0x0032  100  100  000  Old_age  Always  -  53
  5 Reallocated_Sector_Ct  0x0033  200  200  140  Pre-fail  Always  -  0
  7 Seek_Error_Rate  0x002e  200  200  000  Old_age  Always  -  0
  9 Power_On_Hours  0x0032  088  088  000  Old_age  Always  -  9382
10 Spin_Retry_Count  0x0032  100  253  000  Old_age  Always  -  0
11 Calibration_Retry_Count 0x0032  100  253  000  Old_age  Always  -  0
12 Power_Cycle_Count  0x0032  100  100  000  Old_age  Always  -  53
192 Power-Off_Retract_Count 0x0032  200  200  000  Old_age  Always  -  48
193 Load_Cycle_Count  0x0032  200  200  000  Old_age  Always  -  629
194 Temperature_Celsius  0x0022  121  107  000  Old_age  Always  -  29
196 Reallocated_Event_Count 0x0032  200  200  000  Old_age  Always  -  0
197 Current_Pending_Sector  0x0032  200  200  000  Old_age  Always  -  0
198 Offline_Uncorrectable  0x0030  100  253  000  Old_age  Offline  -  0
199 UDMA_CRC_Error_Count  0x0032  200  200  000  Old_age  Always  -  0
200 Multi_Zone_Error_Rate  0x0008  200  200  000  Old_age  Offline  -  0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description  Status  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline  Completed without error  00%  8139  -
# 2  Extended offline  Completed without error  00%  8049  -
# 3  Short offline  Completed without error  00%  7982  -
# 4  Short offline  Completed without error  00%  7796  -
# 5  Extended offline  Completed without error  00%  7657  -
# 6  Short offline  Completed without error  00%  7553  -
# 7  Short offline  Completed without error  00%  7457  -
# 8  Extended offline  Completed without error  00%  7369  -
# 9  Short offline  Completed without error  00%  7241  -
#10  Short offline  Completed without error  00%  7050  -
#11  Extended offline  Interrupted (host reset)  60%  6910  -
#12  Short offline  Completed without error  00%  6812  -
#13  Short offline  Completed without error  00%  6740  -
#14  Extended offline  Completed without error  00%  6656  -
#15  Short offline  Completed without error  00%  6334  -
#16  Extended offline  Completed without error  00%  6192  -
#17  Short offline  Completed without error  00%  6089  -
#18  Short offline  Completed without error  00%  5993  -
#19  Extended offline  Completed without error  00%  5905  -
#20  Short offline  Completed without error  00%  5777  -
#21  Short offline  Completed without error  00%  5592  -


I'm just posting three of the six drives, the remaining three are reading the same.
When I noticed this whole thing late last night, I checked the smart test config
in the GUI and can say without a doubt that the config has not changed and is
shown in the screen shot below. View attachment 9088
 
Last edited:

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Are the drives still selected in the list of the config pop-up?
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Agreed, maybe something happened and your SMART test drive list went away. Why that would happen is beyond me. You may need to delete and recreate the SMART Test.

What version of FreeNAS are you running (you know I should have to ask you that question).
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
What's that command @ the CLI to check the configured smart tasks?
The GUI appears as it always has since setting the schedule almost a year ago,
I don't have any idea how or why this happend.
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
In the DB or in the file?

Edit: For the DB: sqlite3 /data/freenas-v1.db 'select * from tasks_smarttest'
and sqlite3 /data/freenas-v1.db 'select * from tasks_smarttest_smarttest_disks'

For the file: cat /etc/local/smartd.conf
 
Last edited:

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
For the file: cat /etc/local/smartd.conf
That one actually gave me Temp alert config :p

Well I've decided to tear the long and the short smart testing tasks out, reboot the server and start
with setting up first a short test @ 6pm today, then a long test starting 60min. later. After it's done
I'll see if it's broken or not. If it completes all the tests and shows up in the output log, I'll recreate
task schedule from scratch again.
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Yep, but it also gives the task schedules. For example, I have the following for each drive:
Code:
/dev/da0 -a -n never -W 0,40,45 -m my_email@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py -s S/(01|02|03|04|05|06|07|08|09|10|11|12)/(07|12|22|27)/(1|2|3|4|5|6|7)/(06)
/dev/da0 -a -n never -W 0,40,45 -m my_email@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py -s L/(01|02|03|04|05|06|07|08|09|10|11|12)/(02|17)/(1|2|3|4|5|6|7)/(04)



The important part is:
Code:
S/(01|02|03|04|05|06|07|08|09|10|11|12)/(07|12|22|27)/(1|2|3|4|5|6|7)/(06)
L/(01|02|03|04|05|06|07|08|09|10|11|12)/(02|17)/(1|2|3|4|5|6|7)/(04)


S and L are for short and long
01|02|03|04|05|06|07|08|09|10|11|12 are the months
07|12|22|27 and 02|17 are the days of month
1|2|3|4|5|6|7 are the days of week
06 and 04 are the hours
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
Code:
[root@freenas] ~# cat /etc/local/smartd.conf
################################################
# smartd.conf generated by /etc/ix.rc.d/ix-smartd
################################################
/dev/da0 -a -n never -W 0,39,39 -m igdave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py
/dev/da1 -a -n never -W 0,39,39 -m igdave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py
/dev/da2 -a -n never -W 0,39,39 -m igdave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py
/dev/da3 -a -n never -W 0,39,39 -m igdave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py
/dev/da4 -a -n never -W 0,39,39 -m igdave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py
/dev/da5 -a -n never -W 0,39,39 -m igdave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py


I must be pooched then cause mine does not show the scheduled tasks, wierd huh!
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
That's why the test aren't executed I guess :)

Now you need to find why they aren't in the file, I'd start by looking in /etc/ix.rc.d/ix-smartd ;)
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
Now you need to find why they aren't in the file, I'd start by looking in /etc/ix.rc.d/ix-smartd
Looking into the innards of the file system is not part of my skill set at this point in time.
I'd love to have the knowledge at some point, but don't have the time this evening to even get started.

For now, I deleted the long and short smart tests in Tasks and rebooted my machine. Then went back
and set up short tests @ 7pm and long test @ 8pm today. Before bedtime (10pm) I'll SSH in there
and see if they ran or not. Thanks for the assist.
Dave
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Ok, no problem, I hope it'll work ;)
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
Things are looking good now, the output now shows the scheduled tasks I set up :D
Code:
[root@freenas] ~# cat /etc/local/smartd.conf
################################################
# smartd.conf generated by /etc/ix.rc.d/ix-smartd
################################################
/dev/da0 -a -n never -W 0,39,39 -m dave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py -s L/(01|02|03|04|05|06|07|08|09|10|11|12)/(25)/(1|2|3|4|5|6|7)/(22)
/dev/da0 -a -n never -W 0,39,39 -m dave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py -s S/(01|02|03|04|05|06|07|08|09|10|11|12)/(25)/(1|2|3|4|5|6|7)/(20)
/dev/da1 -a -n never -W 0,39,39 -m dave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py -s L/(01|02|03|04|05|06|07|08|09|10|11|12)/(25)/(1|2|3|4|5|6|7)/(22)
/dev/da1 -a -n never -W 0,39,39 -m dave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py -s S/(01|02|03|04|05|06|07|08|09|10|11|12)/(25)/(1|2|3|4|5|6|7)/(20)
/dev/da2 -a -n never -W 0,39,39 -m dave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py -s L/(01|02|03|04|05|06|07|08|09|10|11|12)/(25)/(1|2|3|4|5|6|7)/(22)
/dev/da2 -a -n never -W 0,39,39 -m dave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py -s S/(01|02|03|04|05|06|07|08|09|10|11|12)/(25)/(1|2|3|4|5|6|7)/(20)
/dev/da3 -a -n never -W 0,39,39 -m dave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py -s L/(01|02|03|04|05|06|07|08|09|10|11|12)/(25)/(1|2|3|4|5|6|7)/(22)
/dev/da3 -a -n never -W 0,39,39 -m dave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py -s S/(01|02|03|04|05|06|07|08|09|10|11|12)/(25)/(1|2|3|4|5|6|7)/(20)
/dev/da4 -a -n never -W 0,39,39 -m dave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py -s L/(01|02|03|04|05|06|07|08|09|10|11|12)/(25)/(1|2|3|4|5|6|7)/(22)
/dev/da4 -a -n never -W 0,39,39 -m dave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py -s S/(01|02|03|04|05|06|07|08|09|10|11|12)/(25)/(1|2|3|4|5|6|7)/(20)
/dev/da5 -a -n never -W 0,39,39 -m dave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py -s L/(01|02|03|04|05|06|07|08|09|10|11|12)/(25)/(1|2|3|4|5|6|7)/(22)
/dev/da5 -a -n never -W 0,39,39 -m dave@gmail.com -M exec /usr/local/www/freenasUI/tools/smart_alert.py -s S/(01|02|03|04|05|06|07|08|09|10|11|12)/(25)/(1|2|3|4|5|6|7)/(20)

As you can see, I've played with it a bit to make sure it's gonna stick...

OMG I forgot and posted without editing the output to not show my friekin email! DOH!
 
Last edited by a moderator:

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Perfect ;)
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
The short test ran for all 6 drives and no issues were reported. :cool:
I've now adjusted my testing schedule back to it's original settings
and have saved a copy of my configuration after doing so.
I still don't have any idea how I lost smart testing for 51 days :eek:

This was a good lesson for me. When looking at my drive's smart
readings in the future, I'll be paying closer attention to the test log.
I lucked out today, this could have been B.A.D. *Whew*
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Good ;)

Yep, that's why I put the test age in my report script, that way I know something is wrong if a test is older than one day.
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
I'm gonna get you to teach me how to get your awesome scripts working for me one of these days...
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
There's nothing complicated. What's the problem exactly?
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
There's nothing complicated.
I could say the same about plumbing a three story house with nine bathrooms...
What's the problem exactly?
I have no idea how to (basically step #1) create the place to put the script. I tried a few months
ago to figure it out, but I lack basic knowledge of how the file structure opens.
mnt/tank/???
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Ok, first you want to chose where you want to put the script: the boot drive or you data pool.

Usually I recommend the boot drive because if the script needs to be executed when the pool isn't mounted (like for example a script to monitor the pool, if the pool has a problem the script may not be able to be executed to tell you that there's a problem) but it's simpler (is that a word?) to put it on the data pool and if you reinstall it doesn't get deleted.

Do you know how to SSH to the NAS?
 
Status
Not open for further replies.
Top