Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* dd can't read >>250Mb from DAT
@ 1994-10-26 13:07 Paul Smith
  0 siblings, 0 replies; only message in thread
From: Paul Smith @ 1994-10-26 13:07 UTC (permalink / raw)


I'm going nutz with OSF v3.0 and trying to back up >>3Bgyte
of disks both local and NFS mounted to the
standard 4mm DAT drive that came in the storage works bay...

So many bugs (??) and things not working as they do on other
Unixes:

1) Block size for the DAT drive.  Such POOR documentation on line,
no clear statements of what block size to use with dd to achive
the optimum / maximum DAT capacity??

The following script found that 4k blocks wrote max data (I believe):

(generate infinate data) | dd ibs=4k obs=4k of=/dev/rmt0l

dd bs=4k if=/dev/rmt0l of=/dev/null does indeed read 2Gb

2) The serious problems occur when real work needs to be done:

find . -print|cpio -ocv |compress|dd ibs=4k obs=4k of=/dev/rmt0l

The above happily writes with no indication that there's a problem.

dd ibs=4k obs=4k if=/dev/rmt0l |uncompress |cpio -ict

The above errors from dd; "invalid input" or some such, at about
250 Mb read in...

If I change the block size in the above to 10k, keeping the block
size to an from the pipe at 4k, still the same end result, write to
tape is silently OK, read from tape fails at some early point.

3) Forget compress and dd.  Just cpio directly to the tape dev, only
use the high density device.

find . -print|cpio -ocv -O/dev/rmt0h

Works fine.

cpio -ict -I/dev/rmt0h

Cpio gets hung in some read error loop, spinning in a continuous
printf, consumming all CPU.

3) Now I'm trying pax.  Watch out for; find . -print|pax -w >/dev/rmt0h

Find will send both files and directories to pax.  Pax behaves like
tar with given a dir, so you end up writing the same dirs over and over
as you gave "." to pax, then each sub-dir etc and each file....

As I'm writting this, I haven't finished testing whether the following
works:

find . -type f -print|pax -wv >/dev/rmt0h

And read back via:

pax -rv </dev/rmt0h

Or just the contents of the tape dumped:

pax </dev/rmt0h


Why so much problem just to back up a lot of data???

Any better solutions to a simple backup script that if total failure occurs
that the tape can be read on another vendors' DAT drive / Unix.

Yes I know that /dev/rmt0h is DEC's non-portable high density format, my 
back is against a wall, that shouldn't be there!!???

Yours.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1994-10-26 13:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-26 13:07 dd can't read >>250Mb from DAT Paul Smith

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