On Wednesday 11 April 2007 20:28, Ralf Gross wrote: > Kern Sibbald schrieb: > > > The main question is, why did bacula mark volumes 06D124L3 as used > > > right > after the first job started when the voluseduration is set > > > to 4 days? > > > > I'm not sure that recycling a volume resets its use duration. Perhaps the use > > duration expired at about the time or just after when the volume was > > recycled. > > The volume use duration is 4 days, 2007-02-25 was the first and last > time the volume was in use (weekly diff. backup) before the diff. > backup last sunday night. > > <http://www.bacula.org/rel-manual/FileSet_Resource.html#PoolResource> > The Volume Use Duration directive defines the time period that the > Volume can be written beginning from the time of first data write to > the Volume. If the time-period specified is zero (the default), the > Volume can be written indefinitely. Otherwise, the next time a job > runs that wants to access this Volume, and the time period from the > first write to the volume (the first Job written) exceeds the > time-period-specification, the Volume will be marked Used, which means > that no more Jobs can be appended to the Volume, but it may be > recycled if recycling is enabled. Using the command status dir > applies algorithms similar to running jobs, so during such a command, > the Volume status may also be changed. Once the Volume is recycled, it > will be available for use again. > > > If I understand the last sentence correct, the volume use duration > should be reset after the volume was recycled. Otherwise the volume > could never be used again after the max volume use duration expired. > > I'm also confused about this order: > > 1. run before job > 2. start job 121 > 3. recycle volume 06D124L > 4. mark volume 06D124L as used > 5. ---> write job #1 to volume 06D124 > > 08-Apr 00:05 VU0EM005: BeforeJob: run command "/usr/bin/ssh [snip]" > 08-Apr 00:07 VU0EM005: Start Backup JobId 121, Job=SMTCZB0003.2007-04-08_00.05.00 > 08-Apr 00:08 VU0EM005: 3307 Issuing autochanger "unload slot 4, drive 0" command. > 08-Apr 00:09 VU0EM005: 3304 Issuing autochanger "load slot 5, drive 0" command. > 08-Apr 00:10 VU0EM005: 3305 Autochanger "load slot 5, drive 0", status is OK. > 08-Apr 00:10 VU0EM005: 3301 Issuing autochanger "loaded? drive 0" command. > 08-Apr 00:10 VU0EM005: 3302 Autochanger "loaded? drive 0", result is Slot 5. > 08-Apr 00:10 VU0EM005: Recycled volume "06D124L3" on device "LTO3" (/dev/nst0), all previous data lost. > 08-Apr 00:10 VU0EM005: Max configured use duration exceeded. Marking Volume "06D124L3" as Used. > 08-Apr 00:10 VU0EM005: Spooling data ... > [snip] > 08-Apr 00:12 VU0EM005: Job write elapsed time = 00:02:23, Transfer rate = 6.766 M bytes/second > 08-Apr 00:12 VU0EM005: Committing spooled data to Volume "06D124L3". Despooling 968,636,754 bytes ... > As I said (or rather implied) perhaps when the volume was recycled the use duration expired "before" the First Write Time was properly updated, or maybe it wasn't even updated.
If you can specifically show that to be the case, then this would be a bug. > > I've used the 'Volume Use Duration' parameter in bacula 1.38.5 for > about one year. It always worked as (at least I) expected. Agreed, but three things: - Code is in constant change, and sometimes in changing it new bugs are introduced. - Version 2.0.x checks more carefully and more often for expired volume parameters than previous versions. - Maybe you just fell into a new untested case during the recycle. Code can work "correctly" for years, then something different happens, and bang things go wrong. > > Ralf > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users