Bacula-users

Re: [Bacula-users] Changer on different host

2008-07-17 09:57:49
Subject: Re: [Bacula-users] Changer on different host
From: "Shad L. Lords" <slords AT lordsfam DOT net>
To: John Drescher <drescherjm AT gmail DOT com>
Date: Thu, 17 Jul 2008 07:57:55 -0600
John Drescher wrote:
>> host1-sd.conf
>> =============
>>
>> Autochanger {
>>   Name = ait4-changer
>>   Device = ait4-drive1
>>   Device = ait4-drive2
>>   Device = ait4-drive3
>>   Device = ait4-drive4
>>   Changer Command = "/usr/lib/bacula/mtx-changer %c %o %S %a %d"
>>   Changer Device = /dev/sg0
>> }
>>
>> Device {
>>   Name = ait4-drive1
>>   Archive Device = /dev/nst0
>>   Drive Index = 0
>>   Auto Changer = yes
>>   Media Type = ait4
>>   ...
>> }
>>
>> Device {
>>   Name = ait4-drive2
>>   Archive Device = /dev/nst1
>>   Drive Index = 1
>>   Auto Changer = yes
>>   Media Type = ait4
>>   ...
>> }
>>
>> host2-sd.conf
>> =============
>>
>> Device {
>>   Name = ait4-drive3
>>   Archive Device = /dev/nst0
>>   Drive Index = 2
>>   Auto Changer = yes
>>   Media Type = ait4
>>   ...
>> }
>>
>> Device {
>>   Name = ait4-drive4
>>   Archive Device = /dev/nst1
>>   Drive Index = 3
>>   Auto Changer = yes
>>   Media Type = ait4
>>   ...
>> }
>>
>> Is this something that would even be possible to implement in the
>> future?  Would anyone else be interested in something like this?
>>
> That will not work, You need to have the storage daemon on only the
> host with the tape drives and modify mtx-changer to send mtx commands
> via ssh. This should not be too difficult.

In the above example both hosts would have two drives attached to them 
so each host would be running a storage daemon.  Only one of the hosts 
has the controller connected to it so host1 would be the only one that 
could send commands to the changer.  I understand that I can setup ssh 
commands to send mtx to the other host.  I was just providing an example 
  to see if something like this could be possible in the future and see 
if anyone else would be interested.  If it could be easily implemented 
I'd love to see it in a future version of bacula.  If it isn't then I'll 
try to cobble something together to get me by.

-Shad

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users