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)
Determining the Block Size and Type of Backup Tape: ITEM: FAX
Dated: 2000/04/28~00:00 Category: anz
This HTML file was generated 2001/03/08~16:06:38
Comments or suggestions?
Contact us