Amanda-Users

Re: problems with label of tape in last slot

2005-10-28 04:48:56
Subject: Re: problems with label of tape in last slot
From: Stefan Herrmann <magic99de AT web DOT de>
To: Paul Bijnens <paul.bijnens AT xplanation DOT com>
Date: Fri, 28 Oct 2005 10:39:54 +0200
Am 27.10.2005 um 10:49 schrieb Paul Bijnens:
Stefan Herrmann wrote:
yes I do have problems:
stefan:/usr/local/amanda/etc/amanda/daily amanda$ amtape daily label daily2
amtape: scanning for tape with label daily2
amtape: slot 3: date X        label daily3 (wrong tape)
amtape: slot 4: date X        label daily4 (wrong tape)
amtape: slot 5: date X        label daily5 (wrong tape)
amtape: slot 6: date X        label daily6 (wrong tape)
amtape: slot 7: date X        label daily7 (wrong tape)
amtape: slot expr:: tape_rdlabel: tape open: syntax error: No such file or directory
amtape: slot 1: date 20051026 label daily1 (wrong tape)
amtape: slot 2: date 20051027 label daily2 (exact label match)
amtape: label daily2 is now loaded.
the tape in slot 8 (daily8) cant be scanned. so if i want to load daily8 there is no match and I cant load the tape :(

Is is there anything different with the last slot?

No, nothing different .. same as the other slots

What is the output of:

$ cd /usr/local/amanda/etc/amanda/daily
$ amgetconf tapecycle
8               # at least that what I expect

yes, that's the output

$ amgetconf tapedev
file:/some/directory/slots      # use this output in the next cmd

stefan:/usr/local/amanda/etc/amanda/daily amanda$ amgetconf tapedev
file:/Volumes/amanda1/daily

$ ls -la /some/directory/slots/slot[78]
... # any difference between slot 7 and 8??? permissions, filesize etc.

stefan:/Volumes/amanda1/daily amanda$ ls -la slot[78]
slot7:
total 144
drwxr-xr-x   6 amanda  unknown    204 24 Oct 09:15 .
drwxr-x---  13 amanda  unknown    442 28 Oct 04:00 ..
-rw-------   1 amanda  unknown     10 24 Oct 09:15 00000-daily7
-rw-------   1 amanda  unknown  32768 24 Oct 09:15 00000.daily7
-rw-------   1 amanda  unknown     10 24 Oct 09:15 00001-TAPEEND
-rw-------   1 amanda  unknown  32768 24 Oct 09:15 00001.TAPEEND

slot8:
total 32409304
drwxr-xr-x  24 amanda  unknown          816 25 Oct 05:28 .
drwxr-x---  13 amanda  unknown          442 28 Oct 04:00 ..
-rw-------   1 amanda  unknown           10 25 Oct 04:00 00000-daily8
-rw-------   1 amanda  unknown        32768 25 Oct 04:00 00000.daily8
-rw------- 1 amanda unknown 14 25 Oct 04:00 00001-stefan.hq.imos.net._.1 -rw------- 1 amanda unknown 695926784 25 Oct 04:00 00001.stefan.hq.imos.net._.1 -rw------- 1 amanda unknown 14 25 Oct 04:01 00002-sulu.hq.imos.net._.1 -rw------- 1 amanda unknown 498237440 25 Oct 04:01 00002.sulu.hq.imos.net._.1 -rw------- 1 amanda unknown 14 25 Oct 04:04 00003-sulu.hq.imos.net._opt2.1 -rw------- 1 amanda unknown 397836288 25 Oct 04:01 00003.sulu.hq.imos.net._opt2.1 -rw------- 1 amanda unknown 12 25 Oct 04:04 00004-ox.hq.imos.net._var.0 -rw------- 1 amanda unknown 3866624 25 Oct 04:04 00004.ox.hq.imos.net._var.0 -rw------- 1 amanda unknown 12 25 Oct 04:35 00005-sulu.hq.imos.net._boot.0 -rw------- 1 amanda unknown 11501568 25 Oct 04:04 00005.sulu.hq.imos.net._boot.0 -rw------- 1 amanda unknown 15 25 Oct 04:49 00006-stefan.hq.imos.net._.0 -rw------- 1 amanda unknown 14072414208 25 Oct 04:49 00006.stefan.hq.imos.net._.0 -rw------- 1 amanda unknown 12 25 Oct 04:49 00007-ox.hq.imos.net._.0 -rw------- 1 amanda unknown 22708224 25 Oct 04:49 00007.ox.hq.imos.net._.0 -rw------- 1 amanda unknown 13 25 Oct 04:49 00008-sulu.hq.imos.net._opt2.1 -rw------- 1 amanda unknown 81297408 25 Oct 04:49 00008.sulu.hq.imos.net._opt2.1 -rw------- 1 amanda unknown 14 25 Oct 05:28 00009-ox.hq.imos.net._usr.0 -rw------- 1 amanda unknown 809664512 25 Oct 04:50 00009.ox.hq.imos.net._usr.0
-rw-------   1 amanda  unknown           10 25 Oct 05:28 00010-TAPEEND
-rw-------   1 amanda  unknown        32768 25 Oct 05:28 00010.TAPEEND

there is a difference because tape 8 has been used and tape 7 not :)

And of course the obvious question: what version of amanda is it?

version 2.4.5

It seems like the chg-disk somewhere generates a "syntax error" when
loading the last slot with option "-next".
Try this:

$ /usr/local/libexec/chg-disk -slot 7
$ sh -vx /usr/local/libexec/chg-disk -next

Do you get the same syntax error?  If yes, can you post (or mail me)
the output of the "sh -vx ..."?

I only get errors "file not found" for amanda.conf, how can I specify my daily set ?

bye
Stefan Herrmann