TrueNAS Core: Can't execute SMART check "Not capable of smart self check" resulting in BUG

root@truenas[~]# smartctl -x /dev/da7
smartctl 7.2 2021-09-14 r5236 [FreeBSD 13.1-RELEASE-p9 amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     ST4000VN006-3CW104
Serial Number:    ZW60REWA
LU WWN Device Id: 5 000c50 0e6e66c29
Firmware Version: SC60
User Capacity:    4,000,787,030,016 bytes [4.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Apr  9 22:06:35 2024 CEST
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:                (    0) seconds.
Offline data collection
capabilities:                    (0x73) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        No 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:        ( 456) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x70bd) 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          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     POSR--   075   064   006    -    28424534
  3 Spin_Up_Time            PO----   096   096   000    -    0
  4 Start_Stop_Count        -O--CK   100   100   020    -    179
  5 Reallocated_Sector_Ct   PO--CK   100   100   010    -    0
  7 Seek_Error_Rate         POSR--   068   060   045    -    6624357
  9 Power_On_Hours          -O--CK   098   098   000    -    2194
 10 Spin_Retry_Count        PO--C-   100   100   097    -    0
 12 Power_Cycle_Count       -O--CK   100   100   020    -    179
183 Runtime_Bad_Block       -O--CK   100   100   000    -    0
184 End-to-End_Error        -O--CK   100   100   099    -    0
187 Reported_Uncorrect      -O--CK   100   100   000    -    0
188 Command_Timeout         -O--CK   100   001   000    -    4295042434
189 High_Fly_Writes         -O-RCK   100   100   000    -    0
190 Airflow_Temperature_Cel -O---K   060   053   040    -    40 (Min/Max 40/44)
191 G-Sense_Error_Rate      -O--CK   100   100   000    -    0
192 Power-Off_Retract_Count -O--CK   100   100   000    -    158
193 Load_Cycle_Count        -O--CK   100   100   000    -    271
194 Temperature_Celsius     -O---K   040   047   000    -    40 (0 25 0 0 0)
195 Hardware_ECC_Recovered  -O-RC-   075   064   000    -    28424534
197 Current_Pending_Sector  -O--C-   100   100   000    -    0
198 Offline_Uncorrectable   ----C-   100   100   000    -    0
199 UDMA_CRC_Error_Count    -OSRCK   200   200   000    -    0
240 Head_Flying_Hours       ------   100   253   000    -    1144 (126 110 0)
241 Total_LBAs_Written      ------   100   253   000    -    4634216888
242 Total_LBAs_Read         ------   100   253   000    -    2547547416
                            ||||||_ 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      5  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
0x08       GPL     R/O      2  Power Conditions 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
0x24       GPL     R/O    512  Current Device Internal Status Data log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xa1       GPL,SL  VS      24  Device vendor specific log
0xa2       GPL     VS    8160  Device vendor specific log
0xa6       GPL     VS     192  Device vendor specific log
0xa8-0xa9  GPL,SL  VS     136  Device vendor specific log
0xab       GPL     VS       1  Device vendor specific log
0xb0       GPL     VS    9048  Device vendor specific log
0xbe-0xbf  GPL     VS   65535  Device vendor specific log
0xc0       GPL,SL  VS       1  Device vendor specific log
0xc1       GPL,SL  VS      16  Device vendor specific log
0xc3       GPL,SL  VS       8  Device vendor specific log
0xc4       GPL,SL  VS      24  Device vendor specific log
0xd1       GPL     VS     264  Device vendor specific log
0xd3       GPL     VS    1920  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 (5 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%      2188         -
# 2  Extended offline    Interrupted (host reset)      00%      2180         -
# 3  Short offline       Completed without error       00%      2178         -

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):       522 (0x020a)
Device State:                        Active (0)
Current Temperature:                    40 Celsius
Power Cycle Min/Max Temperature:     40/44 Celsius
Lifetime    Min/Max Temperature:     25/47 Celsius
Under/Over Temperature Limit Count:   0/0

SCT Temperature History Version:     2
Temperature Sampling Period:         3 minutes
Temperature Logging Interval:        94 minutes
Min/Max recommended Temperature:      1/61 Celsius
Min/Max Temperature Limit:            2/60 Celsius
Temperature History Size (Index):    128 (42)

Index    Estimated Time   Temperature Celsius
  43    2024-04-01 15:08     ?  -
  44    2024-04-01 16:42    34  ***************
  45    2024-04-01 18:16     ?  -
  46    2024-04-01 19:50    36  *****************
  47    2024-04-01 21:24     ?  -
  48    2024-04-01 22:58    37  ******************
  49    2024-04-02 00:32     ?  -
  50    2024-04-02 02:06    43  ************************
  51    2024-04-02 03:40     ?  -
  52    2024-04-02 05:14    43  ************************
  53    2024-04-02 06:48     ?  -
  54    2024-04-02 08:22    25  ******
  55    2024-04-02 09:56     ?  -
  56    2024-04-02 11:30    25  ******
  57    2024-04-02 13:04     ?  -
  58    2024-04-02 14:38    25  ******
  59    2024-04-02 16:12     ?  -
  60    2024-04-02 17:46    35  ****************
  61    2024-04-02 19:20     ?  -
  62    2024-04-02 20:54    38  *******************
  63    2024-04-02 22:28     ?  -
  64    2024-04-03 00:02    38  *******************
  65    2024-04-03 01:36     ?  -
  66    2024-04-03 03:10    38  *******************
  67    2024-04-03 04:44     ?  -
  68    2024-04-03 06:18    38  *******************
  69    2024-04-03 07:52     ?  -
  70    2024-04-03 09:26    38  *******************
  71    2024-04-03 11:00     ?  -
  72    2024-04-03 12:34    34  ***************
  73    2024-04-03 14:08     ?  -
  74    2024-04-03 15:42    38  *******************
  75    2024-04-03 17:16     ?  -
  76    2024-04-03 18:50    38  *******************
  77    2024-04-03 20:24     ?  -
  78    2024-04-03 21:58    36  *****************
  79    2024-04-03 23:32     ?  -
  80    2024-04-04 01:06    33  **************
  81    2024-04-04 02:40     ?  -
  82    2024-04-04 04:14    38  *******************
  83    2024-04-04 05:48     ?  -
  84    2024-04-04 07:22    28  *********
  85    2024-04-04 08:56     ?  -
  86    2024-04-04 10:30    27  ********
  87    2024-04-04 12:04     ?  -
  88    2024-04-04 13:38    27  ********
  89    2024-04-04 15:12     ?  -
  90    2024-04-04 16:46    33  **************
  91    2024-04-04 18:20     ?  -
  92    2024-04-04 19:54    33  **************
  93    2024-04-04 21:28     ?  -
  94    2024-04-04 23:02    36  *****************
  95    2024-04-05 00:36     ?  -
  96    2024-04-05 02:10    36  *****************
  97    2024-04-05 03:44     ?  -
  98    2024-04-05 05:18    36  *****************
  99    2024-04-05 06:52     ?  -
 100    2024-04-05 08:26    36  *****************
 101    2024-04-05 10:00     ?  -
 102    2024-04-05 11:34    36  *****************
 103    2024-04-05 13:08     ?  -
 104    2024-04-05 14:42    38  *******************
 105    2024-04-05 16:16     ?  -
 106    2024-04-05 17:50    39  ********************
 107    2024-04-05 19:24     ?  -
 108    2024-04-05 20:58    39  ********************
 109    2024-04-05 22:32     ?  -
 110    2024-04-06 00:06    39  ********************
 111    2024-04-06 01:40     ?  -
 112    2024-04-06 03:14    40  *********************
 113    2024-04-06 04:48     ?  -
 114    2024-04-06 06:22    38  *******************
 115    2024-04-06 07:56     ?  -
 116    2024-04-06 09:30    38  *******************
 117    2024-04-06 11:04     ?  -
 118    2024-04-06 12:38    39  ********************
 119    2024-04-06 14:12     ?  -
 120    2024-04-06 15:46    39  ********************
 121    2024-04-06 17:20     ?  -
 122    2024-04-06 18:54    39  ********************
 123    2024-04-06 20:28     ?  -
 124    2024-04-06 22:02    39  ********************
 125    2024-04-06 23:36     ?  -
 126    2024-04-07 01:10    32  *************
 127    2024-04-07 02:44    39  ********************
   0    2024-04-07 04:18    40  *********************
   1    2024-04-07 05:52    40  *********************
   2    2024-04-07 07:26    41  **********************
   3    2024-04-07 09:00    41  **********************
   4    2024-04-07 10:34    41  **********************
   5    2024-04-07 12:08    42  ***********************
 ...    ..(  2 skipped).    ..  ***********************
   8    2024-04-07 16:50    42  ***********************
   9    2024-04-07 18:24    41  **********************
 ...    ..(  4 skipped).    ..  **********************
  14    2024-04-08 02:14    41  **********************
  15    2024-04-08 03:48    40  *********************
  16    2024-04-08 05:22    39  ********************
  17    2024-04-08 06:56    39  ********************
  18    2024-04-08 08:30    40  *********************
  19    2024-04-08 10:04    40  *********************
  20    2024-04-08 11:38    41  **********************
 ...    ..(  5 skipped).    ..  **********************
  26    2024-04-08 21:02    41  **********************
  27    2024-04-08 22:36    40  *********************
  28    2024-04-09 00:10    40  *********************
  29    2024-04-09 01:44    40  *********************
  30    2024-04-09 03:18     ?  -
  31    2024-04-09 04:52    40  *********************
  32    2024-04-09 06:26    44  *************************
  33    2024-04-09 08:00     ?  -
  34    2024-04-09 09:34    43  ************************
  35    2024-04-09 11:08    44  *************************
  36    2024-04-09 12:42    44  *************************
  37    2024-04-09 14:16    43  ************************
  38    2024-04-09 15:50    43  ************************
  39    2024-04-09 17:24    42  ***********************
  40    2024-04-09 18:58    40  *********************
  41    2024-04-09 20:32    40  *********************
  42    2024-04-09 22:06    40  *********************

SCT Error Recovery Control:
           Read: Disabled
          Write: Disabled

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4             179  ---  Lifetime Power-On Resets
0x01  0x010  4            2194  ---  Power-on Hours
0x01  0x018  6      4634210296  ---  Logical Sectors Written
0x01  0x020  6        13415147  ---  Number of Write Commands
0x01  0x028  6      2549974973  ---  Logical Sectors Read
0x01  0x030  6         3930767  ---  Number of Read Commands
0x01  0x038  6               -  ---  Date and Time TimeStamp
0x03  =====  =               =  ===  == Rotating Media Statistics (rev 1) ==
0x03  0x008  4            1191  ---  Spindle Motor Power-on Hours
0x03  0x010  4            1148  ---  Head Flying Hours
0x03  0x018  4             271  ---  Head Load Events
0x03  0x020  4               0  ---  Number of Reallocated Logical Sectors
0x03  0x028  4               0  ---  Read Recovery Attempts
0x03  0x030  4               0  ---  Number of Mechanical Start Failures
0x03  0x038  4               0  ---  Number of Realloc. Candidate Logical Sectors
0x03  0x040  4             158  ---  Number of High Priority Unload Events
0x04  =====  =               =  ===  == General Errors Statistics (rev 1) ==
0x04  0x008  4               0  ---  Number of Reported Uncorrectable Errors
0x04  0x010  4            9689  ---  Resets Between Cmd Acceptance and Completion
0x05  =====  =               =  ===  == Temperature Statistics (rev 1) ==
0x05  0x008  1              40  ---  Current Temperature
0x05  0x010  1              41  ---  Average Short Term Temperature
0x05  0x018  1               -  ---  Average Long Term Temperature
0x05  0x020  1              47  ---  Highest Temperature
0x05  0x028  1              28  ---  Lowest Temperature
0x05  0x030  1              45  ---  Highest Average Short Term Temperature
0x05  0x038  1              34  ---  Lowest Average Short Term Temperature
0x05  0x040  1               -  ---  Highest Average Long Term Temperature
0x05  0x048  1               -  ---  Lowest Average Long Term Temperature
0x05  0x050  4               0  ---  Time in Over-Temperature
0x05  0x058  1              70  ---  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           79669  ---  Number of Hardware Resets
0x06  0x010  4           39596  ---  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
0x000a  2            2  Device-to-host register FISes sent due to a COMRESET
0x0001  2            0  Command failed due to ICRC error
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device 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

root@truenas[~]#