From owner-freebsd-current@FreeBSD.ORG Sun Nov 23 10:19:49 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC43C1065675 for ; Sun, 23 Nov 2008 10:19:49 +0000 (UTC) (envelope-from angelo@hongens.nl) Received: from smtp-out3.tiscali.nl (smtp-out3.tiscali.nl [195.241.79.178]) by mx1.freebsd.org (Postfix) with ESMTP id 44C2F8FC13 for ; Sun, 23 Nov 2008 10:19:49 +0000 (UTC) (envelope-from angelo@hongens.nl) Received: from [82.171.0.168] (helo=krypton.hongens.local) by smtp-out3.tiscali.nl with esmtp id 1L4BoQ-000586-Uc for ; Sun, 23 Nov 2008 11:03:31 +0100 Received: from localhost (localhost.hongens.local [127.0.0.1]) by krypton.hongens.local (Postfix) with ESMTP id 744DA10B64 for ; Sun, 23 Nov 2008 11:03:29 +0100 (CET) X-Virus-Scanned: amavisd-new at hongens.nl Received: from krypton.hongens.local ([127.0.0.1]) by localhost (krypton.hongens.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QsiMc3G0jgvS for ; Sun, 23 Nov 2008 11:03:26 +0100 (CET) Received: from angelomobiel.local (unknown [192.168.127.250]) by krypton.hongens.local (Postfix) with ESMTPA id 35A7110B50 for ; Sun, 23 Nov 2008 11:03:26 +0100 (CET) Message-ID: <49292A6D.3090600@hongens.nl> Date: Sun, 23 Nov 2008 11:03:25 +0100 From: Angelo Hongens User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: "freebsd-current@freebsd.org" References: <20081123063045.2265B10657A2@hub.freebsd.org> In-Reply-To: <20081123063045.2265B10657A2@hub.freebsd.org> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: mpt issue in ESX guest with pass-through scsi tape drive X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Nov 2008 10:19:49 -0000 Hey guys, I don't know what mailing list I should post to, I think it has something to do with the mpt driver. I have a server (a PowerEdge T300) at home running ESXi 3.5.0 installable. I have some windows guests and some FreeBSD guests, and they are all running great. The server also has an Adaptec 29160N scsi card with an Exabyte VXA-2 tapedrive. I want to set up a FreeBSD guest, to run amanda, using the tape drive. I have set up one guest with a pass-through SCSI device, where the tapedrive is passed to the guest. This works perfectly on Windows and CentOS, but not on my beloved FreeBSD. (VMware emulates a LSILogic 1030 Ultra4 adapter, and presents that to the guest OS.) I have tried 7.0/amd64, 6.2/amd64 and 6.2/i386, they all have exactly the same behaviour. If I look at the devices in FreeBSD, it only shows the disk: hon-bak-01# camcontrol devlist at scbus0 target 0 lun 0 (pass0,da0) If I scan the scsi controller, I get the following result: hon-bak-01# camcontrol rescan all sa0 at mpt0 bus 0 target 1 lun 0 sa0: Removable Sequential Access SCSI-2 device sa0: 80.000MB/s transfers (40.000MHz, offset 127, 16bit) (sa0:mpt0:0:1:0): lost device (sa0:mpt0:0:1:0): removing device entry Re-scan of bus 0 was successful So there's something that triggers the 'lost device' message, but I have no idea why. Some more info about dmesg: hon-bak-01# cat /var/run/dmesg.boot | grep mpt mpt0: port 0x1080-0x10ff mem 0xf4810000-0xf4810fff irq 17 at device 16.0 on pci0 mpt0: [GIANT-LOCKED] mpt0: MPI Version=3D1.2.0.0 da0 at mpt0 bus 0 target 0 lun 0 mpt0: port 0x1080-0x10ff mem 0xf4810000-0xf4810fff irq 17 at device 16.0 on pci0 mpt0: [GIANT-LOCKED] mpt0: MPI Version=3D1.2.0.0 da0 at mpt0 bus 0 target 0 lun 0 sa0 at mpt0 bus 0 target 1 lun 0 (sa0:mpt0:0:1:0): lost device (sa0:mpt0:0:1:0): removing device entry sa0 at mpt0 bus 0 target 1 lun 0 (sa0:mpt0:0:1:0): lost device (sa0:mpt0:0:1:0): removing device entry mpt0: port 0x1080-0x10ff mem 0xf4810000-0xf4810fff irq 17 at device 16.0 on pci0 mpt0: [GIANT-LOCKED] mpt0: MPI Version=3D1.2.0.0 da0 at mpt0 bus 0 target 0 lun 0 hon-bak-01# The funny thing is, if I reinstall that guest with CentOS5 for example, it works fine. I can see the scsi device, I can manage tapes using mt, and I can backup and restore using tar. [root@hon-bak-01 ~]# cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: VMware Model: Virtual disk Rev: 1.0 Type: Direct-Access ANSI SCSI revision: 02 Host: scsi0 Channel: 00 Id: 01 Lun: 00 Vendor: EXABYTE Model: VXA-2 Rev: 2152 Type: Sequential-Access ANSI SCSI revision: 02 So this leads me to believe it's an issue with the mpt driver in FreeBSD. (Or a combination of the bsd driver and the emulated card by vmware). Does anyone know how I could use BSD to talk to the tapedrive? Does the maintainer of the mpt driver read this list as well? --=20 With kind regards, Angelo H=F6ngens The Netherlands