>... What I gonna do
>is to amlable the new tapes, and make entry into tapelist file,
>and change the tapecycle into the number of tape we gonna use.
>How can I make the right entry into tapelist file. ...
This is, indeed, one of the more annoying things to deal with in Amanda.
At 2.4.2, amlabel will insert entries in the tapelist file with "0"
as the datestamp. This effectively causes them to be used next, which
may or may not be what you want.
If that's not what you want (or you're not running 2.4.2 yet), the key
is understanding the order tapes are selected from the tapelist file.
The primary sort key is the datestamp. Within entries with the same
datestamp, lines later in the file are used first. This means that in
the normal case, the last tape listed in the file will be the next one
Amanda uses (assuming the file is in reverse datestamp order, which is
how Amanda stores it).
To insert new tapes at a particular point in the cycle, find the tape
they should be used **before** in the tapelist file, insert your new
entries **after** that tape, set their datestamp to the same as the
existing tape, and put the next one to use last in the new set.
For instance, let's say my tapelist looks like this:
20010306 B00001 reuse
20010305 B00000 reuse
20010304 B00006 reuse
20010303 B00005 reuse
20010302 B00004 reuse
20010301 B00003 reuse
20010228 B00002 reuse
Now I want to add four more tapes, B00007 through B00010, and I want
them to go in their "logical" (at least to the human eye) position in
the sequence, which would be after B00006 (before B00000). First, I'd
amlabel them. Then I'd either move/change what amlabel put in the file
or add the entries myself to look like this:
20010306 B00001 reuse
20010305 B00000 reuse
20010305 B00010 reuse
20010305 B00009 reuse
20010305 B00008 reuse
20010305 B00007 reuse
20010304 B00006 reuse
20010303 B00005 reuse
20010302 B00004 reuse
20010301 B00003 reuse
20010228 B00002 reuse
The sequence will continue as before (B00002 will be used next).
After B00006 is used, B00007 will be next, then B00008, etc.
Using "amadmin <config> tape" is a good way to test this. In particular,
temporarily set runtapes to tapecycle and it will tell you the whole
sequence (don't forget to set runtapes back :-).
John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]