Egads, the things people dream up !  :-)

It *just* might work for you providing no one else is using your autochangers, 
and providing you do several things:

1. Remove the Changer Device from the AutoChanger resource, and keep the 
correct one in each Device record.  This is probably not necessary since if I 
remember right the Device takes precedence, but it would be better to remove 
it.

2. Fiddle your copy of mtx-changer so that by looking at the /dev/sg0/1, 
tricks Bacula into thinking it is dealing with a single autochanger, by doing 
several things (I may leave out some):
   a. It must return 20 for the number of Slots rather than 10
   b. It will have to do hand springs to remap all slot numbers greater than 
10 to the range 1-10 and vice-versa both incoming and outcoming in a number 
of places in the mtx-changer script.  This will be a real pain.  Bacula needs 
to think the slots are numbered 1-20, but each changer must see 1-10.

You could get a lot more through-put by using two different autochangers and 
multiple simultaneous jobs.  Doing what you want to do would seriously 
throttle the overall capability.

On Wednesday 30 November 2005 15:54, Michael Joyner wrote:
> help!
>
> I have two 10 slots autochangers and I am trying to configure them to
> run as a single autochanger.
>
> Does anyone have any pointers?
>
> This is my current config file:
> > Device {
> >         Name    = VXA-UNIT-0
> >         Archive Device = /dev/nst0
> >         Media Type = VXA2
> >         AutoChanger = yes
> >         Changer Device = /dev/sg0
> >         Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
> >         Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> >         AutomaticMount = yes;               # when device opened, read it
> >         AlwaysOpen = yes;
> >         RemovableMedia = yes;
> >         RandomAccess = no;
> >         Spool Directory = /tmp
> >         Maximum Spool Size = 5G
> >         Maximum Job Spool Size = 1G
> >         Label Media = NO
> >         Autoselect = YES
> > }
> >
> > Device {
> >         Name    = VXA-UNIT-1
> >         Archive Device = /dev/nst1
> >         Media Type = VXA2
> >         AutoChanger = yes
> >         Changer Device = /dev/sg2
> >         Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
> >         Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> >         AutomaticMount = yes;               # when device opened, read it
> >         AlwaysOpen = yes;
> >         RemovableMedia = yes;
> >         RandomAccess = no;
> >         Spool Directory = /tmp
> >         Maximum Spool Size = 5G
> >         Maximum Job Spool Size = 1G
> >         Label Media = NO
> >         Autoselect = YES
> > }
> >
> > Autochanger {
> >         Name    = VXA
> >         Device  = VXA-UNIT-0
> >         Device  = VXA-UNIT-1
> >         Changer Device = /dev/sg0
> >         Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
> > }
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Best regards,

Kern

  (">
  /\
  V_V


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to