From owner-freebsd-scsi@FreeBSD.ORG Sun Jan 23 09:46:38 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 85765106566B for ; Sun, 23 Jan 2011 09:46:38 +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 5AC6D8FC14 for ; Sun, 23 Jan 2011 09:46:38 +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 p0N9kb0i009844 for ; Sun, 23 Jan 2011 01:46:37 -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 p0N9kbdv009843 for freebsd-scsi@freebsd.org; Sun, 23 Jan 2011 01:46:37 -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 p0N9kb1u009807 for treehouse-mail-freebsd-scsi@hairball.treehouse.napa.ca.us; Sun, 23 Jan 2011 01:46:37 -0800 (PST) (envelope-from news) From: "G. Paul Ziemba" To: freebsd-scsi@freebsd.org Date: Sun, 23 Jan 2011 09:46:37 +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: Sun, 23 Jan 2011 09:46:38 -0000 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. It seems to avoid reloading the tape when there is a rescan (yay!) I have not had a chance to fully exercise it (it might take until Monday before I can run it through my usual sequence of operations) however so I can't say what else will happen. But now there is a TUR about every two seconds. (Maybe because "error = EIO;" on line 1562 bubbles up and causes a retry?) >Why this did not occur before I am a little >baffled about because the same code was in place in the time frame you >had it 'working'. I'll see if I can rebuild an old kernel from Nov 2009 -stable. Maybe it will even work with a Jan 2011 world/ports. -- G. Paul Ziemba FreeBSD unix: 1:46AM up 1:04, 6 users, load averages: 0.09, 0.21, 0.16