Reading tapes into Debian using a Mammoth-2 drive.

Joined
Sep 23, 2009
Messages
26
Hello, I have a Sun Sunfire V440 server (Linux RIRESTORET1 2.6.26-2-sparc64-smp #1 SMP Wed May 12 21:24:38 UTC 2010 sparc64 GNU/Linux) that's running Debian 5.04. We are using this computer to try to read tapes from Debian, as we have thousands of tapes to read in (fun). The tape drive in question we are trying to read from is a Exabyte Mammoth M2. We believe the tape drive is functional as it was recently used to write tapes. The drive does appear to read tapes in, than spits out errors. Any help is appreciated. I am fairly limited in my tape experience, however I am fairly experienced with Debian. I have also tried this on a dell PowerEdge 2650 and I am getting the same problems :x I have also tried multiple tape drives.

In slowaris 10.0 (which also doesn't seem to read the tapes, even with this entry) we were told to add this line by sun to /kernel/drv/sd.conf, however I I don't truly know what it means.
"EXABYTE Mammoth2", "EXABYTE Mammoth2", "EXB-M2";
EXB-M2 = 1,0x36,0,0x1de39,1,0x28,0;

These are the errors I get using various utility's.

RIRESTORET1:~# mt -f /dev/st0 status
[ 401.689111] st0: Block limits 4 - 245760 bytes.
[ 401.689111] st0: Block limits 4 - 245760 bytes.
drive type = 114
drive status = 671089664
sense key error = 0
residue count = 0
file number = 0
block number = 0

RIRESTORET1:~# tar tvf /dev/st0
[ 419.979583] st0: Incorrect block size.
[ 419.979583] st0: Incorrect block size.
tar: /dev/st0: Cannot read: Input/output error
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now

RIRESTORET1:/dev# cpio -civt < /dev/st0
[ 1015.554050] st0: Incorrect block size.
Segmentation fault

RIRESTORET1:/dev# mt -f /dev/nst0 status
drive type = 114
drive status = 671089664
sense key error = 0
residue count = 0
file number = 0
block number = 0

RIRESTORET1:/dev# tar tvf /dev/nst0
[ 536.887777] st0: Incorrect block size.
[ 536.887777] st0: Incorrect block size.
tar: /dev/nst0: Cannot read: Input/output error
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now

RIRESTORET1:/dev# cpio -civt < /dev/nst0
[ 1098.578208] st0: Incorrect block size.
Segmentation fault


Some troubleshooting info possibly.

RIRESTORET1:/dev# cat /proc/cpuinfo
cpu : TI UltraSparc IIIi (Jalapeno)
fpu : UltraSparc IIIi integrated FPU
prom : OBP 4.16.4 2004/12/18 05:20
type : sun4u
ncpus probed : 4
ncpus active : 4
D$ parity tl1 : 0
I$ parity tl1 : 0
Cpu0ClkTck : 000000005ef34040
Cpu1ClkTck : 000000005ef34040
Cpu2ClkTck : 000000005ef34040
Cpu3ClkTck : 000000005ef34040
MMU Type : Cheetah+
State:
CPU0: online
CPU1: online
CPU2: online
CPU3: online
 
You need the correct blocksize specified. I think this is because tapes typically use fairly large block sizes and the tools won't allocate enough space to read a whole block at once, which obviously won't work. Try successive values for '-b' argument to tar.

I'm not really an expert on tape, but I think there are also certain block modes that Linux needs some special configuration to use, depending on how the tape was written.
 
Back
Top