Re: Another MTX Question:
2003-08-06 18:06:52
On Wed, Aug 06, 2003 at 03:28:27PM -0500, Bruntel, Mitchell L wrote:
> My chg-zd-mtx config file shows:
> havereader=1
> BUT
> Following the instructions in the chg-zd-mtx.config file I am testing, and do
> :
> * Run this:
> #
> # .../chg-zd-mtx -info
> # echo $? #### (or "echo $status" if you use csh/tcsh)
> I do this:
> sh chg-zd-mtx -info
> and I get
> 1 79 1 <--missing 4th # here!
So this tells you for sure that chg-zd-mtx is NOT reading your config
file. From chg-zd-mtx.sh.in:
###
# Check if a barcode reader is configured or not. If so, it
# passes the 4th item in the echo back to amtape signifying it
# can search based on barcodes.
###
reader=
if [ $havereader -eq 1 ]; then
reader=1
fi
if [ $currentslot -lt $firstslot -o $currentslot -gt $lastslot ]; then
currentslot=$firstslot # what "current" will get
fi
set x $slot_list
shift # get rid of the "x"
numslots=$#
Exit 0 "$currentslot" "$numslots 1 $reader"
>From your amanda.conf below, you still have:
> changerfile "/usr/local/etc/amanda/DailySet1/chg-zd-mtx.conf"
And so unless your chg-zd-mtx config file is named "chg-zd-mtx.conf.conf",
it ain't gonna be found. Please change your changerfile to:
changerfile "/usr/local/etc/amanda/DailySet1/chg-zd-mtx"
And you'll be much happier. For example, the chg-zd-mtx comments
say:
# All variables are in "changerfile".conf where "changerfile" is set
# in amanda.conf. For example, if amanda.conf has:
#
# changerfile="/etc/amanda/Dailyset1/CHANGER"
#
# the variables must be in "/etc/amanda/Dailyset1/CHANGER.conf".
> (and next step isn't good either...
> sh chg-zd-mtx -reset
> Bus Error(coredump)
Reading a config file should help. In addition, you'll be less likely
to get surprised down the road if you run the chg-zd-mtx installed
in libexec. Your copy in DailySet1 won't be updated my 'make install'.
--
Jay Lessert jay_lessert AT accelerant DOT net
Accelerant Networks Inc. (voice)1.503.439.3461
Beaverton OR, USA (fax)1.503.466.9472
|
|
|