Hi all,
I have a OnStream DI-30 IDE tape drive which complains about
Input/Output errors when reading back a tape written with amdump.
I hold mismatching block sizes responsible, is this correct?
Any suggestions are welcome. Even requests for more info..
What works (repeatedly, even after running amdump
below):
$ ln -s /dev/nht0 /dev/tape
$ mt rewind
$ mt erase
$ dd if=/dev/zero of=/dev/tape bs=32k count=1
1+0 records in
1+0 records out
$ amlabel DailySet1 DailySet15
rewinding, reading label, not an amanda tape
rewinding, writing label DailySet15, checking label,
done.
$ amcheck DailySet1
Amanda Tape Server Host Check
-----------------------------
Holding disk /var/tmp: 20778892 KB disk space
available, thats plenty
NOTE: skipping tape-writable test
Tape DailySet15 label ok
server check took 26.795 seconds
Amanda Backup Client Hosts Check
--------------------------------
Client check: 1 host checked in 0.030 seconds, 0
problems found
(brought to you by amanda 2.4.2p2)
$dd if=/dev/tape bs=32k count=1
AMANDA: TAPESTART DATE X TAPE DailySet15
I can run "amdump DailySet1" and it seems to run
without errors,
but after that, trying to read back the contents of
the tape fail:
$ amverify DailySet1
No tape changer
Tape device is /dev/tape
Verify summary to amanda
Defects file is /tmp/amanda/amverify.15283/defects
amverify DailySet1
Fri Dec 28 13:14:13 CET 2001
Using device /dev/tape
Waiting for device to go ready...
Rewinding...
Processing label...
** Error reading label on tape
Errors found:
/bin/dd: reading '/dev/tape': Input/output error
0+0 records in
0+0 records out
$
The syslog messages show errors
ide-tape: Reached idetape_chrdev_open
ide-tape: Reached idetape_read_position
ide-tape: Reached
idetape_read_position_callback
ide-tape: ht0: skipping frame 21,
logical_blk_num 5 (expected
0)
ide-tape: ht0: couldn't find logical block 0,
aborting (block
5 found)
ide-tape: ht0: Unrecovered read error on
logical block number
0, skipping
and a lot of:
VFS: Disk change detected on device
ide1(22,64)
but that must be the cdrom drive on /dev/hdd.
Portions from amanda.conf:
tapedev "/dev/tape"
tapetype DI30
define tapetype DI30 {
comment "OnStream DI-30"
length 14430 mbytes
filemark 32 kbytes
speed 970 kps
}
My configuration:
Pentium III 866, 256Mb memory, VIA chipset
2x30Gb disks, master + slave on IDE #1
OnStream DI-30, firmware 1.09, master on IDE
#2
LG cdrom CRD-8512B slave on IDE #2
Redhat 7.1, kernel 2.4.16, tape drive uses
ide-tape module
amanda 2.4.2p2
Regards,
Arthur