Amanda-Users

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

2007-10-16 16:24:35
Subject: RE: problems with chg-zd-mtx and using 2 drives
From: "Krahn, Anderson" <AKrahn AT gs1us DOT org>
To: "Dustin J. Mitchell" <dustin AT zmanda DOT com>, <amanda-users AT amanda DOT org>
Date: Tue, 16 Oct 2007 15:12:11 -0500
That seems to resolve the issue with locating mtx, however the error I
get is this now.

/opt/amanda/client/libexec/chg-zd-mtx -info
<none> no slots available

taper: changer problem: no slots available

Here is the output from mtx status:
mtx -f /dev/scsi/changer/c3t3d1 status
  Storage Changer /dev/scsi/changer/c3t3d1:2 Drives, 12 Slots ( 1
Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag =
EGV002
Data Transfer Element 1:Empty
      Storage Element 1:Empty:VolumeTag=
      Storage Element 2:Full :VolumeTag=EGV003
      Storage Element 3:Full :VolumeTag=EGV004
      Storage Element 4:Full :VolumeTag=EGV005
      Storage Element 5:Full :VolumeTag=EGV006
      Storage Element 6:Full :VolumeTag=EGV007
      Storage Element 7:Full :VolumeTag=EGV008
      Storage Element 8:Full :VolumeTag=EGV009
      Storage Element 9:Full :VolumeTag=EGV010
      Storage Element 10:Full :VolumeTag=EGV011
      Storage Element 11:Full :VolumeTag=EGV012
      Storage Element 12 IMPORT/EXPORT:Empty:VolumeTag=

How does I configure Amanda (chg-zd-mtx) to use both Drives (Data
Transfer Element 0 and 1)
Thanks

-----Original Message-----
From: owner-amanda-users AT amanda DOT org
[mailto:owner-amanda-users AT amanda DOT org] On Behalf Of Dustin J. Mitchell
Sent: Tuesday, October 16, 2007 1:43 PM
To: amanda-users AT amanda DOT org
Subject: Re: problems with chg-zd-mtx and using 2 drives

On 10/16/07, Jon LaBadie <jon AT jgcomp DOT com> wrote:
> Also, line 389 is a line from which mtx would be executed.
> It is the only place where mtx would be executed and it
> is only called to from three other places in the script.
> When called, the command name is passed as $MTX.  From the
> message this appears to be "mtx" but I think in amanda.h
> or config.h you could specify a full pathname and recompile.

This happens when configure does not find mt or mtx at configure time
-- it just uses 'mt' and 'mtx', rather than fully qualifying their
paths.  The easy fix is to edit chg-lib.sh, which in the central
location for definitions of these variables.  The harder fix is to
recompile on a system with mt/mtx installed, and with /usr/local/sbin
in the PATH, so that configure can find them.

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com