Bacula-users

Re: [Bacula-users] When does bacula use multiple tape drives

2014-03-31 12:17:54
Subject: Re: [Bacula-users] When does bacula use multiple tape drives
From: Wolfgang Denk <wd AT denx DOT de>
To: Randall Svancara <rsvancara AT gmail DOT com>
Date: Mon, 31 Mar 2014 17:58:54 +0200
Dear Randall,

In message <CALYD9g+HKxVnosqfHN2iEaL4PvvDgcTtOgZWRE-yBh1W4n6gDA AT mail.gmail 
DOT com> you wrote:
>
> I am trying to configure a dual drive tape library.  My challenge is that
> bacula seems to only use one drive.  What determines in bacula when it is
> optimal to use two drives?  I am using bacula Version: 5.2.13.

I'm running 5.2.13 under Fedora 20; this is working fine for me.

>  Additionally I have set "Maximum Concurrent Jobs = 4" in all the relevant
> places, but all this seems to do is allow multiple concurrent jobs run,
> which I have tested and seems to work, but strangely, I was under the
> impression that one job could write to one tape exclusively.  But in this
> case, it seems multiple jobs can write to the same tape concurrently or is
> this not correct?  Lastly I have specified spool directory, however it is
> never used.  Any ideas here would be appreciated or clarity.

Make sure to set "Maximum Concurrent Jobs" in the storage definition,
too!

> Autochanger {
>   Name = Qualstar
>   Device = Drive-1
>   Device = Drive-2
>   Changer Command = "/opt/bacula/etc/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/changer-sg2
> }

Looks OK to me.

> Device {
>   Name = Drive-1                      #
>   Drive Index = 0
>   Media Type = LTO6
>   Archive Device = /dev/nst1
>   AutomaticMount = yes;               # when device opened, read it
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no;
>   AutoChanger = yes
>   Maximum Spool Size = 100G
>   Maximum Block Size = 1032192
>   Maximum Network Buffer Size = 65536
>   Spool Directory = /var/spool/bacula
...
> }

Try adding

        Changer Device = /dev/changer-sg2

to both your Device definitions.

In your bacula-dir.conf, you should have something like this:

# Definition of LTO autoloader
Storage {
  Name          = LTOLIB
  Address       = ...
  SDPort        = 9103
  Password      = ...
  Device        = Qualstar
  Media Type    = LTO6
  Autochanger   = yes
  Maximum Concurrent Jobs = 6
}


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd AT denx DOT de
Beware of the Turing Tar-pit in  which  everything  is  possible  but
nothing of interest is easy.

------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users