Tape space used not correct


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Tape space used not correct
# 1  
Old 10-04-2004
Tape space used not correct

version: SCO 5.0.5

There is a file in /usr/local/bin called ' baktape ', I'm unsure whether this is a standard unix file or one created by someone who used to manage this server? Anyway, it backs up what is specified to be backed up to tape and then prints off a report.

Problem:
What comes out on the report for the ' data written to tape ' is incorrect. For example, my report will show that 26543k was written to tape and when I extract the actual data from the tape, it is more like 3Gb. (data compression is off)

Script:
Partial script that produces the report is as follows,

AMOUNT=`tape amount | awk -F: '{print $2}'`
echo "Tape space used : ${AMOUNT}">>${TAPELOG}

Knowing that the command to see the data written in the current or last transfer is " tape amount ", what could be the cause of this problem.

I have already used new tapes, cleaned the tape drive. Oh the tape drive is a SONY SDT9000.
# 2  
Old 10-06-2004
Found this in a post on the 'Net
Quote:
tape amount may return 1 of 2 pieces of data

1. last or current transfer: 0K ( This would show the amount transfered)
2. device identification string - %Stp0 - - - Vendor = Aiwa Product =
ts-200001 flowwed by a new line and "last or current transfer: 0K
Since it states last or current transfer, are you doing mulitple tar commands and only getting the info from the last (which is smaller than the whole)? Or, are you actually reading some number from the vendor model? Does your number change (the 26543k was written to tape) or stay the same?

If it's only reading the last transfer, or attempting to read from each transfer, then there is something missing in the logic. When running the tape command for each transfer, you would have to add that amount to a variable, increasing it each time a tar/dump/whatever is run.
# 3  
Old 10-06-2004
Thanks for the reply RTM. I think I may of sorted it out.

In the cpio command I use the -C option to state my Buffer Size, this was set to 10000, my thoughts are that if I increase this then I will be able to read in bigger blocks. Your idea is right where I can write to a variable, I will try the bigger buffer size first, if that fails, I will use your variable to hold the value.

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

UNIX Checking Tape Space

Hello. My name is Alex and I am new to the UNIX environment. One of the things that I do on a daily basis is I perform backups to tape on a Sun Ultra 25. I use DAT72 tape. The tape that is currently in the tape drive has about five database backups within it already. I was just hoping... (19 Replies)
Discussion started by: daddy.torres
19 Replies

2. Solaris

Which gives the correct swap space top/vmstat ?

last pid: 29502; load avg: 21.8, 20.7, 20.4; up 8+08:49:09 763 processes: 589 sleeping, 9 running, 160 zombie, 5 on cpu CPU states: 0.0% idle, 28.2% user, 71.8% kernel, 0.0% iowait, 0.0% swap Memory: 32G phys mem, 2042M free mem, 8198M total swap, 8020M free swap kthr ... (2 Replies)
Discussion started by: chidori
2 Replies

3. AIX

Ejecting tape on AIX & Some Tape commands

I am trying to use this command to eject the tape mt -f /dev/rmt/0 unload but it gives me error mt -f /dev/rmt/0 unload mt: 0511-575 unload is not a recognized subcommand. Usage: mt Subcommand Valid subcommands are: weof eof fsf bsf ... (5 Replies)
Discussion started by: filosophizer
5 Replies

4. UNIX for Dummies Questions & Answers

Copying tape-to-tape on UNIX

I am using a 4mm tape to backup my Unix system. However, I wanted to make a copy all of the files and archive headers (or just the archive headers if that's possible) created on one of my tapes to another 4mm tape. I only have one tape drive. Is there a command that will complete such task? ... (1 Reply)
Discussion started by: acoco
1 Replies

5. AIX

How to make a copy of a tape to another tape?

Hello, We need to make a copy of a backup tape, using the 2 tape recorders in IBM 3582 Tape Library We tried tu use "tcopy", it seems to work fine (no error messages) but we aren't sure if we can rely on it. my question is how to check if the copy succeded or not, but i also want to know... (3 Replies)
Discussion started by: fastlane3000
3 Replies

6. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

7. SCO

Tape Status shows 2 Hard errors and 5 Underruns on new tape

when I do a tape status /dev/rStp0 I get the following on a new tape and I have tried several: Status : ready beginning-of-tape soft errors : 0 hard errors: 2 underruns: 5 My BackupEdge has stopped backing up my system because it asks for a new volume yet my total system data is under 20... (5 Replies)
Discussion started by: psytropic
5 Replies

8. UNIX for Dummies Questions & Answers

Mounting DLT tape and to backup file to tape

Hi there: I'm new here Can anyone help me: I have DS15 Alpha server : Unix 5.1B Now i need to connect a DLVT VS80 1U Rackmount Tape Drive unit. What is the exact comman to mount the DLTape IV?? How do i make backuo @ copy file to the tape? Thanx to all (0 Replies)
Discussion started by: ayzeayem
0 Replies

9. UNIX for Advanced & Expert Users

Space free on tape /delete a single file on tape

Hi, I' using a sun solaris server, I would like to known if there is the possibility to control how many space is free on a tape and how I can delete a single file on a tape. Thanks DOMENICO (3 Replies)
Discussion started by: Minguccio75
3 Replies
Login or Register to Ask a Question