From owner-freebsd-amd64@FreeBSD.ORG Wed Oct 10 22:58:21 2012 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 35D2EF77 for ; Wed, 10 Oct 2012 22:58:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id 0B6D58FC16 for ; Wed, 10 Oct 2012 22:58:21 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9AMwKk5003759 for ; Wed, 10 Oct 2012 22:58:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9AMwKnw003758; Wed, 10 Oct 2012 22:58:20 GMT (envelope-from gnats) Resent-Date: Wed, 10 Oct 2012 22:58:20 GMT Resent-Message-Id: <201210102258.q9AMwKnw003758@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, John Klug Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E60B9FE for ; Wed, 10 Oct 2012 15:35:40 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id B40368FC08 for ; Wed, 10 Oct 2012 15:35:40 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q9AFZeAA018489 for ; Wed, 10 Oct 2012 15:35:40 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q9AFZeW4018475; Wed, 10 Oct 2012 15:35:40 GMT (envelope-from nobody) Message-Id: <201210101535.q9AFZeW4018475@red.freebsd.org> Date: Wed, 10 Oct 2012 15:35:40 GMT From: John Klug To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: amd64/172575: ioctl CAMGETPASSTHRU fails with mfi driver X-Mailman-Approved-At: Wed, 10 Oct 2012 23:09:56 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Oct 2012 22:58:21 -0000 >Number: 172575 >Category: amd64 >Synopsis: ioctl CAMGETPASSTHRU fails with mfi driver >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 10 22:58:20 UTC 2012 >Closed-Date: >Last-Modified: >Originator: John Klug >Release: 9.0 p3 >Organization: UNISYS >Environment: FreeBSD usrv-cse14.rsvl.unisys.com 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Thu Oct 4 15:55:24 CDT 2012 root@usrv-tsegp2:/usr/obj/freebsd/usr/src/sys/FREEBSD-amd64 amd64 >Description: This problem causes sysutils/smartmontools to fail with the mfi driver peripheral devices. # camcontrol inquiry /dev/mfid0 camcontrol: cam_lookup_pass: CAMGETPASSTHRU ioctl failed cam_lookup_pass: No such file or directory cam_lookup_pass: either the pass driver isn't in your kernel cam_lookup_pass: or mfid0 doesn't exist # kldstat Id Refs Address Size Name 1 19 0xffffffff80200000 1409420 kernel 2 1 0xffffffff8f20a000 17cf0 isboot.ko 6 2 0xffffffff8f419000 6e90 mfi.ko 7 1 0xffffffff8f420000 c3f mfip.ko 8 1 0xffffffff8f421000 132317 zfs.ko 9 1 0xffffffff8f554000 3001 opensolaris.ko usrv-cse14:/var/log# dmesg | grep mfid0 mfid0: on mfi0 mfid0: 285568MB (584843264 sectors) RAID volume '' is optimal GEOM: mfid0: the secondary GPT header is not in the last LBA. # dmesg | grep mfid0 mfid0: on mfi0 mfid0: 285568MB (584843264 sectors) RAID volume '' is optimal GEOM: mfid0: the secondary GPT header is not in the last LBA. # camcontrol inquiry /dev/pass2 pass2: Fixed Uninstalled SCSI-6 device pass2: Serial Number EB03PB302RPS pass2: 150.000MB/s transfers # smartd -d --configfile=/var/etc/smartd.conf --logfacility=local5 smartd 5.42 2011-10-20 r3458 [FreeBSD 9.0-RELEASE-p3 amd64] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net Opened configuration file /var/etc/smartd.conf Configuration file /var/etc/smartd.conf parsed. Device: /dev/mfid0, unable to autodetect device type Device: /dev/mfid1, unable to autodetect device type Device: /dev/mfid2, unable to autodetect device type Device: /dev/mfid3, unable to autodetect device type Device: /dev/mfid4, unable to autodetect device type Device: /dev/mfid5, unable to autodetect device type Device: /dev/mfid6, unable to autodetect device type Device: /dev/mfid7, unable to autodetect device type Unable to monitor any SMART enabled devices. Try debug (-d) option. Exiting... This problem makes it difficult to relate zpool devices to the device serial number and SMART information. >How-To-Repeat: Execute camcontrol inquiry on an mfi peripheral device. >Fix: >Release-Note: >Audit-Trail: >Unformatted: