I've pressed the "send" button too quickly and sent the answer to John only - here
is a copy for the mailing list...

Christina


> Hi John,
>
> "John R. Jackson" wrote:
>
> > >This is the content of our tapelist file. I think it should have more than
> > >one line?!?
> > >
> > >20010725 NEURO007 reuse
> >
> > Ooops.  You've lost your tapelist file, which is a very bad thing.
> > That's why Amanda is asking about new tapes and complaining about backups
> > being overwritten.
> >
> > It's also why I make a backup of it (and a lot of other critical Amanda
> > files) before each run and save several copies, just in case.
>
> Is there a list of those critical files? And maybe a description which files are
> used for which purpose? Otherwise I just don't know what to backup manually
> before running amanda...
>
> > You may be able to put it back together, though.  I just tried the
> > following ksh code.  It finds the taper START line in each log.YYYYMMDD.NN
> > file and rebuilds the tapelist file from that.
> >
> >   rm tapelist.log
> >   cat log.* | grep '^START taper' | while read x x x datestamp x label x
> >   do
> >     echo $datestamp $label reuse >> tapelist.log
> >   done
> >   sort -rn < tapelist.log > tapelist.new
> >
> > At this point, you will hopefully have 25 tapes listed in tapelist.new.
> > Look through it and make sure thing seem right.  In particular, make
> > sure a tape is not listed twice.
>
> With this script I've gathered the information from /var/log/amanda/NEURO and
> .../oldlog together and got a tapelist.new which was too long (104 lines) and
> removed the oldest entries and now I have a nice tapelist again  :-)
> Your great...
>
> > Check your current tapelist file.  It should be owned by your Amanda user
> > and mode 0600.  Move it out of the way and copy tapelist.new to tapelist,
> > setting the ownership and mode.
> >
> > Finally, try "amadmin <config> tape" again and see if it's happier.
>
> ...yes, it's singing and smiling all the time and requests tape NEURO009 for
> tonight (as expected  :-)   )
>
> Just amrecover is complaining about missing logfiles. The date 2001-07-19, which
> I'm interested in, isn't affected because this logfile exists. I think I could
> move the missing logfiles, which have obviously been moved too early, from oldlog
> to the log directory...
>
> Now amrecover finished successfully  :-)
>
> Thanks a lot for your help. Using amrecover is much more fun than using
> amrestore...
>
> Christina Rossmanith

Reply via email to