I appear to have resolved my problems.

This may not be the best solution, but it does seem to work.

Solution:

On VM Host, "server1" (CentOS 4.4):
- add to "/etc/rc.d/rc.local":
    -  "modprobe sg" so sg0 is found at boot; resolves problems with sg driver 
not loading at boot for some reason  
    - "MAKEDEV -v sga" for VMware guest to connect to sg0, this creates sga as 
a link to sg0
- in "/etc/udev/permissions.d/50-udev.permissions"
    - the VMware guest "bacula1" could not access the tape drive with the 
default permissions on sg0, so under "# scsi devices", set permissions for sg* 
as 0666 instead of 0660:  "sg*:root:disk:0666"

On VM guest "bacula1" (CentOS 4.4):
- add to "/etc/rc.d/rc.local":
    - "modprobe sg" so "/dev/sg0" and "/dev/sg1" are created at boot (sg0 is 
the virtual hard drive); resolves problems with sg driver not loading at boot 
for some reason

Bacula (from rpm for RHEL 4, bacula-postgresql-1.38.11-3):
- changes to bacula services (daemons):
 - "/etc/rc.d/init.d/bacula-sd":  default is "bacula:disk", changed to 
"root:disk", otherwise Bacula autochanger features would not work


>>  Hi,

>>  I've been using Bacula successfully at several small businesses for single
>>   server backups for about 2 years and love it.

>>  I have not used Bacula with an autochanger before (except to use the
>>   changer as a single tape drive), and am having trouble setting up a 4
>>   slot DDS3 changer.

>>  The btape tests work fine, including the autochanger tests.

>>  When I try to use the label command from bconsole, I get the following
>>   errors:

>>  Connecting to Director backup1:9101
>>  1000 OK: backup1-dir Version: 1.38.11 (28 June 2006)
>>  Enter a period to cancel a command.
>>  *label
>>  Using default Catalog name=MyCatalog DB=bacula
>>  The defined Storage resources are:
>>      1: File
>>      2: DDS3CHANGER
>>  Select Storage resource (1-2): 2
>>  Connecting to Storage daemon DDS3CHANGER at backup1:9103 ...
>>  Enter new Volume name: servers.002
>>  Enter slot (0 or Enter for none): 2
>>  Automatically selected Pool: Default
>>  Connecting to Storage daemon DDS3CHANGER at backup1:9103 ...
>>  Sending label command for Volume "servers.002" Slot 2 ...
>>  3301 Issuing autochanger "loaded drive 0" command.
>>  3991 Bad autochanger "loaded drive 0" command: ERR=Child exited with code
>>   1.
>>  3301 Issuing autochanger "loaded drive 0" command.
>>  3991 Bad autochanger "loaded drive 0" command: ERR=Child exited with code
>>   1.
>>  3304 Issuing autochanger "load slot 2, drive 0" command.
>>  3992 Bad autochanger "load slot 2, drive 0": ERR=Child exited with code 1.
>>  Label command failed for Volume servers.002.
>>  Do not forget to mount the drive!!!

>>  Initially, none of the 2 parameter autochanger commands from the
>>   documentation's "Testing the Autochanger and Adapting Your mtx-changer
>>   Script" would work.  The commands with 5 paramters worked fine.  I
>>   commented out the "check parameter count on commandline" and "# Check for
>>   special cases where only 2 arguments are needed, ..." sections of
>>   mtx-changer to see what would happen, and then all the commands from the
>>   "Testing the Autochanger..." section worked.  However, I still get the
>>   above errors whether those sections of mtx-changer are commented out or
>>   not.

>>  Then, I found the documentation section, "Autochanger Errors", that showed
>>   the "3992 Bad autochanger "load slot 1, drive 1": ERR=Child exited with
>>   code 1." is due to permissions.  So, I set the bacula user to be able to
>>   login, (changed shell from "/sbin/nologin" to "/bin/bash"), logged in as
>>   bacula and ran the commands from "Testing the Autochanger and Adapting
>>   Your mtx-changer Script", and they ran fine, so I don't think it's
>>   permissions.

>>  My _guess_ at this point is that it's either:
>>   1) something to do with the the number of command paramters
>>   2) something to do with how Bacula sends the commands that's different
>>   from the test commands.

>>  Any insight or suggestions would be greatly appreciated.

>>  Thanks in advance,

>>  Jack D. Browning





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