From owner-freebsd-stable@FreeBSD.ORG Tue Nov 8 20:33:30 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 35BF5106564A for ; Tue, 8 Nov 2011 20:33:30 +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 685978FC15 for ; Tue, 8 Nov 2011 20:33:28 +0000 (UTC) Received: from webmail.hitv.ru (localhost [127.0.0.1]) by webmail.hitv.ru (Postfix) with ESMTP id A22444ACE76; Wed, 9 Nov 2011 00:33:27 +0400 (MSK) Received: from zealot.ksu.ru (zealot.hitv.ru [83.151.8.230]) by webmail.hitv.ru (Postfix) with ESMTP id 5EEC04ACE56; Wed, 9 Nov 2011 00:33:27 +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 pA8KXRwd041237; Tue, 8 Nov 2011 23:33:27 +0300 (MSK) (envelope-from amarat@ksu.ru) Message-ID: <4EB99217.3030508@ksu.ru> Date: Wed, 09 Nov 2011 00:33:27 +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: <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> <20111107130612.GA2298@icarus.home.lan> <4EB7DA61.2030403@os2.kiev.ua> <20111107141004.GA3377@icarus.home.lan> <4EB7E934.1090703@os2.kiev.ua> In-Reply-To: <4EB7E934.1090703@os2.kiev.ua> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms090801080200000204090604" X-Virus-Scanned: ClamAV using ClamSMTP X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Stable Mailing List , Jeremy Chadwick 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: Tue, 08 Nov 2011 20:33:30 -0000 This is a cryptographically signed message in MIME format. --------------ms090801080200000204090604 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: quoted-printable Alex Samorukov wrote: > On 11/07/2011 03:10 PM, Jeremy Chadwick wrote: >> I see. I wasn't aware there was an ioctl(2) interface to twa(4). >> >> This makes me wonder: why does Marat use /dev/passX as his device when= >> using smartctl? > Because Marat using LSI mfi (not 3ware twa!) driver in this case. > mfip.ko exports /dev/passX devices for every disk in the raid. >> Could this have some bearing on why he doesn't see the >> necessary data returned from (if even submit to) the underlying disk? >> The syntax of his command was: "smartctl -a /dev/pass1". I would have >> expected the syntax to be "smartctl -a -d 3ware,1 /dev/twa". >> >> What I'm trying to get at here is whether or not smartmontools "does t= he >> right thing" in this situation. Does the output differ between the >> above two syntaxes? I don't see any mention in twa(4)'s man page that >> pass(4) is even registered/used -- though I do see it mentioned that C= AM >> is used by twa(4). > Smartmontools will not work on twa with SAS drives, because it is using= > IOCTL packet format for the ATA protocol. And we need to use SCSI > packets to speak with SAS devices. This code is currently not written. >> >> Furthermore, later comments below indicate CAM isn't involved, which >> further confuses me. Can someone help relieve my confusion on this >> matter? > Because Marat provided output for another controller and another driver= =2E > For me it is also unclear why :) just a little misunderstanding, I suppose ;) I just showed what I'd=20 expect from #smartctl -a -d 3ware,0 /dev/twa0 in case of sas drive on channel 0 --=20 SY, Marat --------------ms090801080200000204090604--