>>>>> On Wed, 13 Sep 2006 21:11:30 +0200, Kern Sibbald said:
> 
> On Wednesday 13 September 2006 21:00, Martin Simmons wrote:
> > >>>>> On Wed, 13 Sep 2006 15:12:18 +0200, Kern Sibbald said:
> > > 
> > > I don't have enough information to respond to this.
> > 
> > The code seems to use the start time for the comparison with Volume Use
> > Duration.  Unless the slot is misnamed :-)
> 
> I was looking at the pruning code and not the Volume Use Duration.  Maybe I 
> misunderstood the original questions.  I 
> 
> > 
> > I think that is probably the right thing to do, because using the end time
> > would break setups like one tape per day if the job takes almost the whole 
> day
> > to run.  In fact, I wonder if it should be comparing the scheduled time, to
> > avoid problems if the job is delayed?
> 
> I agree that for the Volume Use Duration, the time should not be the End 
> time.  
> Though it is an interesting idea, I'm not convinced the Scheduled time would 
> be correct since there can be a big difference between the scheduled time and 
> the Start time, and after all, the name is "Use Duration" (i.e. from 
> beginning of writing until now). 
> 
> In fact, for a Volume, it seems to me that the Start time should (and 
> probably 
> is) the FirstWritten time for the Volume.

Right, but that big difference causes problems.  The second paragraph of the
doc hints that the current implmentation is wrong for the purpose of
weekly/daily tapes.  The 6 days or 23 hours trick is a bit of a hack.

Maybe it just needs another directive "Volume Scheduled Use Duration" if the
current semantics is useful for some other purpose?

__Martin



> 
> > 
> > __Martin
> > 
> > 
> > > 
> > > On Wednesday 13 September 2006 02:41, Jo Rhett wrote:
> > > > 
> > > > > On Monday 11 September 2006 20:21, Jo Rhett wrote:
> > > > >> ANALYSIS: So.. the volume's usage period is being determined not by
> > > > >> when it was first written to, but instead by the start time of the
> > > > >> first job that wrote to it.
> > > > >>
> > > > >> Is this behavior known?  Is it fixed in current?  Obviously it's not
> > > > >> a crucial flaw, but if its decided not to fix it then it should be
> > > > >> documented.
> > > > 
> > > > On Sep 12, 2006, at 3:13 AM, Kern Sibbald wrote:
> > > > > All pruning is based on the termination time of the Job concerned  
> > > > > not the
> > > > > start time of the job.
> > > > >
> > > > > The manual was not very explicit on this, so I have made it so.   
> > > > > Note, in a
> > > > > few exceptional cases (Bacula crashes between the time the job  
> > > > > starts and the
> > > > > job terminates), the "End time" of the job will be set to the start  
> > > > > time of
> > > > > the Job.  Any job that is correctly terminated by Bacula (normal,  
> > > > > warning,
> > > > > error, fail, ...) will have the End time set correctly.
> > > > 
> > > > I hate to argue, but here's the facts in this case:
> > > > 
> > > > 1. Started at 11:05
> > > > 2. Didn't get resources until 23:09
> > > > 3. Finished OK
> > > > 
> > > > And yet, the volume stops being usable at exactly 11:05 the next  
> > > > morning.
> > > > 
> > > > 10-Sep 11:05 backup0-dir: Start Backup JobId 258,  
> > > > Job=hostname.client.com.2006-09-10_11.05.00
> > > > 10-Sep 11:05 backup0-dir: Max configured use duration exceeded.  
> > > > Marking Volume "clients-0003" as Used.
> > > > 10-Sep 11:05 backup0-dir: Pruning oldest volume "clients-0004"
> > > > 10-Sep 11:05 backup0-dir: Pruning oldest volume "clients-0004"
> > > > 10-Sep 11:05 backup0-dir: Pruning oldest volume "clients-0004"
> > > > 10-Sep 11:05 backup0-sd: Job hostname.client.com.2006-09-10_11.05.00  
> > > > waiting. Cannot find any appendable volumes.
> > > > Please use the "label"  command to create a new Volume for:
> > > >      Storage:      "Dev_clients" (/bacula/clients)
> > > >      Media type:   File_clients
> > > >      Pool:         clients_Pool
> > > > 10-Sep 12:05 backup0-dir: Pruning oldest volume "clients-0004"
> > > > 10-Sep 12:05 backup0-sd: Job hostname.client.com.2006-09-10_11.05.00  
> > > > waiting. Cannot find any appendable volumes.
> > > > Please use the "label"  command to create a new Volume for:
> > > >      Storage:      "Dev_clients" (/bacula/clients)
> > > >      Media type:   File_clients
> > > >      Pool:         clients_Pool
> > > > 10-Sep 14:05 backup0-dir: Pruning oldest volume "clients-0004"
> > > > 10-Sep 14:05 backup0-sd: Job hostname.client.com.2006-09-10_11.05.00  
> > > > waiting. Cannot find any appendable volumes.
> > > > Please use the "label"  command to create a new Volume for:
> > > >      Storage:      "Dev_clients" (/bacula/clients)
> > > >      Media type:   File_clients
> > > >      Pool:         clients_Pool
> > > > 10-Sep 18:05 backup0-dir: Pruning oldest volume "clients-0004"
> > > > 10-Sep 18:05 backup0-sd: Job hostname.client.com.2006-09-10_11.05.00  
> > > > waiting. Cannot find any appendable volumes.
> > > > Please use the "label"  command to create a new Volume for:
> > > >      Storage:      "Dev_clients" (/bacula/clients)
> > > >      Media type:   File_clients
> > > >      Pool:         clients_Pool
> > > > 10-Sep 22:08 backup0-dir: Recycled volume "clients-0004"
> > > > 10-Sep 22:08 backup0-sd: Recycled volume "clients-0004" on device  
> > > > "Dev_clients" (/bacula/clients), all previous data lost.
> > > > 10-Sep 23:09 backup0-dir: Bacula 1.38.5 (18Jan06): 10-Sep-2006 23:09:58
> > > >    JobId:                  258
> > > >    Job:                    hostname.client.com.2006-09-10_11.05.00
> > > >    Backup Level:           Incremental, since=2006-09-09 11:05:01
> > > >    Client:                 "hostname.client.com-fd" i386-portbld- 
> > > > freebsd6.1,freebsd,6.1-STABLE
> > > >    FileSet:                "hostname.client.com-fileset" 2006-07-09  
> > > > 09:03:40
> > > >    Pool:                   "clients_Pool"
> > > >    Storage:                "Disk_clients"
> > > >    Scheduled time:         10-Sep-2006 11:05:00
> > > >    Start time:             10-Sep-2006 11:05:01
> > > >    End time:               10-Sep-2006 23:09:58
> > > >    Priority:               10
> > > >    FD Files Written:       699,861
> > > >    SD Files Written:       699,861
> > > >    FD Bytes Written:       5,540,243,949
> > > >    SD Bytes Written:       5,636,912,236
> > > >    Rate:                   127.4 KB/s
> > > >    Software Compression:   None
> > > >    Volume name(s):         clients-0004
> > > >    Volume Session Id:      240
> > > >    Volume Session Time:    1156008818
> > > >    Last Volume Bytes:      5,665,530,747
> > > >    Non-fatal FD errors:    0
> > > >    SD Errors:              0
> > > >    FD termination status:  OK
> > > >    SD termination status:  OK
> > > >    Termination:            Backup OK
> > > > 
> > > > 10-Sep 23:09 backup0-dir: Begin pruning Jobs.
> > > > 10-Sep 23:09 backup0-dir: No Jobs found to prune.
> > > > 10-Sep 23:09 backup0-dir: Begin pruning Files
> > > > 
> > > > 
> > > > -- 
> > > > Jo Rhett
> > > > senior geek
> > > > Silicon Valley Colocation
> > > > 
> > > > 
> > > > 
> -------------------------------------------------------------------------
> > > > Using Tomcat but need to do more? Need to support web services, 
> security?
> > > > Get stuff done quickly with pre-integrated technology to make your job 
> > > easier
> > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache 
> Geronimo
> > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > > _______________________________________________
> > > > Bacula-users mailing list
> > > > Bacula-users@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/bacula-users
> > > > 
> > > 
> > > -------------------------------------------------------------------------
> > > Using Tomcat but need to do more? Need to support web services, security?
> > > Get stuff done quickly with pre-integrated technology to make your job 
> easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > _______________________________________________
> > > Bacula-users mailing list
> > > Bacula-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/bacula-users
> > > 
> > 
> 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to