Hello again,

I created another amanda configuration and set it up to use chg-zd-mtx
since mtx apparently showed accurate information.

Here is the result of just running "chg-zd-mtx -info"
--> "<none> could not determine current slot"

and here is the chg-zd-mtx*debug file

chg-zd-mtx: debug 1 pid 16486 ruid 11600 euid 11600 start time Fri Jun 21 15:42:
55 2002
15:42:55 Arg info:
         $# = 1
         $0 = "/usr/local/libexec/chg-zd-mtx"
         $1 = "-info"
15:42:55 Running: /usr/local/sbin/mtx status
15:42:55 Exit code: 0
         Stdout:
  Storage Changer /dev/sg1:1 Drives, 13 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded)
      Storage Element 1:Empty
      Storage Element 2:Full :VolumeTag=RBN066                          
      Storage Element 3:Full :VolumeTag=RBN067                          
      Storage Element 4:Full :VolumeTag=RBN068                          
      Storage Element 5:Full :VolumeTag=RBN069                          
      Storage Element 6:Full :VolumeTag=RBN070                          
      Storage Element 7:Full :VolumeTag=RBN071                          
      Storage Element 8:Full :VolumeTag=RBN072                          
      Storage Element 9:Full :VolumeTag=RBN073                          
      Storage Element 10:Full :VolumeTag=RBN074                          
      Storage Element 11:Full :VolumeTag=RBN075                          
      Storage Element 12:Full :VolumeTag=RBN076                          
      Storage Element 13:Full :VolumeTag=RBN077                          
15:42:55 SLOTLIST -> firstslot set to 2
15:42:55 SLOTLIST -> lastslot set to 13
15:42:55 Config info:
         firstslot = "2"
         lastslot = "13"
         cleanslot = "-1"
         cleancycle = "-1"
         offline_before_unload = "0"
         unloadpause = "0"
         autoclean = "0"
         autocleancount = "99"
         havereader = "0"
         driveslot = "1"
         poll_drive_ready = "3"
         max_drive_wait = "120"
15:42:55 SETUP    -> current slot -1 less than 2 ... resetting to 2
15:42:55 Exit (2) -> <none> could not determine current slot
chg-zd-mtx: pid 16615 finish time Fri Jun 21 15:42:56 2002


What do you think of this?
On Fri, Jun 21, 2002 at 01:25:05PM -0400, Nicholas Berry wrote:
> Hi.
> 
> The sense data says a SCSI device/bus or power on reset occurred.
> 
> All is not well.  I assume you're using Linux, from the /dev/sg1 reference. Get the 
>mtx package installed, and see what that makes of your changer.
> 
> Nik
> 
> 
> 
> >>> Jason Brooks <[EMAIL PROTECTED]> 06/20/02 06:36PM >>>
> Hello,
> 
> How do I get amanda to use the barcode reader on my brandnew
> scsi-changer?  (it's an independant changer with its own scsi-generic
> interface)
> 
> the changer appears to work otherwise, though I haven't actually begun
> testing backups on it...
> 
> the ./docs/TAPE.CHANGER file contains the following:
> 
>       "To initialize the label mapping you can also do an amtape 
>       config show.  This will put the mapping for all tapes in the 
>       magazine into the mapping file."
> 
> This doesn't work for me.  enclosed is my changer.conf file and the
> relevent entries from my amanda.conf file.
> 
> I would like to have amanda cross-reference barcodes to tape labels,
> perhaps with an inventory control to verify barcode/amlabel mapping.  if
> amand needs a certain label, it tells the chager to load barcode #n.
> 
> //cut from amanda.conf
> tpchanger "chg-scsi"
> tapedev "0"   # the abstract changer config in the changer file
> changerfile "/usr/local/etc/amanda/changer/changer.conf"
> 
> //my changer.conf contents:
> number_configs 1
> eject 0 
> sleep 140
> cleanmax 20
> changerdev /dev/sg1
> 
> config 0
> drivenum        0
> dev                     /dev/nst1
> startuse        0
> havebarcode 1
> enduse          12
> cleancart       13
> statfile        /var/amanda/DailySet2/tape0-slot
> cleanfile       /var/amanda/DailySet2/tape0-clean
> usagecount      /var/amanda/DailySet2/totaltime
> tapestatus      /var/amanda/DailySet2/tapestatus
> labelfile       /usr/local/etc/amanda/changer/labelfile
> 
> //sample contents of a chg-scsi*debug file
> chg-scsi: debug 1 pid 1218 ruid 11600 euid 11600 start time Wed Jun 19 15:27:48 
> 2002
> chg-scsi: $Id: chg-scsi.c,v 1.1 2002/06/18 18:25:41 jason0 Exp $
> ARG [0] : /usr/local/libexec/chg-scsi
> ARG [1] : -slot
> ARG [2] : current
> Number of configurations: 1
> Tapes need eject: No
> Inv. auto update: No
> barcode reader  : Yes
> Tapes need sleep: 140 seconds
> Cleancycles     : 20
> Changerdevice   : /dev/sg1
> Labelfile       : /usr/local/etc/amanda/changer/labelfile
> Tapeconfig Nr: 0
>   Drivenumber   : 0
>   Startslot     : 0
>   Endslot       : 12
>   Cleanslot     : 13
>   Devicename    : /dev/nst1
>   changerident  : none
>   SCSITapedev   : none
>   tapeident     : none
>   statfile      : /var/amanda/DailySet2/tapestatus
>   Slotfile      : /var/amanda/DailySet2/tape0-slot
>   Cleanfile     : /var/amanda/DailySet2/tape0-clean
>   Usagecount    : /var/amanda/DailySet2/totaltime
>          ##### START SenseHandler
> Ident = [L500     6320000], function = [generic]
> ##### START GenericSenseHandler
> ##### START DecodeSense
> GenericSenseHandler : Sense Keys
>         Extended Sense                     
>         ASC                           29
>         ASCQ                          00
>         Sense key                     06
>                 Unit Attention
> Sense2Action START : type(8), ignsense(0), sense(06), asc(29), ascq(00)
> Sense2Action generic start :
> Sense2Action generic END : no match for generic   return -> -1/Default for SENSE
> _UNIT_ATTENTION
> ##### STOP GenericSenseHandler
> #### STOP SenseHandler
> 
> -- 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Jason Brooks ~ (503) 641-3440 x1861
>       Direct ~ (503) 924-1861
> System / Network Administrator 
> Wind River Systems
> 8905 SW Nimbus ~ Suite 255    
> Beaverton, Or 97008
> 
> 

-- 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jason Brooks ~ (503) 641-3440 x1861
      Direct ~ (503) 924-1861
System / Network Administrator 
Wind River Systems
8905 SW Nimbus ~ Suite 255      
Beaverton, Or 97008

Reply via email to