As directed, I tried changing from chg-zd-mtx to chg-robot.  Here's
my changer definition:

define changer "gen-drive-0" {
  tpchanger "chg-robot:/dev/changer"
  changerfile "/local/etc/amanda/gen/changer-state"
  property "tape-device" "0=tape:/dev/gentape"
  property "eject-before-unload" "no"
  property "use-slots" "1-7"
  property "fast-search" "no"
  property "ignore-barcodes" "yes"
  property "eject-delay" "10"
  property "unload-delay" "10"
  property "load-poll" "0 s poll 5 s until 120 s"
}

now after the last amdump, current slot was set to 4.  The next
time I ran amcheck, for some reason it decided to use slot 6 for
the next tape instead of #5 and amtape reports:

amtape gen current

slot   6: time 20130823170001 label gen072

so I try to switch it to 5 with amtape:

amtape gen slot 5

ERROR: Slot: 5: slot 5 is empty

But that's not the case, as mtx status shows:

  Storage Changer /dev/changer:1 Drives, 7 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 6 Loaded)
      Storage Element 1:Full 
      Storage Element 2:Full 
      Storage Element 3:Full 
      Storage Element 4:Full 
      Storage Element 5:Full 
      Storage Element 6:Empty
      Storage Element 7:Full 

So I do an mtx unload:

Unloading drive 0 into Storage Element 6...done

but amtape still refuses to co-operate:

amtape gen slot 5

ERROR: Slot: 5: slot 5 is empty

So I do:

mtx load 5
Loading media from Storage Element 5 into drive 0...

Finally amtape agrees with me:

amtape gen slot 5
slot   5: time 20130819170001 label gen071
changed to slot 5
---
  Reasons like this are why I went back to chg-zd-mtx.  Although
it still messes up, at least it doesn't skip tapes randomly.

Steve
-- 
Steven J. Backus                        Computer Systems Manager
University of Utah                      E-Mail:  steven.bac...@utah.edu
Genetic Epidemiology                    Alternate:  bac...@math.utah.edu
391 Chipeta Way -- Suite D              Office:  801.587.9308
Salt Lake City, UT 84108-1266           http://www.math.utah.edu/~backus

Reply via email to