From owner-freebsd-stable@FreeBSD.ORG Mon Nov 7 14:03:36 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 AC4A5106567C for ; Mon, 7 Nov 2011 14:03:36 +0000 (UTC) (envelope-from aboyer@averesystems.com) Received: from zimbra.averesystems.com (75-149-8-245-Pennsylvania.hfc.comcastbusiness.net [75.149.8.245]) by mx1.freebsd.org (Postfix) with ESMTP id 5C0CA8FC16 for ; Mon, 7 Nov 2011 14:03:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zimbra.averesystems.com (Postfix) with ESMTP id 2D865446004; Mon, 7 Nov 2011 08:47:35 -0500 (EST) X-Virus-Scanned: amavisd-new at averesystems.com Received: from zimbra.averesystems.com ([127.0.0.1]) by localhost (zimbra.averesystems.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ooNCaBujONZi; Mon, 7 Nov 2011 08:47:28 -0500 (EST) Received: from [192.168.4.3] (c-24-131-84-46.hsd1.pa.comcast.net [24.131.84.46]) by zimbra.averesystems.com (Postfix) with ESMTPSA id 2BFCA446003; Mon, 7 Nov 2011 08:47:25 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Andrew Boyer In-Reply-To: <4EB7BFD3.3040606@ksu.ru> Date: Mon, 7 Nov 2011 08:47:23 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <306B653B-4BA6-4946-A493-F77F83AD47CC@averesystems.com> 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> <4EB7BFD3.3040606@ksu.ru> To: "Marat N.Afanasyev" X-Mailer: Apple Mail (2.1084) Cc: FreeBSD Stable Mailing List , Alex Samorukov Subject: mfip and smartctl 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 14:03:36 -0000 On Nov 7, 2011, at 6:24 AM, Marat N.Afanasyev wrote: >=20 > this is an output on mfi controller with mfip loaded: >=20 > # 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.net >=20 > 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 >=20 > Current Drive Temperature: 26 C > Drive Trip Temperature: 68 C >=20 > 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: 9382124 0 0 9382124 9382124 = 3436.782 0 > write: 0 0 0 0 0 = 8978.360 0 > verify: 663433 0 0 663433 663433 = 332.651 0 >=20 > Non-medium error count: 7 >=20 > [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] >=20 > btw, 3dm can tell about reallocated sector count on sas somehow, while = smartctl cannot, even on supported controller :( Notice how the device type is "<31>"? The mfip driver masks off the = SCSI INQUIRY peripheral device type bits to prevent CAM from attached = da* devices to the disks. See sys/dev/mfi/mfi_cam.c, search for = T_DIRECT. That confuses smartctl and prevents it from displaying = information like the Grown Defect List. I added a local hack to smartctl to interpret a peripheral device type = of 0x1f (unknown or missing) to 0x0 (disk), but I don't think the hack = is appropriate for general consumption. What we need is better way for = mfi and aac to block CAM from attaching without corrupting the inquiry = results. -Andrew > --=20 > SY, Marat >=20 -------------------------------------------------- Andrew Boyer aboyer@averesystems.com