On Tue, Oct 13, 2020 at 21:02:34 -0400, Chris Hoogendyk wrote:
> Patched.
>
> amanda@marlin:~/daily$ amcheck -s -otaperscan=taper_lexical daily
>
> Amanda Tape Server Host Check
> -----------------------------
> NOTE: Holding disk '/amanda3': 449998848 KB disk space available,
> using 345141248 KB
> NOTE: Holding disk '/amanda4': 3026923520 KB disk space available,
> using 2922065920 KB
> NOTE: Holding disk '/amanda5': 104857600 KB disk space available,
> using 0 KB
> slot 19: volume 'Bio-Research-007'
> Will write to volume 'Bio-Research-007' in slot 19.
> NOTE: skipping tape-writable test
> Server check took 20.422 seconds
> (brought to you by Amanda 3.5.1)
Okay, great.
As I said before I'm not confident this is a competely correct fix, but
attached here is a patch file (against the original version of the file)
containing just the "fix" line (i.e. no debugging statements).
You should be able to swap your lexical.pm back to the original version
and put ScanInventory.pm back to the original with just this one patch,
and then go ahead and switch back to "oldest" taperscan again in your
amanda.conf -- hopefully it will all "just work" again.
I'm curious to see the log file from an "amtape daily taper" run with
that setup in place (I assume that will run to successful completion,
too...).
Nathan
----------------------------------------------------------------------------
Nathan Stratton Treadway - [email protected] - Mid-Atlantic region
Ray Ontko & Co. - Software consulting services - http://www.ontko.com/
GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239
Key fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239
--- ScanInventory.pm_orig_v3.5.1 2017-09-22 19:41:42.154305907 -0400
+++ ScanInventory.pm 2020-10-13 22:43:25.148507391 -0400
@@ -723,6 +723,7 @@
return 0;
} elsif ($dev_status == $DEVICE_STATUS_SUCCESS and
$f_type == $Amanda::Header::F_TAPESTART) {
+ $label='' if !defined $label;
if (!match_labelstr($self->{'labelstr'}, $autolabel, $label,
$barcode, $meta,
$self->{'chg'}->{'storage'}->{'storage_name'})) {
if (!$autolabel->{'other_config'}) {