I got around the problem by starting the bacula-sd process as root.
Arno Lehmann wrote:
Hi,
I don't recall if this was discussed on the mailing list any further -
which I'd suggest - but if this is not a simple permissions problem it
might be time to take a really close look at what mtx-changer does, and
why it doesn't recognize the number of slots.
Simply check what it does with mtx, and see what mtx outputs in such a
situation.
Arno
On 11/20/2006 11:03 PM, Emery Guevremont wrote:
Arno Lehmann wrote:
Hi,
On 11/20/2006 8:13 PM, Emery Guevremont wrote:
I have a problem and I need your help.
Last week I upgraded our quantum superloader to a superloader 3. For
the first few days everything worked well. But since this weekend,
bacula can't seem to properly control the autoloader. Here's the
error I get when I try to update the AutoLoader's slots:
Connecting to Storage daemon AutoLoader at bacula:9103 ...
3306 Issuing autochanger "slots" command.
Device "AutoLoader" has 0 slots.
Ah. Permssions probably.
I suppose that your autoloader has a new device node now which can't
be accessed by the SD. Assuming the SD is not running as root, ...
No slots in changer to scan.
Yet I can do this command: ./mtx-changer /dev/sg3 slots AutoLoader 0
and get 16 as the number of slots. This is what I get after doing
this command: ./mtx-changer /dev/sg3 list AutoLoader 0
2:0001
3:0002
4:0003
5:0004
6:0005
7:0006
8:0007
9:0008
10:0009
11:0010
12:0011
13:0012
14:0013
15:0014
16:0015
1:0000
... but you are logged in as root.
What happens when you log in as the Bacula user and issue
'mtx-changer /dev/sg3 slots'?
I did it as the user bacula and root, and got the same result for both.
ls -la gives
crw-rw---- 1 root disk 21, 1 Nov 20 07:02 /dev/sg1
and
id bacula gives
uid=100(bacula) gid=6(disk) groups=6(disk),102(bacula)
Something else is causing my permissions problem.
Arno
So at first, it looks like the mtx-changer properly gets the output
but not bacula through the bconsole shell.
I also get these errors in my log when the unit is trying to perform
backups:
19-Nov 21:11 bacula-sd: 3301 Issuing autochanger "loaded drive 0"
command.
19-Nov 21:11 bacula-sd: 3991 Bad autochanger "loaded drive 0"
command: ERR=Permission denied.
19-Nov 21:11 bacula-sd: 3301 Issuing autochanger "loaded drive 0"
command.
19-Nov 21:11 bacula-sd: 3991 Bad autochanger "loaded drive 0"
command: ERR=Permission denied.
19-Nov 21:11 bacula-sd: 3304 Issuing autochanger "load slot 1, drive
0" command.
19-Nov 21:11 bacula-sd: Server1-sys.2006-11-19_20.05.24 Fatal error:
3992 Bad autochanger "load slot 1, drive 0": ERR=Permission denied.
What's going on? How can I fix this?
------------------------------------------------------------------------
-------------------------------------------------------------------------
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
begin:vcard
fn;quoted-printable:Emery Gu=C3=A9vremont
n;quoted-printable:Gu=C3=A9vremont;Emery
org:Croesus Finansoft
adr:;;2 Place laval, Suite 510;Laval;PQ;H7N 5N6;Canada
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Administrateur des syst=C3=A8mes
tel;work:450-662-6101
tel;cell:514-513-3416
x-mozilla-html:FALSE
version:2.1
end:vcard
-------------------------------------------------------------------------
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