Re: Transient data-path errors when running amcheck
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. BackusComputer Systems Manager University of Utah E-Mail: steven.bac...@utah.edu Genetic EpidemiologyAlternate: 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
Re: Transient data-path errors when running amcheck
Steven, It is always better to report a bug instead of going to an older release. Try the patch I posted on https://forums.zmanda.com/showthread.php?5179-amtape-shows-slot-empty-but-mtx-doesn-t Jean-Louis On 01/03/2014 03:29 PM, Steven Backus wrote: 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
Re: Transient data-path errors when running amcheck
Huh! I had a couple of instances of "it's empty" / "no it isn't" and deleted my changerfile. This fixed it, but perhaps I should also try your patch. I was sharing the drive and the changerfile between 2 configurations (a daily and an archive) and thought I might have caused my problems by doing that. I'll look into the patch in a few weeks when I'm back in the office. Deb Baddorf > On Jan 3, 2014, at 2:47 PM, "Jean-Louis Martineau" > wrote: > > Steven, > > It is always better to report a bug instead of going to an older release. > > Try the patch I posted on > https://forums.zmanda.com/showthread.php?5179-amtape-shows-slot-empty-but-mtx-doesn-t > > Jean-Louis > >> On 01/03/2014 03:29 PM, Steven Backus wrote: >> 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 >