Rudolph Bott wrote:
> Mattias Twedmark wrote:
>   
>> Hi Rudolph,
>>
>> I spent two days recently with the exact same problem trying to use one 
>> storage and on device for multiple clients and jobs. My conclusion was 
>> that the Storage Device can only keep one pool open at a time and 
>> therefore are you getting the Job XX wants Pool="Tuesday" but have 
>> Pool="Monday" since ther Device is reading the Monday pool on another 
>> Job.
>>
>> We solved it by creating one Device {} in bacula-sd.conf for each job.  
>>     
>
> Oh God - that would mean creating 1 device per client per day/pool? That 
> would be a nightmare to maintain - right now adding a new client is only a 
> matter of copy/paste of the client- and the job-definition..
>
>   
the easiest way ist to use includes :-)

I have solved it so:

in bacula-dir.conf an include to
@/usr/local/bacula/etc/clients-dir.conf
where are all the clients includes in this file:
@/usr/local/bacula/etc/clients/client1-dir.conf
@/usr/local/bacula/etc/clients/client2-dir.conf

The same in bacula.sd.conf
@/usr/local/bacula/etc/clients-sd.conf

@/usr/local/bacula/etc/clients/client1-sd.conf
@/usr/local/bacula/etc/clients/client1-sd.conf

In the clients folder i just use an simple shell script to duplicate the 
configs:
cat client1-dir | replace client1 client2 -- > client2-dir
cat client1-sd | replace client1 client2 -- > client2-sd

thats all
hope it helps

Greetings,
Daniel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to