I have two systems that have identical tape drives on them. Here's the
basic setup:
Home PC: Pentium III 500MHz, running RedHat Linux 7.0. Contains an on-board
Symbois SCSI controller.
Work PC: Pentium II 300 MHz, running RedHat Linux 6.2. Contains an Adaptec
AHA-2940 SCSI controller.
Both PC's have an Archive Python DDS-3 tape drive. If I cat /proc/scsi/scsi
on both systems it shows an identical tape device with the same firmware,
etc. (just located on different scsi devices with different id's):
Home PC:
Host: scsi1 Channel: 00 Id: 04 Lun: 00
Vendor: ARCHIVE Model: Python 04106-XXX Rev: 715G
Type: Sequential-Access ANSI SCSI revision: 02
Work PC:
Host: scsi0 Channel: 00 Id: 06 Lun: 00
Vendor: ARCHIVE Model: Python 04106-XXX Rev: 715G
Type: Sequential-Access ANSI SCSI revision: 02
Both machines also have gnu tar 1.13.17 on them. My problem is that tapes
created on my home machine using tar aren't readable by the work machine,
and vice versa. I can create a tape on my home pc using "tar cvf /dev/st0"
and then immediately extract the files using "tar xvf /dev/st0" without any
problems. I've even gone so far as verifying the results with checksums.
If, however, I take that exact same tape to my work PC and run "tar xvf
/dev/st0" it will start to try to extract the files (I'll see the first
filename get displayed) then after a few minutes I get the following:
tar: /dev/st0: Cannot read: Input/output error
tar: /dev/st0: Cannot read: Input/output error
tar: Too many errors, quitting
tar: Error is not recoverable: exiting now
What gives? Why do these two similar systems have problems reading tapes
from one another? I've tried specifying block sizes, cleaning the drives,
etc. but nothing seems to work....
Help! (banging his head against the wall......)
-Bruce
Finally, just parenthetically, earlier this year I upgraded from RH
5.2 to RH 6.2. It broke my tape commands .. MT commands no longer work
for reasons I do not understand now. They worked in 5.2, dont in 6.2.
Maybe a search on RH might help you ... in errata or something.
lihsin
: -Bruce
Depending on what you need to back up, you could try using dump or cpio
instead of tar. Another option is to try something commercial, like BRU.
John
--
John Taylor
Reply to:
john
at
giffords dot net
> Finally, just parenthetically, earlier this year I upgraded from RH
> 5.2 to RH 6.2. It broke my tape commands .. MT commands no longer work
> for reasons I do not understand now. They worked in 5.2, dont in 6.2.
> Maybe a search on RH might help you ... in errata or something.
(disclaimer -- I'm in the GCC group, not the Linux group, so what I say is
personal opinion).
Do a:
rpm -qf /bin/mt
and if it says something like:
mt-st-0.5-?
instead of:
mt-st-0.5b-7
where the ? is some number, you have a broken mt that can't handle using the -f
option with a command that takes a numeric value (it always uses 0 for the
numeric value). I thought that the bug existed in Red Hat 6.1 and was fixed in
6.2.
--
Michael Meissner, Red Hat, Inc. (GCC group)
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meis...@redhat.com phone: +1 978-486-9304
Non-work: meis...@spectacle-pond.org fax: +1 978-692-4482