Hello, śr., 18 mar 2020 o 13:54 Christian Lehmann <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
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users