Hello,

In looking at your patch, I would guess that your tape drive is set in
SysV mode, which Bacula does not support.  Bacula only supports Berkeley
tape conventions. 

Have you worked through the Tape Testing chapter of the main manual?  If
you have, I would find it very strange that the testing did not pick up
the problem.

Best regards,
Kern

On 12/21/2015 11:19 PM, Mark D. Strohm wrote:
> Just to follow up, I did find a workaround for the I/O errors with LTO 
> hardware encryption:  At the end of a tape file, space a record forward, then 
> a record back (code below).
>
> I have not found the actual cause of the problem.  It is most likely with the 
> vendor firmware for that particular IBM LTO-4 model.  But the workaround does 
> permit both verifies and restores to work properly with encrypted tapes.
>
> -Mark-
>
>
> bacula-7.0.5
>
> *** block.c.orig      2014-07-29 09:31:22.000000000 -0700
> --- block.c   2015-11-13 14:16:04.000000000 -0800
> ***************
> *** 441,446 ****
> --- 441,452 ----
>         } else {
>            Mmsg3(dev->errmsg, _("Read zero bytes Vol=%s at %lld on device 
> %s.\n"),
>                  dev->VolCatInfo.VolCatName, pos, dev->print_name());
> +          if (dev->fsr(1)) {    /* to deal with the encrypted eof jams, 
> forward space one record */
> +             dev->bsr(1);       /* if that works without error, back space 
> into position */
> +          } else {              /* if it throws an error ... */
> +             dev->set_ateof();  /* set the ateof flag to trigger the eom 
> detection below */
> +             dev->file--;       /* and reset the file number */
> +          }
>         }
>         dev->block_num = 0;
>         block->read_len = 0;
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>



------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to