Long (extended) offline self test failed [unsupported field in scsi command]

David Henrickson

Explorer
Joined
Jul 26, 2017
Messages
93
I can run a short SMART test just fine, however, I do get the error when trying to run a long one via the gui. I can type in "smartctl -a /dev/da0" for all 8 disks and get a return INSTANTLY....but it doesn't actually do the test. What is the issue here? I have seen other forums post this, but came to find out they were SSD's....I dont have SSd's. These are rotational drives. I have listed what "smartctl -a /dev/de0" shows below. I am now running on a MBD-X11SPM-TF motherboard with a Gold 5215 CPU and 320Gb RAM on TrueNAS 13.0 Core.

Warning: the supported mechanisms for making configuration changes
are the TrueNAS WebUI and API exclusively. ALL OTHERS ARE
NOT SUPPORTED AND WILL RESULT IN UNDEFINED BEHAVIOR AND MAY
RESULT IN SYSTEM FAILURE.

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

=== START OF INFORMATION SECTION ===
Vendor: HITACHI
Product: H0H72121CLAR12T0
Revision: Q3D0
Compliance: SPC-4
User Capacity: 12,000,138,625,024 bytes [12.0 TB]
Logical block size: 4096 bytes
LU is fully provisioned
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Logical Unit id: 0x5000cca25319a7fc
Serial number: 8DGG3DRH
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Thu Nov 2 12:10:43 2023 PDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Disabled or Not Supported

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Grown defects during certification = 0
Total blocks reassigned during format = 0
Total new blocks reassigned = 0
Power on minutes since format = 29216
Current Drive Temperature: 37 C
Drive Trip Temperature: 60 C

Accumulated power on time, hours:minutes 26608:38
Manufactured in week 49 of year 2017
Specified cycle count over device lifetime: 50000
Accumulated start-stop cycles: 112
Specified load-unload count over device lifetime: 600000
Accumulated load-unload cycles: 774
Elements in grown defect list: 0

Vendor (Seagate Cache) information
Blocks sent to initiator = 12153047899701248

Error counter log:
Errors Corrected by Total Correction Gigabytes Total
ECC rereads/ errors algorithm processed uncorrected
fast | delayed rewrites corrected invocations [10^9 bytes] errors
read: 0 5 0 5 3227312 397176.690 0
write: 0 291 0 291 603463 467221.564 0
verify: 0 13 0 13 10348 80708.573 0

Non-medium error count: 0

SMART Self-test log
Num Test Status segment LifeTime LBA_first_err [SK ASC ASQ]
Description number (hours)
# 1 Background short Completed - 26583 - [- - -]
# 2 Background short Completed - 25277 - [- - -]
# 3 Background short Completed - 23813 - [- - -]
# 4 Background short Completed - 22349 - [- - -]
# 5 Background short Completed - 20885 - [- - -]
# 6 Background short Completed - 19421 - [- - -]
# 7 Background short Completed - 17957 - [- - -]
# 8 Background short Completed - 16494 - [- - -]
# 9 Background short Completed - 15030 - [- - -]
#10 Background short Completed - 12486 - [- - -]
#11 Background short Completed - 11022 - [- - -]
#12 Background short Completed - 9581 - [- - -]
#13 Background short Completed - 8141 - [- - -]
#14 Background short Completed - 6701 - [- - -]
#15 Background short Completed - 5261 - [- - -]
#16 Background short Completed - 3821 - [- - -]
#17 Reserved(3) Completed - 2359 - [- - -]
#18 Reserved(3) Completed - 2359 - [- - -]
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
You need to run

smartctl -t long /dev/da0 to run a long test. -a just gives you results
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
You definitely do not have routine SMART tests setup. I recommend a daily SMART Short test and a once a week SMART Long test if that is reasonable for you.
 

David Henrickson

Explorer
Joined
Jul 26, 2017
Messages
93
You definitely do not have routine SMART tests setup. I recommend a daily SMART Short test and a once a week SMART Long test if that is reasonable for you.
I plan on doing the setup for the SMART tests that way, as I have that setup for my home labs, however, it still will not let me do a manual or set LONG test. That is the issue here. Still says unsupported field in iscsi command if done in shell or done by GUI
 

David Henrickson

Explorer
Joined
Jul 26, 2017
Messages
93
You need to run

smartctl -t long /dev/da0 to run a long test. -a just gives you results
I still get the same error doing it through Shell with this. States unsupported field in iSCSI command
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
Are you virtualizing? How are the drives connected to the motherboard?

Iirc it's a drives' firmware bug, and you possibily need to update it.
 
Last edited:

David Henrickson

Explorer
Joined
Jul 26, 2017
Messages
93
Currently, they are in a NODE 804 case with (8) hard drives just directly connected to the 9300-8i LSI card. No virtualizing....I know the rules. haha
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Try this command and post here the exact output so we can see.
smartctl -r ioctl -t long /dev/da0

Also, what firmware is on your 9300-8i LSI card? Please note that I'm not the guru on LSI cards, if the firmware is not correct, this could be causing issues.
 

oldhome7

Cadet
Joined
Nov 4, 2023
Messages
6
I'm having this same issue and this is the output I get
Code:
smartctl 7.2 2021-09-14 r5236 [FreeBSD 13.1-RELEASE-p7 amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

 [inquiry: 12 00 00 00 24 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  status=0x0
 [inquiry: 12 01 00 00 fc 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0xe6
  status=0x0
 [inquiry: 12 00 00 00 24 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  status=0x0
 [request sense: 03 00 00 00 12 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  status=0x0
 [send diagnostic: 1d 40 00 00 00 00 ]
  CAM status=0x8c, SCSI status=0x2, resid=0x0
  sense_len=0x20, sense_resid=0x0
  status=0x2: [desc] sense_key=0x5 asc=0x24 ascq=0x0
Long (extended) offline self test failed [unsupported field in scsi command]


The pool is 8x 8TB HGST drives
Code:
=== START OF INFORMATION SECTION ===
Vendor:               HITACHI
Product:              HUH72808CLAR8000
Revision:             M7K0
Compliance:           SPC-4
User Capacity:        8,001,563,222,016 bytes [8.00 TB]
Logical block size:   4096 bytes
LU is fully provisioned
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
Logical Unit id:      0x5000cca261035e30
Serial number:        VJG1VE0X
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Sat Nov  4 16:44:16 2023 CDT
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Disabled or Not Supported


The controller is a 9217-4i4e crossflashed to 9207-4i4e with these drives attached to the external port.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
The controller is a 9217-4i4e crossflashed to 9207-4i4e with these drives attached to the external port.
Please list the exact firmware version information. I still suspect the card does not have the correct firmware on it.
See this posting, it may help you understand what we are discussing. And again, I'm not the LSI guru so I'm uncomfortable telling you what to do to fix the problem. But first generate the output like the link has of your controller, I still suspect it is the issue.

 

oldhome7

Cadet
Joined
Nov 4, 2023
Messages
6
Code:
        Adapter Selected is a LSI SAS: SAS2308_2(D1)
 
Num   Ctlr            FW Ver        NVDATA        x86-BI
       PCI Addr
--------------------------------------------------------
----------------
 
0  SAS2308_2(D1)   20.00.07.00    14.01.00.06    07.39.0
     00:01:00:00
 
        Finished Processing Commands Successfully.
        Exiting SAS2Flash.
 

oldhome7

Cadet
Joined
Nov 4, 2023
Messages
6
I see my copy and paste didn't quite grab everything, disadvantage of trying it on the phone. That should say x86-BIOS and 07.39.02.00. The rest looks okay.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
How do we know it's in IT Mode?
 

oldhome7

Cadet
Joined
Nov 4, 2023
Messages
6
Code:
      Adapter Selected is a LSI SAS: SAS2308_2(D1)
 
      Controller Number              : 0
      Controller                     : SAS2308_2(D1)
      PCI Address                    : 00:01:00:00
      SAS Address                    : 500605b-0-0b4a-a160
      NVDATA Version (Default)       : 14.01.00.06
      NVDATA Version (Persistent)    : 14.01.00.06
      Firmware Product ID            : 0x2214 (IT)
      Firmware Version               : 20.00.07.00
      NVDATA Vendor                  : LSI
      NVDATA Product ID              : SAS9207-4i4e
      BIOS Version                   : 07.39.02.00
      UEFI BSD Version               : N/A
      FCODE Version                  : N/A
      Board Name                     : SAS9217-4i4e
      Board Assembly                 : 03-25597-01B
      Board Tracer Number            : SV54564825
 
      Finished Processing Commands Successfully.
      Exiting SAS2Flash.


I did the flash myself, on a batch of these actually, and verified after I had done it.
 

David Henrickson

Explorer
Joined
Jul 26, 2017
Messages
93
Try this command and post here the exact output so we can see.
smartctl -r ioctl -t long /dev/da0

Also, what firmware is on your 9300-8i LSI card? Please note that I'm not the guru on LSI cards, if the firmware is not correct, this could be causing issues.
Hello.....looks like someone else tried to hijack this post.....anyway, here you go!

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

[inquiry: 12 00 00 00 24 00 ]
CAM status=0x1, SCSI status=0x0, resid=0x0
status=0x0
[inquiry: 12 01 00 00 fc 00 ]
CAM status=0x1, SCSI status=0x0, resid=0xe6
status=0x0
[inquiry: 12 00 00 00 24 00 ]
CAM status=0x1, SCSI status=0x0, resid=0x0
status=0x0
[request sense: 03 00 00 00 12 00 ]
CAM status=0x1, SCSI status=0x0, resid=0x0
status=0x0
[send diagnostic: 1d 40 00 00 00 00 ]
CAM status=0x8c, SCSI status=0x2, resid=0x0
sense_len=0x20, sense_resid=0x0
status=0x2: [desc] sense_key=0x5 asc=0x24 ascq=0x0
Long (extended) offline self test failed [unsupported field in scsi command]
root@truenas[~]#
 

David Henrickson

Explorer
Joined
Jul 26, 2017
Messages
93
Try this command and post here the exact output so we can see.
smartctl -r ioctl -t long /dev/da0

Also, what firmware is on your 9300-8i LSI card? Please note that I'm not the guru on LSI cards, if the firmware is not correct, this could be causing issues.

Also...here is my raid card information, as I see that was down the thread a little further for the other individual that joined this. Thank you!

its a LSI 9300-8i fully updated.

root@truenas[~]# sas3flash -list
Avago Technologies SAS3 Flash Utility
Version 16.00.00.00 (2017.05.02)
Copyright 2008-2017 Avago Technologies. All rights reserved.

Adapter Selected is a Avago SAS: SAS3008(C0)

Controller Number : 0
Controller : SAS3008(C0)
PCI Address : 00:b6:00:00
SAS Address : 5003048-0-1a6f-b201
NVDATA Version (Default) : 0e.01.00.07
NVDATA Version (Persistent) : 0e.01.00.07
Firmware Product ID : 0x2221 (IT)
Firmware Version : 16.00.01.00
NVDATA Vendor : LSI
NVDATA Product ID : SAS9300-8i
BIOS Version : 08.37.00.00
UEFI BSD Version : 18.00.00.00
FCODE Version : N/A
Board Name : LSI3008-IT
Board Assembly : N/A
Board Tracer Number : N/A

Finished Processing Commands Successfully.
Exiting SAS3Flash.
root@truenas[~]#
 

oldhome7

Cadet
Joined
Nov 4, 2023
Messages
6
Sorry for the hijacking, but it does seem that our ioctl outputs are the same so maybe it's the same issue and we can get this sorted together?
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
So I will say this again, I don't have the required knowledge to help out in this situation. Hopefully someone else will come to the rescue.
 

oldhome7

Cadet
Joined
Nov 4, 2023
Messages
6
Maybe there's enough info in here for somebody to help. Clearly it's not card specific as I'm using a SAS2308 and David has a SAS3008.
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222
Iirc it's a drives' firmware bug, and you possibily need to update it.
It's not an issue related to the HBAs. I recall quite a few threads about HGST drives having this issue. @isopropyl knows, it's a big PIAS.

 
Last edited:
Top