Amanda-Users

Short writes/SCSI errors?

2004-09-22 13:33:23
Subject: Short writes/SCSI errors?
From: John Morrissey <jwm AT horde DOT net>
To: amanda-users AT amanda DOT org
Date: Wed, 22 Sep 2004 13:30:48 -0400
I'm trying to get Amanda working with a Sony TSL-A300C AIT-1 autoloader
(SCSI-based), but not having much luck. The tape drive and the robot are
detected by the kernel and I can send mt(1) commands to the drive just fine:

scsi0: scanning scsi channel 5 [P1] for physical devices.
  Vendor: SONY      Model: TSL-A300C         Rev: L202
  Type:   Sequential-Access                  ANSI SCSI revision: 02
  Vendor: SONY      Model: TSL-A300C         Rev: L202
  Type:   Medium Changer                     ANSI SCSI revision: 02
Attached scsi generic sg2 at scsi0, channel 5, id 4, lun 0,  type 1
Attached scsi generic sg3 at scsi0, channel 5, id 4, lun 1,  type 8
st: Version 20040403, fixed bufsize 32768, s/g segs 256
Attached scsi tape st0 at scsi0, channel 5, id 4, lun 0
st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA 1048575
st0: Block limits 2 - 16777215 bytes.

However, I can't seem to write a tape. amtapetype says:

Estimate phase 1...amtapetype: could not write any data in this pass: short
write

and kernel dmesg output says:

st0: Error 400f0 (sugg. bt 0x0, driver bt 0x0, host bt 0x4).
st0: Error 4000c (sugg. bt 0x0, driver bt 0x0, host bt 0x4).


And if I try to write a tape directly with tar(1), I get:

[root@witr-pit:pts/0 /home/jwm# tar cvf /dev/nst0 .
./
./.bashrc
./.bash_profile
./.bash_history
tar: /dev/nst0: Wrote only 0 of 10240 bytes
tar: Error is not recoverable: exiting now

and dmesg says:

st0: Error 400f0 (sugg. bt 0x0, driver bt 0x0, host bt 0x4).
st0: Error 4000c (sugg. bt 0x0, driver bt 0x0, host bt 0x4).
st0: Error on write filemark.

The SCSI chain is properly terminated AFAICT, and the autoloader is the only
thing attached to that channel. Am I missing something, or do I have a dead
unit?

thanks,
john
-- 
John Morrissey          _o            /\         ----  __o
jwm AT horde DOT net        _-< \_          /  \       ----  <  \,
www.horde.net/    __(_)/_(_)________/    \_______(_) /_(_)__

<Prev in Thread] Current Thread [Next in Thread>
  • Short writes/SCSI errors?, John Morrissey <=