From: Mantis B. T. <no...@bu...> - 2016-12-28 11:51:41
|
The following issue has been CLOSED ====================================================================== http://bugs.bacula.org/view.php?id=2219 ====================================================================== Reported By: philhu Assigned To: kern ====================================================================== Project: Bacula Bug Reports Issue ID: 2219 Category: Storage Daemon Reproducibility: always Severity: minor Priority: normal Status: closed Resolution: no change required Fixed in Version: ====================================================================== Date Submitted: 2016-04-22 14:02 UTC Last Modified: 2016-12-28 11:51 UTC ====================================================================== Summary: When using tape, the SD waits forever in a mount request when a tape not in changer Description: After a job completes, If you remove a tape from the changer that was used by the last job, call it x, and is still is marked append load other empty appendable tapes, doing update slots, upon running next job, the system will give error that it looked for tape x in slot 0 and found no tape in slot 0, and wait forever with a mount request. You can satisfy it one by one by loading another tape into the drive using 'mtx load' The bug is that the system should use the flag 'in changer' to check if the tape is loaded, if it is not, do NOT try to load slot 0, just look for any other appendable tape in the pool with warning like: "Tape x is not in the changer, will load another appendable tape" Steps to Reproduce: load an appendable tape labelled x run a job that does not fill up tape and let it complete When completed, take out tape, put in another labeled blank tape, labeled y In bconsole: Do an update slots Do a 'list slots', bloth will be listed, only the latest will show 'in changer' set to 1 Run a job It will say it attempted to load tape x from slot 0 with a device error and go into mount request mode and does NOT attempt to use tape y on its own Additional Information: The bug is that 'in changer' is not used to verify a tape about to be mounted is indeed in the changer causing the slot 0 error ====================================================================== ---------------------------------------------------------------------- (0007404) kern (administrator) - 2016-10-02 06:15 http://bugs.bacula.org/view.php?id=2219#c7404 ---------------------------------------------------------------------- It would be helpful if you show the exact sequence of commands (as you did) but with the output generated by Bacula. I get the feeling that you removed the tape while Bacula thought it was still mounted. To remove a tape that Bacula was using you must first "unmount" the tape using Bacula (bconsole). If you skipped that step, Bacula will be confused. I am pretty sure this is documented in the manual, if not, it should be. All manual operations on the tape changer when Bacula is running must be coordinated through Bacula so that it does not lose track of what is happening. If I can see the exact sequence of commands and output, there is a chance that I can figure out some way to make Bacula recognize that some manual operation has taken place, but currently it doesn't expect that. I don't think this is a bug but rather a "limitation" or Bacula "requirement". However, I will leave this bug report open in case you have more input. ---------------------------------------------------------------------- (0007450) kern (administrator) - 2016-12-28 11:51 http://bugs.bacula.org/view.php?id=2219#c7450 ---------------------------------------------------------------------- Having no response, I am marking this as not a bug. I suspect that you have forgotten to do "update slots" after you change what is in the autochanger. This is a documented requirement for Bacula to function correctly. Issue History Date Modified Username Field Change ====================================================================== 2016-04-22 14:02 philhu New Issue 2016-10-02 06:15 kern Note Added: 0007404 2016-10-02 06:15 kern Assigned To => kern 2016-10-02 06:15 kern Status new => feedback 2016-10-02 06:20 kern Summary When using tape, system obsesses over a tape not in changer => When using tape, the SD waits forever in a mount request when a tape not in changer 2016-12-28 11:51 kern Status feedback => closed 2016-12-28 11:51 kern Resolution open => no change required 2016-12-28 11:51 kern Note Added: 0007450 ====================================================================== |