From owner-freebsd-scsi@FreeBSD.ORG Fri Jan 21 17:31:27 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 9DCF51065670 for ; Fri, 21 Jan 2011 17:31:27 +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 688678FC14 for ; Fri, 21 Jan 2011 17:31:27 +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 p0LHVODb091984; Fri, 21 Jan 2011 10:31:24 -0700 (MST) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.14.2/8.14.2/Submit) id p0LHVO8m091983; Fri, 21 Jan 2011 10:31:24 -0700 (MST) (envelope-from ken) Date: Fri, 21 Jan 2011 10:31:24 -0700 From: "Kenneth D. Merry" To: Matthew Jacob Message-ID: <20110121173124.GA88957@nargothrond.kdm.org> References: <4D38C44D.6080703@feral.com> <4D39AA80.6020609@feral.com> <4D39C16C.7060508@feral.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D39C16C.7060508@feral.com> User-Agent: Mutt/1.4.2i Cc: freebsd-scsi@freebsd.org Subject: Re: rescan causes offlined tape to reload X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2011 17:31:27 -0000 It's a START STOP UNIT command, with the LOEJ and START bits set. Depending on what the tape drive returns when there is no media in the drive (camcontrol tur sa0 -v will tell you), the error recovery code is probably treating it like a disk/cd drive and trying to load the media. Ken On Fri, Jan 21, 2011 at 09:25:00 -0800, Matthew Jacob wrote: > I'm a little baffled. I can't find any place in the kernel source that > issues a LOAD_UNLOAD (START_STOP) with IMMED and RETEN set (0x3). What > *specifiic* kernel source do you have? Is this an SVN tree? > > On 1/21/2011 8:43 AM, G. Paul Ziemba wrote: > >mj@feral.com (Matthew Jacob) writes: > > > >>On 1/20/2011 9:24 PM, G. Paul Ziemba wrote: > >>>.... > >>># camcontrol rescan all > >>> > >>>Jan 20 21:08:40 hairball kernel: (probe4:sym0:0:4:0): TEST UNIT READY. > >>>CDB: 0 0 0 0 0 0 > >>>Jan 20 21:08:44 hairball kernel: (probe4:sym0:0:4:0): LOAD UNLOAD. CDB: > >>>1b 0 0 0 3 0 > >>>Jan 20 21:09:34 hairball kernel: sym0:4:control msgout: 80 6. > >>>Jan 20 21:09:34 hairball kernel: (probe4:sym0:0:4:0): TEST UNIT READY. > >>>CDB: 0 0 0 0 0 0 > >>>Jan 20 21:09:34 hairball kernel: (probe4:sym0:0:4:0): INQUIRY. CDB: 12 0 > >>>0 0 24 0 > >>Okay, you've proved that the probe code is issuing this. That's wrong. > >>Let me chase what has happened here. > >thanks! > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org" -- Kenneth Merry ken@FreeBSD.ORG