Michel Meyers wrote:
Are you sure that the last command that it runs (unload?) returns with 0? If mtx-changer returns anything non-zero, Bacula assumes there's something wrong with the changer and immediately stops all actions while requesting operator intervention. You might try putting an exit 0; in there to test that.
Yes, "unload" and "loaded" return 0. But this is what I just found out debugging bacula-sd. After issuing "label" command for tape in slot 6, bacula-sd reports this:
autochanger.c:220 run_prog: /etc/bacula/mtx-changer /dev/sg2 loaded 6 /dev/nst0 0 stat=0 result=0
If I'm not mistaken, it should issue "load", not "loaded" command. This could be reason why I have multiple respones from mtx-changer for "loaded" function and none for "load".
-- Ante Karamatic | 0xD3BDA225 | 0x0A4A0161 [EMAIL PROTECTED] | [EMAIL PROTECTED] | ivoks.blogspot.com "Tomorrow is my day off, so please stay off the powder!" ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users