On Mon, Jun 04, 2007 at 04:35:20PM -0700, Alan Jedlow wrote: > I've installed the RHEL RPMs from www.zamanda.com... currently > trying to figure out why "chg-zd-mtx" thinks mtx doesn't > exist: > > -bash-3.00$ whoami > amandabackup > -bash-3.00$ which mtx > /usr/sbin/mtx > -bash-3.00$ /usr/lib/amanda/chg-zd-mtx -info > <none> mtx command (mtx) doesn't exist > -bash-3.00$ > > Suggestions?
Thanks for the report! Ironically, it's just the check that's bogus -- chg-zd-mtx will run just fine in that situation. Try the attached patch, which just removes the checks. The problem is that the RPM was built on a machine without mtx installed, so it recorded the path to mtx as just 'mtx'. Then chg-zd-mtx, assuming it is given a fully qualified path, checks that the file exists. Because 'mtx' is an unqualified filename, the check fails. Dustin -- Dustin J. Mitchell Storage Software Engineer, Zmanda, Inc. http://www.zmanda.com/
Index: changer-src/chg-zd-mtx.sh.in =================================================================== --- changer-src/chg-zd-mtx.sh.in (revision 385) +++ changer-src/chg-zd-mtx.sh.in (working copy) @@ -714,11 +714,6 @@ cleancount=`cat $cleanfile` accesscount=`cat $accessfile` -test -z "$MT" && Exit 2 "<none>" "No mt command defined" -test ! -f "$MT" && Exit 2 "<none>" "mt command ($MT) doesn't exist" -test -z "$MTX" && Exit 2 "<none>" "No mtx command defined" -test ! -f "$MTX" && Exit 2 "<none>" "mtx command ($MTX) doesn't exist" - #### Dig out of the config file what is needed varlist=