> On Nov 8, 2017, at 9:31 AM, Stefan G. Weichinger <s...@amanda.org> wrote:
> 
> Am 2017-11-06 um 19:49 schrieb Jon LaBadie:
>> My vtapes are spread across several disks.  One of the
>> smallest recently died in a most audible way.
>> 
>> I'm replacing the disk with a larger one.
>> 
>> I would like to recreate the lost vtapes (no backup
>> data, that is gone!) and have them reused in the
>> order they would have been used.
>> 
>> Also, I would like to add vtapes and have them used
>> after the currently highest numbered vtape.
>> 
>> I.e. I am succumbing to that human fraility of wanting
>> things to run in numerical order when it really doesn't
>> matter.
> 
> A quick idea (no big solution): use "amadmin no-reuse" (or edit the
> reuse "flag" in tapelist) to temporarily disable all the tapes except
> the one freshly labelled vtape. By doing that you force amanda to use
> *this* tape with *this* label. Do so until you have all your re-created
> vtapes used once ...
> 
> creating the vtapes is labelling the slots ... I don't see the need to
> handcraft anything here.
> 
> But maybe I don't fully understand.
> 
> Stefan


I haven’t tried this with vtapes, but with physical tapes,  I’ll just edit the 
tapelist file.
I move the desired tape into the correct slot and edit the date field to be 
just after
the previous line (so it fits, sequentially, with prior and subsequent lines).

For blank tapes, which are at the end of the file,  I just move the line to the 
end of
the file, so it uses this tape next.
“amadmin <config>  tape”   will tell me the order it plans to use the next few 
tapes,
so I can tell if I got it right.

Note:  don’t change the line for a GOOD tape until just before you want it to 
be used.
I’m not sure what these changes would do to amrestore  or amrecover  processes.

Deb Baddorf
Fermilab

Reply via email to