Re: problem with jukebox

2004-03-03 Thread Frank Smith
--On Wednesday, March 03, 2004 15:05:55 -0500 Brian Cuttler [EMAIL PROTECTED] wrote:

 Hello Amanda Users,
 
 I'm running 
 IRIX 6.5.19
 amanda  2.4.2p2
 MTX 1.3.8
 
 MTX itself seems to work correctly (see output below).
 
 However I'm unable to get proper replies either from the
 glue script nor from amanda (which one would expect with
 a problem with the level underneath).
 
 Perhaps I've selected the wrong glue script for this robot ?
 
 samar 42% mtx -f /dev/scsi/sc1d4l0 inquiry
 Product Type: Medium Changer
 Vendor ID: 'BDT '
 Product ID: 'ThinStor AutoLdr'
 Revision: 'T16r'
 Attached Changer API: No
 
 samar 57% amtape samar eject
 amtape: slot /usr/local/libexec/chg-zd-mtx[3]: not ejected: test: argument expected
 
 samar 58% amtape samar device
 test: argument expected
 
 These error being explained (I think) by this output, which I do
 not understand.
 
 samar 60% /usr/local/libexec/chg-zd-mtx -eject
 /usr/local/libexec/chg-zd-mtx[3]: test: argument expected
 0 Drive was not loaded
 
 Doubly odd since the only tape is loaded.
 
 samar 61% /usr/local/libexec/chg-zd-mtx -info
 /usr/local/libexec/chg-zd-mtx[15]: test: argument expected
  8 1

According to the comments in chg-zd-mtx, there should be 3 or 4
numbers returned: current slot, number of slots, if it cam go backwards,
and optionally a 1 if you have a barcode reader.
  The 'test: argument expected' error most likely means one of the
test statements in the script is trying to evaluate a null variable.
Does your changerfile for that config define all the necessary parameters?
Try working through all the commands in the section of comments at the
top of the script on testing your setup.  Also check to see that the
shell listed on the first line uses a test compatible with the arguments
used in the script (some shells use a built-in test, others do a system
call to a standalone test program) and not all can test for all the same
things.
   If you still can't find anything, try adding in an echo statement
before each test to print the argument variables and see which one(s) is
causing it to bomb.

Frank

 
 You get the idea.
 
 samar 55% mtx -f /dev/scsi/sc1d4l0 status
   Storage Changer /dev/scsi/sc1d4l0:1 Drives, 8 Slots ( 0 Import/Export )
 Data Transfer Element 0:Full (Storage Element 1 Loaded)
   Storage Element 1:Empty
   Storage Element 2:Empty
   Storage Element 3:Empty
   Storage Element 4:Empty
   Storage Element 5:Empty
   Storage Element 6:Empty
   Storage Element 7:Empty
   Storage Element 8:Empty
 
 MTX inventory returns without any output, perhaps normal behaviour
 if the other slots are empty (the users seem to have pillaged the tapes
 performing their own archives - which is actually a welcome change).
 
   thank you,
 
   Brian
 
 ---
Brian R Cuttler [EMAIL PROTECTED]
Computer Systems Support(v) 518 486-1697
Wadsworth Center(f) 518 473-6384
NYS Department of HealthHelp Desk 518 473-0773



-- 
Frank Smith  [EMAIL PROTECTED]
Sr. Systems Administrator   Voice: 512-374-4673
Hoover's Online   Fax: 512-374-4501



Re: problem with jukebox

2004-03-03 Thread Brian Cuttler
Jon,
Frank,

Thank you - I was able to debug with your help and quickly realized
that the driveslot wasn't set properly, updating the conf file and
examining the script I realized that the value was not being checked.

Since I'd had an issue with this on the Solaris 9 box last year and
I knew that driveslot was a valid parameter I realized that the
chg-zd-mtx script with 2.4.2p2 on my SGI was invalid and replaced
with the script that came with 2.4.4 on my Solaris system.

This seems to have resolved the immediate problem, now I have to
load up the tapes, label them (not sure the currently loaded one
is writeable) and configure my DLE entries... oh, and install
gtar. DLE on .8 TByte will not fit on SDLT 320 so its subdivide
and conquer time.

Thank you both,

Brian

samar 102% amcheck samar
Amanda Tape Server Host Check
-
ERROR: log dir /amanda/samar: not writable
amcheck-server: slot 1: rewinding tape: I/O error
ERROR: new tape not found in rack
   (expecting a new tape)
NOTE: skipping tape-writable test
NOTE: info dir /amanda/samar/curinfo: does not exist
NOTE: it will be created on the next run
Server check took 32.700 seconds

Amanda Backup Client Hosts Check

ERROR: samar: [host samar: port 1139 not secure]
Client check: 1 host checked in 0.707 seconds, 1 problem found

(brought to you by Amanda 2.4.2p2)
samar 103% amlabel samar SAMAR01
labeling tape in slot 1 (/dev/sdlt):
rewinding
amlabel: rewinding tape: I/O error