Amanda-Users

missing tape error handling

2004-10-05 19:52:18
Subject: missing tape error handling
From: Frank Smith <fsmith AT hoovers DOT com>
To: amanda-users AT amanda DOT org
Date: Tue, 05 Oct 2004 18:45:51 -0500
I ran across an odd problem with my changer.  After upgrading tape
drives several months ago and labeling all new tapes with what I
thought were the same labels, my tapelist finally hit the last tape.
I had forgotten that before I was using tapes 0-19 and now my labels
went from 1-20.  Since I hadn't cleared my tapelist (so that I could
load one of the old tapes if I needed to) Amanda tried to find tape 00
in my library and was, naturally unsuccessful, and moved on to the
next matching tape as it should.
   The question is why did it cycle through the library 4 times before
doing that?  The output of my amdump cron job was:

running amdump
amtape: scanning for tape label archive00 or a new tape.
amtape: slot 80: date 20041002 label archive20 (active tape)
amtape: slot 61: date X        label archive01 (first labelstr match)
amtape: slot 62: date X        label archive02 (labelstr match)
amtape: slot 63: date X        label archive03 (labelstr match)
amtape: slot 64: date X        label archive04 (labelstr match)
amtape: slot 65: date X        label archive05 (labelstr match)
amtape: slot 66: date X        label archive06 (labelstr match)
amtape: slot 67: date X        label archive07 (active tape)
amtape: slot 68: date X        label archive08 (active tape)
amtape: slot 69: date X        label archive09 (active tape)
amtape: slot 70: date 20040501 label archive10 (active tape)
amtape: slot 71: date 20040501 label archive11 (active tape)
amtape: slot 72: date 20040605 label archive12 (active tape)
amtape: slot 73: date 20040605 label archive13 (active tape)
amtape: slot 74: date 20040703 label archive14 (active tape)
amtape: slot 75: date 20040807 label archive15 (active tape)
amtape: slot 76: date 20040807 label archive16 (active tape)
amtape: slot 77: date 20040904 label archive17 (active tape)
amtape: slot 78: date 20040904 label archive18 (active tape)
amtape: slot 79: date 20041002 label archive19 (active tape)
amtape: slot 80: date 20041002 label archive20 (active tape)
amtape: slot 61: date X        label archive01 (labelstr match)
amtape: slot 62: date X        label archive02 (labelstr match)
amtape: slot 63: date X        label archive03 (labelstr match)
amtape: slot 64: date X        label archive04 (labelstr match)
amtape: slot 65: date X        label archive05 (labelstr match)
amtape: slot 66: date X        label archive06 (labelstr match)
amtape: slot 67: date X        label archive07 (active tape)
amtape: slot 68: date X        label archive08 (active tape)
amtape: slot 69: date X        label archive09 (active tape)
amtape: slot 70: date 20040501 label archive10 (active tape)
amtape: slot 71: date 20040501 label archive11 (active tape)
amtape: slot 72: date 20040605 label archive12 (active tape)
amtape: slot 73: date 20040605 label archive13 (active tape)
amtape: slot 74: date 20040703 label archive14 (active tape)
amtape: slot 75: date 20040807 label archive15 (active tape)
amtape: slot 76: date 20040807 label archive16 (active tape)
amtape: slot 77: date 20040904 label archive17 (active tape)
amtape: slot 78: date 20040904 label archive18 (active tape)
amtape: slot 79: date 20041002 label archive19 (active tape)
amtape: slot 80: date 20041002 label archive20 (active tape)
amtape: slot 61: date X        label archive01 (labelstr match)
amtape: slot 62: date X        label archive02 (labelstr match)
amtape: slot 63: date X        label archive03 (labelstr match)
amtape: slot 64: date X        label archive04 (labelstr match)
amtape: slot 65: date X        label archive05 (labelstr match)
amtape: slot 66: date X        label archive06 (labelstr match)
amtape: slot 67: date X        label archive07 (active tape)
amtape: slot 68: date X        label archive08 (active tape)
amtape: slot 69: date X        label archive09 (active tape)
amtape: slot 70: date 20040501 label archive10 (active tape)
amtape: slot 71: date 20040501 label archive11 (active tape)
amtape: slot 72: date 20040605 label archive12 (active tape)
amtape: slot 73: date 20040605 label archive13 (active tape)
amtape: slot 74: date 20040703 label archive14 (active tape)
amtape: slot 75: date 20040807 label archive15 (active tape)
amtape: slot 76: date 20040807 label archive16 (active tape)
amtape: slot 77: date 20040904 label archive17 (active tape)
amtape: slot 78: date 20040904 label archive18 (active tape)
amtape: slot 79: date 20041002 label archive19 (active tape)
amtape: slot 80: date 20041002 label archive20 (active tape)
amtape: slot 61: date X        label archive01 (labelstr match)
amtape: slot 62: date X        label archive02 (labelstr match)
amtape: slot 63: date X        label archive03 (labelstr match)
amtape: slot 64: date X        label archive04 (labelstr match)
amtape: slot 65: date X        label archive05 (labelstr match)
amtape: slot 66: date X        label archive06 (labelstr match)
amtape: slot 67: date X        label archive07 (active tape)
amtape: slot 68: date X        label archive08 (active tape)
amtape: slot 69: date X        label archive09 (active tape)
amtape: slot 70: date 20040501 label archive10 (active tape)
amtape: slot 71: date 20040501 label archive11 (active tape)
amtape: slot 72: date 20040605 label archive12 (active tape)
amtape: slot 73: date 20040605 label archive13 (active tape)
amtape: slot 74: date 20040703 label archive14 (active tape)
amtape: slot 75: date 20040807 label archive15 (active tape)
amtape: slot 76: date 20040807 label archive16 (active tape)
amtape: slot 77: date 20040904 label archive17 (active tape)
amtape: slot 78: date 20040904 label archive18 (active tape)
amtape: slot 79: date 20041002 label archive19 (active tape)
amtape: archive00 not found, going back to first labelstr match archive01
amtape: label archive01 is now loaded.

My changer conf for that config has a firstslot of 61 and an
endslot of 80 which is what it uses, but I don't understand why
if it didn't find the tape after reading all 20 of them why it
would check each slot three more times. If it wasn't in the slot
before the odds are good it won't be there again no matter how many
times you check it.

Changer script is chg-qs-mtx-2.4.4p1 slightly tweaked for Qualstar
libraries, but since the changer script just deals with a single
command the cycling must be coming from somewhere higher up in
Amanda.

Amanda version is 2.4.4p1

I've removed the bogus tape from my tapelist so it won't happen
again, and isn't a real issue for me, just curious as to why
Amanda behaves that way.  Any ideas?

-- 
Frank Smith                                      fsmith AT hoovers DOT com
Sr. Systems Administrator                       Voice: 512-374-4673
Hoover's Online                                   Fax: 512-374-4501


<Prev in Thread] Current Thread [Next in Thread>
  • missing tape error handling, Frank Smith <=