From nobody@FreeBSD.org  Tue Jan 29 12:23:13 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 1903998D
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Jan 2013 12:23:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id F2EE682D
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Jan 2013 12:23:12 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r0TCNCiV029114
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Jan 2013 12:23:12 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r0TCNCVZ029113;
	Tue, 29 Jan 2013 12:23:12 GMT
	(envelope-from nobody)
Message-Id: <201301291223.r0TCNCVZ029113@red.freebsd.org>
Date: Tue, 29 Jan 2013 12:23:12 GMT
From: Federico Simmross <fedsim@tel.uva.es>
To: freebsd-gnats-submit@FreeBSD.org
Subject: smartctl fails on SAS disk connected to an Intel C600 controller (isci driver)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         175670
>Category:       kern
>Synopsis:       [iscsi] smartctl fails on SAS disk connected to an Intel C600 controller (isci driver)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-scsi
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 29 12:30:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Thu Apr 17 04:19:00 UTC 2014
>Originator:     Federico Simmross
>Release:        9.1
>Organization:
Universidad de Valladolid (Spain)
>Environment:
FreeBSD nas4free.local 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r244224M: Fri Dec 14 19:53:48 JST 2012     aoyama@nas4free.local:/usr/obj/nas4free/usr/src/sys/NAS4FREE-amd64  amd64
>Description:
The command 'smartctl -i /dev/da0' (where da0 is a SAS disk) fails with the following error:

-------------------------------------------
smartctl 6.0 2012-10-10 r3643 [FreeBSD 9.1-RELEASE amd64] (local build)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org

Vendor:               SEAGATE 
Product:              ST33000650SS    
Revision:             0004
User Capacity:        3,000,592,982,016 bytes [3.00 TB]
Logical block size:   512 bytes
scsiModePageOffset: raw_curr too small, offset=259 resp_len=1 bd_len=255
>How-To-Repeat:
With the isci driver loaded, plug a SAS disk to the controller and type:

smartctl -i /dev/da0

 >> Terminate command early due to bad response to IEC mode page
 A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
 -------------------------------------------
 
 Apparently this does not happen with a SATA disk connected to the same controller.
 
 The command 'smartctl -T permissive -a /dev/da0' does show the rest of the information (see below); however, scripts that look for the string 'SMART is: enabled' cannot work even with this workaround.
 
 -------------------------------------------
 smartctl 6.0 2012-10-10 r3643 [FreeBSD 9.1-RELEASE amd64] (local build)
 Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org
 
 Vendor:               SEAGATE 
 Product:              ST33000650SS    
 Revision:             0004
 User Capacity:        3,000,592,982,016 bytes [3.00 TB]
 Logical block size:   512 bytes
 scsiModePageOffset: raw_curr too small, offset=259 resp_len=1 bd_len=255
 >> Terminate command early due to bad response to IEC mode page
 
 Current Drive Temperature:     39 C
 Drive Trip Temperature:        68 C
 Manufactured in week 45 of year 2012
 Specified cycle count over device lifetime:  10000
 Accumulated start-stop cycles:  130
 Specified load-unload count over device lifetime:  300000
 Accumulated load-unload cycles:  135
 Elements in grown defect list: 0
 Vendor (Seagate) cache information
   Blocks sent to initiator = 20895408
   Blocks received from initiator = 138348465
   Blocks read from cache and sent to initiator = 156674
   Number of read and write commands whose size <= segment size = 36703
   Number of read and write commands whose size > segment size = 0
 Vendor (Seagate/Hitachi) factory information
   number of hours powered up = 866.38
   number of minutes until next internal SMART test = 50
 
 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:   42612987        0         0  42612987          0         10.698           0
 write:         0        0         0         0          0         71.055           0
 
 Non-medium error count:        6
 
 SMART Self-test log
 Num  Test              Status                 segment  LifeTime  LBA_first_err [SK ASC ASQ]
      Description                              number   (hours)
 # 1  Background short  Completed                   -     671                 - [-   -    -]
 
 Long (extended) Self Test duration: 27600 seconds [460.0 minutes]
 
 -------------------------------------------
 
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Apr 17 04:18:15 UTC 2014 
Responsible-Changed-Why:  
reclassify. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175670 
>Unformatted:
