On 2/2/2011 10:19 AM, Bob Hetzel wrote:
> On 2/2/2011 9:30 AM, Alan Brown wrote:
>>
>> Where can I find documentation on how Bacula chooses drives in a changer?
>>
>> It appears that right now it's always seeking to find an unoccupied unit
>> numbering upwards from drive 0 every time, but that means that there is
>> an uneven spread of wear and tear across the devices.
>>
>> Can anyone verify?

> Yup, that's exactly what it does here too.  I guess one could think of the
> extra backup usage wear as akin to the order of the starting lineup in a
> baseball team.  The guy batting first will, in the course of a whole
> season, be at bat a lot more times than the guy last in the order.
>
> Another result is that the last job in a big schedule frequently wants to
> run in drive 0 but using a tape that's already mounted in a different
> drive.  Fortunately, bacula 5.0.3 seems to be pretty good about unloading
> the tape and re-loading it (with the timeout settings in place in the sd
> config) but this is also extra wear and tear and probably has a much worse
> effect.

Post adjusted so it reads in order....

It's good to know the observation is repeatable.

I have not looked at the code, but it should be fairly easy to adjust 
the getNextAvailableDrive() function (I made up that name).  Suggestions 
for a would-be-coder:

* let the config indicate a selection method:
   * random (get list of free drives && randomly select one of them)
   * user specified order: 1, 4, 2, 3
   * default: use first available drive (current selection method)

Anyone up for a mini-task?


-- 
Dan Langille - http://langille.org/

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to