Amanda-Users

Re: problems with label of tape in last slot

2005-11-04 05:27:03
Subject: Re: problems with label of tape in last slot
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Stefan Herrmann <magic99de AT web DOT de>
Date: Fri, 04 Nov 2005 11:20:44 +0100
Stefan Herrmann wrote:
and again problems with the label of the last tape:

START driver date 20051104
DISK planner stefan.hq.imos.net /
DISK planner ox.hq.imos.net /
DISK planner ox.hq.imos.net /usr
DISK planner ox.hq.imos.net /var
DISK planner sulu.hq.imos.net /
DISK planner sulu.hq.imos.net /boot
DISK planner sulu.hq.imos.net /opt1
DISK planner sulu.hq.imos.net /opt2
START planner date 20051104
STATS driver startup time 0.212
ERROR taper no-tape [label daily8 or new tape not found in rack]
FAIL planner ox.hq.imos.net /var 20051104 0 [Request to ox.hq.imos.net timed out.] FAIL planner ox.hq.imos.net /usr 20051104 0 [Request to ox.hq.imos.net timed out.] FAIL planner ox.hq.imos.net / 20051104 0 [Request to ox.hq.imos.net timed out.]
FINISH planner date 20051104 time 773.556
[...]

stefan:/usr/local/amanda/etc/amanda/daily amanda$ amcheck daily
Amanda Tape Server Host Check
-----------------------------
Holding disk /Volumes/amanda2: 212687 MB disk space available, that's plenty
amcheck-server: slot 2: date 20051027 label daily2 (active tape)
amcheck-server: slot 3: date 20051027 label daily3 (active tape)
amcheck-server: slot 4: date 20051028 label daily4 (active tape)
amcheck-server: slot 5: date 20051029 label daily5 (active tape)
amcheck-server: slot 6: date 20051030 label daily6 (active tape)
amcheck-server: slot 7: date 20051031 label daily7 (active tape)
amcheck-server: slot expr:: tape_rdlabel: tape open: syntax error: No such file or directory
amcheck-server: slot 1: date 20051026 label daily1 (active tape)
ERROR: label daily8 or new tape not found in rack
       (expecting tape daily8 or a new tape)
NOTE: skipping tape-writable test
Server check took 2.250 seconds

Amanda Backup Client Hosts Check
--------------------------------
Client check: 3 hosts checked in 10.606 seconds, 0 problems found

(brought to you by Amanda 2.4.5)



so i did amrmtape and newly labeled the tape 8:

stefan:/usr/local/amanda/etc/amanda/daily amanda$ amrmtape daily daily8
amrmtape: remove label daily8.
amrmtape: preserving original database in curinfo.orig.17536 (exported).
stefan:/usr/local/amanda/etc/amanda/daily amanda$ amlabel daily daily8 slot 8
labeling tape in slot expr: (syntax error):
rewinding
amlabel: tape_rewind: tape open: syntax error: No such file or directory
stefan:/usr/local/amanda/etc/amanda/daily amanda$ amlabel daily daily8 slot 8
labeling tape in slot 8 (file:/Volumes/amanda1/daily):
rewinding, reading label daily8
rewinding, writing label daily8, checking label, done.

second call of amlabel worded, as usual..

Still full of "syntax error" message, that we try to locate.
My guess is that it is hapening in the chg-disk shell script,
when a "syntax error" for the "expr" command is triggered when
advancing to the last slot.  Could be missing quotes around a variable
that is empty in some cases.

I'm still waiting for the "sh -vx" output of chg-disk.
The last one you sent, was a normal case, not the case of
going from the last-but-one to the last slot.

So do:

  $ cd /usr/local/amanda/etc/amanda/daily
  $ /usr/local/libexec/chg-disk -slot 7
  $ sh -vx /usr/local/libexec/chg-disk -next


--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************

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