Date: Mon, 22 Mar 1999 17:27:57 -0800 (PST) From: Matthew Jacob <mjacob@feral.com> To: Palle Girgensohn <girgen@partitur.se> Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: Travan-20 tape streamer: unit not ready Message-ID: <Pine.LNX.4.04.9903221721160.21098-100000@feral-gw> In-Reply-To: <36F6D5BB.1F46625F@partitur.se>
next in thread | previous in thread | raw e-mail | index | archive | help
(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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.04.9903221721160.21098-100000>