Hi Radoslaw,
 
Yes, I would like to investigate the reasons for that error, but I do not 
know, how its done best.
 
I know the bacula will also restore from an "ERROR" tape, but I am afraid 
that the positioning to find a specific file might not work in such a 
situation as well (however I did not have restore issues in the past, but 
the last restore was some time ago).
 
Thank you very much,
 
Christian
 
 
 
-----Original-Nachricht-----
Betreff: Re: [Bacula-users] Tape Moving Error after server restart
Datum: 2020-03-18T18:57:58+0100
Von: "Radosław Korzeniewski" <rados...@korzeniewski.net>
An: "Christian Lehmann" <lcompu...@t-online.de>
 
 
 
Hello,
 
śr., 18 mar 2020 o 13:54 Christian Lehmann <lcompu...@t-online.de
<mailto:lcompu...@t-online.de> > napisał(a):
  Dear all,
   
  from time to time I get an error after I restart the server running my
  bacula director and also a storage daemon with an Tandberg LTO-5 HH.
   
  The current bacula version is 9.6.3 (9th March 2020) on a Debian machine.
   
  The situation is:
   
  Bacula has made some backups to a tape in the drive, but the tape isn't
  full yet.
   
  Than a restart of the machine is happing (for example due to a Kernel
  update). So bacula is shutting down and the tape is rewinded.
   
  After restart, as soon as I initiate a backup job, bacula tries the
  positioning to the end of the tape to write the data (in this case I just
  run a small backup job of my bacula database).
   
  However, he fails to do so, with the error "ERFOLG" (which is German and
  means SUCCESS). So I do not understand what is happening there. Has
  someone come accross such a behaviour?
 
It is possible that an ioctl returned -1 which means error but errno was 
not setup properly, so Bacula reported Success. :)
 
$ man ioctl
(...)
On error, -1 is returned, and errno is set appropriately.
(...)
 
   
  18-Mär 13:19 fritzie15-dir JobId 12352: shell command: run BeforeJob
  "/etc/bacula/make_catalog_backup bacula bacula VERY_SAFE_PASSWORD_XXX"
  18-Mär 13:19 fritzie15-dir JobId 12352: Start Backup JobId 12352,
  Job=Bacula_Catalog.2020-03-18_13.19.09_03
  18-Mär 13:19 fritzie15-dir JobId 12352: Using Device "LTO-5" to write.
  18-Mär 13:19 fritzie15-sd JobId 12352: Volume "LTO-5-Tape0027" previously
  written, moving to end of data.
  18-Mär 13:20 fritzie15-sd JobId 12352: Error: Unable to position to end
  of data on Tape device "LTO-5" (/dev/nst0): ERR=tape_dev.c:363 ioctl
  MTIOCGET error on "LTO-5" (/dev/nst0). ERR=Erfolg.
  18-Mär 13:20 fritzie15-sd JobId 12352: Marking Volume "LTO-5-Tape0027" in
  Error in Catalog.
   
  Now, I am a bit afraid, because I do not know, if a restore of the
  backuped data would work.
 
If Bacula volume is marked Error it means for Bacula "do not attempt to 
write to this tape again", but if required use it for restore. So, do not 
worry about it.
 
But, you should investigate why Bacula encountered ioctl error during 
backup. It is not good IMVHO.
 
best regards
--
Radosław Korzeniewski
rados...@korzeniewski.net <mailto:rados...@korzeniewski.net>

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

Reply via email to