Amanda-Users

Re: chg-zd-mtx can't find mtx command.

2007-06-06 17:19:57
Subject: Re: chg-zd-mtx can't find mtx command.
From: "Dustin J. Mitchell" <dustin AT zmanda DOT com>
To: Alan Jedlow <jedlow AT u.washington DOT edu>
Date: Mon, 4 Jun 2007 19:48:47 -0500
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/

Attachment: chg-zd-mtx.patch
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>