SMART test configuration - boot survival?

To configure SMART tests I grouped drives following my pool setup. Whatever the rational for choosing which drives to be tested the basic idea is to know what drives in what pool are being tested.

The configuration in Truenas Scale follows sda, sdb, sd"X" However, my understanding (I may be naive here) is that the assignment of letters “sd"X”" can change through boots, particularly if disks are added. If this happens then I do not know where the disks, being tested by SMART, actually sit in my pool setup.

Is this a concern? Am I on the wrong track in someway here?

Thanks!

That is true, the drive ID’s can change. Which ever drive is recognized first gets sda, second is sdb, and to on.

If you are using the TrueNAS GUI to assign specific drives (sda, sdb) and he values do change, they you are in the situation in which you described. And yes, it is possible to miss a drive being tested, or not in the order you desire.

Is this a deal breaker for you? I don’t know.

Shameless plug time: I created the original and now maintain a version of a SMART test monitor. This set of scripts also automatically test all the drives in a given period of time (week or month). Check out the link in my signature.

If you prefer to not use that, feel free to ask and we will give you sound advice.

2 Likes

Nothing like a reply from a TrueNas Guru!

Your script is already alive and (hopefully - if I’ve got the config right) working on my server. The disk check is confined to NVMEs whilst the reporting should be accross all disks. So I may be back as I try to tune that up.

I guess, with SMART the main idea is just to make sure all the disks (you want) are regularly getting tested? The main issue in this case, is scheduling to keep other disk activity (e.g., Scrubs) away from smart test times.

I know the topic of smart schedules have been beaten around, but what is your thinking – should I be doing long tests twice or once a month?

Thanks for all the work on the scripts. I appreciate the detail over the pass/fail in the GUI.

As anticipated, I’m back to interpret the report and because of an error.

The smart test report shows some lines with orange marking and others without. I’m not sure of the significance here. Also a blank for the last test age does that mean less than a day?

In another case there is not test report (right side). Is this disk getting overlooked?
spinning_rust_interpret_2

I think these relate to (my) interpretation and potentially adjusting some settings.

However, perhaps more problematically, it seems the nvme (4) are getting overlooked since I’m getting a mail with these errors:

NVMe status: Invalid Log Page: The log page indicated is invalid(0x2109)
NVMe status: Invalid Log Page: The log page indicated is invalid(0x2109)
NVMe status: Invalid Log Page: The log page indicated is invalid(0x2109)
NVMe status: Invalid Log Page: The log page indicated is invalid(0x2109)
NVMe status: Invalid Log Page: The log page indicated is invalid(0x2109)
type or paste code here

The start of the report starts with:

Multi-Report v3.0.7 dtd:2024-06-08 (TrueNAS Scale 24.04.2.3)
Report Run 15-Apr-2025 Tuesday @ 03:00:05
Execution Time: 4 Minutes : 15 Seconds
UPDATE AVAILABLE --> multi

I’m not sure what teh update is!

Thanks for any advice

Hi - I’m a bit stuck here! I’ve an orange column. I am not quite sure of the significance of this either.
Any inputs?

Can you post the output of smartctl -a /dev/sdw

Thanks.

root@truenas[~]# smartctl -a /dev/sdw
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.32-production+truenas] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model: ST4000NT001-3M2101
Serial Number: WX113EKS
LU WWN Device Id: 5 000c50 0e8dd30d0
Firmware Version: EN01
User Capacity: 4,000,787,030,016 bytes [4.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: Not in smartctl database 7.3/5528
ATA Version is: ACS-4 (minor revision not indicated)
SATA Version is: SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Thu May 15 17:19:32 2025 CST
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: (0x82) Offline data collection activity
was completed without error.
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: ( 559) 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: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 355) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x50bd) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.

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 081 064 044 Pre-fail Always - 129981384
3 Spin_Up_Time 0x0003 092 092 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 32
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 081 060 045 Pre-fail Always - 113143286
9 Power_On_Hours 0x0032 095 095 000 Old_age Always - 4592
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 32
18 Unknown_Attribute 0x000b 100 100 050 Pre-fail Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 063 055 000 Old_age Always - 37 (Min/Max 25/41)
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 11
193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 1228
194 Temperature_Celsius 0x0022 037 045 000 Old_age Always - 37 (0 25 0 0 0)
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 100 000 Old_age Offline - 4310 (158 229 0)
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 14539935296
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 5124005046

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 Extended offline Completed without error 00% 4439 -

2 Extended offline Completed without error 00% 4055 -

3 Extended offline Completed without error 00% 3719 -

4 Extended offline Completed without error 00% 3311 -

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.

The above only provides legacy SMART information - try ‘smartctl -x’ for more

I can’t see anything wrong with that drive at a glance.

Whats the column name for the value you have highlighted in orange?

@James_O_Stanworth did you read the user guide?

I’m askjng a serious question because if it isn’t clear, then I’d appreciate feedback.

The nvme errors has nothing to do with multireport, this is a smartmontools issue which has been fixed in the next version. You can ignore those errors. What are they you ask? Smartmontools is issuing a command that is not recognized by the drive. There is nothing wrong with that nvme drive.

Drive sdg indicates you are rarely running SMART tests on it, hence 220 day ago. If that is not true, provide a smartctl -x /dev/sdg so we can see the testing results.

At the front of the Text Section you will see a list of errors and these are very specific. I don’t know why people do not look there, what can I do to make it better?

I’m on vacation so I will not respond in a timely manner.

Thanks for the reply. Sorry to cut into your vacation time.

Yes - when I was preparing the script. I understand the question. I don’t like wasting people’s time. So I do try and look for similar cases / guides prior to posting. So let’s see what has gone wrong (at least for me).

One reason for using the script you developed was to test the NVMEs. Did I miss something in the guide about this error?

How do I know there is nothing wrong with the drive? :slight_smile: Surely that is the point of testing - but with the newer version of Smartmontools?

So a small suggestion - Is it easy to give a link to the guides in the reporting email? (perhaps the last line "Support to interpret the results is found here: ) For us guys stupid enough to lose track of it.

Revisiting the guide I cannot find what an orange in the first column means. I assume it is to do with test age?

I’m sorry - I’m not meaning to be an *hole here - but “the front of the Text Section” Where is this? I’ve looked in the -mail report. I’ve looked in the and I’m not seeing an obvious place to find this.

The smartctl shows:

root@truenas[~]# smartctl -x /dev/sdg
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.32-production+truenas] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Red
Device Model:     WDC WD30EFRX-68EUZN0
Serial Number:    WD-WCC4N5NYXK1S
LU WWN Device Id: 5 0014ee 266452fc7
Firmware Version: 82.00A82
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 7.3/5528
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:    Wed May 21 11:09:03 2025 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Unavailable
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, NOT FROZEN [SEC1]
Wt Cache Reorder: 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:                (40980) 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:        ( 411) 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          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     POSR-K   200   200   051    -    0
  3 Spin_Up_Time            POS--K   189   179   021    -    5508
  4 Start_Stop_Count        -O--CK   100   100   000    -    78
  5 Reallocated_Sector_Ct   PO--CK   200   200   140    -    0
  7 Seek_Error_Rate         -OSR-K   200   200   000    -    0
  9 Power_On_Hours          -O--CK   060   059   000    -    29624
 10 Spin_Retry_Count        -O--CK   100   253   000    -    0
 11 Calibration_Retry_Count -O--CK   100   253   000    -    0
 12 Power_Cycle_Count       -O--CK   100   100   000    -    78
192 Power-Off_Retract_Count -O--CK   200   200   000    -    50
193 Load_Cycle_Count        -O--CK   184   184   000    -    48231
194 Temperature_Celsius     -O---K   118   094   000    -    32
196 Reallocated_Event_Count -O--CK   200   200   000    -    0
197 Current_Pending_Sector  -O--CK   200   200   000    -    0
198 Offline_Uncorrectable   ----CK   100   253   000    -    0
199 UDMA_CRC_Error_Count    -O--CK   200   200   000    -    0
200 Multi_Zone_Error_Rate   ---R--   200   200   000    -    0
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

General Purpose Log Directory Version 1
SMART           Log Directory Version 1 [multi-sector log support]
Address    Access  R/W   Size  Description
0x00       GPL,SL  R/O      1  Log Directory
0x01           SL  R/O      1  Summary SMART error log
0x02           SL  R/O      5  Comprehensive SMART error log
0x03       GPL     R/O      6  Ext. Comprehensive SMART error log
0x04       GPL,SL  R/O      8  Device Statistics log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x09           SL  R/W      1  Selective self-test log
0x0c       GPL     R/O   2048  Pending Defects log
0x10       GPL     R/O      1  NCQ Command Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x21       GPL     R/O      1  Write stream error log
0x22       GPL     R/O      1  Read stream error log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xa0-0xa7  GPL,SL  VS      16  Device vendor specific log
0xa8-0xb7  GPL,SL  VS       1  Device vendor specific log
0xbd       GPL,SL  VS       1  Device vendor specific log
0xc0       GPL,SL  VS       1  Device vendor specific log
0xc1       GPL     VS      93  Device vendor specific log
0xe0       GPL,SL  R/W      1  SCT Command/Status
0xe1       GPL,SL  R/W      1  SCT Data Transfer

SMART Extended Comprehensive Error Log Version: 1 (6 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%       220         -
# 2  Extended offline    Completed without error       00%        84         -
# 3  Short offline       Completed without error       00%        18         -
# 4  Extended offline    Completed without error       00%        15         -
# 5  Conveyance offline  Completed without error       00%         7         -
# 6  Short offline       Completed without error       00%         2         -

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.

SCT Status Version:                  3
SCT Version (vendor specific):       258 (0x0102)
Device State:                        Active (0)
Current Temperature:                    32 Celsius
Power Cycle Min/Max Temperature:     25/37 Celsius
Lifetime    Min/Max Temperature:      2/56 Celsius
Under/Over Temperature Limit Count:   0/0
Vendor specific:
01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

SCT Temperature History Version:     2
Temperature Sampling Period:         1 minute
Temperature Logging Interval:        1 minute
Min/Max recommended Temperature:      0/60 Celsius
Min/Max Temperature Limit:           -41/85 Celsius
Temperature History Size (Index):    478 (136)

Index    Estimated Time   Temperature Celsius
 137    2025-05-21 03:12    32  *************
 ...    ..(476 skipped).    ..  *************
 136    2025-05-21 11:09    32  *************

SCT Error Recovery Control:
           Read:     70 (7.0 seconds)
          Write:     70 (7.0 seconds)

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 2) ==
0x01  0x008  4              78  ---  Lifetime Power-On Resets
0x01  0x010  4           29624  ---  Power-on Hours
0x01  0x018  6    373077997080  ---  Logical Sectors Written
0x01  0x020  6       393317830  ---  Number of Write Commands
0x01  0x028  6    289619352011  ---  Logical Sectors Read
0x01  0x030  6     29489064143  ---  Number of Read Commands
0x03  =====  =               =  ===  == Rotating Media Statistics (rev 1) ==
0x03  0x008  4           48634  ---  Spindle Motor Power-on Hours
0x03  0x010  4            7177  ---  Head Flying Hours
0x03  0x018  4           48282  ---  Head Load Events
0x03  0x020  4               0  ---  Number of Reallocated Logical Sectors
0x03  0x028  4               1  ---  Read Recovery Attempts
0x03  0x030  4               0  ---  Number of Mechanical Start Failures
0x04  =====  =               =  ===  == General Errors Statistics (rev 1) ==
0x04  0x008  4               0  ---  Number of Reported Uncorrectable Errors
0x04  0x010  4               0  ---  Resets Between Cmd Acceptance and Completion
0x05  =====  =               =  ===  == Temperature Statistics (rev 1) ==
0x05  0x008  1              31  ---  Current Temperature
0x05  0x010  1              31  ---  Average Short Term Temperature
0x05  0x018  1              30  ---  Average Long Term Temperature
0x05  0x020  1              55  ---  Highest Temperature
0x05  0x028  1              25  ---  Lowest Temperature
0x05  0x030  1              52  ---  Highest Average Short Term Temperature
0x05  0x038  1              27  ---  Lowest Average Short Term Temperature
0x05  0x040  1              46  ---  Highest Average Long Term Temperature
0x05  0x048  1              29  ---  Lowest Average Long Term Temperature
0x05  0x050  4               0  ---  Time in Over-Temperature
0x05  0x058  1              60  ---  Specified Maximum Operating Temperature
0x05  0x060  4               0  ---  Time in Under-Temperature
0x05  0x068  1               0  ---  Specified Minimum Operating Temperature
0x06  =====  =               =  ===  == Transport Statistics (rev 1) ==
0x06  0x008  4             338  ---  Number of Hardware Resets
0x06  0x010  4         1833838  ---  Number of ASR Events
0x06  0x018  4               0  ---  Number of Interface CRC Errors
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

Pending Defects log (GP Log 0x0c)
No Defects Logged

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  2            0  Command failed due to ICRC error
0x0002  2            0  R_ERR response for data FIS
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device data FIS
0x0005  2            0  R_ERR response for non-data FIS
0x0006  2            0  R_ERR response for device-to-host non-data FIS
0x0007  2            0  R_ERR response for host-to-device non-data FIS
0x0008  2            0  Device-to-host non-data FIS retries
0x0009  2            0  Transition from drive PhyRdy to drive PhyNRdy
0x000a  2            1  Device-to-host register FISes sent due to a COMRESET
0x000b  2            0  CRC errors within host-to-device FIS
0x000f  2            0  R_ERR response for host-to-device data FIS, CRC
0x0012  2            0  R_ERR response for host-to-device non-data FIS, CRC
0x8000  4      5924503  Vendor specific

You are correct, this is not covered in the user guide, but that is because it is a smartmontools issue. The reference for the error message can be found in the NVMe Specifications document at nvmexpress.org site. Also, the smartmontools issues lists it as well and it has been fixed in version 7.5 (not yet released).

Basically this error can be ignored and is generated by smartd, so I don’t have access to this error when it occurs. Also, most NVMe drives which have this error, will generate thousands of errors over time. I don’t like it but the NVMe will retain the logging of these errors. If I could clear them…

Which guides? Multi-Report user guide is on the directory of the script. As for decrypting of what error messages mean, there are a lot of different recourses out there and I look at a lot of them when someone has an issue and I am not familiar with it.

In the Quick Start Guide, slide 5. This is a PDF. I have also included this into the Multi-Report User Guide as well on page 12.

No problem… The Text Section is directly after the Chart Sections. Unfortunately I do not have an example showing an error message so I will include one in the next guide update (coming out soon), but you have two logs, a Warning Log and Critical Log. These will show up directly before the Zpool Status report.

As for sdg and the SMART testing error message, Your text output would have told you that you were 1238 days (~29712 hours) expired. In your smartctl output that is noted by two pieces of data, 1) Power On Hours = 29624, 2) #1 Extended offline … Lifetime hours=220 which is the last time you did a SMART test on this drive. A very long time ago.

Hopefully this answers everything and if I didn’t, please say so. It is a lot to answer on a smartphone.