Hi,

On 9/16/2006 12:19 PM, Ralf Cremer wrote:
> Hello,
> I'm new to bacula and have a problem with my autochanger. I use an AMD64 
> 3000+ 
> with Debian Etch AMD64 and 4GB Ram. Bacula with mysql is from this distri 
> installed. "update slots" give me this error:
> 
> update slots
> Automatically selected Storage: DLT-8k
> Connecting to Storage daemon DLT-8k at berlin:9103 ...
> 3306 Issuing autochanger "slots" command.
> Device "DLT-8k" has 0 slots.
> No slots in changer to scan.
> 
> Here are my config files:
> bacula-dir.conf:
> 
> 
> # Definition of DLT-8k tape storage device
> Storage {
>   Name = DLT-8k
> #  Do not use "localhost" here
>   Address = berlin                # N.B. Use a fully qualified name here
>   SDPort = 9103
>   Password = "xxxxxx"          # password for Storage daemon
>   Device = DLT-8k                      # must be same as Device in Storage 
> daemon
>   Media Type = DLT-8000                  # must be same as MediaType in 
> Storage daemon
>   Autochanger = yes                   # enable for autochanger device
> }
> 
> 
> bacula-sd.conf
> 
> #
> # An autochanger device 
> #
> Autochanger {
>   Name = Autochanger
>   Device = DLT-8k
>   Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg3
> }
> 
> Device {
>   Name = DLT-8k                      #
>   Drive Index = 0
>   Media Type = DLT-8000
>   Archive Device = /dev/nst0
>   AutomaticMount = yes;               # when device opened, read it
>   AlwaysOpen = yes;
>    LabelMedia = yes
>   AutoChanger = yes
> #  # Enable the Alert command only if you have the mtx package loaded
> #  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> }
> 
> I don't know how to setup slots or did I somthing wrong in the configuration?
> 

The configuration looks ok to me. How are your permissions, i.e. can the 
user bacula access /dev/sg3?

Then, as the user Bacula runs as, can you use the mtx-changer script? 
You can simply run it from the shell, the parameters are explained in 
the script (or implicitly in your Changer Command definition).

Arno

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to