Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* SCSI tape timeout
@ 1999-01-20  5:00 Mike Schroeder
  1999-01-21  5:00 ` Mike Parson
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Schroeder @ 1999-01-20  5:00 UTC (permalink / raw)


Hi.
I've (finally) gotten my Sony DAT drive to work.. I think.  Only there
are still some problems.  One thing is the mt command (I have the latest
I think it's 0.5-2 or some such) when I do a "mt -f /dev/nst0 rewind" it
will timeout and generate an error message waiting for the tape to
finish rewinding.  It all actually works, but complains that it doesn't
know if the command worked or not because it timed out.
And don't try to do a "mt -f /dev/nst0 erase"  because that hangs Linux
completely.  (Hey, who said Linux couldn't do what Windblows does? :)
Seems to be SCSI bus problems to me.

Also, where can I find how to correctly use the dump command?  I have it
working, but It's mostly guess work.  I'd like to optimize it.  How come
there isn't a "backup-HOWTO"?

Mike




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: SCSI tape timeout
  1999-01-20  5:00 SCSI tape timeout Mike Schroeder
@ 1999-01-21  5:00 ` Mike Parson
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Parson @ 1999-01-21  5:00 UTC (permalink / raw)


In article <36A61123.17D63B98@earthling.net.nospam>,
Mike Schroeder  <mike.s@earthling.net.nospam> wrote:
> Hi.
> I've (finally) gotten my Sony DAT drive to work.. I think.  Only there
> are still some problems.  One thing is the mt command (I have the latest
> I think it's 0.5-2 or some such) when I do a "mt -f /dev/nst0 rewind" it
> will timeout and generate an error message waiting for the tape to
> finish rewinding.  It all actually works, but complains that it doesn't
> know if the command worked or not because it timed out.
> And don't try to do a "mt -f /dev/nst0 erase"  because that hangs Linux
> completely.  (Hey, who said Linux couldn't do what Windblows does? :)
> Seems to be SCSI bus problems to me.

Make sure you have reselection enabled on your SCSI controller (if
supported by the controller).  If you've got a Multia/UDB, this is a
kernel compile time option that you set when config-ing the kernel.
Unfortunately, with the Multias, it's an all or nothing setting with
reselection.

If you're using something like a BusLogic or Adaptec controller, then
you've got to twiddle with the controller's BIOS settings to enable
reselection for the card and the tape device.  Doing things with tapes
can be time consuming.  If the tape doesn't return from the command
issued in what the kernel decides is a resonable time, it will think
something went wrong and start resetting the SCSI bus, then all sorts
of Bad Things can start happening.  If you have reselection enabled,
the tape device can 'detach' itself from the bus once the command has
been issued (mt -f /dev/nst0 erase) and then reattach itself when it
completes the command.  This will free up the SCSI bus for use by other
devices and the kernel will not get upset and start resetting things.

> Also, where can I find how to correctly use the dump command?  I have it
> working, but It's mostly guess work.  I'd like to optimize it.  How come
> there isn't a "backup-HOWTO"?

When dumping to my DDS2 drive, I use:

/sbin/dump 0ubBf 63 4096000 /dev/nst0 /

The basic problem with a backup-HOWTO would be having to lookup and
provide all the block-size/block-counts for all the different types of
tape drives out there. =)

-- 
Michael Parson
mparson@bl.org



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-01-21  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-20  5:00 SCSI tape timeout Mike Schroeder
1999-01-21  5:00 ` Mike Parson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox