Hi,

> -----Original Message-----
> From: John Drescher [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 01, 2008 4:00 PM
> To: Schack; Bacula Users
> Subject: Re: [Bacula-users] Problem: Tape Library with 4 drives
> 
> > I have this problem with all drives where there drive index is greater
> then 0.
> >
> >
> > bacula-sd.conf
> > ---
> > Autochanger {
> >   Name = sgzhBaculaSD2-LTO
> >   Device = Drive-1
> >   Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
> >   Changer Device = /dev/sg0
> > }
> >
> >
> > Device {
> >   Name = Drive-1                     #
> >   Drive Index = 1
> >   Media Type = LTO
> >   Archive Device = /dev/nst1
> >   AutomaticMount = yes;               # when device opened, read it
> >   AlwaysOpen = yes;
> >   RemovableMedia = yes;
> >   RandomAccess = no;
> >   AutoChanger = yes;
> >   Autoselect = yes
> >   Spool Directory = "/var/lib/bacula/tmp"
> > }
> > ---
> >
> > Perhaps someone has an idea? In version 1.38.11 it still ran. I think it
> is a problem with the Drive Index id.
> >
> I am confused. Why are you defining only 1 drive? There should be 4
> device entries and the autochanger resource should reference all of
> them.
> 
> Autochanger {
>    Name = sgzhBaculaSD2-LTO
>    Device = Drive-0,Drive-1,Drive-2,Drive-3
>    Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>    Changer Device = /dev/sg0
>  }
> 
>  Device {
>    Name = Drive-0                     #
>    Drive Index = 0
>    Media Type = LTO
>    Archive Device = /dev/nst0
>    AutomaticMount = yes;               # when device opened, read it
>    AlwaysOpen = yes;
>    RemovableMedia = yes;
>    RandomAccess = no;
>    AutoChanger = yes;
>    Autoselect = yes
>    Spool Directory = "/var/lib/bacula/tmp"
>  }
> 
> Device {
>    Name = Drive-1                     #
>    Drive Index = 1
>    Media Type = LTO
>    Archive Device = /dev/nst1
>    AutomaticMount = yes;               # when device opened, read it
>    AlwaysOpen = yes;
>    RemovableMedia = yes;
>    RandomAccess = no;
>    AutoChanger = yes;
>    Autoselect = yes
>    Spool Directory = "/var/lib/bacula/tmp"
>  }
> 
> Device {
>    Name = Drive-2                     #
>    Drive Index = 2
>    Media Type = LTO
>    Archive Device = /dev/nst2
>    AutomaticMount = yes;               # when device opened, read it
>    AlwaysOpen = yes;
>    RemovableMedia = yes;
>    RandomAccess = no;
>    AutoChanger = yes;
>    Autoselect = yes
>    Spool Directory = "/var/lib/bacula/tmp"
>  }
> 
> Device {
>    Name = Drive-3                     #
>    Drive Index = 3
>    Media Type = LTO
>    Archive Device = /dev/nst3
>    AutomaticMount = yes;               # when device opened, read it
>    AlwaysOpen = yes;
>    RemovableMedia = yes;
>    RandomAccess = no;
>    AutoChanger = yes;
>    Autoselect = yes
>    Spool Directory = "/var/lib/bacula/tmp"
>  }
> 
> John

My original configuration have 4 drives (like your example).  But the sd-server 
can't use drives where there drive index is something other than 0 (=zero). 

When i use Drive-2 the sd-server log out the following error (debug 400):

---
want=0 got=2
---

Why the sd server want zero and not 2? I don't now! 

Thx

Heiko
-------------------------------------------------------------------------
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