From owner-freebsd-stable@FreeBSD.ORG Mon Nov 7 11:24:05 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99D3E106566C for ; Mon, 7 Nov 2011 11:24:05 +0000 (UTC) (envelope-from amarat@ksu.ru) Received: from webmail.hitv.ru (mail.hitv.ru [217.66.16.37]) by mx1.freebsd.org (Postfix) with ESMTP id D0BBE8FC08 for ; Mon, 7 Nov 2011 11:24:04 +0000 (UTC) Received: from webmail.hitv.ru (localhost [127.0.0.1]) by webmail.hitv.ru (Postfix) with ESMTP id AA0134ACF6A; Mon, 7 Nov 2011 15:24:03 +0400 (MSK) Received: from zealot.ksu.ru (zealot.hitv.ru [83.151.8.230]) by webmail.hitv.ru (Postfix) with ESMTP id 66F244ACF68; Mon, 7 Nov 2011 15:24:03 +0400 (MSK) Received: from zealot.ksu.ru (localhost.lnet [127.0.0.1]) by zealot.ksu.ru (8.14.4/8.14.4) with ESMTP id pA7BO3tM027184; Mon, 7 Nov 2011 14:24:03 +0300 (MSK) (envelope-from amarat@ksu.ru) Message-ID: <4EB7BFD3.3040606@ksu.ru> Date: Mon, 07 Nov 2011 15:24:03 +0400 From: "Marat N.Afanasyev" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111009 Firefox/7.0.1 SeaMonkey/2.4.1 MIME-Version: 1.0 To: Alex Samorukov References: <4EB1BCAD.7080206@zzattack.org> <20111102233807.GA67112@icarus.home.lan> <4EB1D6F9.3060008@zzattack.org> <20111103000124.GA67550@icarus.home.lan> <4EB1DD51.4080808@zzattack.org> <20111103002352.GA67904@icarus.home.lan> <4EB2538D.3090108@zzattack.org> <4EB2CB75.6070003@os2.kiev.ua> <4EB2E2D7.2050809@os2.kiev.ua> <4EB2F510.5070804@os2.kiev.ua> <4EB307CC.8000705@os2.kiev.ua> <4EB6AD22.4080408@ksu.ru> <4EB6B20A.9090104@os2.kiev.ua> <4EB6B530.9000901@ksu.ru> <4EB6F004.9060501@os2.kiev.ua> <4EB6FABF.6060401@os2.kiev.ua> In-Reply-To: <4EB6FABF.6060401@os2.kiev.ua> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms090109030204080509090904" X-Virus-Scanned: ClamAV using ClamSMTP X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Stable Mailing List Subject: Re: smartctl / mpt on 9.0-RC1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2011 11:24:05 -0000 This is a cryptographically signed message in MIME format. --------------ms090109030204080509090904 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: quoted-printable Alex Samorukov wrote: > On 11/06/2011 09:37 PM, Alex Samorukov wrote: >>> Command failed, ata.status=3D(0x00), ata.command=3D(0xec), ata.flags=3D= (0x01) >>> WARNING - NO DEVICE FOUND ON 3WARE CONTROLLER (disk 0) >>> Smartctl: Device Read Identity Failed (not an ATA/ATAPI device) >>> >>> A mandatory SMART command failed: exiting. To continue, add one or >>> more '-T permissive' options. >>> >> >> >> Ok, looking in the code i found that on "3ware" device only >> "ata_command_interface" is implemented (with >> TW_OSL_IOCTL_FIRMWARE_PASS_THROUGH). The question is if that interface= >> actually supports SAS drives at all. From the quick view of the >> sources i found TWE_Command_ATA packet description, but nothing >> related to SCSI/SATA packets. So i am not sure that it is possible at >> all. If you know any tool which able to get health information for SAS= >> drives we can try to debug ioctl it using to find the way to talk with= >> disk. >> > One more update - there is TWA_FW_CMD_EXECUTE_SCSI command in the twa > driver, so it should be possible to get required data. I have no access= > to such hardware, but if anyone if going to provide it - i could try at= > least. > this is an output on mfi controller with mfip loaded: # smartctl -a /dev/pass1 smartctl 5.41 2011-06-09 r3365 [FreeBSD 8.2-RELEASE amd64] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.ne= t Vendor: SEAGATE Product: ST3146356SS Revision: 0007 User Capacity: 146,815,737,856 bytes [146 GB] Logical block size: 512 bytes Logical Unit id: 0x5000c50028f8a56f Serial number: 3QN4PWHS00009130JLKB Device type: <31> Transport protocol: SAS Local Time is: Mon Nov 7 15:20:27 2011 MSK Device supports SMART and is Enabled Temperature Warning Enabled SMART Health Status: OK Current Drive Temperature: 26 C Drive Trip Temperature: 68 C Error counter log: Errors Corrected by Total Correction=20 Gigabytes Total ECC rereads/ errors algorithm=20 processed uncorrected fast | delayed rewrites corrected invocations [10^9=20 bytes] errors read: 9382124 0 0 9382124 9382124 3436.782=20 0 write: 0 0 0 0 0 8978.360=20 0 verify: 663433 0 0 663433 663433 332.651=20 0 Non-medium error count: 7 [GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on'= ] No self-tests have been logged Long (extended) Self Test duration: 1740 seconds [29.0 minutes] btw, 3dm can tell about reallocated sector count on sas somehow, while=20 smartctl cannot, even on supported controller :( --=20 SY, Marat --------------ms090109030204080509090904--