From: Ludovic S. <str...@um...> - 2003-11-28 11:15:44
|
Here how I consider the thing : Kern Sibbald wrote: >On Fri, 2003-11-28 at 10:02, Ludovic Strappazon wrote: > =20 > >>Hello Kern, >> >>Few months ago, we have discuss about the scratch pool, I think this i= s=20 >>one of the (rare) features which lacks to Bacula. Did you think about i= t ? >> =20 >> > >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 > > =20 > * Search the Pool for a Volume with VolStatus=3DAppend (if there is more than one, the Volume with the lowest MediaId is chosen) * Search the Pool for a Volume with VolStatus=3DRecycle (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=3DPurged * Attempt to create a new Volume if automatic labeling enabled * Prune the oldest Volume if RecycleOldestVolume=3Dyes (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=3Dyes (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. > =20 > I think there should be only one Scratch pool ( or one for each type of=20 media ? ), eventually replacing the Default pool. This pool would be=20 only a common reserve of Volumes for all the other pools. The pool=20 ressource could contain a new record : *UseScratchPool =3D <yes/no>* This record specifies if Bacula is authorized to pick a Volume from the Scratch Pool and add it in this pool. Advantages :=20 * 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. *RecycleInScratchPool =3D <yes/no> *This record specifies if a purged Volume stays in his pool,=20 or joins the scratch pool. ** >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 > > > =20 > --=20 Ludovic Strappazon. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~ Universit=E9 Marc Bloch =20 Service Commun d'Informatique de Gestion T=E9l. : 03 88 41 71 33 22, rue Descartes Mobile : 06 60 95 47 35 67084 Strasbourg Cedex E-mail : ludovic.strappazon@= umb.u-strasbg.fr ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~ |