From owner-freebsd-stable@FreeBSD.ORG Mon Nov 7 13:06:15 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 0A350106566B for ; Mon, 7 Nov 2011 13:06:15 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta05.westchester.pa.mail.comcast.net (qmta05.westchester.pa.mail.comcast.net [76.96.62.48]) by mx1.freebsd.org (Postfix) with ESMTP id A7BAB8FC08 for ; Mon, 7 Nov 2011 13:06:14 +0000 (UTC) Received: from omta24.westchester.pa.mail.comcast.net ([76.96.62.76]) by qmta05.westchester.pa.mail.comcast.net with comcast id uBm91h0031ei1Bg55D6Est; Mon, 07 Nov 2011 13:06:14 +0000 Received: from koitsu.dyndns.org ([67.180.84.87]) by omta24.westchester.pa.mail.comcast.net with comcast id uD6D1h01A1t3BNj3kD6D4c; Mon, 07 Nov 2011 13:06:14 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 12AFC102C1D; Mon, 7 Nov 2011 05:06:12 -0800 (PST) Date: Mon, 7 Nov 2011 05:06:12 -0800 From: Jeremy Chadwick To: "Marat N.Afanasyev" Message-ID: <20111107130612.GA2298@icarus.home.lan> References: <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> <20111107114231.GA11028@icarus.home.lan> <4EB7D4D0.9080905@ksu.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4EB7D4D0.9080905@ksu.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Stable Mailing List , Alex Samorukov 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 13:06:15 -0000 On Mon, Nov 07, 2011 at 04:53:36PM +0400, Marat N.Afanasyev wrote: > >>btw, 3dm can tell about reallocated sector count on sas somehow, > >>while smartctl cannot, even on supported controller :( > > > >I think this is getting into a separate discussion topic. > > > >I realise we're discussing SAS, but what's shown above looks pure and > >total SCSI output from smartmontools. I'm very familiar with it (we > >predominantly used SCSI disks at my workplace up until ~1 year ago). > > > > I will be satisfied with scsi-like output of smartctl for my sas > drive on twa controller ;) Did you actually look at the output I provided? It's more or less the same, minus data which you want that isn't being shown (at all). That includes things like drive manufacturing date, etc.. The problem could be in one of the following layers: 1. smartmontools itself 2. CAM translation layer (e.g. pass(4) or related bits) 3. twa(4) driver 4. 3Ware controller firmware It is possible to determine if #1 and #2 are responsible by enabling CAMDEBUG and/or using "camcontrol debug" to watch all CDBs which are submit to the controller. I'm not sure which one is responsible for obtaining defect counts and so on -- I would need to review SAS and/or SCSI specifications. The information should be available per T10's SCSI and SAS specification documents. An alternate way to check would be to boot into a Linux LiveCD and install smartmontools (in RAM) and see if it provides the data. My point: don't be so quick to assume smartmontools is responsible when there are 4 (maybe even 5) "layers" to how SCSI I/O makes it to the actual drive. This is one of the many reasons I try to avoid hardware RAID controllers -- too much crap between me and the device I wish to speak to. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |