On 12/29/2013 09:29 AM, Steven Backus wrote:
amcheck-device.20131227152134.debug:

Fri Dec 27 15:21:34 2013: thd-0x62799e0: amcheck-device: pid 5437 ruid 0 euid 0 
version 3.3.5: start at Fri Dec 27 15:21:34 2013
Fri Dec 27 15:21:35 2013: thd-0x62799e0: amcheck-device: pid 5437 ruid 0 euid 0 
version 3.3.5: rename at Fri Dec 27 15:21:35 2013
Fri Dec 27 15:21:35 2013: thd-0x62799e0: amcheck-device: 
Amanda::Changer::compat initialized with script 
/local/libexec/amanda/chg-zd-mtx, temporary directory /local/etc/amanda/gen
Fri Dec 27 15:21:35 2013: thd-0x62799e0: amcheck-device: 
Amanda::Taper::Scan::traditional stage 1: search for oldest reusable volume
Fri Dec 27 15:21:35 2013: thd-0x62799e0: amcheck-device: 
Amanda::Taper::Scan::traditional oldest reusable volume is 'gen051'
Fri Dec 27 15:21:35 2013: thd-0x62799e0: amcheck-device: 
Amanda::Changer::compat: invoking /local/libexec/amanda/chg-zd-mtx with -info
Fri Dec 27 15:21:35 2013: thd-0x62799e0: amcheck-device: Amanda::Changer::compat: Got 
response '<none> mtx: Request Sense: Long Report=yes' with exit status 2
Fri Dec 27 15:21:35 2013: thd-0x62799e0: amcheck-device: new 
Amanda::Changer::Error: type='fatal', message='mtx: Request Sense: Long 
Report=yes'
Fri Dec 27 15:21:35 2013: thd-0x62799e0: amcheck-device: 
Amanda::Taper::Scan::traditional result: error=mtx: Request Sense: Long 
Report=yes
Fri Dec 27 15:21:35 2013: thd-0x62799e0: amcheck-device: pid 5437 finish time 
Fri Dec 27 15:21:35 2013


mtx fail, look in the chg-zd-mtx debug file for the reason.

I suggest you stop using chg-zd-mtx and start using chg-robot, it should be as simple as adding the following to amanda.conf:

  define changer my_robot {
    tpchanger "chg-robot:/dev/sg??"
    changerfile "/etc/amanda/gen/chg-robot.state"
    property "tape-device" "0=tape:/dev/nst?"
    property "use-slots" "1-??"
    property "verbose" "yes"
    device-property "LEOM" "TRUE"
  }
  tpchanger "my_robot"

Replace the '?' by your device values and slot.

Jean-Louis

Reply via email to