Bacula-users

Re: [Bacula-users] Bacula & vchanger

2011-05-03 10:08:41
Subject: Re: [Bacula-users] Bacula & vchanger
From: Josh Fisher <jfisher AT pvct DOT com>
To: Koenraad Lelong <bacula AT ace-electronics DOT be>
Date: Tue, 03 May 2011 10:05:31 -0400
On 5/3/2011 5:55 AM, Koenraad Lelong wrote:
> ...
> # chmod 770 /mnt/vchanger/49299ccc-6489-43f8-9536-d63dd3de9663/
> # ls -la /mnt/vchanger/49299ccc-6489-43f8-9536-d63dd3de9663/
> totaal 196768
> drwxrwx--- 6 bacula bacula     4096  3 mei 10:36 .
> drwxr-xr-x 3 root   root          0  3 mei 10:51 ..
> drwx------ 2 bacula bacula    16384 21 apr 11:39 lost+found
> ...
>> ls -la /var/lib/bacula/c2/
> totaal 12
> drwxr-x--- 2 bacula bacula 4096  3 mei 11:29 .
> drwxr-xr-x 3 bacula bacula 4096  3 mei 11:29 ..
> -rw-r--r-- 1 bacula bacula    1  3 mei 11:29 bay1
> -rw-r--r-- 1 bacula bacula    0  3 mei 11:29 state0
>
> So I'm still stuck.
> Just for fun I tried again :
> # vchanger -u bacula -g bacula /etc/bacula/c2.conf initmag 1
> magazine bay 1 has no magazine mounted
> # vchanger -u bacula -g disk /etc/bacula/c2.conf initmag 1
> created magazine 1 in bay 1
> [/mnt/vchanger/49299ccc-6489-43f8-9536-d63dd3de9663]
>
> So the disk-group can initialize the magazine, the bacula-group has
> problems.
> I looked at the udev-rules, but there is nothing there that rings a bell.

So, bacula:bacula cannot write, but bacula:disk can, yet all accessed 
directories appear to be owned by bacula:bacula? What group does the 
bacula-sd daemon run as? On Fedora, it is typical for bacula-dir to run 
as bacula:bacula, while bacula-sd runs as bacula:disk. Perhaps this is 
an selinux thing? Maybe the simple solution is to change everything to 
be owned by bacula:disk and run bacula-sd as bacula:disk.

> Thanks again for your patience.
>
> Regards,
>
> Koenraad Lelong.
>

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>