From owner-freebsd-scsi@FreeBSD.ORG Mon Jan 24 16:57:16 2011 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5B48106566C for ; Mon, 24 Jan 2011 16:57:16 +0000 (UTC) (envelope-from pz-freebsd-scsi@ziemba.us) Received: from ziemba.us (osmtp.ziemba.us [208.106.105.149]) by mx1.freebsd.org (Postfix) with ESMTP id 8972B8FC14 for ; Mon, 24 Jan 2011 16:57:16 +0000 (UTC) Received: from hairball.ziemba.us (localhost.ziemba.us [127.0.0.1]) by hairball.ziemba.us (8.14.4/8.14.4) with ESMTP id p0OGvFNA084963 for ; Mon, 24 Jan 2011 08:57:15 -0800 (PST) (envelope-from pz-freebsd-scsi@ziemba.us) Received: (from mailnull@localhost) by hairball.ziemba.us (8.14.4/8.14.4/Submit) id p0OGvFmI084962 for freebsd-scsi@freebsd.org; Mon, 24 Jan 2011 08:57:15 -0800 (PST) (envelope-from pz-freebsd-scsi@ziemba.us) X-Authentication-Warning: hairball.ziemba.us: mailnull set sender to pz-freebsd-scsi@ziemba.us using -f Received: (from news@localhost) by hairball.ziemba.us (8.14.4/8.14.4/Submit) id p0OGvF2h084928 for treehouse-mail-freebsd-scsi@hairball.treehouse.napa.ca.us; Mon, 24 Jan 2011 08:57:15 -0800 (PST) (envelope-from news) From: "G. Paul Ziemba" To: freebsd-scsi@freebsd.org Date: Mon, 24 Jan 2011 16:57:15 +0000 (UTC) Message-id: References: <4D3BC293.4010808@feral.com> Errors-to: "G. Paul Ziemba" Subject: Re: rescan causes offlined tape to reload X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul+usenet@w6yx.stanford.edu List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2011 16:57:16 -0000 pz-freebsd-scsi@ziemba.us ("G. Paul Ziemba") writes: >mj@feral.com (Matthew Jacob) writes: >>The basic gist of the error is that during the probe sequence a command >>is likely coming back with ASC 0x04 ASCQ 0x02 (Logical unit not ready, >>initializing command required). >>Unfortunately, this causes camperiphscsisenseerror to issue >>scsi_start_stop command. >>See if the attached patch helps >Matthew, thanks for your efforts on this issue. I exercised this code a bit more yesterday, and it seems to do the right thing (i.e., "camcontrol rescan" no longer causes the tape to load). I'm delighted! However it does seem to continually (every two seconds) send a TUR to the tape drive. That doesn't cause an operational problem, but might not be what you intended. Popping up a level, about optical (cd/dvd) drives: should those behave differently? It's not an operational issue for me, but should optical drives load on a rescan either? Meanwhile, I'll see if I can get a stable kernel from Dec 2009 or so built so I can look at the old behavior. I think I can run it in single user mode to avoid issues with the more recent ports+world. thanks, ~!paul -- G. Paul Ziemba FreeBSD unix: 8:56AM up 1 day, 8:14, 6 users, load averages: 0.03, 0.05, 0.02