Subject: pkg/5487: Amanda doesn't understand output of our 'mt status'
To: None <gnats-bugs@gnats.netbsd.org>
From: None <briggs@backup.ninthwonder.com>
List: netbsd-bugs
Date: 05/24/1998 15:13:20
>Number: 5487
>Category: pkg
>Synopsis: Amanda doesn't understand output of our 'mt status'
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 24 08:20:01 1998
>Last-Modified:
>Originator: Allen Briggs
>Organization:
Ninth Wonder, LLC
>Release: NetBSD-current 980523
>Environment:
All NetBSD systems trying to use amanda with tpchanger chg-manual.
System: NetBSD backup 1.3E NetBSD 1.3E (BACKUP) #0: Wed May 6 12:14:38 PDT 1998 briggs@backup:/usr/src/sys/arch/i386/compile/BACKUP i386
>Description:
Amanda's chg-manual script attempts to parse the output of
'mt status' to look for errors. It always senses an error
because it does not understand our output.
>How-To-Repeat:
Add
tpchanger "chg-manual"
to your amanda.conf and run
amcheck -s <Config>
This will ask you to insert a tape and press enter--whether or not
a tape is present.
>Fix:
The following patch to chg-manual seems to work for me:
*** changer-src/chg-manual.sh.in.orig Sun May 24 11:06:29 1998
--- changer-src/chg-manual.sh.in Sun May 24 11:06:36 1998
***************
*** 26,32 ****
MT=@MT@
MTF=@MT_FILE_FLAG@
DD=@DD@
! ONLINEREGEX="ONLINE|READY|sense[_ ]key[(]0x0[)]|sense key error = 0"
tape=`getconf$SUF tapedev`
changerfile=`getconf$SUF changerfile`
--- 26,32 ----
MT=@MT@
MTF=@MT_FILE_FLAG@
DD=@DD@
! ONLINEREGEX="ONLINE|READY|sense[_ ]key[(]0x0[)]|sense key error = 0|er=0"
tape=`getconf$SUF tapedev`
changerfile=`getconf$SUF changerfile`
>Audit-Trail:
>Unformatted: