How to get smartctl-like information from HGST SAS drives (?)

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

AveryFreeman

consummate homelabber
Mar 17, 2017
413
54
28
42
Near Seattle
averyfreeman.com
Hey,

Wondering if anyone knows if there's a good way to get hard drive statistics from HGST SAS drives using mpt3sas driver. I didn't realize until recently SAS doesn't report statistics for smartmontools, so I was scanning them with smartctl trying to figure out why I couldn't get stats like on SATA drives, or even to get long tests to work in some instances (depending on which HBA I was using).

smartctl results are pretty underwhelming. Example:

Code:
# smartctl --all /dev/sda
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.8.0-43-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               HGST
Product:              H7240AS60SUN4.0T
Revision:             A2D2
Compliance:           SPC-4
User Capacity:        4,000,787,030,016 bytes [4.00 TB]
Logical block size:   512 bytes
Formatted with type 1 protection
8 bytes of protection information per logical block
LU is fully provisioned
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
Logical Unit id:      0x5000cca0731de988
Serial number:        001519EJEZ3X        PEGJEZ3X
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Wed Feb 10 10:12:54 2021 PST
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled

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

Current Drive Temperature:     31 C
Drive Trip Temperature:        85 C

Manufactured in week 19 of year 2015
Specified cycle count over device lifetime:  50000
Accumulated start-stop cycles:  24
Specified load-unload count over device lifetime:  600000
Accumulated load-unload cycles:  26
Elements in grown defect list: 0

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

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:       3023        0         0      3023         76       1518.168           0
write:         0        0         0         0       1179        193.392           0
verify:        0        0         0         0         23          0.000           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 long   Completed                   -      42                 - [-   -    -]

Long (extended) Self-test duration: 37452 seconds [624.2 minutes]
I managed to get some decent stats from some HGST He8s using arcconf with an Adaptec SmartHBA, but I have some Ultrastar 7K4000s, specifically some HUS724040ALS640s, connected with a 9212-4i4e, and neither smartmontools nor sas2ircu really give any stats to speak of (that I'm aware of so far).

Here's arcconf:


Code:
# arcconf getsmartstats 1 tabular
Controllers found: 1

SMART STATS FOR SATA:
---------------------


   SmartStats                         
       controllerID ................................... 0
       time ........................................... 1612981136
       deviceName ..................................... Adaptec SmartHBA 2100-4i4e
       serialNumber ................................... 8A256321F16

SMART STATS FOR SAS:
--------------------


   SASSmartStats                       
       controllerID ................................... 0
       time ........................................... 1612981136
       deviceName ..................................... Adaptec SmartHBA 2100-4i4e
       serialNumber ................................... 8A256321F16

      PhysicalDriveSmartStats         
          channel ........................................ 0
          id ............................................. 0

         Attribute                     
             name ........................................... SMART Health Status
             Value .......................................... Passed

         Attribute                     
             name ........................................... Current Drive Temperature In Celcius
             Value .......................................... 31

         Attribute                     
             name ........................................... Drive Trip Temperature In Celcius
             Value .......................................... 60

         Attribute                     
             name ........................................... Manufacturing Year
             Value .......................................... 2016

         Attribute                     
             name ........................................... Manufacturing Week
             Value .......................................... 31

         Attribute                     
             name ........................................... Specified Cycle Count Over Device Lifetime
             Value .......................................... 50000

         Attribute                     
             name ........................................... Accumulated Start-Stop Cycles
             Value .......................................... 58

         Attribute                     
             name ........................................... Specified Load-Unload Count Over Device Lifetime
             Value .......................................... 600000

         Attribute                     
             name ........................................... Accumulated Load-Unload Cycles
             Value .......................................... 569

         Attribute                     
             name ........................................... Elements In Grown Defect List
             Value .......................................... 0

         Attribute                     
             name ........................................... Blocks Sent To Initiator
             Value .......................................... 7409283515809792

         Attribute                     
             name ........................................... Blocks Received From Initiator
             Value .......................................... 0

         Attribute                     
             name ........................................... Blocks Read From Cache And Sent To Initiator
             Value .......................................... 0

         Attribute                     
             name ........................................... Number Of Read And Write Commands Whose Size Is Less Than Equal to Segment Size
             Value .......................................... 0

         Attribute                     
             name ........................................... Number Of Read And Write Commands Whose Size Is Greater Than Equal To Segment S
            ze" Value ....................................... 0

         Attribute                     
             name ........................................... Read Errors Corrected By ECC Fast
             Value .......................................... 0

         Attribute                     
             name ........................................... Read Errors Corrected By ECC Delayed
             Value .......................................... 11

         Attribute                     
             name ........................................... Errors Corrected By Rereads
             Value .......................................... 0

         Attribute                     
             name ........................................... Total Read Errors Corrected
             Value .......................................... 11

         Attribute                     
             name ........................................... Read Error Correction Algorithms Invocations
             Value .......................................... 1075722

         Attribute                     
             name ........................................... Read Gigabytes Processed[10^9 bytes]
             Value .......................................... 98398.321721

         Attribute                     
             name ........................................... Total Uncorrected Read Errors
             Value .......................................... 0

         Attribute                     
             name ........................................... Write Errors Corrected By ECC Fast
             Value .......................................... 0

         Attribute                     
             name ........................................... Write Errors Corrected By ECC Delayed
             Value .......................................... 29

         Attribute                     
             name ........................................... Errors Corrected By Rewrites
             Value .......................................... 0

         Attribute                     
             name ........................................... Total Write Errors Corrected
             Value .......................................... 29

         Attribute                     
             name ........................................... Write Error Correction Algorithms Invocations
             Value .......................................... 316697

         Attribute                     
             name ........................................... Write Gigabytes Processed[10^9 bytes]
             Value .......................................... 73703.092630

         Attribute                     
             name ........................................... Total Uncorrected Write Errors
             Value .......................................... 0

         Attribute                     
             name ........................................... Verify Errors Corrected By ECC Fast
             Value .......................................... 0

         Attribute                     
             name ........................................... Verify Errors Corrected By ECC Delayed
             Value .......................................... 121

         Attribute                     
             name ........................................... Errors Corrected By Rewrites
             Value .......................................... 0

         Attribute                     
             name ........................................... Total Verify Errors Corrected
             Value .......................................... 121

         Attribute                     
             name ........................................... Verify Error Correction Algorithms Invocations
             Value .......................................... 16233

         Attribute                     
             name ........................................... Verify Gigabytes Processed[10^9 bytes]
             Value .......................................... 24672.857448

         Attribute                     
             name ........................................... Total Uncorrected Verify Errors
             Value .......................................... 0

         Attribute                     
             name ........................................... Non-Medium Error Count
             Value .......................................... 0

      PhysicalDriveSmartStats         
          channel ........................................ 0
          id ............................................. 1

         Attribute                     
             name ........................................... SMART Health Status
             Value .......................................... Passed

         Attribute                     
             name ........................................... Current Drive Temperature In Celcius
             Value .......................................... 33

         Attribute                     
             name ........................................... Drive Trip Temperature In Celcius
             Value .......................................... 60

         Attribute                     
             name ........................................... Manufacturing Year
             Value .......................................... 2016

         Attribute                     
             name ........................................... Manufacturing Week
             Value .......................................... 10

         Attribute                     
             name ........................................... Specified Cycle Count Over Device Lifetime
             Value .......................................... 50000

         Attribute                     
             name ........................................... Accumulated Start-Stop Cycles
             Value .......................................... 71

         Attribute                     
             name ........................................... Specified Load-Unload Count Over Device Lifetime
             Value .......................................... 600000

         Attribute                     
             name ........................................... Accumulated Load-Unload Cycles
             Value .......................................... 567

         Attribute                     
             name ........................................... Elements In Grown Defect List
             Value .......................................... 0

         Attribute                     
             name ........................................... Blocks Sent To Initiator
             Value .......................................... 11928124153397248

         Attribute                     
             name ........................................... Blocks Received From Initiator
             Value .......................................... 0

         Attribute                     
             name ........................................... Blocks Read From Cache And Sent To Initiator
             Value .......................................... 0

         Attribute                     
             name ........................................... Number Of Read And Write Commands Whose Size Is Less Than Equal to Segment Size
             Value .......................................... 0

         Attribute                     
             name ........................................... Number Of Read And Write Commands Whose Size Is Greater Than Equal To Segment S
            ze" Value ....................................... 0

         Attribute                     
             name ........................................... Read Errors Corrected By ECC Fast
             Value .......................................... 0

         Attribute                     
             name ........................................... Read Errors Corrected By ECC Delayed
             Value .......................................... 6

         Attribute                     
             name ........................................... Errors Corrected By Rereads
             Value .......................................... 0

         Attribute                     
             name ........................................... Total Read Errors Corrected
             Value .......................................... 6

         Attribute                     
             name ........................................... Read Error Correction Algorithms Invocations
             Value .......................................... 1600870

         Attribute                     
             name ........................................... Read Gigabytes Processed[10^9 bytes]
             Value .......................................... 68893.445599

         Attribute                     
             name ........................................... Total Uncorrected Read Errors
             Value .......................................... 0

         Attribute                     
             name ........................................... Write Errors Corrected By ECC Fast
             Value .......................................... 0

         Attribute                     
             name ........................................... Write Errors Corrected By ECC Delayed
             Value .......................................... 0

         Attribute                     
             name ........................................... Errors Corrected By Rewrites
             Value .......................................... 0

         Attribute                     
             name ........................................... Total Write Errors Corrected
             Value .......................................... 0

         Attribute                     
             name ........................................... Write Error Correction Algorithms Invocations
             Value .......................................... 1041098

         Attribute                     
             name ........................................... Write Gigabytes Processed[10^9 bytes]
             Value .......................................... 87244.922827

         Attribute                     
             name ........................................... Total Uncorrected Write Errors
             Value .......................................... 0

         Attribute                     
             name ........................................... Verify Errors Corrected By ECC Fast
             Value .......................................... 0

         Attribute                     
             name ........................................... Verify Errors Corrected By ECC Delayed
             Value .......................................... 139

         Attribute                     
             name ........................................... Errors Corrected By Rewrites
             Value .......................................... 0

         Attribute                     
             name ........................................... Total Verify Errors Corrected
             Value .......................................... 139

         Attribute                     
             name ........................................... Verify Error Correction Algorithms Invocations
             Value .......................................... 43259

         Attribute                     
             name ........................................... Verify Gigabytes Processed[10^9 bytes]
             Value .......................................... 21050.537927

         Attribute                     
             name ........................................... Total Uncorrected Verify Errors
             Value .......................................... 0

         Attribute                     
             name ........................................... Non-Medium Error Count
             Value .......................................... 0

      PhysicalDriveSmartStats         
          channel ........................................ 0
          id ............................................. 2

         Attribute                     
             name ........................................... SMART Health Status
             Value .......................................... Passed

         Attribute                     
             name ........................................... Current Drive Temperature In Celcius
             Value .......................................... 33

         Attribute                     
             name ........................................... Drive Trip Temperature In Celcius
             Value .......................................... 60

         Attribute                     
             name ........................................... Manufacturing Year
             Value .......................................... 2016

         Attribute                     
             name ........................................... Manufacturing Week
             Value .......................................... 31

         Attribute                     
             name ........................................... Specified Cycle Count Over Device Lifetime
             Value .......................................... 50000

         Attribute                     
             name ........................................... Accumulated Start-Stop Cycles
             Value .......................................... 48

         Attribute                     
             name ........................................... Specified Load-Unload Count Over Device Lifetime
             Value .......................................... 600000

         Attribute                     
             name ........................................... Accumulated Load-Unload Cycles
             Value .......................................... 99

         Attribute                     
             name ........................................... Elements In Grown Defect List
             Value .......................................... 0

         Attribute                     
             name ........................................... Blocks Sent To Initiator
             Value .......................................... 2402415609380864

         Attribute                     
             name ........................................... Blocks Received From Initiator
             Value .......................................... 0

         Attribute                     
             name ........................................... Blocks Read From Cache And Sent To Initiator
             Value .......................................... 0

         Attribute                     
             name ........................................... Number Of Read And Write Commands Whose Size Is Less Than Equal to Segment Size
             Value .......................................... 0

         Attribute                     
             name ........................................... Number Of Read And Write Commands Whose Size Is Greater Than Equal To Segment S
            ze" Value ....................................... 0

         Attribute                     
             name ........................................... Read Errors Corrected By ECC Fast
             Value .......................................... 0

         Attribute                     
             name ........................................... Read Errors Corrected By ECC Delayed
             Value .......................................... 0

         Attribute                     
             name ........................................... Errors Corrected By Rereads
             Value .......................................... 0

         Attribute                     
             name ........................................... Total Read Errors Corrected
             Value .......................................... 0

         Attribute                     
             name ........................................... Read Error Correction Algorithms Invocations
             Value .......................................... 443

         Attribute                     
             name ........................................... Read Gigabytes Processed[10^9 bytes]
             Value .......................................... 10632.024031

         Attribute                     
             name ........................................... Total Uncorrected Read Errors
             Value .......................................... 0

         Attribute                     
             name ........................................... Write Errors Corrected By ECC Fast
             Value .......................................... 0

         Attribute                     
             name ........................................... Write Errors Corrected By ECC Delayed
             Value .......................................... 0

         Attribute                     
             name ........................................... Errors Corrected By Rewrites
             Value .......................................... 0

         Attribute                     
             name ........................................... Total Write Errors Corrected
             Value .......................................... 0

         Attribute                     
             name ........................................... Write Error Correction Algorithms Invocations
             Value .......................................... 82803

         Attribute                     
             name ........................................... Write Gigabytes Processed[10^9 bytes]
             Value .......................................... 34773.468525

         Attribute                     
             name ........................................... Total Uncorrected Write Errors
             Value .......................................... 0

         Attribute                     
             name ........................................... Verify Errors Corrected By ECC Fast
             Value .......................................... 0

         Attribute                     
             name ........................................... Verify Errors Corrected By ECC Delayed
             Value .......................................... 0

         Attribute                     
             name ........................................... Errors Corrected By Rewrites
             Value .......................................... 0

         Attribute                     
             name ........................................... Total Verify Errors Corrected
             Value .......................................... 0

         Attribute                     
             name ........................................... Verify Error Correction Algorithms Invocations
             Value .......................................... 3383

         Attribute                     
             name ........................................... Verify Gigabytes Processed[10^9 bytes]
             Value .......................................... 0.000000

         Attribute                     
             name ........................................... Total Uncorrected Verify Errors
             Value .......................................... 0

         Attribute                     
             name ........................................... Non-Medium Error Count
             Value .......................................... 0

      PhysicalDriveSmartStats         
          channel ........................................ 0
          id ............................................. 3

         Attribute                     
             name ........................................... SMART Health Status
             Value .......................................... Passed

         Attribute                     
             name ........................................... Current Drive Temperature In Celcius
             Value .......................................... 32

         Attribute                     
             name ........................................... Drive Trip Temperature In Celcius
             Value .......................................... 60

         Attribute                     
             name ........................................... Manufacturing Year
             Value .......................................... 2016

         Attribute                     
             name ........................................... Manufacturing Week
             Value .......................................... 31

         Attribute                     
             name ........................................... Specified Cycle Count Over Device Lifetime
             Value .......................................... 50000

         Attribute                     
             name ........................................... Accumulated Start-Stop Cycles
             Value .......................................... 60

         Attribute                     
             name ........................................... Specified Load-Unload Count Over Device Lifetime
             Value .......................................... 600000

         Attribute                     
             name ........................................... Accumulated Load-Unload Cycles
             Value .......................................... 641

         Attribute                     
             name ........................................... Elements In Grown Defect List
             Value .......................................... 0

         Attribute                     
             name ........................................... Blocks Sent To Initiator
             Value .......................................... 7876753108238336

         Attribute                     
             name ........................................... Blocks Received From Initiator
             Value .......................................... 0

         Attribute                     
             name ........................................... Blocks Read From Cache And Sent To Initiator
             Value .......................................... 0

         Attribute                     
             name ........................................... Number Of Read And Write Commands Whose Size Is Less Than Equal to Segment Size
             Value .......................................... 0

         Attribute                     
             name ........................................... Number Of Read And Write Commands Whose Size Is Greater Than Equal To Segment S
            ze" Value ....................................... 0

         Attribute                     
             name ........................................... Read Errors Corrected By ECC Fast
             Value .......................................... 0

         Attribute                     
             name ........................................... Read Errors Corrected By ECC Delayed
             Value .......................................... 1

         Attribute                     
             name ........................................... Errors Corrected By Rereads
             Value .......................................... 0

         Attribute                     
             name ........................................... Total Read Errors Corrected
             Value .......................................... 1

         Attribute                     
             name ........................................... Read Error Correction Algorithms Invocations
             Value .......................................... 72960

         Attribute                     
             name ........................................... Read Gigabytes Processed[10^9 bytes]
             Value .......................................... 23432.802255

         Attribute                     
             name ........................................... Total Uncorrected Read Errors
             Value .......................................... 0

         Attribute                     
             name ........................................... Write Errors Corrected By ECC Fast
             Value .......................................... 0

         Attribute                     
             name ........................................... Write Errors Corrected By ECC Delayed
             Value .......................................... 1

         Attribute                     
             name ........................................... Errors Corrected By Rewrites
             Value .......................................... 0

         Attribute                     
             name ........................................... Total Write Errors Corrected
             Value .......................................... 1

         Attribute                     
             name ........................................... Write Error Correction Algorithms Invocations
             Value .......................................... 243377

         Attribute                     
             name ........................................... Write Gigabytes Processed[10^9 bytes]
             Value .......................................... 103814.288294

         Attribute                     
             name ........................................... Total Uncorrected Write Errors
             Value .......................................... 0

         Attribute                     
             name ........................................... Verify Errors Corrected By ECC Fast
             Value .......................................... 0

         Attribute                     
             name ........................................... Verify Errors Corrected By ECC Delayed
             Value .......................................... 12

         Attribute                     
             name ........................................... Errors Corrected By Rewrites
             Value .......................................... 0

         Attribute                     
             name ........................................... Total Verify Errors Corrected
             Value .......................................... 12

         Attribute                     
             name ........................................... Verify Error Correction Algorithms Invocations
             Value .......................................... 12334

         Attribute                     
             name ........................................... Verify Gigabytes Processed[10^9 bytes]
             Value .......................................... 7492.003836

         Attribute                     
             name ........................................... Total Uncorrected Verify Errors
             Value .......................................... 0

         Attribute                     
             name ........................................... Non-Medium Error Count
             Value .......................................... 0
So obviously that's a lot more useful. I found a command I think is analogous with sas2ircu, but it doesn't seem to be working:


Code:
# sas2ircu list && sas2ircu 0 status
LSI Corporation SAS2 IR Configuration Utility.
Version 16.00.00.00 (2013.03.01)
Copyright (c) 2009-2013 LSI Corporation. All rights reserved.


         Adapter      Vendor  Device                       SubSys  SubSys
 Index    Type          ID      ID    Pci Address          Ven ID  Dev ID
 -----  ------------  ------  ------  -----------------    ------  ------
   0     SAS2008     1000h    72h   00h:02h:00h:00h      1000h   3060h
SAS2IRCU: Utility Completed Successfully.

LSI Corporation SAS2 IR Configuration Utility.
Version 16.00.00.00 (2013.03.01)
Copyright (c) 2009-2013 LSI Corporation. All rights reserved.

SAS2IRCU: The STATUS command is not supported by the firmware currently loaded on controller 0.
I'm using mpt3sas driver with them, it was automatically configured in Ubuntu 20.10. Interestingly, the Adaptec HBA won't even do a long selftest using smartctl, but arcconf has it's own stats, while the LSI + 7K4000s doesn't complain when I tell smartctl to do a long test, but smartctl --all doesn't provide any stats beyond the error counts I showed in the first code block.

If anyone knows a good way to get more stats from these, I'd love hearing how. Maybe fixing whatever's wrong with the firmware on the LSI not reporting (?) or another way?

Thanks!
 
Last edited:

sth

Active Member
Oct 29, 2015
379
91
28
Are they OEM HGST or Dell/HP branded? I recall there’s less SMART data in the HP versions as they use a different system to monitor drive health. If they are you may be able to coerce OEM firmware back into them.
 

AveryFreeman

consummate homelabber
Mar 17, 2017
413
54
28
42
Near Seattle
averyfreeman.com
I believe they're clarion - or maybe I'm confusing them with these He8s I just bought

Do you know anywhere I can find HGST hard drive firmware? It's definitely not anywhere I can find on the WD site...