Amanda-Users

Re: chg-zd-mtx

2002-08-30 17:49:15
Subject: Re: chg-zd-mtx
From: "greg" <greg AT z-axis DOT com>
To: <amanda-users AT amanda DOT org>
Date: Sat, 31 Aug 2002 14:38:21 -0700
This is a fix we did for a Quantum ATL L500 changer with a DLT8000-40
 
in the file chg-zd-mtx.  The changer was reporting "at rest" when the chg-zd-mtx script was looking for "ONLINE"
 
Here is the original
 
--snip--
if [ $offlinestatus -eq 0 ]; then
                readyError="offline"
                while [ -n "$readyError" ]; do
                       readyStatus=`$MT $MTF $tape status 2>&1`
                       readyError=`echo $readyStatus | grep "offline"`
                done
else
                readyError=""
                while [ -z "$readyError" ]; do
                        readyStatus=`$MT $MTF $tape status 2>&1`
                        readyError=`echo $readyStatus | egrep "ONLINE"`
                done
fi
--snip--
 
And the edited
 
--snip--
 
if [ $offlinestatus -eq 0 ]; then
                readyError="offline"
                while [ -n "$readyError" ]; do
                       readyStatus=`$MT $MTF $tape status 2>&1`
                       readyError=`echo $readyStatus | grep "offline"`
                done
else
                readyError=""
                while [ -z "$readyError" ]; do
                        readyStatus=`$MT $MTF $tape status 2>&1`
                        readyError=`echo $readyStatus | egrep "ONLINE | at rest"`   ---   Here is the change
                done
fi
--snip--
 
Hope this helps someone
 
-greg
<Prev in Thread] Current Thread [Next in Thread>
  • Re: chg-zd-mtx, greg <=