Amanda-Users

Re: amanda refuses to use tapes

2003-03-31 00:06:31
Subject: Re: amanda refuses to use tapes
From: Jon LaBadie <jon AT jgcomp DOT com>
To: AMANDA users <amanda-users AT amanda DOT org>
Date: Sun, 30 Mar 2003 22:38:26 -0500
On Sun, Mar 30, 2003 at 08:09:20PM -0500, Jean-Francois Malouin wrote:
> Hi again,
> 
> * Jon LaBadie (jon AT jgcomp DOT com) [20030330 19:10] thus spake:
> > On Sun, Mar 30, 2003 at 05:32:27PM -0500, Jean-Francois Malouin wrote:
> > > Hello,
> > > 
> > > did you looked at the dates on the 40 tapes for the stk_40-conf1
> > > in the tapelist file? They should be reused. Look at tape 000001:
> > > 
> > > 20030217 000001 reuse
> > > 
> > 
> > Now that you mention it, did you look at the bottom of the list:
> > 
> >     20030220 000004 reuse
> >     20030219 000003 reuse
> >     20030218 000002 reuse
> >     20030217 000001 reuse
> >     20030212 000040 reuse
> > 
> > Tape 40 has not been used since much earlier than any other tape
> > in the tapelist.
> > 
> > Did you perhaps reset things between 2/12 and 2/17?
> > Amanda seems to want to use tape 40 or a new tape.
> 
> I did a number of things :)
> First, while on holidays backups timed out for a period of 3 weeks and
> my assistants could not find out why. Turned out that 'etimeout' was
> too small. Right after that I realized that one critical filesystem
> had only one full backup image left on tape (000040) and, as things go
> bad in cluster, that filesystem experienced corruption, or so it
> seemed at the time. Turns out that one user with elevated privileges
> messed up. So, while we digged for the error I reserved tape 00040
> with 'amadmin stk_40-conf1 no-reuse 000040'. After that, amanda always
> complained about using it or a new tape *or* tapes 000001 to 000010.


If I understand correctly, you labeled and had 40 tapes in circulation
and had a tapecycle of 40.  Then you removed one from circulation
reducing the number to 39.  Seems likely that is the reason amanda is
asking for a "new" tape, to get the number back up to 40.

Did you amlabel a new tape?  If so, that is the one it wants to use, though
I do not see it in your tapelist.

I see 000040 shows in your tapelist as reuse, not no-reuse.
Did you try to amlabel it 000040 again?
Remembering to use the "-f" option?
Or did you just hand edit the tapelist file?

But it seems to me that amanda wants to use tape 000040 if it believes
000040 is back in circulation, or a newly labeled (relabeled) tape if it 
thinks there are only 39 tapes in circulation.  But clearly not tapes
000001 to 000010.

jl
-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

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