Hello!
I'm using Amanda 2.4.2p1 with chg-manual on FreeBSD. Everything used
to work just fine but now one weirdness has appeared in Amanda's
behaviour.
If amdump starts and correct tape is not in slot, Amanda ejects the
tape and sends me mail asking to insert the correct tape. But when I
insert the correct tape, Amanda doesn't "like" it. It ejects the tape
again and sends me mail requesting to insert the correct tape. This
procedure repeats itself ad infinitum.
This has happened several times, so I am pretty sure that I am
actually inserting the correct tape.
Earlier it used to work as expected: after inserting the
correct tape, amdump run proceeded.
I'm pretty sure the change appeared after upgrading the OS from
FreeBSD 4.3 to 4.5.
I've checked the changer.debug file and inserted some "debug" lines
into chg-manual script. I'm definitely not a shell programmer, so my
understanding of what is going on is somewhat limited. It seems that
chg-manual is always called with "slot next" argument, but since I
don't know where it is called *from*, I can't check what might cause
this.
I've been looking at the loadslot() function in chg-manual. It seems
that this is the place where check "is the correct tape inserted?"
takes place:
if [ ! -z "$used" -a $load = $slot ];then
# already loaded
answer="$slot $tape"
echo "Exit -> $answer" >> $logfile
echo "$answer"
exit 0
fi
At this point, since chg-manual is always called with "slot next",
$load is always $slot + 1, so the check fails. If I insert the
correct tape and (temporarily) comment out the if/fi lines, then the
check is not done and backup proceeds normally.
I apologize if it is all a bit foggy. Had too much beer last night...
--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* How can i miss you if you won't go away?