Amanda-Users

Bug in chg-zd-mtx changer control script?

2003-10-03 09:04:27
Subject: Bug in chg-zd-mtx changer control script?
From: "Michael D. Beynon" <beynon AT yahoo DOT com>
To: amanda-users AT amanda DOT org
Date: Fri, 3 Oct 2003 05:59:33 -0700 (PDT)
Amanda was working fine on a Solaris box for a couple years now, and
started failing recently, as shown below.  It turned out that on a
linux box where /bin/sh is a symlink to /bin/bash the chg-zd-mtx
script runs fine, but fails on a solaris box (SunOS vogue 5.8
Generic_108528-12 sun4u sparc SUNW,Ultra-4) because the old version of
sh does not support recursive calls.  In the sh funcion loadslot(), if
there is a cleaning needed, it calls itself with the clean argument. 
Since old sh cannot call a recursive fcn, this must be an external
command, which luckily was not in the path!  :-)  The fix for me was
to change the first line to #!/bin/bash.

Mike.

Amanda Tape Server Host Check
-----------------------------
WARNING: holding disk /export/common/dump: only 1611063 KB free
(4194304 KB requested)
amcheck-server: slot 3: date 20030927 label DK2077 (active tape)
amcheck-server: slot /usr/local/libexec/chg-zd-mtx:: loadslot: not 
found
amcheck-server: slot /usr/local/libexec/chg-zd-mtx:: loadslot: not 
found
amcheck-server: slot /usr/local/libexec/chg-zd-mtx:: loadslot: not 
found
amcheck-server: slot /usr/local/libexec/chg-zd-mtx:: loadslot: not 
found
amcheck-server: slot /usr/local/libexec/chg-zd-mtx:: loadslot: not 
found
amcheck-server: slot /usr/local/libexec/chg-zd-mtx:: loadslot: not 
found
amcheck-server: slot /usr/local/libexec/chg-zd-mtx:: loadslot: not 
found
ERROR: label DK2078 or new tape not found in rack
       (expecting tape DK2078 or a new tape)
NOTE: skipping tape-writable test
Server check took 19.063 seconds

Amanda Backup Client Hosts Check
--------------------------------
Client check: 3 hosts checked in 1.191 seconds, 0 problems found

(brought to you by Amanda 2.4.4)

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

<Prev in Thread] Current Thread [Next in Thread>
  • Bug in chg-zd-mtx changer control script?, Michael D. Beynon <=