On Monday 08 January 2007 22:41, Joshua Colson wrote:
> Hello Everyone,
> 
> I'm new to Bacula and I'm having some trouble configuring an Autochanger
> using the disk-changer script. I'm using Bacula version 1.38.11
> installed from RPM on SuSE 10.1 (x86_64). I've gone through the "Brief
> Tutorial" on the bacula.org site and everything went fine. Now I'm
> trying to configure a virtual tape library using the disk-changer script
> and I cannot get it to work. Here is the relevant bits of my config:
> 
> bacula-sd.conf:
> 
> [snip]
> Autochanger {
>   Name = p912-sd:_var_backups_vtl
>   Device = p912-sd:_var_backups_drive0
>   Device = p912-sd:_var_backups_drive1
>   Changer Command = "/etc/bacula/disk-changer %c %o %S %a %d"
>   Changer Device = /var/backups/vtl
> }
> 
> Device {
>   Name = p912-sd:_var_backups_drive0
>   Media Type = File
>   Archive Device = /var/backups/drive0
>   LabelMedia = yes;
>   Random Access = Yes;
>   AutomaticMount = yes;
>   RemovableMedia = no;
>   AlwaysOpen = no;
>   Autochanger = yes;
>   Drive Index = 0;
> }
> 
> Device {
>   Name = p912-sd:_var_backups_drive1
>   Media Type = File
>   Archive Device = /var/backups/drive1
>   LabelMedia = yes;
>   Random Access = Yes;
>   AutomaticMount = yes;
>   RemovableMedia = no;
>   AlwaysOpen = no;
>   Autochanger = yes;
>   Drive Index = 1;
> }
> ...
> 
> 
> bacula-dir.conf:
> 
> [snip]
> Storage {
>   Name = p912:_var_backups_drive0
>   Address = p912
>   SDPort = 9103
>   Password = "good_password"
>   Device = p912-sd:_var_backups_drive0
>   Media Type = File
> }
> 
> Storage {
>   Name = p912:_var_backups_vtl
>   Address = p912
>   SDPort = 9103
>   Password = "good_password"
>   Device = p912-sd:_var_backups_vtl
>   Media Type = File
> }
> ...
> 
> 
> Communication is working fine between the Director and Storage daemon.
> I've found that if I remove the 'Autochanger' directive from the Storage
> resources in the bacula-sd.conf file I can get the drives to work as
> they should individually but not as part of the autochanger. Then if I
> add the 'Autochanger' directive to the drives, the storage daemon starts
> listing the following in response to the 'status storage' command:
> 
> ...
> Device "p912-sd:_var_backups_drive0" (/var/backups/drive0) is not open
> or does not exist.
>     Drive 0 is not loaded.
> Device "p912-sd:_var_backups_drive1" (/var/backups/drive1) is not open
> or does not exist.
>     Drive 1 is not loaded.
> ...
> 
> Then if I attempt to label a tape in the drive it gives an error
> complaining that '/var/backups/drive0' "Is a directory".
> 
> Does anyone have an idea as to what I'm doing wrong? I would greatly
> appreciate any help! If I left anything relevant out, please let me
> know.

The disk-changer script simulates the mtx-changer script rather faithfully, 
though it does not detect certain error conditions.  Thus removing the 
Autochanger resource will not get you anywhere.

The script is documented in the beginning of the file.  Other than that, since 
I wrote it for quickly debugging the Autochanger code, it is not supported.  
Sorry, but you are pretty much on your own.


> 
> Thanks.
> 
> --
> Joshua Colson
> 
> 
> -------------------------------------------------------------------------
> 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
> 

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