View Previous SMART test results

Status
Not open for further replies.

PhilZJ81

Explorer
Joined
Mar 29, 2016
Messages
99
I have one of my 6 drives on my RAIDZ2 array showing some Raw_read_error_rates and Seek_Error_Rates

I have a scheduled short smart test and was hoping to view the results of prior tests and see how that value is increasing.

I ran the line:
smartctl -a /dev/ada3

which Produced:
Code:
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     0x000b   100   100   016    Pre-fail  Always       -       65536
  2 Throughput_Performance  0x0005   137   137   054    Pre-fail  Offline      -       104
  3 Spin_Up_Time            0x0007   145   145   024    Pre-fail  Always       -       464 (Average 444)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       16
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   099   099   067    Pre-fail  Always       -       65536
  8 Seek_Time_Performance   0x0005   128   128   020    Pre-fail  Offline      -       18
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always       -       232
10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       16
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       110
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       110
194 Temperature_Celsius     0x0002   162   162   000    Old_age   Always       -       37 (Min/Max 25/46)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0


My other drives in the RaidZ2 look more like this
Code:
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     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   137   137   054    Pre-fail  Offline      -       104
  3 Spin_Up_Time            0x0007   135   135   024    Pre-fail  Always       -       467 (Average 505)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       22
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   128   128   020    Pre-fail  Offline      -       18
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always       -       245
10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       21
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       116
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       116
194 Temperature_Celsius     0x0002   162   162   000    Old_age   Always       -       37 (Min/Max 25/78)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0



I also have an older Seagate 6TB that's standalone that looks like this:
Code:
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   112   099   006    Pre-fail  Always       -       47607925
  3 Spin_Up_Time            0x0003   088   087   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       19
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   063   060   030    Pre-fail  Always       -       2518581
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       214
10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       19
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   064   059   045    Old_age   Always       -       36 (Min/Max 35/39)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       743
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       0
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       61
194 Temperature_Celsius     0x0022   036   041   000    Old_age   Always       -       36 (0 24 0 0 0)
195 Hardware_ECC_Recovered  0x001a   065   043   000    Old_age   Always       -       47607925
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       213 (35 64 0)
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       1994368679
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       140766956



What do you guys think?

thanks in advance!
 
Last edited:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I think you need to use code tags when you post SMART results. But other than that, I'd guess that ada3 is also a Seagate drive?
 

PhilZJ81

Explorer
Joined
Mar 29, 2016
Messages
99
I think you need to use code tags when you post SMART results. But other than that, I'd guess that ada3 is also a Seagate drive?

Sorry about that, post is fixed.

as far as hard drives, ada0 is the seagate (last result on the bottom)

ada1 through ada6 are HGST 6tb NAS drives
 

PhilZJ81

Explorer
Joined
Mar 29, 2016
Messages
99
Another Smart test ran last night and now my results on ada3 show up like this:

Code:
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     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   137   137   054    Pre-fail  Offline      -       104
  3 Spin_Up_Time            0x0007   145   145   024    Pre-fail  Always       -       464 (Average 444)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       16
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   128   128   020    Pre-fail  Offline      -       18
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always       -       248
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       16
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       142
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       142
194 Temperature_Celsius     0x0002   162   162   000    Old_age   Always       -       37 (Min/Max 25/46)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0



the raw_read_error_rate and Seek_Error_Rate are back to 0

What do you guys make of it?

Also, what do you guys think about the Seagate (lowest set of results in my first post).
 

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
SMART attributes don't report the result of SMART tests. A SMART test either passes or fails. SMART attributes are updated all the time by the drive's firmware.
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
SMART attributes are updated all the time by the drive's firmware
And the settings are adjustable to some degree...

SMART-settings.jpg
 

MrToddsFriends

Documentation Browser
Joined
Jan 12, 2015
Messages
1,338
To have a history of SMART attribute values available I wrote a small script which runs 'smartctl -a' on all mass storage devices and is run regularly (weekly) via a cron job. I don't know if there's a more elegant way to achieve this.
 

PhilZJ81

Explorer
Joined
Mar 29, 2016
Messages
99
Please delete duplicate post, thnx

[/QUOTE]

Is that something I can do? if so let me know. I only see in my thread options to Edit title or add a poll. Thanks

And the settings are adjustable to some degree...

View attachment 11768

OK, thanks I've added an email there

To have a history of SMART attribute values available I wrote a small script which runs 'smartctl -a' on all mass storage devices and is run regularly (weekly) via a cron job. I don't know if there's a more elegant way to achieve this.

Your script emails the output of the smartctl -a ? Would that be something similar to what BigDave posted?

What do you guys make on my HGST (ada3) that went from displaying some read errors and now that raw_value went back down to zero? That normal?
Also, what do you guys make of the Seagate, here is the latest output of a short test:

Code:

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   115   099   006    Pre-fail  Always       -       90618287
  3 Spin_Up_Time            0x0003   088   087   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       19
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   065   060   030    Pre-fail  Always       -       3516910
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       265
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       19
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   063   059   045    Old_age   Always       -       37 (Min/Max 35/39)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       1059
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       0
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       64
194 Temperature_Celsius     0x0022   037   041   000    Old_age   Always       -       37 (0 24 0 0 0)
195 Hardware_ECC_Recovered  0x001a   065   043   000    Old_age   Always       -       90618287
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       264 (194 81 0)
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       2058014631
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       150096609



Thank you
 

MrToddsFriends

Documentation Browser
Joined
Jan 12, 2015
Messages
1,338
Your script emails the output of the smartctl -a ? Would that be something similar to what BigDave posted?

No, my script just gathers data (text files) for future reference. Evaluating those data, raising an alarm and sending mails is out of its scope. $devices and $target_folder would have to be modified by anyone that would like to use it (warning: shell scripting amateur work ahead).

Code:
#!/bin/bash

devices="ada0 ada1 ada2 ada3 ada4"
target_folder=~root/althome/smart

mydate="$(date +%Y%m%d.%H%M%S)"

if [ ! -d $target_folder/smartctl_"$mydate" ]; then
  mkdir $target_folder/smartctl_"$mydate"
fi

for device in $devices
do
  smartctl -a /dev/"$device" > "$target_folder"/smartctl_"$mydate"/smartctl_"$device".log
done
 

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778

PhilZJ81

Explorer
Joined
Mar 29, 2016
Messages
99

Thanks for clarifying where those attributes come from. That does answer my question about SMART test result history, since I can see the last several results and the hours on the disk.

But could someone chime in on the other two question:
Questions for the HGST drive; is it normal for those Seek and Read errors to go back to zero, or is that something to be concerned about.
Question for the Seagate drive; are those values high and should i be concerned about that drive.

thanks
 
Last edited:

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Status
Not open for further replies.
Top