Let's solve this a problem at a time...Does mtx work with the device? What device are you using for the changer (/dev/sg0)? What does "loaderinfo /dev/sg0" give (substitute your changer info for /dev/sg0)?

You need to make sure that mtx actually gives you the changer info, status, etc before you start looking into the amanda problems.

=G=

Kurt Olsen wrote:

Aloha,
I've installed the amanda on linux 7.2 from the rpms that came with the os.
I'm unable to make the chg-zd-mtx changer script work with mtx.
I've tried both mtx.1.2.13 and mtx.1.2.17 - they both say this:
Anybody got a clue as to why I get the 'badly formed result from changer' error?
Thanks everybody.
Kurt
bash-2.05$ mtx --version
mtx version 1.2.17rel
Usage:
mtx --version
mtx [ -f <loader-dev> ] noattach <more commands>
mtx [ -f <loader-dev> ] inquiry | inventory
mtx [ -f <loader-dev> ] [nobarcode] status
mtx [ -f <loader-dev> ] first [<drive#>]
mtx [ -f <loader-dev> ] last [<drive#>]
mtx [ -f <loader-dev> ] next [<drive#>]
mtx [ -f <loader-dev> ] previous [<drive#>]
mtx [ -f <loader-dev> ] [invert] load <storage-element-number> [<drive#>]
mtx [ -f <loader-dev> ] [invert] unload [<storage-element-number>][<drive#>]
mtx [ -f <loader-dev> ] [eepos eepos-number] transfer <storage-element-number> <storage-element-number>
mtx [ -f <device> ] eject
bash-2.05$ amtape DailySet1 show
amtape: could not get changer info: badly formed result from changer: "/usr/lib/amanda/chg-zd-mtx: [: : integer expression expected"


Reply via email to