From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: [Q] how to list #/size of dumpfiles on tape
Date: 1996/04/21 [thread overview]
Message-ID: <4ldp9p$j5b@nntpd.lkg.dec.com> (raw)
In-Reply-To: Dq2DDn.MoD@plato.ds.boeing.com
In article <Dq2DDn.MoD@plato.ds.boeing.com>, John Haro <haro@fclzoo.itdl.ds.boeing.com> writes:
>I need some kind of way to do a listing on my DEC TZ87 tape drive to find out
>how many and number of dumpfiles so I know how much tape I have left.
You could start with:
% dd if=/dev/nrmt#h of=/dev/null bs=block-size-of-dump
Repeat until end of tape. Each dd(1) command will print the
number of tape records read. Multiply by the block size and
you know how much uncompressed tape capacity has been used.
But, there's the problem; UNCOMPRESSED tape capacity. It may
be hard to get the running compression ratio (the drive may
keep it in a mode page). Without knowing how well the data
compresses (since the TZ87 does compression), you won't be
able to tell accurately how much more data a tape can hold.
Dump also writes this information to /dev/tty. Depending on how
your script is written, it may be possible to capture that
information.
>
>Thanks, John.
>
>pls email back to
> haro@fclzoo.itdl.ds.boeing.com
>
>
--
Alan Rollow alan@nabeth.cxo.dec.com
prev parent reply other threads:[~1996-04-21 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-18 4:00 [Q] how to list #/size of dumpfiles on tape John Haro
1996-04-21 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [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