Amanda-Users

amtapetype doesn´t work

2005-11-09 18:02:23
Subject: amtapetype doesn´t work
From: yahoo AT e-schuett DOT de
To: amanda-users AT amanda DOT org
Date: Wed, 09 Nov 2005 23:50:25 +0100
Hello,

I use Suse 9.3 prof. with Amanda 2.4.4p3 and a Quantum DLT4000 
tape-drive with 35/70 GB DLT-tapes.

First step was erasing the tape and then labeled with amlabel.

Before defining some hardware-infos in the 
/etc/DailySet1/amanda.conf, I tested it with amtapetype.

But I got always the following error :
"Estimate phase 2....amtapetype: could not write any data in this 
pass: short write"

So I corrected some entries in my /etc/stinit.def (see attached 
description), run stinit and then amtapetype again.

But nothing changed. So I have no idea what´s happened.

I make a test with "tar -cf /dev/nst0 /tmp/myfiles/....." --> and it works 
!

So what´s wrong in my configuration ?

--------------------------------------------------------
Here is the print from "ls -l /dev/*st0*"
--------------------------------------------------------
crw-rw----  1 root disk 206, 128 2005-03-19 20:36 /dev/nosst0
crw-rw----  1 root disk 206, 224 2005-03-19 20:36 /dev/nosst0a
crw-rw----  1 root disk 206, 160 2005-03-19 20:36 /dev/nosst0l
crw-rw----  1 root disk 206, 192 2005-03-19 20:36 /dev/nosst0m
crw-rw----  1 root disk   9, 128 2005-03-19 20:36 /dev/nst0
crw-rw----  1 root disk   9, 224 2005-03-19 20:36 /dev/nst0a
crw-rw----  1 root disk   9, 160 2005-03-19 20:36 /dev/nst0l
crw-rw----  1 root disk   9, 192 2005-03-19 20:36 /dev/nst0m
crw-rw----  1 root disk 206,   0 2005-03-19 20:36 /dev/osst0
crw-rw----  1 root disk 206,  96 2005-03-19 20:36 /dev/osst0a
crw-rw----  1 root disk 206,  32 2005-03-19 20:36 /dev/osst0l
crw-rw----  1 root disk 206,  64 2005-03-19 20:36 /dev/osst0m
crw-rw----  1 root disk   9,   0 2005-03-19 20:36 /dev/st0
crw-rw----  1 root disk   9,  96 2005-03-19 20:36 /dev/st0a
crw-rw----  1 root disk   9,  32 2005-03-19 20:36 /dev/st0l

--------------------------------------------------------
Here are the "status"-messages with MT 
(1 : /dev/nst0, 2: /dev/nst0a, 3 /dev/nst0l
4 : /dev/nst0m
--------------------------------------------------------

asterix:/etc # mt -f /dev/nst0 status
drive type = Generic SCSI-2 tape
drive status = -2097152000
sense key error = 0
residue count = 0
file number = 1
block number = 0
Tape block size 0 bytes. Density code 0x83 (unknown).
Soft error count since last status=0
General status bits on (81010000):
 EOF ONLINE IM_REP_EN
 
asterix:/etc # mt -f /dev/nsta status
mt: /dev/nsta: No such file or directory
asterix:/etc # mt -f /dev/nst0a status
drive type = Generic SCSI-2 tape
drive status = -2097150976
sense key error = 0
residue count = 0
file number = 1
block number = 0
Tape block size 1024 bytes. Density code 0x83 (unknown).
Soft error count since last status=0
General status bits on (81010000):
 EOF ONLINE IM_REP_EN

asterix:/etc # mt -f /dev/nstl status
mt: /dev/nstl: No such file or directory
asterix:/etc # mt -f /dev/nst0l status
drive type = Generic SCSI-2 tape
drive status = -2113929216
sense key error = 0
residue count = 0
file number = 1
block number = 0
Tape block size 0 bytes. Density code 0x82 (unknown).
Soft error count since last status=0
General status bits on (81010000):
 EOF ONLINE IM_REP_EN

asterix:/etc # mt -f /dev/nst0m status
drive type = Generic SCSI-2 tape
drive status = -2113928192
sense key error = 0
residue count = 0
file number = 1
block number = 0
Tape block size 1024 bytes. Density code 0x82 (unknown).
Soft error count since last status=0
General status bits on (81010000):
 EOF ONLINE IM_REP_EN

-------------------------------------------------------
Here are the outputs from amtapetype
--------------------------------------------------------

asterix:/etc # amtapetype -f /dev/nst0
Writing 128 Mbyte   compresseable data:  29 sec
Estimate phase 2...amtapetype: could not write any data in this pass: 
short write

asterix:/etc # amtapetype -f /dev/nst0a
Writing 8 Mbyte   compresseable data:  119 sec
Estimate phase 2...amtapetype: could not write any data in this pass: 
short write

asterix:/etc # amtapetype -f /dev/nst0l
Writing 64 Mbyte   compresseable data:  46 sec
Estimate phase 2...amtapetype: could not write any data in this pass: 
short write

asterix:/etc # amtapetype -f /dev/nst0m
Writing 8 Mbyte   compresseable data:  74 sec
Estimate phase 2...amtapetype: could not write any data in this pass: 
short write
asterix:/etc #   

--------------------------------------------------
Here is the content of my /etc/stinit.def (I use only the "Quantum 
DLT4000 Section)
--------------------------------------------------

# This file contains example definitions for different kinds of tape
# devices. If the user agrees with the definitions, they can be used
# in the definition file stinit.def by changing the manufacturer and
# model fields to correspond the real tape device being defined.

# The common definitions that can usually be used
{buffer-writes read-ahead async-writes scsi2logical=1}

# DLT4000
manufacturer="Quantum" model = "DLT4000 CPQ DRV" {
scsi2logical=1
can-bsr
auto-lock=0
two-fms=0
drive-buffering=1
buffer-writes
read-ahead=1
async-writes=1
can-partitions=0
fast-mteom=1
#
# If your stinit supports the timeouts:
timeout=3600 # 1 hour
long-timeout=14400 # 4 hours
#
# Drive is backwards compatible, use older modes (e.g. from above) 
as required
mode1 blocksize=0 density=0x83
mode2 blocksize=0 density=0x82
mode3 blocksize=1024 density=0x82       
mode4 blocksize=1024 density=0x83       
}
------------------------------------------------------------------------------------



<Prev in Thread] Current Thread [Next in Thread>