Amanda-Users

RE: problems with chg-zd-mtx and using 2 drives

2007-10-16 12:28:13
Subject: RE: problems with chg-zd-mtx and using 2 drives
From: "Krahn, Anderson" <AKrahn AT gs1us DOT org>
To: <amanda-users AT amanda DOT org>
Date: Tue, 16 Oct 2007 11:22:34 -0500
Mtx is installed in /usr/local/sbin which is in the path of the Amanda
and root user.
amanda@prdapp16
[/home/amanda]#which mtx
/usr/local/sbin/mtx

amanda@prdapp16
[/home/amanda]#logout

root@prdapp16
[~]#which mtx
/usr/local/sbin/mtx

-----Original Message-----
From: owner-amanda-users AT amanda DOT org
[mailto:owner-amanda-users AT amanda DOT org] On Behalf Of Jon LaBadie
Sent: Tuesday, October 16, 2007 11:09 AM
To: amanda-users AT amanda DOT org
Subject: Re: problems with chg-zd-mtx and using 2 drives

On Tue, Oct 16, 2007 at 10:53:09AM -0500, Krahn, Anderson wrote:
> Here are some errors i get with chg-zd-mtx:
> 
> chg-zd-mtx: debug 1 pid 9380 ruid 30063 euid 30063: start at Mon Oct
> 
> 15 14:34:48 2007
> 
> 14:34:48 Using config file /etc/amanda/Full/changer.conf
> 
> 14:34:48 Arg info:
> 
>          $# = 1
> 
>          $0 = "/opt/amanda/client/libexec/chg-zd-mtx"
> 
>          $1 = "-info"
> 
> 14:34:48 Running: mtxRunning: status
> 
> 14:34:48 Exit code: 127
> 
>          Stderr:
> 
> /opt/amanda/client/libexec/chg-zd-mtx: line 389: mtx: command not
found
 
^^^^^^^^^^^^^^^^^^^^^^

I don't know why the PATH variable in effect when this script
is running does not include the directory for the mtx binary,
but that does appear to be the case.


-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)