From owner-freebsd-scsi@FreeBSD.ORG Sun May 5 16:39:36 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 706DBCCD for ; Sun, 5 May 2013 16:39:36 +0000 (UTC) (envelope-from dnewman@networktest.com) Received: from mail3.networktest.com (mail3.networktest.com [69.55.234.104]) by mx1.freebsd.org (Postfix) with ESMTP id 5673C330 for ; Sun, 5 May 2013 16:39:36 +0000 (UTC) Received: from localhost (localhost [69.55.234.104]) by mail3.networktest.com (Postfix) with ESMTP id 5BEA72560E4 for ; Sun, 5 May 2013 09:32:24 -0700 (PDT) Received: from mail3.networktest.com ([69.55.234.104]) by localhost (mail3.networktest.com [69.55.234.104]) (maiad, port 10024) with ESMTP id 57481-03-2 for ; Sun, 5 May 2013 09:32:06 -0700 (PDT) Received: from tejay.local (cpe-172-249-28-59.socal.res.rr.com [172.249.28.59]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: dnewman@networktest.com) by mail3.networktest.com (Postfix) with ESMTPSA id 2DB392560D7 for ; Sun, 5 May 2013 09:31:46 -0700 (PDT) Message-ID: <51868972.804@networktest.com> Date: Sun, 05 May 2013 09:31:46 -0700 From: David Newman Organization: Network Test Inc. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Subject: running iscontrol at boot time X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 May 2013 16:39:36 -0000 How to configure FreeBSD so that iscontrol runs at boot time, so that an iSCSI initiator will mount a filesystem on an iSCSI target? In this case the FreeBSD system is an iSCSI initiator. The /boot/loader.conf file has 'iscsi_initiator_load="YES"' but iscontrol does not run at boot time. I believe iscontrol needs to run after the kernel module is loaded but before a filesystem in /etc/fstab is mounted. This works fine manually, but a reboot fails because the FreeBSD box doesn't run iscontrol at boot time, and thus can't mount the filesystem on the iSCSI target. Pardon me if this has been asked before, as it seems like a standard problem, but I couldn't find anything in recent archives or in the man pages. The initiator runs a generic FreeBSD 8.3-RELEASE/amd64 kernel. Thanks! dn From owner-freebsd-scsi@FreeBSD.ORG Mon May 6 01:49:48 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 30DE8137 for ; Mon, 6 May 2013 01:49:48 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm14-vm3.bullet.mail.gq1.yahoo.com (nm14-vm3.bullet.mail.gq1.yahoo.com [98.136.218.254]) by mx1.freebsd.org (Postfix) with SMTP id CC226898 for ; Mon, 6 May 2013 01:49:47 +0000 (UTC) Received: from [98.137.12.191] by nm14.bullet.mail.gq1.yahoo.com with NNFMP; 06 May 2013 01:46:49 -0000 Received: from [98.136.185.42] by tm12.bullet.mail.gq1.yahoo.com with NNFMP; 06 May 2013 01:46:49 -0000 Received: from [127.0.0.1] by smtp103.mail.gq1.yahoo.com with NNFMP; 06 May 2013 01:46:48 -0000 X-Yahoo-Newman-Id: 985494.40466.bm@smtp103.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: oYvru0YVM1mCkzOtLGSjdt9PPP0AlnUKqcyUDxFZhRPc_LU GiVxBq8Ri1oNxqMFAWm9BLQ_hGK7jpZXbswMOIuxixr9qST5uqvU4Gq3zJQ9 yGW4KX_OIF0lnOUIkfMRLTkyq624k21fVI69z3sDiRdpocWVUyyS9iIfSdEA RhkEiHxAtBeelb1E687MmZoKAF2HekgjOaXfrqu5eqohOBJzpDQaadjEpB6I rzUGPa7SBUiS5fKgIgdnDyREGV0z1z4utcXaaucCm6zmo_z5k6P36L3CG7oc ms4efgK7hongMjJbfjmAr99VGtu5RkZU8h2hqdMQ3xFx46nM1pvzbnadglEV JBOEwxOR_TwaAnlNSsXaLflaBIYtG__zS10HE.XIb0wtEcIg2M2IYChyg4pY sDO8Xog0.ARSklVV9zqlVaYf81cEBDJWNXIh_fRq3Laf0BCx4AD.YQdDEZ_6 UDFTVEInu1Id9D5gjxyhTcR557ao8XhsPSt_9B_QvN299CRlOAzXhbAFNeI0 DdV9h1QnFpkR4VIehCLv_htsfaIMsbDdgvJ_HNzbm0IqZwOltVVSZ1WzLDLg cnolBXspG1jpN8OA11joEEyh2ZOFDjCXFEP46pbqffpUoz0_pA_OlNjwuzT8 4p9M9fQXBnqqnUQWU1k8beuyQBzNYD009Eau398pK3qkNLOgCNVMTGhSK4f5 SgUST3b1pjCWyxox8HWaxrchQmTouE1jNXt59RvhNb9wSbh5dCnOpr6egThl cNx2QFUfI025G1rCwvIwoHwuYGUupMnw_hFH0rTSBq4Ezv0EWpj0LrUnfevC PUefcNQSEctA52aBniIhh0OAtiCUAmSxwrQWFIswzA31RCSt4s5yKPYX_ubR PQu6SkJPdXznKoraP.enlj8dXSzhHSV0xwmup X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf X-Rocket-Received: from [192.168.0.102] (pfg@190.157.126.109 with plain) by smtp103.mail.gq1.yahoo.com with SMTP; 05 May 2013 18:46:48 -0700 PDT Message-ID: <51870B8F.5040306@FreeBSD.org> Date: Sun, 05 May 2013 20:46:55 -0500 From: Pedro Giffuni Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: freebsd-scsi@FreeBSD.org Subject: Reference documentation for a scsi DTrace provider. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 May 2013 01:49:48 -0000 Hello; By the way Solaris implemented some DTrace providers it looks like we need a scsi provider as a starting point for a iscsi provider, which in turn (plus the IP provider) is also a requirement to get NFSv4/NFSv3 providers. I suspect there may be some interest on having a scsi DTrace provider for it's own purposes, so JIC someone wants to try and at least for documentation purposes I will share some links I found on how it was done for OpenSolaris. The original commit in OpenSolaris seems to have been this: https://bitbucket.org/illumos/illumos-gate/commits/c4b38ec17f4eaacad8868141411d7b513910ad4a Then there is an interesting blog posting that accompanies it: "Adding a Dtrace provider to the kernel" https://blogs.oracle.com/chrisg/entry/adding_a_dtrace_provider_to And some general introductory documentation for reference: http://www.ibm.com/developerworks/aix/library/au-dtraceprobes.html https://wiki.freebsd.org/DTrace/HowToAddSDTProbes Hope someone finds this helpful, Pedro. From owner-freebsd-scsi@FreeBSD.ORG Mon May 6 02:27:00 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3FCF656A; Mon, 6 May 2013 02:27:00 +0000 (UTC) (envelope-from ken@kdm.org) Received: from nargothrond.kdm.org (nargothrond.kdm.org [70.56.43.81]) by mx1.freebsd.org (Postfix) with ESMTP id 0E16B980; Mon, 6 May 2013 02:26:59 +0000 (UTC) Received: from nargothrond.kdm.org (localhost [127.0.0.1]) by nargothrond.kdm.org (8.14.2/8.14.2) with ESMTP id r462QrcM050001; Sun, 5 May 2013 20:26:53 -0600 (MDT) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.14.2/8.14.2/Submit) id r462QqJd050000; Sun, 5 May 2013 20:26:52 -0600 (MDT) (envelope-from ken) Date: Sun, 5 May 2013 20:26:52 -0600 From: "Kenneth D. Merry" To: Pedro Giffuni Subject: Re: Reference documentation for a scsi DTrace provider. Message-ID: <20130506022652.GA49892@nargothrond.kdm.org> References: <51870B8F.5040306@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51870B8F.5040306@FreeBSD.org> User-Agent: Mutt/1.4.2i Cc: freebsd-scsi@freebsd.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 May 2013 02:27:00 -0000 On Sun, May 05, 2013 at 20:46:55 -0500, Pedro Giffuni wrote: > Hello; > > By the way Solaris implemented some DTrace providers it looks like we > need a scsi provider as a starting point for a iscsi provider, which in > turn (plus the IP provider) is also a requirement to get NFSv4/NFSv3 > providers. Why do the NFS providers depend on an iSCSI provider? > I suspect there may be some interest on having a scsi DTrace provider > for it's own purposes, so JIC someone wants to try and at least for > documentation purposes I will share some links I found on how it was > done for OpenSolaris. > > The original commit in OpenSolaris seems to have been this: > > https://bitbucket.org/illumos/illumos-gate/commits/c4b38ec17f4eaacad8868141411d7b513910ad4a > > Then there is an interesting blog posting that accompanies it: > > "Adding a Dtrace provider to the kernel" > https://blogs.oracle.com/chrisg/entry/adding_a_dtrace_provider_to > > And some general introductory documentation for reference: > > http://www.ibm.com/developerworks/aix/library/au-dtraceprobes.html > > https://wiki.freebsd.org/DTrace/HowToAddSDTProbes > > Hope someone finds this helpful, It is, thanks! It would be great to have a SCSI provider, and an iSCSI provider to go along with the iSCSI work that Edward Napierala is doing. I don't have the time, but perhaps someone else will. Ken -- Kenneth Merry ken@FreeBSD.ORG From owner-freebsd-scsi@FreeBSD.ORG Mon May 6 03:13:46 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A06FE6E for ; Mon, 6 May 2013 03:13:46 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm40.bullet.mail.gq1.yahoo.com (nm40.bullet.mail.gq1.yahoo.com [98.136.217.23]) by mx1.freebsd.org (Postfix) with ESMTP id 55F8ABE1 for ; Mon, 6 May 2013 03:13:45 +0000 (UTC) Received: from [98.137.12.56] by nm40.bullet.mail.gq1.yahoo.com with NNFMP; 06 May 2013 03:07:35 -0000 Received: from [208.71.42.201] by tm1.bullet.mail.gq1.yahoo.com with NNFMP; 06 May 2013 03:07:35 -0000 Received: from [127.0.0.1] by smtp212.mail.gq1.yahoo.com with NNFMP; 06 May 2013 03:07:35 -0000 X-Yahoo-Newman-Id: 195375.38553.bm@smtp212.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: MxTlagIVM1k0WRfDndw6w6ErSUdPu_AJopn0zLSPXrcnW3D 0NcJsGBq.KAoAWOG05zeEOa0uE0RMuWdqBZq5nm5NYBu_oxny5rL69r_oWtw 3jDj_8trMzQnDi9ykynkawucUgPrRHEowJGRmDJ8o7Ipmj8Jt6CKGcEg..6p JJqy0kjAEkv5lfsKTgRPmo.1kuPKIZYoWNFmpMBTs9F748ysEg8xorAEeThU WmqS4yjF0fn7UttjeVOp3i675IzxXzmtWR6hCEnXmEENIiYZ6vtIUbut2SPn ois4Dm4i8mA2sDLjpE_Px8buVY0146aWP5ozyQ1ZdCMpgOT39hIvZPB3YFd5 qzqBXOVmH7oX8r2.BKzVjlUe75qAAD7VsnD2xixT6l7EaCWcYY76jq.hXAGw _E__HjfGlmjaUUpIZaOFP6AMlzvzgooEZivdvuS8Cl0lizrWtatNNTzGoiHu _uXDTtTfv95NCEC0WZQRzwlZ8cO9FcO7qdNO2RAMVqDAN1DiqXg9lK7DNnAb oqSbM96UWW520sbEioHJmXHfIgdNhg6U18TVeP1eyyymzMl_UA9uwZahbrXW _d7oQH6OnNiIH5117VjDETz0gPpfm4Oc.ySlSc4Z2XEufa.8BEh8k1oj77FP pXjXRscykedX8rFmfJgogTuzAYP1_dzShHN4ToXEctPhKR1CZX0LXcarm4gC DLph.tiH.sy5EKhYHTdf4ls97CQv2Edz5STdN07i6VZq4Y8rnaCJ22ttkY4s lgrGbGIPhfpFTU_WEfJckVwKIkTkY7E__CCUFVlSJwcUNGMn9_A6dHewvkKA ESilkZrXeNlEPFMHpgA-- X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf X-Rocket-Received: from [192.168.0.102] (pfg@190.157.126.109 with plain) by smtp212.mail.gq1.yahoo.com with SMTP; 05 May 2013 20:07:35 -0700 PDT Message-ID: <51871E7C.90108@FreeBSD.org> Date: Sun, 05 May 2013 22:07:40 -0500 From: Pedro Giffuni Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: "Kenneth D. Merry" Subject: Re: Reference documentation for a scsi DTrace provider. References: <51870B8F.5040306@FreeBSD.org> <20130506022652.GA49892@nargothrond.kdm.org> In-Reply-To: <20130506022652.GA49892@nargothrond.kdm.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-scsi@freebsd.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 May 2013 03:13:46 -0000 El 05/05/2013 9:26 p. m., Kenneth D. Merry escribió: > On Sun, May 05, 2013 at 20:46:55 -0500, Pedro Giffuni wrote: >> Hello; >> >> By the way Solaris implemented some DTrace providers it looks like we >> need a scsi provider as a starting point for a iscsi provider, which in >> turn (plus the IP provider) is also a requirement to get NFSv4/NFSv3 >> providers. > > Why do the NFS providers depend on an iSCSI provider? > That's a good question. According to the NFSv3 provider documentation: https://wikis.oracle.com/display/DTrace/nfsv3+Provider ____ All NFS operation probes have the first argument in common: args[0] conninfo_t * socket connection information The conninfo_t structure is already used by the iSCSI target provider (iscsi) and the NFS v4 provider (nfsv4), and is intended for use by all provider which are providing some higher level protocol (e.g. iscsi, nfs, http, ftp). _____ Regards, Pedro. >> I suspect there may be some interest on having a scsi DTrace provider >> for it's own purposes, so JIC someone wants to try and at least for >> documentation purposes I will share some links I found on how it was >> done for OpenSolaris. >> >> The original commit in OpenSolaris seems to have been this: >> >> https://bitbucket.org/illumos/illumos-gate/commits/c4b38ec17f4eaacad8868141411d7b513910ad4a >> >> Then there is an interesting blog posting that accompanies it: >> >> "Adding a Dtrace provider to the kernel" >> https://blogs.oracle.com/chrisg/entry/adding_a_dtrace_provider_to >> >> And some general introductory documentation for reference: >> >> http://www.ibm.com/developerworks/aix/library/au-dtraceprobes.html >> >> https://wiki.freebsd.org/DTrace/HowToAddSDTProbes >> >> Hope someone finds this helpful, > > It is, thanks! > > It would be great to have a SCSI provider, and an iSCSI provider to go > along with the iSCSI work that Edward Napierala is > doing. > > I don't have the time, but perhaps someone else will. > > Ken > From owner-freebsd-scsi@FreeBSD.ORG Mon May 6 11:06:52 2013 Return-Path: Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 47FBEA01 for ; Mon, 6 May 2013 11:06:52 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 39554A10 for ; Mon, 6 May 2013 11:06:52 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r46B6qDH023921 for ; Mon, 6 May 2013 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r46B6pcx023919 for freebsd-scsi@FreeBSD.org; Mon, 6 May 2013 11:06:51 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 6 May 2013 11:06:51 GMT Message-Id: <201305061106.r46B6pcx023919@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-scsi@FreeBSD.org Subject: Current problem reports assigned to freebsd-scsi@FreeBSD.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 May 2013 11:06:52 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/165982 scsi [mpt] mpt instability, drive resets, and losses on Fre o kern/165740 scsi [cam] SCSI code must drain callbacks before free o kern/162256 scsi [mpt] QUEUE FULL EVENT and 'mpt_cam_event: 0x0' o kern/153514 scsi [cam] [panic] CAM related panic o docs/151336 scsi Missing documentation of scsi_ and ata_ functions in c o kern/148083 scsi [aac] Strange device reporting o kern/144648 scsi [aac] Strange values of speed and bus width in dmesg o kern/142351 scsi [mpt] LSILogic driver performance problems o kern/134488 scsi [mpt] MPT SCSI driver probes max. 8 LUNs per device o kern/132206 scsi [mpt] system panics on boot when mirroring and 2nd dri o kern/130621 scsi [mpt] tranfer rate is inscrutable slow when use lsi213 o kern/129602 scsi [ahd] ahd(4) gets confused and wedges SCSI bus o kern/128452 scsi [sa] [panic] Accessing SCSI tape drive randomly crashe o kern/128245 scsi [scsi] "inquiry data fails comparison at DV1 step" [re o kern/123674 scsi [ahc] ahc driver dumping o sparc/121676 scsi [iscsi] iscontrol do not connect iscsi-target on sparc o kern/120487 scsi [sg] scsi_sg incompatible with scanners 17 problems total. From owner-freebsd-scsi@FreeBSD.ORG Tue May 7 07:53:30 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C97D5875 for ; Tue, 7 May 2013 07:53:30 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 83C2D697 for ; Tue, 7 May 2013 07:53:30 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1UZci4-000LXF-MW; Tue, 07 May 2013 10:53:16 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3 To: David Newman Subject: Re: running iscontrol at boot time In-reply-to: <51868972.804@networktest.com> References: <51868972.804@networktest.com> Comments: In-reply-to David Newman message dated "Sun, 05 May 2013 09:31:46 -0700." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 07 May 2013 10:53:16 +0300 From: Daniel Braniss Message-ID: Cc: freebsd-scsi@freebsd.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 07:53:30 -0000 Hi David, I'm attaching a script, it was last tested on 8.2, but should work :-) /etc/rc.d/iscsi (probably should be remnamed iscsi_initiator) #!/bin/sh # PROVIDE: iscsi # REQUIRE: NETWORKING # BEFORE: DAEMON # KEYWORD: nojail shutdown # # Add the following lines to /etc/rc.conf to enable iscsi: # # iscsi_enable="YES" # iscsi_fstab="/etc/fstab.iscsi" . /etc/rc.subr . /cs/share/etc/rc.subr name=iscsi rcvar=`set_rcvar` command=/sbin/iscontrol iscsi_enable=${iscsi_enable:-"NO"} iscsi_fstab=${iscsi_fstab:-"/etc/fstab.iscsi"} iscsi_exports=${iscsi_exports:-"/etc/exports.iscsi"} iscsi_debug=${iscsi_debug:-0} start_cmd="iscsi_start" faststop_cmp="iscsi_stop" stop_cmd="iscsi_stop" start_precmd="iscontrol_precmd" iscontrol_prog=${iscontrol_prog:-"iscontrol"} iscontrol_log=${iscontrol_log:-"/var/log/$iscontrol_prog"} iscontrol_syslog=${iscontrol_syslog:-"644 3 100 * JC"} iscontrol_precmd() { setup_syslog "$iscontrol_prog" "$iscontrol_log" "$iscontrol_syslog" } iscsi_wait() { dev=$1 trap "echo 'wait loop cancelled'; exit 1" 2 count=0 while true; do if [ -c $dev ]; then break; fi if [ $count -eq 0 ]; then echo -n Waiting for ${dev}': ' fi count=$((${count} + 1)) if [ $count -eq 6 ]; then echo " Failed for dev=$dev" return 0 break fi echo -n '.' sleep 5; done echo "$dev ok." return 1 } iscsi_start() { local file type opt t1 t2 # # load needed modules for m in iscsi_initiator geom_label; do kldstat -qm $m || kldload $m done sysctl debug.iscsi_initiator=$iscsi_debug # # start iscontrol for each target if [ -n "${iscsi_targets}" ]; then for target in ${iscsi_targets}; do ${command} ${rc_flags} -n ${target} done fi if [ -f "${iscsi_fstab}" ]; then while read spec file type opt t1 t2 do case ${spec} in \#*|'') ;; *) if iscsi_wait ${spec}; then break; fi echo type=$type spec=$spec file=$file fsck -p ${spec} && mkdir -p ${file} && mount ${spec} ${file} chmod 755 ${file} ;; esac done < ${iscsi_fstab} fi if [ -f "${iscsi_exports}" ]; then cat ${iscsi_exports} >> /etc/exports #/etc/rc.d/mountd reload kill -1 `cat /var/run/mountd.pid` fi if checkyesno zfs_enable; then if checkyesno iscsi_zfs; then sleep 4 zpool import -d /dev/label -a # presumably we can ignore zfs mount -a share -a and swapon # some zfs dataset may be exported "legacy", so hup mountd kill -1 `cat /var/run/mountd.pid` fi fi } iscsi_stop() { echo 'iscsi stopping' while read spec file type opt t1 t2 do case ${spec} in \#*|'') ;; *) echo iscsi: umount $spec umount -fv $spec ;; esac done < ${iscsi_fstab} } load_rc_config $name run_rc_command "$1" From owner-freebsd-scsi@FreeBSD.ORG Tue May 7 07:55:32 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 79A6F8CB for ; Tue, 7 May 2013 07:55:32 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 33E926AD for ; Tue, 7 May 2013 07:55:31 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1UZckE-000Lcs-Bf for freebsd-scsi@freebsd.org; Tue, 07 May 2013 10:55:30 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3 To: freebsd-scsi@freebsd.org Subject: Re: running iscontrol at boot time In-reply-to: Your message of Sun, 05 May 2013 09:31:46 -0700. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 07 May 2013 10:55:30 +0300 From: Daniel Braniss Message-ID: X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 07:55:32 -0000 > How to configure FreeBSD so that iscontrol runs at boot time, so that an > iSCSI initiator will mount a filesystem on an iSCSI target? > > In this case the FreeBSD system is an iSCSI initiator. The > /boot/loader.conf file has 'iscsi_initiator_load="YES"' but iscontrol > does not run at boot time. > > I believe iscontrol needs to run after the kernel module is loaded but > before a filesystem in /etc/fstab is mounted. > > This works fine manually, but a reboot fails because the FreeBSD box > doesn't run iscontrol at boot time, and thus can't mount the filesystem > on the iSCSI target. > > Pardon me if this has been asked before, as it seems like a standard > problem, but I couldn't find anything in recent archives or in the man > pages. > > The initiator runs a generic FreeBSD 8.3-RELEASE/amd64 kernel. > > Thanks! > > dn This is a script that was lst tested in 2009, but should work :-) also, should be renamed iscsi_initiator. #!/bin/sh # PROVIDE: iscsi # REQUIRE: NETWORKING # BEFORE: DAEMON # KEYWORD: nojail shutdown # # Add the following lines to /etc/rc.conf to enable iscsi: # # iscsi_enable="YES" # iscsi_fstab="/etc/fstab.iscsi" . /etc/rc.subr . /cs/share/etc/rc.subr name=iscsi rcvar=`set_rcvar` command=/sbin/iscontrol iscsi_enable=${iscsi_enable:-"NO"} iscsi_fstab=${iscsi_fstab:-"/etc/fstab.iscsi"} iscsi_exports=${iscsi_exports:-"/etc/exports.iscsi"} iscsi_debug=${iscsi_debug:-0} start_cmd="iscsi_start" faststop_cmp="iscsi_stop" stop_cmd="iscsi_stop" start_precmd="iscontrol_precmd" iscontrol_prog=${iscontrol_prog:-"iscontrol"} iscontrol_log=${iscontrol_log:-"/var/log/$iscontrol_prog"} iscontrol_syslog=${iscontrol_syslog:-"644 3 100 * JC"} iscontrol_precmd() { setup_syslog "$iscontrol_prog" "$iscontrol_log" "$iscontrol_syslog" } iscsi_wait() { dev=$1 trap "echo 'wait loop cancelled'; exit 1" 2 count=0 while true; do if [ -c $dev ]; then break; fi if [ $count -eq 0 ]; then echo -n Waiting for ${dev}': ' fi count=$((${count} + 1)) if [ $count -eq 6 ]; then echo " Failed for dev=$dev" return 0 break fi echo -n '.' sleep 5; done echo "$dev ok." return 1 } iscsi_start() { local file type opt t1 t2 # # load needed modules for m in iscsi_initiator geom_label; do kldstat -qm $m || kldload $m done sysctl debug.iscsi_initiator=$iscsi_debug # # start iscontrol for each target if [ -n "${iscsi_targets}" ]; then for target in ${iscsi_targets}; do ${command} ${rc_flags} -n ${target} done fi if [ -f "${iscsi_fstab}" ]; then while read spec file type opt t1 t2 do case ${spec} in \#*|'') ;; *) if iscsi_wait ${spec}; then break; fi echo type=$type spec=$spec file=$file fsck -p ${spec} && mkdir -p ${file} && mount ${spec} ${file} chmod 755 ${file} ;; esac done < ${iscsi_fstab} fi if [ -f "${iscsi_exports}" ]; then cat ${iscsi_exports} >> /etc/exports #/etc/rc.d/mountd reload kill -1 `cat /var/run/mountd.pid` fi if checkyesno zfs_enable; then if checkyesno iscsi_zfs; then sleep 4 zpool import -d /dev/label -a # presumably we can ignore zfs mount -a share -a and swapon # some zfs dataset may be exported "legacy", so hup mountd kill -1 `cat /var/run/mountd.pid` fi fi } iscsi_stop() { echo 'iscsi stopping' while read spec file type opt t1 t2 do case ${spec} in \#*|'') ;; *) echo iscsi: umount $spec umount -fv $spec ;; esac done < ${iscsi_fstab} } load_rc_config $name run_rc_command "$1" From owner-freebsd-scsi@FreeBSD.ORG Tue May 7 14:25:43 2013 Return-Path: Delivered-To: freebsd-scsi@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 13F4647F; Tue, 7 May 2013 14:25:43 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id E02A5B62; Tue, 7 May 2013 14:25:42 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r47EPgJY052660; Tue, 7 May 2013 14:25:42 GMT (envelope-from sbruno@freefall.freebsd.org) Received: (from sbruno@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r47EPgBe052659; Tue, 7 May 2013 14:25:42 GMT (envelope-from sbruno) Date: Tue, 7 May 2013 14:25:42 GMT Message-Id: <201305071425.r47EPgBe052659@freefall.freebsd.org> To: kirk@strauser.com, sbruno@FreeBSD.org, freebsd-scsi@FreeBSD.org From: sbruno@FreeBSD.org Subject: Re: kern/128452: [sa] [panic] Accessing SCSI tape drive randomly crashes my amd64 system X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 14:25:43 -0000 Synopsis: [sa] [panic] Accessing SCSI tape drive randomly crashes my amd64 system State-Changed-From-To: open->closed State-Changed-By: sbruno State-Changed-When: Tue May 7 14:24:58 UTC 2013 State-Changed-Why: Requestor worked around issue by replacing his Tekram card with an Adaptect 29160. Too bad we never spent the time to look into this 5 years ago. http://www.freebsd.org/cgi/query-pr.cgi?pr=128452 From owner-freebsd-scsi@FreeBSD.ORG Tue May 7 14:33:43 2013 Return-Path: Delivered-To: freebsd-scsi@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id DE7227EC; Tue, 7 May 2013 14:33:43 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B8F7EC19; Tue, 7 May 2013 14:33:43 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r47EXhEF054340; Tue, 7 May 2013 14:33:43 GMT (envelope-from sbruno@freefall.freebsd.org) Received: (from sbruno@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r47EXhEo054339; Tue, 7 May 2013 14:33:43 GMT (envelope-from sbruno) Date: Tue, 7 May 2013 14:33:43 GMT Message-Id: <201305071433.r47EXhEo054339@freefall.freebsd.org> To: fbsd71p3_mpt_bug@zyni.com, sbruno@FreeBSD.org, freebsd-scsi@FreeBSD.org From: sbruno@FreeBSD.org Subject: Re: kern/132206: [mpt] system panics on boot when mirroring and 2nd drive is resyncing X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 14:33:43 -0000 Synopsis: [mpt] system panics on boot when mirroring and 2nd drive is resyncing State-Changed-From-To: open->closed State-Changed-By: sbruno State-Changed-When: Tue May 7 14:33:21 UTC 2013 State-Changed-Why: Issue cleared at 8.0 release as per user. http://www.freebsd.org/cgi/query-pr.cgi?pr=132206 From owner-freebsd-scsi@FreeBSD.ORG Tue May 7 14:51:33 2013 Return-Path: Delivered-To: freebsd-scsi@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 47A84ADD; Tue, 7 May 2013 14:51:33 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 3C503D39; Tue, 7 May 2013 14:51:33 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r47EpWsU061254; Tue, 7 May 2013 14:51:32 GMT (envelope-from sbruno@freefall.freebsd.org) Received: (from sbruno@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r47EpWeU061253; Tue, 7 May 2013 14:51:32 GMT (envelope-from sbruno) Date: Tue, 7 May 2013 14:51:32 GMT Message-Id: <201305071451.r47EpWeU061253@freefall.freebsd.org> To: oleg.nauman@gmail.com, sbruno@FreeBSD.org, freebsd-scsi@FreeBSD.org, freebsd-usb@FreeBSD.org From: sbruno@FreeBSD.org Subject: Re: kern/153514: [cam] [panic] CAM related panic X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 14:51:33 -0000 Synopsis: [cam] [panic] CAM related panic State-Changed-From-To: open->feedback State-Changed-By: sbruno State-Changed-When: Tue May 7 14:50:09 UTC 2013 State-Changed-Why: This is more likely a USB issue. The probing of the device is seeing an unacessible USB disk device on the modem. However, I would ask that the submitter retest on stable/9 and see what happens. Responsible-Changed-From-To: freebsd-scsi->freebsd-usb Responsible-Changed-By: sbruno Responsible-Changed-When: Tue May 7 14:50:09 UTC 2013 Responsible-Changed-Why: This is more likely a USB issue. The probing of the device is seeing an unacessible USB disk device on the modem. However, I would ask that the submitter retest on stable/9 and see what happens. http://www.freebsd.org/cgi/query-pr.cgi?pr=153514 From owner-freebsd-scsi@FreeBSD.ORG Tue May 7 14:57:06 2013 Return-Path: Delivered-To: freebsd-scsi@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 14AFAB9B; Tue, 7 May 2013 14:57:06 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id E3485D7A; Tue, 7 May 2013 14:57:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r47Ev5NK061640; Tue, 7 May 2013 14:57:05 GMT (envelope-from sbruno@freefall.freebsd.org) Received: (from sbruno@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r47Ev5w9061639; Tue, 7 May 2013 14:57:05 GMT (envelope-from sbruno) Date: Tue, 7 May 2013 14:57:05 GMT Message-Id: <201305071457.r47Ev5w9061639@freefall.freebsd.org> To: alexander.haderer@loescap.de, sbruno@FreeBSD.org, freebsd-scsi@FreeBSD.org From: sbruno@FreeBSD.org Subject: Re: kern/162256: [mpt] QUEUE FULL EVENT and 'mpt_cam_event: 0x0' X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 14:57:06 -0000 Synopsis: [mpt] QUEUE FULL EVENT and 'mpt_cam_event: 0x0' State-Changed-From-To: open->feedback State-Changed-By: sbruno State-Changed-When: Tue May 7 14:55:41 UTC 2013 State-Changed-Why: These patches are probably going to be rejected. But, we would request that you retest the hardware specified on stable/9 or newer. http://www.freebsd.org/cgi/query-pr.cgi?pr=162256 From owner-freebsd-scsi@FreeBSD.ORG Tue May 7 15:57:02 2013 Return-Path: Delivered-To: freebsd-scsi@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 14518A19; Tue, 7 May 2013 15:57:02 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id E2666A6; Tue, 7 May 2013 15:57:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r47Fv1aB077237; Tue, 7 May 2013 15:57:01 GMT (envelope-from sbruno@freefall.freebsd.org) Received: (from sbruno@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r47Fv1Jp077236; Tue, 7 May 2013 15:57:01 GMT (envelope-from sbruno) Date: Tue, 7 May 2013 15:57:01 GMT Message-Id: <201305071557.r47Fv1Jp077236@freefall.freebsd.org> To: wollman@csail.mit.edu, sbruno@FreeBSD.org, freebsd-scsi@FreeBSD.org From: sbruno@FreeBSD.org Subject: Re: kern/129602: [ahd] ahd(4) gets confused and wedges SCSI bus X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 15:57:02 -0000 Synopsis: [ahd] ahd(4) gets confused and wedges SCSI bus State-Changed-From-To: open->feedback State-Changed-By: sbruno State-Changed-When: Tue May 7 15:50:59 UTC 2013 State-Changed-Why: I don't suppose you can test this with i386 stable/9 ? >From my searching of archives and mailing lists, there was an attempt to address this in the past somwhere in mid-2008 http://www.freebsd.org/cgi/query-pr.cgi?pr=129602 From owner-freebsd-scsi@FreeBSD.ORG Tue May 7 15:58:13 2013 Return-Path: Delivered-To: freebsd-scsi@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4473DA58; Tue, 7 May 2013 15:58:13 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 1ED47B4; Tue, 7 May 2013 15:58:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r47FwDXl077648; Tue, 7 May 2013 15:58:13 GMT (envelope-from sbruno@freefall.freebsd.org) Received: (from sbruno@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r47FwCgH077646; Tue, 7 May 2013 15:58:12 GMT (envelope-from sbruno) Date: Tue, 7 May 2013 15:58:12 GMT Message-Id: <201305071558.r47FwCgH077646@freefall.freebsd.org> To: andy@demos.su, sbruno@FreeBSD.org, freebsd-scsi@FreeBSD.org From: sbruno@FreeBSD.org Subject: Re: kern/128245: [ahd] "inquiry data fails comparison at DV1 step" [regression] X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 15:58:13 -0000 Synopsis: [ahd] "inquiry data fails comparison at DV1 step" [regression] State-Changed-From-To: open->feedback State-Changed-By: sbruno State-Changed-When: Tue May 7 15:57:35 UTC 2013 State-Changed-Why: I don't suppose you can retest this with stable/9? There was some attempts to repair this in the past, but its not clear if any success was made. http://www.freebsd.org/cgi/query-pr.cgi?pr=128245 From owner-freebsd-scsi@FreeBSD.ORG Tue May 7 16:03:25 2013 Return-Path: Delivered-To: freebsd-scsi@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 98E3CB79; Tue, 7 May 2013 16:03:25 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 71F87FD; Tue, 7 May 2013 16:03:25 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r47G3PPG079964; Tue, 7 May 2013 16:03:25 GMT (envelope-from sbruno@freefall.freebsd.org) Received: (from sbruno@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r47G3Pel079963; Tue, 7 May 2013 16:03:25 GMT (envelope-from sbruno) Date: Tue, 7 May 2013 16:03:25 GMT Message-Id: <201305071603.r47G3Pel079963@freefall.freebsd.org> To: rpvoland@spamcop.net, sbruno@FreeBSD.org, freebsd-scsi@FreeBSD.org From: sbruno@FreeBSD.org Subject: Re: kern/120487: [sg] scsi_sg incompatible with scanners X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 16:03:25 -0000 Synopsis: [sg] scsi_sg incompatible with scanners State-Changed-From-To: open->feedback State-Changed-By: sbruno State-Changed-When: Tue May 7 16:00:01 UTC 2013 State-Changed-Why: Can you retest this on newer stable/9 releases if you get a chance? There's quite a bit of change in sg since the original report http://www.freebsd.org/cgi/query-pr.cgi?pr=120487 From owner-freebsd-scsi@FreeBSD.ORG Tue May 7 16:12:09 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9E0D7C33 for ; Tue, 7 May 2013 16:12:09 +0000 (UTC) (envelope-from rvoland@tds.net) Received: from mail-ye0-f172.google.com (mail-ye0-f172.google.com [209.85.213.172]) by mx1.freebsd.org (Postfix) with ESMTP id 64FF8146 for ; Tue, 7 May 2013 16:12:09 +0000 (UTC) Received: by mail-ye0-f172.google.com with SMTP id l13so160587yen.3 for ; Tue, 07 May 2013 09:12:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=RG51FOS8i0K26mxUYZZjQhS4rOBL6ilP3YAKZn3FpFg=; b=LGbNNah3//Cxp4qGaaddDgq69AbAnetPxjUiHP/FkwVWZTnc1HZ8VrN5vpFJ2h2IPQ QlN6Y//BvNyhocSX93L2EJHtfAoKCzACIQ+2rZRwB+bxrtq0/NJH67W8Ty/b8Y6kItv9 i8nQ4BN+8JPyVs5gpfNJ46z5wCeDD/2QTScPAa6YiE0mCtbLaiJxwcvR8I3y9Yg3wimi SMZYAZZ+KbuAXWcCOFxNditP3YU5J5YhDBvW/M1/mSPFdrSSNTzy4zccF/xlR6tHTaEL AoZoHjUVjf8bX5MXdZ3CH9rZUFMmeA71JNxtB2Vh3MCkW+30O4ZdzEybCRo895+jH7sL g9Uw== X-Received: by 10.236.124.34 with SMTP id w22mr2625706yhh.25.1367943123528; Tue, 07 May 2013 09:12:03 -0700 (PDT) Received: from [192.168.0.4] (h184-60-38-195.mdsnwi.dsl.dynamic.tds.net. [184.60.38.195]) by mx.google.com with ESMTPSA id j27sm56598626yhf.18.2013.05.07.09.12.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 09:12:02 -0700 (PDT) Message-ID: <518927D4.3090202@spamcop.net> Date: Tue, 07 May 2013 11:12:04 -0500 From: Rick Voland User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: sbruno@FreeBSD.org Subject: Re: kern/120487: [sg] scsi_sg incompatible with scanners References: <201305071603.r47G3Pel079963@freefall.freebsd.org> In-Reply-To: <201305071603.r47G3Pel079963@freefall.freebsd.org> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkc0fwPPWxadI7RygceT9UylISd2/6rpsbooenb1G0lZWHAIcaa1QBgCxF6BBn73NRgyMY9 Cc: freebsd-scsi@FreeBSD.org, rpvoland@spamcop.net X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 16:12:09 -0000 On 5/7/2013 11:03 AM, sbruno@FreeBSD.org wrote: > Synopsis: [sg] scsi_sg incompatible with scanners > > State-Changed-From-To: open->feedback > State-Changed-By: sbruno > State-Changed-When: Tue May 7 16:00:01 UTC 2013 > State-Changed-Why: > Can you retest this on newer stable/9 releases if you get a chance? > > There's quite a bit of change in sg since the original report > > http://www.freebsd.org/cgi/query-pr.cgi?pr=120487 > Thanks for checking, but I no longer have a computer with FreeBSD for the test. From owner-freebsd-scsi@FreeBSD.ORG Tue May 7 16:45:05 2013 Return-Path: Delivered-To: freebsd-scsi@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 12F0140B; Tue, 7 May 2013 16:45:05 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id E0E962A4; Tue, 7 May 2013 16:45:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r47Gj4w4088538; Tue, 7 May 2013 16:45:04 GMT (envelope-from sbruno@freefall.freebsd.org) Received: (from sbruno@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r47Gj4lN088537; Tue, 7 May 2013 16:45:04 GMT (envelope-from sbruno) Date: Tue, 7 May 2013 16:45:04 GMT Message-Id: <201305071645.r47Gj4lN088537@freefall.freebsd.org> To: rpvoland@spamcop.net, sbruno@FreeBSD.org, freebsd-scsi@FreeBSD.org From: sbruno@FreeBSD.org Subject: Re: kern/120487: [sg] scsi_sg incompatible with scanners X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 16:45:05 -0000 Synopsis: [sg] scsi_sg incompatible with scanners State-Changed-From-To: feedback->closed State-Changed-By: sbruno State-Changed-When: Tue May 7 16:44:11 UTC 2013 State-Changed-Why: Submitter no longer can test the issue. http://lists.freebsd.org/pipermail/freebsd-scsi/2013-May/005892.html http://www.freebsd.org/cgi/query-pr.cgi?pr=120487 From owner-freebsd-scsi@FreeBSD.ORG Tue May 7 17:00:02 2013 Return-Path: Delivered-To: freebsd-scsi@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4C7C1902 for ; Tue, 7 May 2013 17:00:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 3E769375 for ; Tue, 7 May 2013 17:00:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r47H01Zd090419 for ; Tue, 7 May 2013 17:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r47H01NO090418; Tue, 7 May 2013 17:00:01 GMT (envelope-from gnats) Date: Tue, 7 May 2013 17:00:01 GMT Message-Id: <201305071700.r47H01NO090418@freefall.freebsd.org> To: freebsd-scsi@FreeBSD.org Cc: From: Sean Bruno Subject: Re: sparc64/121676: [iscsi] iscontrol do not connect iscsi-target on sparc64 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Sean Bruno List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 17:00:02 -0000 The following reply was made to PR sparc64/121676; it has been noted by GNATS. From: Sean Bruno To: bug-followup@FreeBSD.org, etherforet@gmail.com Cc: Subject: Re: sparc64/121676: [iscsi] iscontrol do not connect iscsi-target on sparc64 Date: Tue, 07 May 2013 09:59:00 -0700 --=-KuI9ijpmdjkPKka6Dj1K Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Confirmed still broken. For now, I propose removing iscsi(4) from non-x86 architectures while we await improved iscsi support in FreeBSD. Sean ref. http://people.freebsd.org/~sbruno/iscsi_x86_only.txt --=-KuI9ijpmdjkPKka6Dj1K Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iQEcBAABAgAGBQJRiTLUAAoJEBkJRdwI6BaH7PIH/0N0oz+dWxPHCXw0l78Koblj vHobAGCyjQDO1OfyiOCEk1r9ej54Qh6URR98vxgYhfwQuvkkITQs/65gfd2BSMuq AoWK6JeL6p7cOJvX9EvwXm8kWid+06FRTYRrChJguvaevxIOxBEqG+IjEag37JeK hbjUZTKwUw2B4za2og35cIEluODsPO0iQyY1Xh/s14x77vTJIUSKIB2DW0Qp5TwA kcS7CIrGiLalYrnSP5jWt2yWabAP5UssqL+EoQfdkJJceXNk2lFV8h8J9UUtM4ks wzYBMs0dVu4cDwllHoI2Pp1N2HNBWlOgWOMiQGaTJIoDKKL2kEnlLsN93CuG4eo= =nt1e -----END PGP SIGNATURE----- --=-KuI9ijpmdjkPKka6Dj1K-- From owner-freebsd-scsi@FreeBSD.ORG Tue May 7 17:14:30 2013 Return-Path: Delivered-To: freebsd-scsi@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0F340C41; Tue, 7 May 2013 17:14:30 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id DCD4062F; Tue, 7 May 2013 17:14:29 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r47HET4o094758; Tue, 7 May 2013 17:14:29 GMT (envelope-from sbruno@freefall.freebsd.org) Received: (from sbruno@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r47HESw4094757; Tue, 7 May 2013 17:14:28 GMT (envelope-from sbruno) Date: Tue, 7 May 2013 17:14:28 GMT Message-Id: <201305071714.r47HESw4094757@freefall.freebsd.org> To: sho@sfc.wide.ad.jp, sbruno@FreeBSD.org, freebsd-scsi@FreeBSD.org From: sbruno@FreeBSD.org Subject: Re: kern/123674: [ahc] ahc driver dumping X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 17:14:30 -0000 Synopsis: [ahc] ahc driver dumping State-Changed-From-To: open->feedback State-Changed-By: sbruno State-Changed-When: Tue May 7 17:13:44 UTC 2013 State-Changed-Why: If you are able, can you retest with stable/9 and see if this still happens for you? http://www.freebsd.org/cgi/query-pr.cgi?pr=123674 From owner-freebsd-scsi@FreeBSD.ORG Wed May 8 14:30:40 2013 Return-Path: Delivered-To: freebsd-scsi@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2E42F584; Wed, 8 May 2013 14:30:40 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 093AB224; Wed, 8 May 2013 14:30:40 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r48EUdB6008470; Wed, 8 May 2013 14:30:39 GMT (envelope-from sbruno@freefall.freebsd.org) Received: (from sbruno@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r48EUd8s008469; Wed, 8 May 2013 14:30:39 GMT (envelope-from sbruno) Date: Wed, 8 May 2013 14:30:39 GMT Message-Id: <201305081430.r48EUd8s008469@freefall.freebsd.org> To: andy@demos.su, sbruno@FreeBSD.org, freebsd-scsi@FreeBSD.org From: sbruno@FreeBSD.org Subject: Re: kern/128245: [ahd] "inquiry data fails comparison at DV1 step" [regression] X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 May 2013 14:30:40 -0000 Synopsis: [ahd] "inquiry data fails comparison at DV1 step" [regression] State-Changed-From-To: feedback->closed State-Changed-By: sbruno State-Changed-When: Wed May 8 14:30:04 UTC 2013 State-Changed-Why: Received private email from submitter stating that this issue is no longer testable. http://www.freebsd.org/cgi/query-pr.cgi?pr=128245 From owner-freebsd-scsi@FreeBSD.ORG Wed May 8 19:33:13 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 821) id 2B55DC68; Wed, 8 May 2013 19:33:13 +0000 (UTC) Date: Wed, 8 May 2013 19:33:13 +0000 From: John To: FreeBSD SCSI Subject: Re: Repeated msgs & kernel panic w/ r246437 (Revamp the CAM enclosure services driver) Message-ID: <20130508193313.GA65921@FreeBSD.org> References: <20130422030053.GA23186@FreeBSD.org> <517641C6.7010905@FreeBSD.org> <20130423140237.GA50775@nargothrond.kdm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130423140237.GA50775@nargothrond.kdm.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Alexander Motin , "Kenneth D. Merry" X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 May 2013 19:33:13 -0000 ----- Kenneth D. Merry's Original Message ----- > > On 22.04.2013 06:00, John wrote: > > >Hi Folks, > > > > > > After updating one of our servers to the latest stable image, > > >it appears that commit r246437 appears to be causing it to panic. > I agree. I added the xpt_create_path_unlocked() call to fix a > panic with a stack trace just like the one above. It looks like a problem > due to running r246437 exactly. As noted above, the system panics with the latest stable image. We simply started backing off commits until we found where the system no longer panic'd. Side note: is there a way to disable the new daemon that I haven't seen? sysctl? loader config? Apologies for the delay - here is the stable information: 'working' tag - has 1 of the external LSI cards disabled (so only 1 path through the shelves). 'broken' tag - has both cards enabled and panics in short order. Both of these are with a stable build (r249895) http://www.freebsd.org/~jwd/r246437/dmesg.working.txt http://www.freebsd.org/~jwd/r246437/dmesg.broken.txt Some db output: Panic: Fatal trap 12: page fault while in kernel mode cpuid = 2; apic id = 04 fault virtual address = 0x0 fault code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff80ce7db8 stack pointer = 0x28:0xffffff975fe55a00 frame pointer = 0x28:0xffffff975fe55a30 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 0 (thread taskq) [ thread pid 0 tid 100035 ] Stopped at memcpy+0x8: repe movsq (%rsi),%es:(%rdi) db> bt Tracing pid 0 tid 100035 td 0xfffffe00262f4490 memcpy() at memcpy+0x8/frame 0xffffff975fe55a30 xpt_getattr() at xpt_getattr+0xed/frame 0xffffff975fe55b40 pass_add_physpath() at pass_add_physpath+0xdf/frame 0xffffff975fe55b70 taskqueue_run_locked() at taskqueue_run_locked+0x74/frame 0xffffff975fe55bc0 taskqueue_thread_loop() at taskqueue_thread_loop+0x46/frame 0xffffff975fe55be0 fork_exit() at fork_exit+0x11f/frame 0xffffff975fe55c30 fork_trampoline() at fork_trampoline+0xe/frame 0xffffff975fe55c30 --- trap 0, rip = 0, rsp = 0xffffff975fe55cf0, rbp = 0 --- broken.txt contains more db trace info. Thanks, John From owner-freebsd-scsi@FreeBSD.ORG Sat May 11 23:59:09 2013 Return-Path: Delivered-To: scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 467D4BBE for ; Sat, 11 May 2013 23:59:09 +0000 (UTC) (envelope-from mailer-daemon@vniz.net) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by mx1.freebsd.org (Postfix) with ESMTP id C58F1FBF for ; Sat, 11 May 2013 23:59:08 +0000 (UTC) Received: by mail-lb0-f181.google.com with SMTP id w10so5267154lbi.40 for ; Sat, 11 May 2013 16:59:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:openpgp:content-type:content-transfer-encoding :x-gm-message-state; bh=LHYZPWHDnRHC7uTmmHvkt68BN5zaoPdw6wr6HD3Qk6o=; b=NckAdDIOUuoO5CfROcCPjJfI0dGrXpLxaG752qwSAgnE0stmoqSECZRMFowvnTkIpz A0Sg6gzyDbYwTQVVUPmudRvS/HhHxx4o5gKrHT77b+V5c8Aqw+hgvFFm0HoHIk5jtG2g odyUg1CbPJBOnU4qKi3ECKCf0rvXhIISG1yP10F+bjRaTYLjGw8ywwEaI3q/xe3UD1Zf 0bgfFBtiJC9yKjRh4be5Hz98KfuyQ9+m36biOs+GVrUi7fLOMHWVNpxRlmzwlp4zzj1X /b8S5q+TpddIqJRjZ2ZSKatTCCpbkTMYYH5V514HAOZaClC3PhfeBGE3HqRR2NucS7IC BZQA== X-Received: by 10.112.180.232 with SMTP id dr8mr10215670lbc.67.1368316742361; Sat, 11 May 2013 16:59:02 -0700 (PDT) Received: from [192.168.1.2] ([89.169.163.3]) by mx.google.com with ESMTPSA id t17sm3017272lbd.11.2013.05.11.16.59.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 11 May 2013 16:59:01 -0700 (PDT) Message-ID: <518EDB44.6070404@freebsd.org> Date: Sun, 12 May 2013 03:59:00 +0400 From: Andrey Chernov User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: smh@FreeBSD.org Subject: New umass/da errors (different with previous ATA COMMAND PASS THROUGH) OpenPGP: id=964474DD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnHwRwSmbzO3Rn+R8uqrIXXev4vKr/4Lg3t96PHQGcbYRZG8cnVxeDA3iPBHipQWMrveVl5 Cc: Alexander Motin , current@FreeBSD.org, scsi@freebsd.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 May 2013 23:59:09 -0000 Latest -current: umass0: on usbus3 umass0: SCSI over Bulk-Only; quirks = 0x4100 umass0:10:0:-1: Attached to scbus10 da0 at umass-sim0 bus 0 scbus10 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI status: Check Condition (da0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (da0:umass-sim0:0:0:0): Error 6, Unretryable error (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI status: Check Condition (da0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (da0:umass-sim0:0:0:0): Error 6, Unretryable error (da0:umass-sim0:0:0:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 00 00 00 01 00 (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI status: Check Condition (da0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) (da0:umass-sim0:0:0:0): Error 6, Unretryable error -- http://ache.vniz.net/ bitcoin:13fGiNutKNHcVSsgtGQ7bQ5kgUKgEQHn7N