Reposted with amendments.

On 6 Mar 2006 at 15:29, Thomas Sturm wrote:

> Hello,
> I am using bacula 1.38.5 on Gentoo Linux.
> My Problem ist, that the Autochanger don't "want" to load the needed tape.
> Here is the output of bconsole:
>
> 06-Mär 14:51 bacula-dir: Start Backup JobId 3329, 
> Job=TS160.2006-03-06_14.51.55
> 06-Mär 14:51 bacula-sd: 3301 Issuing autochanger "loaded drive 0" command.
> 06-Mär 14:51 bacula-sd: 3302 Autochanger "loaded drive 0", result: nothing 
> loaded.
> 06-Mär 14:51 bacula-sd: 3301 Issuing autochanger "loaded drive 0" command.
> 06-Mär 14:51 bacula-sd: 3302 Autochanger "loaded drive 0", result: nothing 
> loaded.
> 06-Mär 14:51 bacula-sd: Please mount Volume "Mo_1-s8" on Storage Device 
> "Autoloade
> r" (/dev/st0) for Job TS160.2006-03-06_14.51.55
>
> Why is 'Issuing autochanger "load drive 8 command"' missing?
>
> Running Jobs:
>  JobId Level   Name                       Status
> ======================================================================
>   3329 Full    TS160.2006-03-06_14.51.55 is waiting for a mount request
>
>
> When I now load the tape manually (with mtx-autochanger), the job finisched 
> without error.
>
> Here are the parts of bacula-dir.conf and bacula-sd.conf:
> bacula-dir.conf:
> ... snip ...
> Storage {
>   Name = Autoloader
>   Autochanger = yes

I don't think the above directive is required here.

>   Address = backup.intra.melle.de
>   SDPort = 9103
>   Password = "secret"
>   Device = Autoloader
>   Media Type = DLT8000
>   Maximum Concurrent Jobs = 20
> }

Here is what I have in bacula-dir.conf

Storage {
  Name       = TapeRobot1
  Address    = ngaio.example.org
  SDPort     = 9103
  Password   = "things"
  Device     = DLT
  Media Type = DLT
}

> ... snip ...
>
> bacula-sd.conf:
> ... snip ...
> Device {
>   Name = Autoloader
>   Media Type = DLT8000
>   Archive Device = /dev/st0
>   Changer Device = /dev/sg1
>   Changer Command = "/var/lib/bacula/mtx-changer %c %o %S %a %d"
>   AutoChanger = yes
>   AutomaticMount = yes;
>   Autoselect = yes
>   RemovableMedia = yes;
>   AlwaysOpen = yes;
>   RandomAccess = no;
>   Maximum Spool Size = 30000M
>   Maximum Job Spool Size = 6000M
>   Spool Directory = /var/spool/bacula
>   Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> }

You appear to have many directives which are not
You also need an autochanger resource.  See below.

I think what you need is something like this:
This works for me (in bacula-sd.conf):

Device {
  Name                    = DLT
  Description             = QUANTUM DLT7000 1624
  Media Type              = DLT
  Archive Device          = /dev/nsa1

  Autochanger             = YES
  Drive Index             = 0

  Offline On Unmount      = no
  Hardware End of Medium  = no
  BSF at EOM              = yes
  Backward Space Record   = yes
  Fast Forward Space File = yes
  TWO EOF                 = yes
}


Autochanger {
        Name            = TapeRobot
        Device          = DLT
        Changer Device  = /dev/ch0
        Changer Command = "/home/dan/rc-chio-changer %c %o %S %a %d"
}

i.e. you don't have an autochanger resource.  Instead, you have a
device named "Autochanger".

>
> What is wrong with this configuration?

Also, make sure your autochange passes the tests:

http://www.bacula.org/dev-manual/Autochanger_Support.html

--
Dan Langille : Software Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to