Re: labelling of reused tapes
2006-10-11 10:43:31
None of my tapes are new. I put the next 3 tapes that I have in the
changer and run amcheck. It seems to be ok with 2 of the 3 tapes but
gives me "not an amanda tape (Input/output error)" for slot 3. So I read
the archives and they say to label the tape, so I run amlabel:
BASH>/usr/sbin/amlabel -f monthly Monthly53 slot 3
changer: got exit: 0 str: 3 /dev/nst0
labeling tape in slot 3 (/dev/nst0):
rewinding
amlabel: tape_rewind: rewinding tape: /dev/nst0: Input/output error
amlabel: tape_rewind: rewinding tape: /dev/nst0: Input/output error
amlabel: pid 17508 finish time Wed Oct 11 09:40:36 2006
Is this a tape problem or am I approaching this incorrectly?
Steve
Matt Hyclak wrote:
On Tue, Oct 10, 2006 at 03:00:32PM -0400, Steven Settlemyre enlightened us:
I have a monthly backup config with runtapes=3 and 59 tapes in the
tapecycle. The instructions I was originally given say to run a script
that looks in tapelist, find the highest # then label the next 3 tapes
starting from there. This seems wrong because then it wouldn't be a
cycle. My question is when I do amcheck, it tells me "(expecting tape
Monthly04 or a new tape)". But the next tape I have in my hand is
currently labeled Monthly50 which is correct because it is in the
tapelist as "20051107 Monthly50 reuse". How do I solve this problem? How
do I tell amanda to look for "Monthly50" instead of "Monthly04"? Or how
do i have amanda use the tape I give it as long as it's not recently used?
That's the "Or New Tape" part. If you've labelled a tape but not used it, it
is considered a new tape. Amanda will also accept any tape that is more than
tapecycle tapes old, so in my case my tapecycle is 16 tapes, but I actually
use 20 in rotation, so that if one fails, I don't have to replace it
immediately.
Matt
|
|
|