On Wednesday 18 January 2006 13:49, Timo Neuvonen wrote:
> > From what I see above, the userid/group under which Bacula is running
> > does not have permission to open the device /dev/nst0. You should "su
> > bacula" and manually try some operation such as rewinding the drive with
> > mt to ensure you get everything right. You should also try using mtx and
> > the mtx-changer script manually, so that you can more easily "see" the
>
> errors.
>
> [EMAIL PROTECTED] bacula]# service bacula-sd stop
> Stopping Bacula Storage services: [ OK ]
> [EMAIL PROTECTED] dev]# su bacula
> bash-3.00$ mt -f /dev/nst0 rewind
> bash-3.00$ mt -f /dev/nst0 fsf 5
> bash-3.00$ mt -f /dev/nst0 rewind
>
> This also runs the tape, not only fail silently.
> So, user bacula can manually use mt and /dev/nst0, but the SD running as
> user bacula cannot??
> After re-starting SD, backup fails again...
>
> [EMAIL PROTECTED] bacula]# ps -ef | grep bacula
> root 2110 1 0 Jan07 ? 00:23:27 /usr/sbin/bacula-fd -u
> root -g bacula -c /etc/bacula/bacula-fd.conf
> bacula 29753 1 0 12:07 ? 00:00:00 /usr/sbin/bacula-dir -u
> bacula -g bacula -c /etc/bacula/bacula-dir.conf
> bacula 31374 1 0 14:37 ? 00:00:00 /usr/sbin/bacula-sd -u
> bacula -g bacula -c /etc/bacula/bacula-sd.conf
>
>
> I guess the mtx and mtx-changer aren't a matter here, since I don't have an
> autochanger but just a single manually loadable drive. And since /dev/sg*
> does not exist at all, it shouldn't be a problem either... or was this my
> big mistake?
No, you didn't make any mistake. I just assumed you were using an autochanger
because of your "which mtx" in your previous email. If you are not using an
autochanger, then mtx, mtx-changer, and the control channel are not used at
all.
>
>
> What to try next?
>
Bizarre. Maybe someone else has some ideas. I don't know what is going wrong.
The failure seemed to clearly be in opening /dev/nst0, which I see from your
output above, you can access directly.
If no one else has any good ideas, the simplest is to run your bacula-sd as
user root, which you can do by editing the /etc/init.d/bacula-sd script.
However, you might first try setting the guid to disk (also by editing the
script), which may be sufficient (though I doubt it).
If you do find a solution other than running as root, please be sure to send
it to the list as a number of users seem to be having the same problem.
--
Best regards,
Kern
(">
/\
V_V
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users