Hard drive best practices (preemptively replace due to old age?)

rvassar

Guru
Joined
May 2, 2018
Messages
972
FWIW - I stagger my SMART tests so only a portion of the pool is testing at any given time. By my system see's some at least minimal activity 24x7.

But the real question here is why are there no recorded completions? I'd log into the console an initiate one manually ala:
Code:
smartctl -t short /dev/da0 


It should emit a banner statement about starting a self-test and include "Please wait X minutes..."

Wait the listed number of minutes and:
Code:
smartctl -a /dev/da0


You should see a completed short test at your current 83k hour power on interval at the top of the list. If you don't, there's likely a drive problem preventing it from storing the result. If it's FreeNAS / BSD it will likely emit something at the time of initiation, or in the system logs, etc...
 

freenas-supero

Contributor
Joined
Jul 27, 2014
Messages
128
You can manually run the tests and I'm sure they were running under the cron job just no being recorded. The important question is, if the drive isn't able to record the results of the test due to a bug in the test timing, would a notification of a failed test still be triggered? Since there is no record of the test being completed, pass or fail.

If it were my pool at home, I would run the drives till they died and went offline on their own, but I have several copies of the data I care about.

I do have several backups, botn online and offline, and 2 copies of each. What I'm searching now is an ULTRA reliable external drive because right now I am saving my offsite backups onto 2x 2TB drives stored in anti-static casings... Anyways thats another story (but always welcoming advices!)


FWIW - I stagger my SMART tests so only a portion of the pool is testing at any given time. By my system see's some at least minimal activity 24x7.

But the real question here is why are there no recorded completions? I'd log into the console an initiate one manually ala:
Code:
smartctl -t short /dev/da0


It should emit a banner statement about starting a self-test and include "Please wait X minutes..."

Wait the listed number of minutes and:
Code:
smartctl -a /dev/da0


You should see a completed short test at your current 83k hour power on interval at the top of the list. If you don't, there's likely a drive problem preventing it from storing the result. If it's FreeNAS / BSD it will likely emit something at the time of initiation, or in the system logs, etc...

Okay I just ran a short test on da0, and I believe that it is NOT recording the results.... After completion I executed the smartctl command to retrieve the results and I cannot see them in the command output. Do I need new glasses?

Code:
root@freenas:~ # smartctl -a /dev/da0
smartctl 7.0 2018-12-30 r4883 [FreeBSD 11.3-RELEASE-p14 amd64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Hitachi Deskstar 5K3000
Device Model:     Hitachi HDS5C3020ALA632
Serial Number:    ML0221F306AUSD
LU WWN Device Id: 5 000cca 369c2e2e2
Firmware Version: ML6OA180
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    5940 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 2.6, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon Aug  9 17:44:18 2021 EDT
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:  (0x85)    Offline data collection activity
                    was aborted by an interrupting command from host.
                    Auto Offline Data Collection: Enabled.
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:         (23475) seconds.
Offline data collection
capabilities:              (0x5b) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Suspend Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    No 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:      (   1) minutes.
Extended self-test routine
recommended polling time:      ( 392) minutes.
SCT capabilities:            (0x003d)    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     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   134   134   054    Pre-fail  Offline      -       100
  3 Spin_Up_Time            0x0007   135   135   024    Pre-fail  Always       -       405 (Average 407)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       281
  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   148   148   020    Pre-fail  Offline      -       28
  9 Power_On_Hours          0x0012   089   089   000    Old_age   Always       -       83447
10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       280
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       1199
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       1199
194 Temperature_Celsius     0x0002   200   200   000    Old_age   Always       -       30 (Min/Max 17/41)
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

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%     17911         -
# 2  Short offline       Completed without error       00%     17904         -
# 3  Short offline       Completed without error       00%     17584         -
# 4  Extended offline    Completed without error       00%     17470         -
# 5  Short offline       Completed without error       00%     17248         -
# 6  Extended offline    Completed without error       00%     17135         -
# 7  Short offline       Completed without error       00%     16868         -
# 8  Extended offline    Completed without error       00%     16754         -
# 9  Short offline       Completed without error       00%     16532         -
#10  Extended offline    Completed without error       00%     16419         -
#11  Short offline       Completed without error       00%     16125         -
#12  Extended offline    Completed without error       00%     16011         -
#13  Short offline       Completed without error       00%     15790         -
#14  Short offline       Completed without error       00%     15496         -
#15  Extended offline    Completed without error       00%     15382         -
#16  Short offline       Completed without error       00%     15160         -
#17  Extended offline    Completed without error       00%     15050         -
#18  Short offline       Completed without error       00%     14756         -
#19  Extended offline    Completed without error       00%     14642         -
#20  Short offline       Completed without error       00%     14421         -
#21  Extended offline    Completed without error       00%     14307         -

SMART Selective self-test log data structure revision number 1
SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
 
Last edited:

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
After the first command smartctl -t short /dev/da0 to initiate the short test, wait about 5 minutes (most tests are completed in 2 minutes, your specific drive says it completes in 1 minute but playing it safe just wait 5 minutes to complete in case of an error) and then enter the second command smartctl -a /dev/da0 to read the smart data. You should have an entry which states you have run a short offline test and the hours would be 83xxx for example.
 

freenas-supero

Contributor
Joined
Jul 27, 2014
Messages
128
After the first command smartctl -t short /dev/da0 to initiate the short test, wait about 5 minutes (most tests are completed in 2 minutes, your specific drive says it completes in 1 minute but playing it safe just wait 5 minutes to complete in case of an error) and then enter the second command smartctl -a /dev/da0 to read the smart data. You should have an entry which states you have run a short offline test and the hours would be 83xxx for example.

I re-ran the short test ok da0 and waited 45 minutes........ The output of smartctl -a seems the same to me as the previous test:

Code:
root@freenas:~ # smartctl -a /dev/da0
smartctl 7.0 2018-12-30 r4883 [FreeBSD 11.3-RELEASE-p14 amd64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Hitachi Deskstar 5K3000
Device Model:     Hitachi HDS5C3020ALA632
Serial Number:    ML0221F306AUSD
LU WWN Device Id: 5 000cca 369c2e2e2
Firmware Version: ML6OA180
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    5940 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 2.6, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Aug 10 13:02:11 2021 EDT
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:  (0x85)    Offline data collection activity
                    was aborted by an interrupting command from host.
                    Auto Offline Data Collection: Enabled.
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:         (23475) seconds.
Offline data collection
capabilities:              (0x5b) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Suspend Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    No 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:      (   1) minutes.
Extended self-test routine
recommended polling time:      ( 392) minutes.
SCT capabilities:            (0x003d)    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     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   134   134   054    Pre-fail  Offline      -       100
  3 Spin_Up_Time            0x0007   135   135   024    Pre-fail  Always       -       405 (Average 407)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       281
  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   148   148   020    Pre-fail  Offline      -       28
  9 Power_On_Hours          0x0012   089   089   000    Old_age   Always       -       83466
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       280
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       1199
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       1199
194 Temperature_Celsius     0x0002   206   206   000    Old_age   Always       -       29 (Min/Max 17/41)
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

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%     17929         -
# 2  Short offline       Completed without error       00%     17928         -
# 3  Short offline       Completed without error       00%     17911         -
# 4  Short offline       Completed without error       00%     17904         -
# 5  Short offline       Completed without error       00%     17584         -
# 6  Extended offline    Completed without error       00%     17470         -
# 7  Short offline       Completed without error       00%     17248         -
# 8  Extended offline    Completed without error       00%     17135         -
# 9  Short offline       Completed without error       00%     16868         -
#10  Extended offline    Completed without error       00%     16754         -
#11  Short offline       Completed without error       00%     16532         -
#12  Extended offline    Completed without error       00%     16419         -
#13  Short offline       Completed without error       00%     16125         -
#14  Extended offline    Completed without error       00%     16011         -
#15  Short offline       Completed without error       00%     15790         -
#16  Short offline       Completed without error       00%     15496         -
#17  Extended offline    Completed without error       00%     15382         -
#18  Short offline       Completed without error       00%     15160         -
#19  Extended offline    Completed without error       00%     15050         -
#20  Short offline       Completed without error       00%     14756         -
#21  Extended offline    Completed without error       00%     14642         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.


Am I missing something here??
 

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
I re-ran the short test ok da0 and waited 45 minutes........ The output of smartctl -a seems the same to me as the previous test:

Code:
root@freenas:~ # smartctl -a /dev/da0
smartctl 7.0 2018-12-30 r4883 [FreeBSD 11.3-RELEASE-p14 amd64] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Hitachi Deskstar 5K3000
Device Model:     Hitachi HDS5C3020ALA632
Serial Number:    ML0221F306AUSD
LU WWN Device Id: 5 000cca 369c2e2e2
Firmware Version: ML6OA180
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    5940 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 2.6, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Aug 10 13:02:11 2021 EDT
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:  (0x85)    Offline data collection activity
                    was aborted by an interrupting command from host.
                    Auto Offline Data Collection: Enabled.
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:         (23475) seconds.
Offline data collection
capabilities:              (0x5b) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Suspend Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    No 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:      (   1) minutes.
Extended self-test routine
recommended polling time:      ( 392) minutes.
SCT capabilities:            (0x003d)    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     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   134   134   054    Pre-fail  Offline      -       100
  3 Spin_Up_Time            0x0007   135   135   024    Pre-fail  Always       -       405 (Average 407)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       281
  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   148   148   020    Pre-fail  Offline      -       28
  9 Power_On_Hours          0x0012   089   089   000    Old_age   Always       -       83466
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       280
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       1199
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       1199
194 Temperature_Celsius     0x0002   206   206   000    Old_age   Always       -       29 (Min/Max 17/41)
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

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%     17929         -
# 2  Short offline       Completed without error       00%     17928         -
# 3  Short offline       Completed without error       00%     17911         -
# 4  Short offline       Completed without error       00%     17904         -
# 5  Short offline       Completed without error       00%     17584         -
# 6  Extended offline    Completed without error       00%     17470         -
# 7  Short offline       Completed without error       00%     17248         -
# 8  Extended offline    Completed without error       00%     17135         -
# 9  Short offline       Completed without error       00%     16868         -
#10  Extended offline    Completed without error       00%     16754         -
#11  Short offline       Completed without error       00%     16532         -
#12  Extended offline    Completed without error       00%     16419         -
#13  Short offline       Completed without error       00%     16125         -
#14  Extended offline    Completed without error       00%     16011         -
#15  Short offline       Completed without error       00%     15790         -
#16  Short offline       Completed without error       00%     15496         -
#17  Extended offline    Completed without error       00%     15382         -
#18  Short offline       Completed without error       00%     15160         -
#19  Extended offline    Completed without error       00%     15050         -
#20  Short offline       Completed without error       00%     14756         -
#21  Extended offline    Completed without error       00%     14642         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.


Am I missing something here??
At a guess; I'm thinking smartctl wraps the test timestamp for values > 65535: 83466 (the runtime hours on your drive) less 65,535 is awfully close to the reported test time (17929). I believe someone upstream alluded to this bug.

You could run a long test to make sure, but that will take several hours.
 

Mlovelace

Guru
Joined
Aug 19, 2014
Messages
1,111
At a guess; I'm thinking smartctl wraps the test timestamp for values > 65535: 83466 (the runtime hours on your drive) less 65,535 is awfully close to the reported test time (17929). I believe someone upstream alluded to this bug.

You could run a long test to make sure, but that will take several hours.
This is interesting... Digging into it a bit, the test log timestamp is generally coded in Hexadecimal (0x10) = 16. So you can log 2^16 = 65535 hours of tests (21 displayed) before it wraps.

Taken from the smartctl man pages:
"selftest - [ATA] prints the SMART self-test log. The disk maintains a self-test log showing the results of the self tests, which can be run using the '-t' option described below. For each of the most recent twenty-one self-tests, the log shows the type of test (short or extended, off-line or captive) and the final status of the test. If the test did not complete successfully, then the percentage of the test remaining is shown. The time at which the test took place, measured in hours of disk lifetime, is also printed. [Note: this time stamp wraps after 2^16 hours, or 2730 days and 16 hours, or about 7.5 years.] If any errors were detected, the Logical Block Address (LBA) of the first error is printed in decimal notation."

The power-on hours hexadecimal varies but is generally (0x0012) = 18 therefor would store 2^18 = 262,144 hours of operation. So the behavior isn't necessarily a bug, but a limitation of some firmwares. Some smart reports have demonstrated even shorter wrap periods (little as 49 days) while others are longer than 65535. So perhaps it varies by manufacturer/version or even by custom firmware implementations.

Edit: Here is an example of Apple SSD custom firmware wrapping after ~49d:17hr:2min (2^32 milliseconds)

Code:
/dev/disk0
smartctl 7.1 2019-12-30 r5022 [Darwin 18.7.0 x86_64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Apple SD/SM/TS...E/F/G SSDs
Device Model:     APPLE SSD SM1024F
Firmware Version: UXM8JA1Q
User Capacity:    1,000,555,581,440 bytes [1.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    Solid State Device
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4c
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Nov  7 15:18:13 2020 EST
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:        (    0) seconds.
Offline data collection
capabilities:            (0x5f) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Abort Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    No 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:    (  10) minutes.

SMART Attributes Data Structure revision number: 40
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x001a   200   200   000    Old_age   Always       -       0
  5 Reallocated_Sector_Ct   0x0033   100   100   000    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   093   093   000    Old_age   Always       -       33168
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       876
169 Unknown_Apple_Attrib    0x0013   253   253   010    Pre-fail  Always       -       7105251654656
173 Wear_Leveling_Count     0x0032   190   190   100    Old_age   Always       -       30084956220
174 Host_Reads_MiB          0x0022   099   099   000    Old_age   Always       -       77353745
175 Host_Writes_MiB         0x0022   099   099   000    Old_age   Always       -       58090980
192 Power-Off_Retract_Count 0x0012   099   099   000    Old_age   Always       -       202
194 Temperature_Celsius     0x0022   053   053   000    Old_age   Always       -       47 (Min/Max 23/72)
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
199 UDMA_CRC_Error_Count    0x001a   200   200   000    Old_age   Always       -       0
240 Unknown_SSD_Attribute   0x0022   100   100   000    Old_age   Always       -       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%       110         -
# 2  Short offline       Completed without error       00%        86         -
# 3  Short offline       Completed without error       00%        62         -
# 4  Short offline       Completed without error       00%        38         -
# 5  Short offline       Completed without error       00%        14         -
# 6  Short offline       Completed without error       00%      1166         -
# 7  Short offline       Completed without error       00%      1142         -
# 8  Short offline       Completed without error       00%      1117         -
# 9  Short offline       Completed without error       00%      1093         -
#10  Short offline       Completed without error       00%      1069         -
#11  Short offline       Completed without error       00%      1045         -
#12  Short offline       Completed without error       00%      1021         -
#13  Short offline       Completed without error       00%       997         -
#14  Short offline       Completed without error       00%       973         -
#15  Short offline       Completed without error       00%       949         -
#16  Short offline       Completed without error       00%       925         -
#17  Short offline       Completed without error       00%       901         -
#18  Extended offline    Completed without error       00%       897         -
#19  Short offline       Completed without error       00%       877         -
#20  Short offline       Completed without error       00%       853         -
#21  Short offline       Completed without error       00%       829         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
 
Last edited:

freenas-supero

Contributor
Joined
Jul 27, 2014
Messages
128
Thats real interesting..... Thanks guys for these findings and explanations. Its like a car's odometer that goes back to "zero" after 999,999km ;)

So I take that it is only a time reporting limitation in the drive's firmware and that does NOT detrimentally affect the results of the short & long tests? In other words, if the results of a long test would show that no problems were detected, I could take these results as good even if the time stamp is wrong... ??

EDIT: I just looked at da1 (an older drive also), and the wrapping idea seems to be right:
Code:
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%      1185         -
# 2  Short offline       Completed without error       00%      1161         -
# 3  Short offline       Completed without error       00%       841         -
# 4  Extended offline    Completed without error       00%       724         -
# 5  Short offline       Completed without error       00%       505         -
# 6  Extended offline    Completed without error       00%       389         -
# 7  Short offline       Completed without error       00%       125         -
# 8  Extended offline    Completed without error       00%         8         -
# 9  Short offline       Completed without error       00%     65325         -
#10  Extended offline    Completed without error       00%     65209         -
#11  Short offline       Completed without error       00%     64918         -
#12  Extended offline    Completed without error       00%     64801         -
#13  Short offline       Completed without error       00%     64583         -
#14  Short offline       Completed without error       00%     64288         -
#15  Extended offline    Completed without error       00%     64172         -
#16  Short offline       Completed without error       00%     63952         -
#17  Extended offline    Completed without error       00%     63840         -
#18  Short offline       Completed without error       00%     63549         -
#19  Extended offline    Completed without error       00%     63432         -
#20  Short offline       Completed without error       00%     63214         -
#21  Extended offline    Completed without error       00%     63097         -
 
Last edited:

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
So I take that it is only a time reporting limitation in the drive's firmware and that does NOT detrimentally affect the results of the short & long tests? In other words, if the results of a long test would show that no problems were detected, I could take these results as good even if the time stamp is wrong... ??
Yes, that's correct.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
I see it now and I agree that the time stamp does change but does not reflect the actual time the test was accomplished. I am curious what is displayed if you run smartctl -x /dev/da0 which is using the "x" parameter vice the "a" parameter. Probably say the same thing but just curious.

Also, you could modify the script reporting your SMART results to adjust for the discrepancy in the time stamp, should be fairly easy.
 
Top