From: Kern S. <ke...@si...> - 2003-11-28 12:09:15
|
Hello Ludovic, Thank you for your response. With these specifications, the idea is much more appealing to me. Below, I suggest a possible different way of specifying a Scratch Pool ... On Fri, 2003-11-28 at 12:15, Ludovic Strappazon wrote: > Here how I consider the thing : > > Kern Sibbald wrote: > > >On Fri, 2003-11-28 at 10:02, Ludovic Strappazon wrote: > > > > > >>Hello Kern, > >> > >>Few months ago, we have discuss about the scratch pool, I think this is > >>one of the (rare) features which lacks to Bacula. Did you think about it ? > >> > >> > > > >Hello Ludovic, > > > >Yes, I remember your request. I made the following notation in my todo > >list: > > > >- Scratch Pool where the volumes can be re-assigned to any Pool. > > > >but I haven't thought about it much. I did think that I can use the Pool > >type to indicate scratch Pools, but at the moment, none of the code > >really checks pool types. > > > >Your request did prompt me to add "update pool" allowing the user to > >change the pool. > > > >I'll be happy to up the priority of this if I can have the following > >things: > > > >1. Some precise input from you and anyone else interested in *exactly* > >where in the current "Recycling Algorithm" Bacula should search for > >volumes in the scratch pool. See: > > > >http://www.bacula.org/html-manual/recycling.html#Recycling > > > > > > > * Search the Pool for a Volume with VolStatus=Append (if there is > more than one, the Volume with the lowest MediaId is chosen) > * Search the Pool for a Volume with VolStatus=Recycle (if there is > more than one, the Volume with the lowest MediaId is chosen) > * Prune volumes applying Volume retention period (Volumes with > VolStatus Full, Used, or Append are pruned) > * Search the Pool for a Volume with VolStatus=Purged > * Attempt to create a new Volume if automatic labeling enabled > * Prune the oldest Volume if RecycleOldestVolume=yes (the Volume > with the oldest LastWritten date and VolStatus equal to Full, > Recycle, Purged, Used, or Append is chosen). This record ensures > that all retention periods are properly respected. > * Purge the oldest Volume if PurgeOldestVolume=yes (the Volume with > the oldest LastWritten date and VolStatus equal to Full, Recycle, > Purged, Used, or Append is chosen). We strongly recommend against > the use of *PurgeOldestVolume* as it can quite easily lead to loss > of current backup data. > * *Search the Scratch pool for a Volume if using Scratch Pool > enabled and create a new Volume**.* > * Give up and ask operator > > >2. What does Bacula do if there are two scratch Pools? This could be > >simplified by requiring the Pool Name to be Scratch rather than the Pool > >type, but that seems rather limited. > > > > > I think there should be only one Scratch pool ( or one for each type of > media ? ), eventually replacing the Default pool. This pool would be > only a common reserve of Volumes for all the other pools. The pool > ressource could contain a new record : > > *UseScratchPool = <yes/no>* > This record specifies if Bacula is authorized to pick a Volume from > the Scratch Pool and add it in this pool. How about: UseScratchPool = <pool-name> where the Pool Type must be Scratch. > > Advantages : > > * When you install Bacula, you create your pools, and put all your > volumes in the scratch pool > * With Bacula running, you just have to verify that the scratch pool > is not empty. * You can have different Scratch Pools that feed different Pools. > > *RecycleInScratchPool = <yes/no> > *This record specifies if a purged Volume stays in his pool, > or joins the scratch pool. How about: RecycleToPool = <pool-name> Where the Pool Type must be Scratch. Best regards, Kern > > ** > > >3. Someone else would like this feature. > > > >Even if I don't get all the items above, I will definitely implement it, > >is is just a question of getting the answer to (or deciding what to) do > >for the first two questions, and setting a priority. > > > >Best regards, > > > >Kern > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: SF.net Giveback Program. > >Does SourceForge.net help you be more productive? Does it > >help you create better code? SHARE THE LOVE, and help us help > >YOU! Click Here: http://sourceforge.net/donate/ > >_______________________________________________ > >Bacula-users mailing list > >Bac...@li... > >https://lists.sourceforge.net/lists/listinfo/bacula-users > > > > > > > > |