I'm running Bacula 1.38.11 on OpenBSD 3.9.  Everything works fine except for the tape library helper scripts.  I first tried copying the chio scripts from FreeBSD, but they didn't work (with a little editing they did work, mostly).  I wrote my own script to log the values passed to the script so I could manually verify my script was doing what it should.

Here's the line in my storage daemon configuration file.

Changer Command = "/etc/bacula/autoloader.pl %c %o %S %a %d

First, I want to get an idea of what state my tape library unit is in.

chio status
slot 0: <ACCESS,FULL>
slot 1: <ACCESS,FULL>
slot 2: <ACCESS,FULL>
slot 3: <ACCESS,FULL>
slot 4: <ACCESS,FULL>
slot 5: <ACCESS,FULL>
drive 0: <ACCESS>

Now from bconsole:

*update slots
Using default Catalog name=MyCatalog DB=bacula
The defined Storage resources are:
     1: File
     2: DDS-4-HPC5713A
Select Storage resource (1-2): 2
Connecting to Storage daemon DDS-4-HPC5713A at server:9103 ...
Connecting to Storage daemon DDS-4-HPC5713A at server:9103 ...
3306 Issuing autochanger "slots" command.
Device "DDS-4-HPC5713A" has 0 slots.
No slots in changer to scan.

Here's the log from my script.

[EXTERNAL] date: Sun Aug 27 10:20:29 EDT 2006; /dev/ch0 loaded 0 /dev/nrst0 0
[EXTERNAL] date: Sun Aug 27 10:20:29 EDT 2006; /dev/ch0 loaded 0 /dev/nrst0 0
[EXTERNAL] date: Sun Aug 27 10:22:24 EDT 2006; /dev/ch0 slots 0 /dev/nrst0 0
[INTERNAL] date: Sun Aug 27 10:22:24 EDT 2006;

When I run my script manually as the bacula account:

/etc/bacula/autoloader.pl /dev/ch0 loaded 0 /dev/nrst0 0

I get the output

0

Next I ran

/etc/bacula/autoloader.pl /dev/ch0 slots 0 /dev/nrst0

and had this as the output

6

Everything works manually, but doesn't work correctly in bacula.  Oh, and everything I've run manually has a good exit status.

echo $?
0

Any ideas?





Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1ยข/min.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to