ITEM: S8605L

How to skip a tape drive to the last file.



Question:

How to skip a tape drive to the last file.

Customer disconnected during transfer.

Response:

AIX 3.2.5
Tape 8mm 2.3gb and 5gb
NOTE:  Make sure to have extend file marks set to yes


\#!/bin/ksh
\#set -x
\# this is a script that will poisition to the end of tape
\# for those situations where the number of images on a tape 
\# is unknown

ret_code=0
let no_images=0
device=/dev/rmt0.1

tctl -f $device rewind
while [ $ret_code -eq 0 ] 
do
        tctl -f $device fsf 1 2>/dev/null 1>/dev/null
        if test $? -eq 0
                then
                let no_images=no_images+1
\#              echo "Skipped tape image " $no_images
        else
                ret_code="1"
        fi
done
echo "Tape contains " $no_images " images "

\#  have now positioned 'past' the end-of-tape. in order to
\#  append to the tape, will need to 'back up' 1 RECORD

tctl -f $device bsr 1 2>/dev/null 1>/dev/null

Response:

Response:

Resent again to
cloven@emn.com

Response:

AIX 3.2.5
Tape 150mb 1/4" 

Desc:
  Customer cannot do this:
  
tar -cvf /dev/rmt0.1 /var
tar -cvf /dev/rmt0.1 /tmp
tctl rewind
tctl fsf 2
tar -cvf /dev/rmt0.1 /var
It failed with this error message:
  tar: 0511-195 An error occurred while writing to the storage media.
  A system call received a parameter that is not valid.

I also did this:
  chdev -l rmt0 -a block_size=0
  mksysb /dev/rmt0

It failed the same way on the tar image of the backup
   failed with this error message:

  tar: 0511-195 An error occurred while writing to the storage media.
  A system call received a parameter that is not valid.

So I am going to open up a defect and send it to the level three
group in AUSTIN



Support Line: How to skip a tape drive to the last file. ITEM: S8605L
Dated: March 1995 Category: N/A
This HTML file was generated 99/06/24~13:30:36
Comments or suggestions? Contact us