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
|