Determining the Block Size and Type of Backup Tape


Environment

OS Level: AIX Version 3.2.5
Type/Model: Unspecified

Problem

Is there a script that will determine the block size and type of backup tape being used?

Solution

The following script accomplishes these tasks.
   #!/bin/ksh
   tctl rewind
   chdev -l rmt0 -a block_size=0
   dd if=/dev/rmt0 bs=128k of=blksz_file count=1
   echo Tape Block Size = $(ls -l ./blksz_file | awk '{print $5}')
   echo Tape Format = $(file ./blksz_file | while read a b;do echo $b;done)




[ Doc Ref: 95634952321776     Publish Date: Apr. 28, 2000     4FAX Ref: none ]