From: nessus@athena.mit.edu (Doug Alan)
Subject: Re: bug report etiquette
Date: 11 Mar 88 01:44:50 GMT [thread overview]
Message-ID: <3652@bloom-beacon.MIT.EDU> (raw)
In-Reply-To: 5719@cit-vax.Caltech.Edu
In article <5719@cit-vax.Caltech.Edu> mangler@cit-vax.Caltech.Edu (Don
Speck) writes:
>> [Doug Alan:] If the block device is used with the TK50 drive, the
>> tape drive does stream, and is much much happier.
> Somebody here made a similar observation about TU80's, so he did all
> his dumps to the block device. [...] Dump [calculated] tape
> capacity based on 10240 byte blocks, but the block device was
> writing 2048 byte blocks and it wouldn't all fit.
Yup, that will happen if you don't know what you are doing.
> [He didn't notice this until later, however, when] he needed to do a
> restore, and all his tapes gave a premature EOF. [...] The tape
> driver [had] returned error [when writing the tape], but because
> block-device writes are asynchronous, the completion status doesn't
> get returned to anybody, so he had no indication that writes were
> not getting done (except perhaps the long pause at end of tape).
Well, I don't know what kind of system you are using, but on our
4.3BSD systems, there is no such problem. 'Dump' receives errors such
as these even when writing to the tape asynchronously using the block
device. I know this for a fact because this very thing happened to me
last night when I made a typo and used the block device when I had
meant to use the raw device on a TU78. A while later, 'dump' stopped,
complaining that there was a write error 1200 feet into the tape. The
2400 foot tape on the tape drive, however, was at the end.
There *are* also a few problems using 'restore' on the block device,
but they can also be worked around. If 'restore' gets an error while
reading the block device, it can't recover from the error and it just
gives up. What you have to do is use 'dd' to read the tape, telling
it not to stop on errors and to pad any incomplete blocks. The output
from 'dd', you pipe into 'restore'.
> The block device is for mounting filesystems. Read only. Which you'd
> probably only want to do if your tape drive is actually a WORM. Didn't
> work correctly in 4.2bsd, though.
So you're saying that instead of using the block device to do dumps on
the TK50 and gotten dumps that worked, I should have used the raw
device and gotten dumps that didn't work? (Using the raw device with
the TK50 results in an order of magnitude increase in time and several
orders of magnitude increase in error-rate.) Please explain the logic
in that.
|>oug /\lan
prev parent reply other threads:[~1988-03-11 1:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1988-02-19 12:39 TM78 (TU78) question: Read Opposite operation Chris Torek
1988-02-22 15:57 ` Griff Smith
1988-02-22 20:00 ` Chris Torek
1988-02-23 17:18 ` bug report etiquette Griff Smith
1988-02-24 5:10 ` Chris Torek
1988-02-27 6:03 ` Doug Alan
1988-02-27 17:42 ` Jeff Siegal
1988-03-10 8:22 ` Don Speck
1988-03-11 1:44 ` Doug Alan [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox