1753872 Members
7295 Online
108809 Solutions
New Discussion юеВ

Re: TAPE Size

 
SOLVED
Go to solution
william_39
Occasional Advisor

TAPE Size

Dear all,
Is there anyway to know the size of TAPE DATA CART thru unix command ?

Thanks in advance.
4 REPLIES 4
steven Burgess_2
Honored Contributor
Solution

Re: TAPE Size

Hi

I don't think there is. But would be greatful if anyone proves me wrong

HTH

Steve
take your time and think things through
Michael Tully
Honored Contributor

Re: TAPE Size

me either.... I usually look at the tape, or in a remote site get the operator to read the tape label.
Anyone for a Mutiny ?
steven Burgess_2
Honored Contributor

Re: TAPE Size

Hi William

This may seem a long way around the solution but if you have got no one at the remote site to tell you what type the tape is and have plenty of time and a little curiosity

First here's a link to the page

http://www.hp.com/products1/storage/products/media/tapebackup_media/tape_dds/

What you can do

After your full backup create an index of the tape

frecover -I /tmp/tapeindex

See what the last file is in the index

tail /tmp/tapeindex

Then , to make sure you have all the files on the index recover the last file.

cd /tmp

frecover -xXv -f /dev/rmt/0m -i /

upper case X will restore file to current dir

You can then add the totals of the files in the index

cat /tmp/tapeindex | awk 'BEGIN {total=0;} {total=total+$1;} END {print total,"\n";}'

Again would be grateful for more efficent solutions

HTH

Steve

take your time and think things through
Heiner E. Lennackers
Respected Contributor

Re: TAPE Size

Hi,

since HP-UX 11.00 the 'mt' command knows the option 'status' which can show you at least what kind of cartridge you have currently loaded:

einstein:/ # mt status
Drive: HP C1537A
Format: DDS-2 format
Status: [41112400] BOT online compression immediate-report-mode
File: 0
Block: 0
einstein:/ #

Then you can approx. check how many data will go onto the tape, but this depends from the kind of data and the possibility for the drive to compress it.

Heiner
if this makes any sense to you, you have a BIG problem