PDA

View Full Version : Problems with Tandberg SLR7



Artur
November 10th, 2006, 11:21 AM
Hi
I have a problem with TD SLR 7.
I can't write dump into tape.

when i run amcheck i got the message:

Amanda Tape Server Host Check
-----------------------------
Holding disk /dumps/amanda: 224049908 kB disk space available, using 20971520 kB as requested
Changer problem: open: /dev/st0: Success
changer problem: open: /dev/st0: Success (expecting a new tape)
Server check took 0.229 seconds

e-mail after amdump:

From amandabackup@localhost.localdomain Fri Nov 10 21:02:48 2006
Date: Fri, 10 Nov 2006 21:02:48 +0100
From: Amanda <amandabackup@localhost.localdomain>
To: root@localhost.localdomain
Subject: DailySet1 AMANDA MAIL REPORT FOR November 10, 2006

*** A TAPE ERROR OCCURRED: [No writable valid tape found].
Some dumps may have been left in the holding disk.
Run amflush to flush them to tape.
The next tape Amanda expects to use is: a new tape.
(.....)

the dump is not write to tape.

Artur
November 10th, 2006, 11:25 AM
my amanda.conf

logdir "/etc/amanda/daily/log"
indexdir "/etc/amanda/daily/index"
infofile "/etc/amanda/daily/curinfo"
mailto "root@localhost"
tapecycle 2
dumpcycle 1 days
runtapes 1
tpchanger "chg-scsi"
tapedev "0"
changerfile "/etc/amanda/daily/changer.conf"

tapetype TANDBERG-SLR7
labelstr "^daily[0-9]*$"
define tapetype HARD-DISK {
comment "Dump on HD"
length 10000 mbytes
}

define tapetype TANDBERG-SLR7 {
comment "Produced by tapetype program-TANDBERG SLR7"
length 18549 mbytes
filemark 1034 kbytes
speed 1470 kps
}

holdingdisk hd1 {
comment "main holding disk"
directory "/dumps/amanda" # where the holding disk is
use 20 Gb # how much space can we use on it
# a non-positive value means:
# use all space but that value
chunksize 1Gb # size of chunk if you want big dump to be
# dumped on multiple files on holding disks
# N Kb/Mb/Gb split images in chunks of size N
# The maximum value should be
# (MAX_FILE_SIZE - 1Mb)
# 0 same as INT_MAX bytes
}

define dumptype hard-disk-tar {
hard-disk-dump
comment "Backup on HD - using tar"
program "GNUTAR"
compress fast
index yes
priority high
}

changer.conf


number_configs 1
eject 0 # Tapedrives need an eject command
sleep 70 # Seconds to wait until the tape gets ready
cleanmax 0 # How many times could a cleaning tape get used

changerdev /dev/st0
slot 1 /dev/st0
startslot 0
endslot 0


Where is a problem?

paddy
November 10th, 2006, 01:49 PM
Did you label tapes using amlabel (http://wiki.zmanda.com/index.php/Amlabel)?

If you had labelled tapes available, please take a look at /tmp/amanda/server/<amanda configuration name/taper* log file. If you running 2.5.0 or older version of amanda, the log files will be in /tmp/amanda directory.

Paddy

Artur
November 10th, 2006, 02:24 PM
thank's for all
I changed the tpchanger for chg-mannual and all is ok.

beware:
do not use /dev/st0
better use /dev/nst0 :)