tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Jeff Higgins <HIGGINS () aces ! k12 ! ct ! us>
To: tru64-unix-managers
Subject: SUMMARY: Determining tape used/remaining
Date: Mon, 16 Sep 1996 17:58:11 +0000	[thread overview]
Message-ID: <96076339121484.tru64-unix-managers.marc@archive.invalid> (raw)

Warm thanks to all who answered my question: 

>Is there any way to find out how many blocks are used and remaining on my
>backup cassettes? We have a 1000/200 with a TLZ07 tape drive (4mm cassettes)

There apparently is no direct way to analyze this, but two people suggested:

#tapex -m

which reports out the number files, number or records per file, and size of
records, which is at least a start. I couldn't test this, not having tapex 
installed nor a chance to locate and install it.

Juergen Bock <FDV20_24@dbf-s1.dbf.ddb.de> has a clever idea:

>one thing should work on all (unix) systems and for all drives:
>Place your tape at the end of your last file written to tape. Then use:
dd if=/dev/zero of=/dev/Yourtape bs=8192
>After the operation is completed, dd will tell you how many blocks it 
>has written. Since your blocksize is 8192 you simply have to compute 
>8192 * amount_of_blocks_written and you have the free space on you 
>tape. Of course you can choose a different blocksize. 
>The operation may take some time but it is reliable. 

I tried this with two interesting results: 1) I made a typo in the "of" spec,
and filled my filesystem  =:-O  2) I cleaned up my filesystem :) and sent it
off to the tape, where it looped for hours and ate CPU time. When I ^C'd, it 
reported:
                         2572783+0 records in
                         2572227+0 records out

I think Mr. Bock is on to something, but I must need to refine my 
implementation!


Thanks to:

Juergen Bock <FDV20_24@dbf-s1.dbf.ddb.de>
Dave Sill <de5@sws5.ctd.ornl.gov>
Lucio Chiappetti <lucio@ifctr.mi.cnr.it>
John Schaeffer <jsch@conncoll.edu>
Paul A Sand <pas@unh.edu>

                 reply	other threads:[~1996-09-16 17:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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