Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: dump and DAT's
Date: 11 Mar 1995 00:06:41 GMT	[thread overview]
Message-ID: <3jqpih$12n@nntpd2.cxo.dec.com> (raw)
In-Reply-To: 3jnbrgINN65g@lanews.la.asu.edu


In article <3jnbrgINN65g@lanews.la.asu.edu>, scowen@tycho.la.asu.edu (Paul A. Scowen) questions:
>
> [ The value of the dump options for specifying the length and density
>   on modern tape drives that are nothing like the 9 track tape for
>   which the options were originally designed... ]


>My question is how do you determine this size?

For OSF and ULTRIX, the best answer is that you don't.  About 8 years ago
ULTRIX V2.0 added support in the driver that allowed dump (tar and dd) to
tell the difference between an I/O error and the end of media.  With this
support dump has been able to tell when it reaches the end of tape and
tries to handle the necessary tape appropriately.  The OSF tape drivers
inherited this support.

However, the length and density had been used to do more than guess at
when EOM was coming up, it allowed estimating the number of tapes that
a dump was going to take and this was useful.  So, support for the
options was kept and each new version required changes for each new
tape drive added to the system.  The old 9 track model was kept and
the default values for length and density were chosen to make the model
come out with something close to the right answer.

As long as dump was allowed to use the defaults it would give the closest
estimate it could, but still handle EOM correctly.  If you used the length
and density and it would trust you.  Make the tape too long and the EOM
handling would kick in early.  Too short and it would trust you and ask
for a tape change before one was necessary.  In ULTRIX V4.4 and in the DEC
OSF/1 code (soon Digital UNIX), this was changed so that estimates wouldn't
be trusted.  I think ULTRIX an environment variable that lets those relying
on the behaviour to get it.

So, the value of different length and densities is that it allows you
find a better model for the tape drive to get better up front estimates.
Throw in data compression and I think you can forget it unless you can
estimate in advance what the compression ratio will be.  Personally,
I prefer the running estimate anyway.  It gets updated to reflect how
long it is taking to write data and stays pretty accurate after the
first estimate.

>
>Then under OSF/1 I found the -B -S
>options that allow specification of overall volume size in 1024-byte blocks.

I think this was designed for writing to the RA60 (or other removable disk
devices).  You could specify the capacity and it would do the appropriate
thing.  It wasn't meant for tapes.

>
>-------------------------------------------------------------------------------
>Paul A. Scowen                       | Internet: scowen@tycho.la.asu.edu
>
--
Alan Rollow				alan@nabeth.cxo.dec.com



  reply	other threads:[~1995-03-11  0:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-09 16:54 dump and DAT's Paul A. Scowen
1995-03-11  0:06 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
1995-03-13 14:33   ` John Kohl
1995-03-13 23:00     ` Peter da Silva
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