My machine is finally available (was doing stress testing) and tried modifing group parameters of bacula daemon start up scripts. I used operator group for both dir and sd daemon and confirmed it in ps. However, I still see same problem. After system boot up, tried to label a tape and got same error -- exited with code 127. I stopped the process and started the daemons manually, and this time, label command failed here too -- exited with code 1. Checking the device permission, I found that /dev/ch0 only had root user access (600). I added following to /etc/devfs.conf file --
own ch0 root:operator
perm ch0 0660
Restarted the machine, confirmed /dev/ch0 has 660 with root:operator, confirmed bacula daemon parameters in ps. Then tried to label a tape in console and still same problem -- exited with code 127. Stopped the daemons, started them manually, and still same problem (exited with code 1).
As a test, I tried following -- removed all setting in /etc/devfs.conf file and used "-u root -g wheel" parameters for sd and dir daemon. I restarted the machine and tried label again. And it threw same error -- exited with code 127.
output from ps --
root 723 0.0 0.7 6084 3396 ?? Ss 11:11AM 0:00.05 /usr/local/sbin/bacula-dir -u root -g wheel -v -c /usr/local/etc/bacula-dir.conf
root 730 0.0 0.4 3864 2192 ?? Ss 11:11AM 0: 00.02 /usr/local/sbin/bacula-fd -u root -g wheel -v -c /usr/local/etc/bacula-fd.conf
root 738 0.0 0.5 4804 2580 ?? Ss 11:11AM 0:00.06 /usr/local/sbin/bacula-sd -u root -g wheel -v -c /usr/local/etc/bacula- sd.conf
label failing --
Automatically selected Pool: Default
Connecting to Storage daemon DellPowervault_122T at 192.168.3.114:9103 ...
Sending label command for Volume "TestVol009" Slot 8 ...
3301 Issuing autochanger "loaded drive 0" command.
3991 Bad autochanger "loaded drive 0" command: ERR=Child exited with code 127.
3301 Issuing autochanger "loaded drive 0" command.
3991 Bad autochanger "loaded drive 0" command: ERR=Child exited with code 127.
3304 Issuing autochanger "load slot 8, drive 0" command.
3992 Bad autochanger "load slot 8, drive 0": ERR=Child exited with code 127.
Label command failed for Volume TestVol009.
Do not forget to mount the drive!!!
I stopped the daemon and started them manually and label worked without any error. It just doesn't make sense... Any idea on this?
Thanks for the help!
Joe
On 4/6/06, Dan Langille <[EMAIL PROTECTED]> wrote:
On 6 Apr 2006 at 18:22, Joe Park wrote:
> Ah I sse that. Thank you, I'll try that.
If that works, or for that matter, does not, try similar for the
director
>
> Joe
>
> On 4/6/06, Dan Langille < [EMAIL PROTECTED]> wrote:
> >
> > On 6 Apr 2006 at 18:10, Joe Park wrote:
> >
> > > Hmm.. I don't have z-bacula.sh script -- only z-bacula-dir.sh ,
> > > z-bacula-fd.sh, z-bacula-sd.sh scripts under /usr/local/etc/rc.d. I
> > > installed bacula 1.38.6 using latest ports snapshot. Maybe I should
> > just
> > > download the source from bacula page and go from there?
> >
> > stick with the port.
> >
> > In /etc/rc.conf, add this:
> >
> > bacula_sd_flags=" -u bacula -g operator -v -c /usr/local/etc/bacula-
> > sd.conf "
> >
> > and issue this command:
> >
> > /usr/local/etc/rc.d/z-bacula-sd.sh restart
> >
> > confirm you see -g operator here:
> >
> > ps auwx | grep bacula-sd
> >
> > Then try the autochanger.
> >
> >
> >
> >
> >
> >
> > --
> > Dan Langille : Software Developer looking for work
> > my resume: http://www.freebsddiary.org/dan_langille.php
> >
> >
> >
>
--
Dan Langille : Software Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php