From owner-freebsd-stable@FreeBSD.ORG Sun Nov 6 20:37:43 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 169791065676 for ; Sun, 6 Nov 2011 20:37:43 +0000 (UTC) (envelope-from ml@os2.kiev.ua) Received: from s1.sdv.com.ua (s1.sdv.com.ua [77.120.97.61]) by mx1.freebsd.org (Postfix) with ESMTP id C20968FC12 for ; Sun, 6 Nov 2011 20:37:42 +0000 (UTC) Received: from 80-105-243-80.cust.centrio.cz ([80.243.105.80] helo=[192.168.101.100]) by s1.sdv.com.ua with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76 (FreeBSD)) (envelope-from ) id 1RN9TB-000LzV-DH; Sun, 06 Nov 2011 22:37:36 +0200 Message-ID: <4EB6F004.9060501@os2.kiev.ua> Date: Sun, 06 Nov 2011 21:37:24 +0100 From: Alex Samorukov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: "Marat N.Afanasyev" 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> In-Reply-To: <4EB6B530.9000901@ksu.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-SA-Score: -1.0 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: Sun, 06 Nov 2011 20:37:43 -0000 >> > it doesn't work :( sata drives are accessible, but for sas all we have: > > # smartctl -d 3ware,0 -a /dev/twa0 > smartctl 5.40 2010-10-16 r3189 [FreeBSD 8.2-RELEASE amd64] (local build) > Copyright (C) 2002-10 by Bruce Allen, > http://smartmontools.sourceforge.net > > Command failed, ata.status=(0x00), ata.command=(0xec), ata.flags=(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.