Hello!
Last night I upgraded the OS of my Amanda 2.4.2p1 backup server
from FreeBSD 4.3-RELEASE to 4.5-RELEASE. After that I'm having
a problem with chg-manual.
As my nightly backup starts, it writes a bunch of stuff to
/tmp/amanda/changer.debug. The last lines are:
Args -> -slot next
-> rewind /dev/nsa0
-> status /dev/nsa0
Mode Density Blocksize bpi Compression
Current: 0x25:DDS-3 variable 97000 DCLZ
---------available modes---------
0: 0x25:DDS-3 variable 97000 DCLZ
1: 0x25:DDS-3 variable 97000 DCLZ
2: 0x25:DDS-3 variable 97000 DCLZ
3: 0x25:DDS-3 variable 97000 DCLZ
---------------------------------
Current Driver State: at rest.
---------------------------------
File Number: 0 Record Number: 0 Residual Count 0
-> loaded <Current Driver State: at rest.>
-> offline /dev/nsa0
-> load 209
-> rewind /dev/nsa0
mt: /dev/nsa0: Device not configured
After that Amanda ejects the tape and sends me mail to
'load amanda tape into slot 209.
This action is in loadslot() function in chg-manual:
if [ ! -z "$used" ]; then
echo " -> offline $tape" >> $logfile
$MT $MTF $tape offline >> $logfile 2>&1
used=""
fi
At this point the variable "$used" contains the string
"Current driver state: at rest"
I don't know shell programming so I don't know what is the
meaning of condition [ ! -z "$used" ]. However,
this condition seems to be what causes chg-manual to eject
the tape. And then it issues the "load 209" command, at
which point it sends out another mail.
I checked that I'm loading the correct tape using
"amadmin CONFIG tape" command.
Way back when I first installed Amanda I had to modify the
ONLINEREGEX variable to contain the string "at rest". Otherwise
Amanda never understood that a tape is online. This worked
fine before the last night's OS upgrade.
Permissions of devices seem to be OK, because I can see several
mt commands succeeding in /tmp/amanda/changer.debug.
--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* Terminator virus found: Use ILLBE.BAK?