On 10/17/2014 12:29 PM, Giuseppe
Vitillaro wrote:
Consider how Bacula treats the case where "maximum volume jobs = 1". The job starts to run and selects a volume marked "append", possibly first recycling a volume if no available "append" volumes are empty. It then marks the volume as "used" so that no other jobs will try to select it. After it is marked "used" the job continues and writes the job data to it. So, yes, there is a use for writing a volume after it is marked "used". Since multiple jobs may start at the same or nearly the same time, Bacula serializes volume selection by allowing only one job at a time to select a volume. So the job that marked it "used" writes to it, but no other job can subsequently select it. I think something similar is happening when "use duration" runs out while the job is running. The "use duration" period begins when the volume is first written to, which is always AFTER the job starts. If the "use duration" is an integer multiple of the time period between job runs, then there will always be a job that starts just minutes or seconds BEFORE the "use duration" expires. That causes the volume to get marked "used" during the job, though it was indeed marked "append" when the job first started. The job doesn't (and shouldn't) fail because of this. It continues and writes to the "used" volume. Jobs that start after the volume is marked "used" will NOT select it when searching for a volume. This is why it is a good idea to make the "use duration" period a bit shorter. That way the "use duration" has already expired before the job starts. So, I don't think you are "wrong". I just think you are miscalculating the exact time of the end of the "use duration" period, that the volume isn't being marked "used" until after the job has already started, meaning that the "Use duration" is too long. |
------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users