From owner-freebsd-scsi Mon Mar 22 17:28:44 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from feral.com (feral.com [192.67.166.1]) by hub.freebsd.org (Postfix) with ESMTP id 5B57515177 for ; Mon, 22 Mar 1999 17:28:38 -0800 (PST) (envelope-from mjacob@feral.com) Received: from localhost (mjacob@localhost) by feral.com (8.8.7/8.8.7) with ESMTP id RAA21126; Mon, 22 Mar 1999 17:27:58 -0800 Date: Mon, 22 Mar 1999 17:27:57 -0800 (PST) From: Matthew Jacob X-Sender: mjacob@feral-gw Reply-To: mjacob@feral.com To: Palle Girgensohn Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: Travan-20 tape streamer: unit not ready In-Reply-To: <36F6D5BB.1F46625F@partitur.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org (removing freebsd-hardware from list). > in messages, the mt command gives the following "clues": > Mar 23 00:33:19 trumpet /kernel: (sa1:aha0:0:5:0): LOAD UNLOAD. CDB: 1b > 0 0 0 1 0 > Mar 23 00:33:19 trumpet /kernel: (sa1:aha0:0:5:0): ILLEGAL REQUEST > asc:4,3 > Mar 23 00:33:19 trumpet /kernel: (sa1:aha0:0:5:0): Logical unit not > ready, manual intervention required > Mar 23 00:33:19 trumpet /kernel: (sa1:aha0:0:5:0): REWIND. CDB: 1 0 0 0 > 0 0 > Mar 23 00:33:19 trumpet /kernel: (sa1:aha0:0:5:0): NOT READY asc:4,3 > Mar 23 00:33:19 trumpet /kernel: (sa1:aha0:0:5:0): Logical unit not > ready, manual intervention required I just ordered an HP 20GB 'travan like' drive. It'll be interesting to see if this is also that broken. And this is with the unit there *and* a tape inserted? Wow! That is *really* fantastically broken that a tape drive that has a tape inserted supports *neither* a load (to BOT) command or a REWIND. The load is optional. The rewind is mandatory. That's amazing. I think I'll have to invent a new quirk for someething this broken. The code that this is breaking on is the following in samount: /* * *Very* first off, make sure we're loaded to BOT. */ scsi_load_unload(&ccb->csio, 2, sadone, MSG_SIMPLE_Q_TAG, FALSE, FALSE, FALSE, 1, SSD_FULL_SIZE, 60000); error = cam_periph_runccb(ccb, saerror, 0, SF_QUIET_IR, &softc->device_stats); if ((ccb->ccb_h.status & CAM_DEV_QFRZN) != 0) cam_release_devq(ccb->ccb_h.path, 0, 0, 0, FALSE); /* * In case this doesn't work, do a REWIND instead */ if (error) { scsi_rewind(&ccb->csio, 5, sadone, MSG_SIMPLE_Q_TAG, FALSE, SSD_FULL_SIZE, (SA_REWIND_TIMEOUT) * 60 * 1000); error = cam_periph_runccb(ccb, saerror, 0, 0, &softc->device_stats); } if (error) { xpt_release_ccb(ccb); goto exit; } When you're trying to mount a tape, make sure you're at BOT. If the rewind is failing- it's hard for me to really be sure I'm not overwriting something I shouldn't be, but if this drive really is that busted, I'll guss I'll quirk it so it doesn't matter. -matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message