Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#678 closed defect (fixed)

Seagate ST8000NM0075 is not working correctly with smartctl/smartd

Reported by: Joseph Wu Owned by:
Priority: minor Milestone: Release 6.5
Component: all Version: 6.4
Keywords: scsi Cc:

Description (last modified by Christian Franke)

It appears that the Seagate ST8000NM0075 behind a LSI 9300-8i running FW P10 doesn't display much SMART information.

Running command: smartctl -t short /dev/da0

smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.3-RELEASE amd64] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

Short Background Self Test has begun
Use smartctl -X to abort test

Works just fine... but.. smartctl -a shows:

smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.3-RELEASE amd64] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               SEAGATE
Product:              ST8000NM0075
Revision:             E001
Compliance:           SPC-4
User Capacity:        8,001,563,222,016 bytes [8.00 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
LB provisioning type: unreported, LBPME=0, LBPRZ=0
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
Logical Unit id:      0x5000c50XXXXXXXX
Serial number:        ZA10XXXXXXXXXXXXX
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Tue Mar 29 20:57:14 2016 PDT
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

Elements in grown defect list: 0

Error Counter logging not supported

Device does not support Self Test logging

Change History (26)

comment:1 by Christian Franke, 9 years ago

Description: modified (diff)

comment:2 by Christian Franke, 9 years ago

Component: allsmartctl
Keywords: scsi added
Milestone: undecided
Priority: majorminor

Which information is missing?

Please note that SCSI/SAS devices do not support ATA/SATA-like SMART Attributes. See also ticket #507.

comment:3 by Joseph Wu, 9 years ago

Information like Temperature, power on hours, and also errors.

Similar to this:

Device: HITACHI HUS723020ALS640 Version: A222

Serial number: xxxxxxxx
Device type: disk
Transport protocol: SAS
Local Time is: Thu Jul 11 15:42:30 2013 MDT
Device supports SMART and is Enabled
Temperature Warning Enabled
SMART Health Status: OK

Current Drive Temperature: 44 C
Drive Trip Temperature: 85 C
Manufactured in week 29 of year 2012
Recommended maximum start stop count: 50000 times
Current start stop count: 2 times
Elements in grown defect list: 0
Vendor (Seagate) cache information

Blocks sent to initiator = 149833037905920

Error counter log:

Errors Corrected by Total Correction Gigabytes Total

ECC rereads/ errors algorithm processed uncorrected

fast | delayed rewrites corrected invocations [109 bytes] errors

read: 0 0 0 0 6 0.565 0
write: 0 400 0 400 51 1034.246 0
verify: 0 0 0 0 37 0.000 0

Non-medium error count: 0

Version 0, edited 9 years ago by Joseph Wu (next)

comment:4 by Alex Samorukov, 9 years ago

Please also provide smartctl -x -r ioctl,2 output for this drive.

Last edited 9 years ago by Alex Samorukov (previous) (diff)

comment:5 by Joseph Wu, 9 years ago

smartctl -x /dev/da24
smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.3-RELEASE amd64] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               SEAGATE
Product:              ST8000NM0075
Revision:             E001
Compliance:           SPC-4
User Capacity:        8,001,563,222,016 bytes [8.00 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
LB provisioning type: unreported, LBPME=0, LBPRZ=0
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
Logical Unit id:      0x5000c50084cXXX
Serial number:        ZA10GXXXXXXXXXX
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Wed Mar 30 10:14:25 2016 PDT
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled
Read Cache is:        Enabled
Writeback Cache is:   Enabled

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

Elements in grown defect list: 0

Error Counter logging not supported

Device does not support Self Test logging
Device does not support Background scan results logging

comment:6 by Joseph Wu, 9 years ago

Here's another drive with GLTSD disabled ( never enabled it )

smartctl -x /dev/da27
smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.3-RELEASE amd64] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               SEAGATE
Product:              ST8000NM0075
Revision:             E001
Compliance:           SPC-4
User Capacity:        8,001,563,222,016 bytes [8.00 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
LB provisioning type: unreported, LBPME=0, LBPRZ=0
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
Logical Unit id:      0x5000c50084XXXXXX
Serial number:        ZA10XXXXXXXXXXXXXX
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Wed Mar 30 10:18:30 2016 PDT
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled
Read Cache is:        Enabled
Writeback Cache is:   Enabled

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

Elements in grown defect list: 0

Error Counter logging not supported


[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']
Device does not support Self Test logging
Device does not support Background scan results logging

comment:7 by Alex Samorukov, 9 years ago

BTW, try to enable GLTSD. And also provide me output with -r ioctl,2

Last edited 9 years ago by Alex Samorukov (previous) (diff)

comment:8 by Joseph Wu, 9 years ago

smartctl -x -r ioctl,2 ( Drive has GLTSD ENABLED )

smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.3-RELEASE amd64] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

 [inquiry: 12 00 00 00 24 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=36:
 00     00 00 06 12 8b 01 30 02  53 45 41 47 41 54 45 20
 10     53 54 38 30 30 30 4e 4d  30 30 37 35 20 20 20 20
 20     45 30 30 31
  status=0x0
 [inquiry: 12 01 00 00 fc 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0xe6
  Incoming data, len=22:
 00     00 00 00 12 00 80 83 86  87 88 8a 90 91 b0 b1 b2
 10     c0 c1 c2 c3 d1 d2
  status=0x0
 [inquiry: 12 00 00 00 24 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=36:
 00     00 00 06 12 8b 01 30 02  53 45 41 47 41 54 45 20
 10     53 54 38 30 30 30 4e 4d  30 30 37 35 20 20 20 20
 20     45 30 30 31
  status=0x0
=== START OF INFORMATION SECTION ===
Vendor:               SEAGATE
Product:              ST8000NM0075
Revision:             E001
Compliance:           SPC-4
 [read capacity(10): 25 00 00 00 00 00 00 00 00 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=8:
 00     ff ff ff ff 00 00 02 00
  status=0x0
 [read capacity(16): 9e 10 00 00 00 00 00 00 00 00 00 00 00 20 00 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=32:
 00     00 00 00 03 a3 81 2a af  00 00 02 00 00 03 00 00
 10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
  status=0x0
User Capacity:        8,001,563,222,016 bytes [8.00 TB]
Logical block size:   512 bytes
 [read capacity(16): 9e 10 00 00 00 00 00 00 00 00 00 00 00 20 00 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=32:
 00     00 00 00 03 a3 81 2a af  00 00 02 00 00 03 00 00
 10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
  status=0x0
Physical block size:  4096 bytes
 [inquiry: 12 01 b2 00 08 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=8:
 00     00 b2 00 04 00 00 00 00
  status=0x0
LB provisioning type: unreported, LBPME=0, LBPRZ=0
 [inquiry: 12 01 b1 00 40 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=64:
 00     00 b1 00 3c 1c 20 00 02  00 00 00 00 00 00 00 00
 10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 20     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
  status=0x0
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
 [mode sense(6): 1a 00 1c 00 40 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x28
  Incoming data, len=24:
 00     17 00 10 08 ff ff ff ff  00 00 02 00 9c 0a 10 06
 10     00 00 00 00 00 00 00 01
  status=0x0
 [mode sense(6): 1a 00 5c 00 40 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x28
  Incoming data, len=24:
 00     17 00 10 08 ff ff ff ff  00 00 02 00 9c 0a 9d 0f
 10     ff ff ff ff ff ff ff ff
  status=0x0
 [inquiry: 12 01 83 00 fc 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0xb0
  Incoming data, len=76:
 00     00 83 00 48 01 03 00 08  50 00 c5 00 84 c2 48 7f
 10     61 93 00 08 50 00 c5 00  84 c2 48 7e 61 94 00 04
 20     00 00 00 02 61 a3 00 08  50 00 c5 00 84 c2 48 7c
 30     03 28 00 18 6e 61 61 2e  35 30 30 30 43 35 30 30
 40     38 34 43 32 34 38 37 43  00 00 00 00
  status=0x0
Logical Unit id:      0x5000cXXXXXXXXX
 [inquiry: 12 01 80 00 fc 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0xe4
  Incoming data, len=24:
 00     00 80 00 14 5a 41 31 30  47 34 56 50 30 30 30 30
 10     4a 36 31 37 58 59 46 58
  status=0x0
Serial number:        ZA10GXXXXXXXXXX
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Wed Mar 30 11:08:00 2016 PDT
 [test unit ready: 00 00 00 00 00 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  status=0x0
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled
 [mode sense(6): 1a 00 08 00 40 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x20
  Incoming data, len=32:
 00     1f 00 10 08 ff ff ff ff  00 00 02 00 88 12 14 00
 10     ff ff 00 00 ff ff ff ff  90 20 00 00 00 00 00 00
  status=0x0
Read Cache is:        Enabled
Writeback Cache is:   Enabled

=== START OF READ SMART DATA SECTION ===
 [log sense: 4d 00 40 00 00 00 00 00 04 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=4:
 00     00 00 00 00
  status=0x0
Log Sense for supported pages failed [scsi response fails sanity test]
 [request sense: 03 00 00 00 12 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=18:
 00     70 00 00 00 00 00 00 0a  00 00 00 00 00 00 00 00
 10     00 00
  status=0x0
SMART Health Status: OK

 [read defect list(12): b7 0c 00 00 00 00 00 00 00 08 00 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=8:
 00     00 0c 00 00 00 00 00 00
  status=0x0
Elements in grown defect list: 0

Error Counter logging not supported

 [mode sense(6): 1a 00 0a 00 40 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x28
  Incoming data, len=24:
 00     17 00 10 08 ff ff ff ff  00 00 02 00 8a 0a 04 00
 10     00 80 00 00 00 00 7f ff
  status=0x0
Device does not support Self Test logging
Device does not support Background scan results logging

Drive without GTLSD enabled

smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.3-RELEASE amd64] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

 [inquiry: 12 00 00 00 24 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=36:
 00     00 00 06 12 8b 01 30 02  53 45 41 47 41 54 45 20
 10     53 54 38 30 30 30 4e 4d  30 30 37 35 20 20 20 20
 20     45 30 30 31
  status=0x0
 [inquiry: 12 01 00 00 fc 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0xe6
  Incoming data, len=22:
 00     00 00 00 12 00 80 83 86  87 88 8a 90 91 b0 b1 b2
 10     c0 c1 c2 c3 d1 d2
  status=0x0
 [inquiry: 12 00 00 00 24 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=36:
 00     00 00 06 12 8b 01 30 02  53 45 41 47 41 54 45 20
 10     53 54 38 30 30 30 4e 4d  30 30 37 35 20 20 20 20
 20     45 30 30 31
  status=0x0
=== START OF INFORMATION SECTION ===
Vendor:               SEAGATE
Product:              ST8000NM0075
Revision:             E001
Compliance:           SPC-4
 [read capacity(10): 25 00 00 00 00 00 00 00 00 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=8:
 00     ff ff ff ff 00 00 02 00
  status=0x0
 [read capacity(16): 9e 10 00 00 00 00 00 00 00 00 00 00 00 20 00 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=32:
 00     00 00 00 03 a3 81 2a af  00 00 02 00 00 03 00 00
 10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
  status=0x0
User Capacity:        8,001,563,222,016 bytes [8.00 TB]
Logical block size:   512 bytes
 [read capacity(16): 9e 10 00 00 00 00 00 00 00 00 00 00 00 20 00 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=32:
 00     00 00 00 03 a3 81 2a af  00 00 02 00 00 03 00 00
 10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
  status=0x0
Physical block size:  4096 bytes
 [inquiry: 12 01 b2 00 08 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=8:
 00     00 b2 00 04 00 00 00 00
  status=0x0
LB provisioning type: unreported, LBPME=0, LBPRZ=0
 [inquiry: 12 01 b1 00 40 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=64:
 00     00 b1 00 3c 1c 20 00 02  00 00 00 00 00 00 00 00
 10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 20     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
  status=0x0
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
 [mode sense(6): 1a 00 1c 00 40 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x28
  Incoming data, len=24:
 00     17 00 10 08 ff ff ff ff  00 00 02 00 9c 0a 10 06
 10     00 00 00 00 00 00 00 01
  status=0x0
 [mode sense(6): 1a 00 5c 00 40 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x28
  Incoming data, len=24:
 00     17 00 10 08 ff ff ff ff  00 00 02 00 9c 0a 9d 0f
 10     ff ff ff ff ff ff ff ff
  status=0x0
 [inquiry: 12 01 83 00 fc 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0xb0
  Incoming data, len=76:
 00     00 83 00 48 01 03 00 08  50 00 c5 00 84 c1 23 57
 10     61 93 00 08 50 00 c5 00  84 c1 23 56 61 94 00 04
 20     00 00 00 02 61 a3 00 08  50 00 c5 00 84 c1 23 54
 30     03 28 00 18 6e 61 61 2e  35 30 30 30 43 35 30 30
 40     38 34 43 31 32 33 35 34  00 00 00 00
  status=0x0
Logical Unit id:      0x5000c50084cXXXXXX
 [inquiry: 12 01 80 00 fc 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0xe4
  Incoming data, len=24:
 00     00 80 00 14 5a 41 31 30  48 53 47 56 30 30 30 30
 10     4a 36 30 37 54 53 30 35
  status=0x0
Serial number:        ZA10HSXXXXXXXXXXX
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Wed Mar 30 11:08:55 2016 PDT
 [test unit ready: 00 00 00 00 00 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  status=0x0
SMART support is:     Available - device has SMART capability.
SMART support is:     Enabled
Temperature Warning:  Enabled
 [mode sense(6): 1a 00 08 00 40 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x20
  Incoming data, len=32:
 00     1f 00 10 08 ff ff ff ff  00 00 02 00 88 12 14 00
 10     ff ff 00 00 ff ff ff ff  90 20 00 00 00 00 00 00
  status=0x0
Read Cache is:        Enabled
Writeback Cache is:   Enabled

=== START OF READ SMART DATA SECTION ===
 [log sense: 4d 00 40 00 00 00 00 00 04 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=4:
 00     00 00 00 00
  status=0x0
Log Sense for supported pages failed [scsi response fails sanity test]
 [request sense: 03 00 00 00 12 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=18:
 00     70 00 00 00 00 00 00 0a  00 00 00 00 00 00 00 00
 10     00 00
  status=0x0
SMART Health Status: OK

 [read defect list(12): b7 0c 00 00 00 00 00 00 00 08 00 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=8:
 00     00 0c 00 00 00 00 00 00
  status=0x0
Elements in grown defect list: 0

Error Counter logging not supported

 [mode sense(6): 1a 00 0a 00 40 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x28
  Incoming data, len=24:
 00     17 00 10 08 ff ff ff ff  00 00 02 00 8a 0a 06 00
 10     00 80 00 00 00 00 7f ff
  status=0x0

[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']
Device does not support Self Test logging
Device does not support Background scan results logging

comment:9 by Alex Samorukov, 9 years ago

Ok, thanks its much more clear now. Problem is that smartmontools is unable to get list of the supported log pages. Could you please also try to install sg3_utils package and try to run sg_logs -v /dev/da0 to see if it will works? If not - thats probably some kind of controller or disk firmware issue.

comment:10 by Joseph Wu, 9 years ago

( Device name changed, due to booting with PartedMagic, instead of FreeNAS )

sg_logs -v /dev/sdaa
    inquiry cdb: 12 00 00 00 24 00
    SEAGATE   ST8000NM0075      E001
    log sense cdb: 4d 00 40 00 00 00 00 00 04 00
    log sense cdb: 4d 00 40 00 00 00 00 00 04 00

Temperature is readable via:

scsi_temperature /dev/sdac
sg_logs -t  /dev/sdac
    SEAGATE   ST8000NM0075      E001
  Current temperature = 41 C
  Reference temperature = 60 C

sg_modes output:

SEAGATE   ST8000NM0075      E001   peripheral_type: disk [0x0]
Mode parameter header from MODE SENSE(10):
  Mode data length=224, medium type=0x00, WP=0, DpoFua=1, longlba=0
  Block descriptor length=8
> Direct access device block descriptors:
   Density code=0x0
 00     ff ff ff ff 00 00 02 00

>> Read-Write error recovery, page_control: current
 00     81 0a c0 14 ff 00 00 00  05 00 ff ff
>> Disconnect-Reconnect, page_control: current
 00     82 0e 00 00 00 00 00 00  00 00 00 a0 00 00 00 00
>> Format (obsolete), page_control: current
 00     83 16 00 01 00 00 00 00  00 02 00 03 10 00 00 01
 10     00 00 00 00 40 00 00 00
>> Rigid disk geometry (obsolete), page_control: current
 00     84 16 06 44 7a 0c 00 00  00 00 00 00 00 00 00 00
 10     00 00 00 00 1c 20 00 00
>> Verify error recovery, page_control: current
 00     87 0a 00 14 ff 00 00 00  00 00 ff ff
>> Caching, page_control: current
 00     88 12 14 00 ff ff 00 00  ff ff ff ff 90 20 00 00
 10     00 00 00 00
>> Control, page_control: current
 00     8a 0a 04 00 00 80 00 00  00 00 7f ff
>> Protocol specific logical unit (SAS), page_control: current
 00     18 06 06 00 00 00 00 00
>> Protocol specific port (SAS), page_control: current
 00     99 0e 46 00 07 d0 00 00  00 00 00 00 00 00 00 00
>> Power condition, page_control: current
 00     9a 26 00 06 00 00 04 b0  00 00 23 28 00 00 09 60
 10     00 00 17 70 00 00 17 70  00 00 00 00 00 00 00 00
 20     00 00 00 00 00 00 00 58
>> Informational exceptions control, page_control: current
 00     9c 0a 10 06 00 00 00 00  00 00 00 01
>> Unit Attention condition [vendor specific format], page_control: current
 00     80 0a 00 80 0f 00 00 00  00 00 00 00

sg_opcodes -v

    inquiry cdb: 12 00 00 00 24 00
  SEAGATE   ST8000NM0075      E001
  Peripheral device type: disk
    Report Supported Operation Codes cmd: a3 0c 00 00 00 00 00 00 20 00 00 00
    Report Supported Operation Codes: pass-through requested 8192 bytes but got 756 bytes

Opcode  Service    CDB    Name
(hex)   action(h)  size
-----------------------------------------------
 00                  6    Test Unit Ready
 01                  6    Rezero Unit
 03                  6    Request Sense
 04                  6    Format Unit
 07                  6    Reassign Blocks
 08                  6    Read(6)
 0a                  6    Write(6)
 0b                  6    Seek(6)
 12                  6    Inquiry
 15                  6    Mode select(6)
 16                  6    Reserve(6)
 17                  6    Release(6)
 1a                  6    Mode sense(6)
 1b                  6    Start stop unit
 1c                  6    Receive diagnostic results
 1d                  6    Send diagnostic
 25                 10    Read capacity(10)
 28                 10    Read(10)
 2a                 10    Write(10)
 2b                 10    Seek(10)
 2e                 10    Write and verify(10)
 2f                 10    Verify(10)
 35                 10    Synchronize cache(10)
 37                 10    Read defect data(10)
 3b        0        10    Write buffer (combined header and data [or multiple modes])

 3b        2        10    Write buffer (data)

 3b        4        10    Write buffer (download microcode and activate)

 3b        5        10    Write buffer (download microcode, save, and activate)

 3b        6        10    Write buffer (download microcode with offsets and activate)

 3b        7        10    Write buffer (download microcode with offsets, save, and activa
 3b        a        10    Write buffer (write data to echo buffer)

 3b        d        10    Write buffer (download microcode with offsets, select activatio
 3b        e        10    Write buffer (download microcode with offsets, save and defer a
 3b        f        10    Write buffer (activate deferred microcode)

 3b       1a        10    Write buffer (enable expander comms protocol and echo buffer)

 3b       1c        10    Write buffer (download application client error history)

 3c        0        10    Read buffer (combined header and data [or multiple modes])

 3c        2        10    Read buffer (data)

 3c        3        10    Read buffer (descriptor)

 3c        a        10    Read buffer (read data from echo buffer)

 3c        b        10    Read buffer (echo buffer descriptor)

 3c       1c        10    Read buffer (error history)

 3e                 10    Read long(10)
 3f                 10    Write long(10)
 41                 10    Write same(10)
 48        1        10    Sanitize
 48       1f        10    Sanitize
 4c                 10    Log select
 4d                 10    Log sense
 55                 10    Mode select(10)
 56                 10    Reserve(10)
 57                 10    Release(10)
 5a                 10    Mode sense(10)
 5e        0        10    Persistent reserve in, read keys
 5e        1        10    Persistent reserve in, read reservation
 5e        2        10    Persistent reserve in, report capabilities
 5e        3        10    Persistent reserve in, read full status
 5f        0        10    Persistent reserve out, register
 5f        1        10    Persistent reserve out, reserve
 5f        2        10    Persistent reserve out, release
 5f        3        10    Persistent reserve out, clear
 5f        4        10    Persistent reserve out, preempt
 5f        5        10    Persistent reserve out, preempt and abort
 5f        6        10    Persistent reserve out, register and ignore existing key
 5f        7        10    Persistent reserve out, register and move
 7f        9        32    Read(32)
 7f        a        32    Verify(32)
 7f        b        32    Write(32)
 7f        c        32    Write an verify(32)
 7f        d        32    Write same(32)
 88                 16    Read(16)
 8a                 16    Write(16)
 8e                 16    Write and verify(16)
 8f                 16    Verify(16)
 91                 16    Synchronize cache(16)
 93                 16    Write same(16)
 9e       10        16    Read capacity(16)
 9e       11        16    Read long(16)
 9f       11        16    Write long(16)
 a0                 12    Report luns
 a3        5        12    Report identifying information
 a3        c        12    Report supported operation codes
 a3        d        12    Report supported task management functions
 a3        f        12    Report timestamp
 a4        6        12    Set identifying information
 a4        f        12    Set timestamp
 b7                 12    Read defect data(12)
 e0                 10    Vendor specific [0xe0]
 e1                 10    Vendor specific [0xe1]
 e2                 10    Vendor specific [0xe2]
 e6                 10    Vendor specific [0xe6]
 eb                 10    Vendor specific [0xeb]
 ec                 10    Vendor specific [0xec]
 f7                 10    Vendor specific [0xf7]

sg_inq -d

standard INQUIRY:
  PQual=0  Device_type=0  RMB=0  version=0x06  [SPC-4]
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=1  Resp_data_format=2
  SCCS=0  ACC=0  TPGS=0  3PC=0  Protect=1  [BQue=0]
  EncServ=0  MultiP=1 (VS=1)  [MChngr=0]  [ACKREQQ=0]  Addr16=0
  [RelAdr=0]  WBus16=0  Sync=0  Linked=0  [TranDis=0]  CmdQue=1
  [SPI: Clocking=0x0  QAS=0  IUS=0]
    length=144 (0x90)   Peripheral device type: disk
 Vendor identification: SEAGATE
 Product identification: ST8000NM0075
 Product revision level: E001
 Unit serial number: ZA10GXXXXXXXXXXXX

  Version descriptors:
    SAM-5 T10/2104-D revision 4
    SAS-3 (no version claimed)
    SPL-3 (no version claimed)
    SPC-4 (no version claimed)
    SBC-3 (no version claimed)
Last edited 9 years ago by Joseph Wu (previous) (diff)

comment:11 by Alex Samorukov, 9 years ago

Ok, thank you. So problem is very clear now - device, for some reason, do not provide list of the log pages. e.g. on one of the my drives:

surikat:/home/samm# sg_logs /dev/sdb
    IBM-ESXS  MAU3073NC     FN  BC12
Supported log pages:
    0x00        Supported log pages
    0x01        Buffer over-run/under-run
    0x02        Error counters (write)
    0x03        Error counters (read)
    0x04        Error counters (read reverse)
    0x05        Error counters (verify)
    0x06        Non-medium errors
    0x0d        Temperature
    0x0e        Start-stop cycle counter
    0x0f        Application client
    0x10        Self-test results
    0x15        Background scan results (sbc-3)
    0x2f        Informational exceptions (SMART)
    0x30        Performance counters (Hitachi)
    0x36        [unknown vendor specific page code]
    0x38        [unknown vendor specific page code]

And on your side output is null (scsiGetSupportedLogPages function). This check is later used to get information from the specific log pages (e.g. temperature, grown defect lists, etc.). I would recommend to try to update drive firmware if possible. Sorry for a last question, could you please also give sg_logs /dev/sdb -p 0 -vvvvvvvv output to make 100% sure that log sense 0 response is bad? Thank you. Also output from the sg_raw -r 250 /dev/sdb 4d 00 40 00 00 00 00 00 ff 00 would be great.

P.S. It seems that output of the 4d 00 40 00 00 00 00 00 04 00 cmd is bogus:

 [log sense: 4d 00 40 00 00 00 00 00 04 00 ]
  CAM status=0x1, SCSI status=0x0, resid=0x0
  Incoming data, len=4:
 00     00 00 00 00
Last edited 9 years ago by Alex Samorukov (previous) (diff)

comment:12 by Alex Samorukov, 9 years ago

P.S. if you can provide temporary access to the device i can take a look myself and find if its possible to do some workaround.

comment:13 by Joseph Wu, 9 years ago

Not looking good....

I can't provide SSH or SSH tunnel, due to it being behind a strict NAT. Could maybe use Teamviewer through an endpoint and get to the server that way?

[root@freenas] ~# sg_logs /dev/da0 -p 0 -vvvvvvvv
    inquiry cdb: 12 00 00 00 24 00
    SEAGATE   ST8000NM0075      E001
    log sense cdb: 4d 00 40 00 00 00 00 00 04 00
  Log sense (find length) response:
 00     00 00 00 00
  hence calculated response length=4
    log sense cdb: 4d 00 40 00 00 00 00 00 04 00
  Log sense response:
 00     00 00 00 00
[root@freenas] ~# sg_raw -r 250 /dev/da0 4d 00 40 00 00 00 00 00 ff 00
SCSI Status: Good

Received 21 bytes of data:
 00     00 00 00 11 00 02 03 05  06 08 0d 0e 0f 10 15 18    ................
 10     1a 2f 37 38 3e

in reply to:  13 comment:14 by Alex Samorukov, 9 years ago

Replying to cookiesowns:

Not looking good....

I can't provide SSH or SSH tunnel, due to it being behind a strict NAT. Could maybe use Teamviewer through an endpoint and get to the server that way?

Should be possible. Anyway, it seems that problem is clear now, so probably its not really needed.

[root@freenas] ~# sg_logs /dev/da0 -p 0 -vvvvvvvv
    inquiry cdb: 12 00 00 00 24 00
    SEAGATE   ST8000NM0075      E001
    log sense cdb: 4d 00 40 00 00 00 00 00 04 00
  Log sense (find length) response:
 00     00 00 00 00
  hence calculated response length=4
    log sense cdb: 4d 00 40 00 00 00 00 00 04 00
  Log sense response:
 00     00 00 00 00
[root@freenas] ~# sg_raw -r 250 /dev/da0 4d 00 40 00 00 00 00 00 ff 00
SCSI Status: Good

Received 21 bytes of data:
 00     00 00 00 11 00 02 03 05  06 08 0d 0e 0f 10 15 18    ................
 10     1a 2f 37 38 3e

So it is very clear that there is a firmware bug. Smartmontools (and sg_logs) are doing 2 LOG SENSE requests. First one, 4d 00 40 00 00 00 00 00 04 00 is done to get size of the 00 log page. It should return size of the page 0, but returns 00h instead. I would recommend to report this to Seagate, because it is a firmware bug.

What is interesting, that when we requested 255 bytes of data disk actually replied with a valid (0x11) length and provided correct list of the supported log pages (00 02 03 05 06 08 0d 0e 0f 10 15 18 1a 2f 37 38 3e). With this it should be possible to create a workaround to make smartmontools works. I will try to do patch and will ask you to test it. But also please, as owner of the drive, report this issue to seagate, because this could cause issues not only with smartmontools but with other software or hardware.

comment:15 by Joseph Wu, 9 years ago

I have a feeling this could be an issue between our backplane, HBA, or the actual Seagate drives.

This drive, while new, is running the same "revision" as previously known good SAS 12G drives, such as the ST6000, or even the ST4000.

I wish I had another HBA to test this with.

Just for full disclosure for anyone else looking at this ticket, the system is the following:

Supermicro SC846 BE2C backplane part # BPN-SAS3-846EL2.

The system has two Avago/LSI 9300-8i's connected in x8 wideport, one per expander.

The Avago/LSI cards are running latest P11 firmware.

The drives are on Supermicro's QVL, so I'm thinking maybe this is a result of the dual backplane? I'll take the server down tonight, single port them and let you know what happens.

If it still fails, I'll try and escalate to Seagate.

Let me know when the patch is here. Appreciate all the help so far!

comment:16 by Alex Samorukov, 9 years ago

Please try to run with this patch. If it will work - i will do workaround in the source code.

  • scsiprint.cpp

     
    8383    int i, err;
    8484
    8585    if ((err = scsiLogSense(device, SUPPORTED_LPAGES, 0, gBuf,
    86                             LOG_RESP_LEN, 0))) {
     86                            LOG_RESP_LEN, 68))) { // 64 max pages + 4b header
    8787        if (scsi_debugmode > 0)
    8888            pout("Log Sense for supported pages failed [%s]\n",
    8989                 scsiErrString(err));
Last edited 9 years ago by Alex Samorukov (previous) (diff)

in reply to:  16 comment:17 by Joseph Wu, 9 years ago

It may take a bit to get this patch to run. Not sure if FreeNAS has the dependencies to build smartmon from src.

Let me try this tonight or tomorrow morning. I will update you.

Replying to samm2:

Please try to run with this patch. If it will work - i will do workaround in the source code.

  • scsiprint.cpp

     
    8383    int i, err;
    8484
    8585    if ((err = scsiLogSense(device, SUPPORTED_LPAGES, 0, gBuf,
    86                             LOG_RESP_LEN, 0))) {
     86                            LOG_RESP_LEN, 68))) { // 64 max pages + 4b header
    8787        if (scsi_debugmode > 0)
    8888            pout("Log Sense for supported pages failed [%s]\n",
    8989                 scsiErrString(err));
Last edited 9 years ago by Alex Samorukov (previous) (diff)

comment:18 by Alex Samorukov, 8 years ago

Any chance to get test results?

in reply to:  18 ; comment:19 by Joseph Wu, 8 years ago

Replying to samm2:

Any chance to get test results?

Well this is odd. I thought I posted the results. It was indeed successful and gave me all the information I was expecting.

Such as ECC error rates, last run smart results, temperature, and more.

I don't have the results anymore as I'm back on FreeNAS/FreeBSD, but it definitely worked.

in reply to:  19 ; comment:20 by Alex Samorukov, 8 years ago

Replying to cookiesowns:

Replying to samm2:

Any chance to get test results?

Well this is odd. I thought I posted the results. It was indeed successful and gave me all the information I was expecting.

Such as ECC error rates, last run smart results, temperature, and more.

I don't have the results anymore as I'm back on FreeNAS/FreeBSD, but it definitely worked.

Perfect, thank you. Did you found if it is disk issue or not?

in reply to:  20 ; comment:21 by Joseph Wu, 8 years ago

Replying to samm2:

Replying to cookiesowns:

Replying to samm2:

Any chance to get test results?

Well this is odd. I thought I posted the results. It was indeed successful and gave me all the information I was expecting.

Such as ECC error rates, last run smart results, temperature, and more.

I don't have the results anymore as I'm back on FreeNAS/FreeBSD, but it definitely worked.

Perfect, thank you. Did you found if it is disk issue or not?

Have not been able to make time to contact Seagate just yet. Will update once I'm able to reach them.

in reply to:  21 comment:22 by Alex Samorukov, 8 years ago

Replying to cookiesowns:

Perfect, thank you. Did you found if it is disk issue or not?

Have not been able to make time to contact Seagate just yet. Will update once I'm able to reach them.

Ok, this is the final version of the patch:

  • scsiprint.cpp

     
    8585        if (scsi_debugmode > 0)
    8686            pout("Log Sense for supported pages failed [%s]\n",
    8787                 scsiErrString(err));
    88         return;
     88        /* try one more time with defined length, workaround for the bug #678 */
     89        err = scsiLogSense(device, SUPPORTED_LPAGES, 0, gBuf,
     90                            LOG_RESP_LEN, 68); /* 64 max pages + 4b header */
     91        if (scsi_debugmode > 0)
     92            pout("Log Sense for supported pages failed (second attempt) [%s]\n",
     93                 scsiErrString(err));
     94        if (err)
     95            return;
    8996    }
    9097
    9198    for (i = 4; i < gBuf[3] + LOGPAGEHDRSIZE; i++) {

I can build static version of the smartctl to check if you want. I am 90% sure that it is disk firmware issue, but i think we can include this workaround to the smartmontools.

comment:23 by Alex Samorukov, 8 years ago

Component: smartctlall
Summary: Seagate ST8000NM0075 unsupportedSeagate ST8000NM0075 is not working correctly with smartctl/smartd

in reply to:  23 comment:24 by kz8, 8 years ago

Replying to samm2:

Confirming the fix worked for me:

I was just assembling Dell R730xd with H730p controller (LSI/Avago 12G branded by Dell) and ST8000NM0075 drives and had the same issue - no temperature/hours readings.

I've downloaded 6.4 src tarball, applied patch from comment 22, compiled to alternative dir and it worked for me as below. Thank you very much!!!

[root@ sbin]# ./smartctl -a -d megaraid,0 /dev/sda
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-2.6.32-573.22.1.el6.x86_64] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               SEAGATE
Product:              ST8000NM0075
Revision:             E001
Compliance:           SPC-4
User Capacity:        8,001,563,222,016 bytes [8.00 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
LB provisioning type: unreported, LBPME=0, LBPRZ=0
Rotation Rate:        7200 rpm
Form Factor:          3.5 inches
Logical Unit id:      0x5000c500845e2cd7
Serial number:        <<<< hashed for privacy >>>>
Device type:          disk
Transport protocol:   SAS (SPL-3)
Local Time is:        Tue Apr 12 11:19:19 2016 EDT
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:     35 C
Drive Trip Temperature:        60 C

Manufactured in week 47 of year 2015
Specified cycle count over device lifetime:  10000
Accumulated start-stop cycles:  128
Specified load-unload count over device lifetime:  300000
Accumulated load-unload cycles:  128
Elements in grown defect list: 0

Vendor (Seagate) cache information
  Blocks sent to initiator = 1398055880
  Blocks received from initiator = 3264
  Blocks read from cache and sent to initiator = 1155672
  Number of read and write commands whose size <= segment size = 668
  Number of read and write commands whose size > segment size = 0

Vendor (Seagate/Hitachi) factory information
  number of hours powered up = 5.22
  number of minutes until next internal SMART test = 27

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:   349541392        0         0  349541392          0        715.805           0
write:         0        0         0         0          0          0.009           0
verify:     1184        0         0      1184          0          0.000           0

Non-medium error count:        0


[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']
No self-tests have been logged

while before on smartctl bundled with CentOS 6.7 it was:

[root@ sbin]# smartctl -a -d megaraid,0 /dev/sda
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-573.22.1.el6.x86_64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

Vendor:               SEAGATE
Product:              ST8000NM0075
Revision:             E001
User Capacity:        8,001,563,222,016 bytes [8.00 TB]
Logical block size:   512 bytes
Logical Unit id:      0x5000c500845e2cd7
Serial number:        <<< hashed for privacy >>>
Device type:          disk
Transport protocol:   SAS
Local Time is:        Tue Apr 12 11:24:19 2016 EDT
Device supports SMART and is Enabled
Temperature Warning Enabled
SMART Health Status: OK
Elements in grown defect list: 0

Error Counter logging not supported

[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']
Device does not support Self Test logging

comment:25 by Alex Samorukov, 8 years ago

Ok, thank you for testing. Workaround will be included in the smartmontools 6.5. Also i am still recommending to contact seagate, because this issue could affect some other software or hardware.

comment:26 by Alex Samorukov, 8 years ago

Milestone: undecidedRelease 6.5
Resolution: fixed
Status: newclosed

Fix committed in the r4289:4290. Please note that it also fixes smartd.

Last edited 8 years ago by Alex Samorukov (previous) (diff)
Note: See TracTickets for help on using tickets.