> > So right now the "Volume Use" start time is set by the start time of  
> > the first job stored on it.  
 
On Wed, Sep 13, 2006 at 10:04:47PM +0200, Kern Sibbald wrote:
> I haven't looked at the code, but I believe it is based on the FirstWritten 
> which is the time (if I am not mistaken) when the Volume first had data 
> written to it (i.e. just labeling it doesn't count).
                ...
> No, I don't believe that is correct.  The FirstWritten should be the time the 
> first non-label byte is written to the Volume.  The whole process is rather 
> complicated though.
 
Nope.  Here's the volume in question that started it all 
llist volumes output:

          MediaId: 4
       VolumeName: clients-0004
             Slot: 0
           PoolId: 5
        MediaType: File_clients
     FirstWritten: 2006-09-10 11:05:01
      LastWritten: 2006-09-10 23:26:29
        LabelDate: 2006-09-10 11:05:01

FirstWritten says 11:05, but the volume wasn't Recycled until 11 hours
later, and first written another half hour later (I walked away and forgot
to mount the device...)

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
...etc

Sorry, I don't have time to investigate the algorithm, but I did have time
to show the evidence as to what is happening here...

-- 
Jo Rhett
senior geek
SVcolo : 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

Reply via email to