Op 26-04-11 16:51, Josh Fisher schreef:
> On 4/26/2011 5:10 AM, Koenraad Lelong wrote:
...
Hi,
I started from scratch again.
>
> The partition itself must also have the correct owner and permissions.
> It should look like:
>
> # ls -la 49299ccc-6489-43f8-9536-d63dd3de9663
>
> drwxrwx--- 3 bacula bacula 4096 26 apr 08:10 .
> drwxr-xr-x 3 root root 0 26 apr 08:10 ..
> -rw-r----- 1 bacula bacula 0 26 apr 09:34 c2_0001_0001
> -rw-r----- 1 bacula bacula 0 26 apr 09:34 c2_0001_0002
> -rw-r----- 1 bacula bacula 0 26 apr 09:34 c2_0001_0003
> -rw-r--r-- 1 bacula bacula 7 26 apr 09:34 index
> -rw-r--r-- 1 bacula bacula 1 26 apr 09:34 loaded0
>
# 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
> Likewise, the work directory, (determined by the work_dir= in the
> vchanger config), should have permissions such that bacula:bacula has
> read/write permissions for the directory and all files within it.
>
Working dir :
# ls -la /var/lib/bacula/
totaal 8
drwxr-xr-x 2 bacula bacula 4096 3 mei 10:54 .
drwxr-xr-x 52 root root 4096 12 apr 15:34 ..
> Finally, make sure that the vchanger config file is readable by
> bacula:bacula.
# ls -la /etc/bacula/
totaal 88
drwxr-xr-x 3 root root 4096 26 apr 09:09 .
drwxr-xr-x 126 root root 12288 3 mei 10:03 ..
-rw-r----- 1 root root 5408 22 apr 11:20 bacula-dir.conf
-rw-r----- 1 root root 943 12 apr 11:19 bacula-fd.conf
-rw-r----- 1 root root 1176 22 apr 11:32 bacula-sd.conf
-rw-r----- 1 root root 166 12 apr 11:30 bat.conf
-rw-r----- 1 root bacula 164 21 apr 16:09 bconsole.conf
-rw-r--r-- 1 root root 323 26 apr 09:09 c2.conf
-rw-r--r-- 1 root root 1506 4 mrt 09:26 mtx-changer.conf
-rw-r--r-- 1 root root 256 4 mrt 09:26 query.sql
-rw-r----- 1 root root 554 22 apr 11:56 tray-monitor.conf
>
> Then the best way to test is to run as user bacula....
> # su bacula
> $ vchanger /path/to/vchanger.conf list
> 1:c2_0001_0001
> 2:c2_0001_0002
> 3:c2_0001_0003
>
> You may have to temporarily change /etc/passwd to allow user bacula to
> run in a interactive shell.
>
I gave the bacula-user a shell, then :
# su - bacula
> vchanger /etc/bacula/c2.conf initmag 1
magazine bay 1 has no magazine mounted
After that :
> ls -la /var/lib/bacula/
totaal 12
drwxr-xr-x 3 bacula bacula 4096 3 mei 11:29 .
drwxr-xr-x 52 root root 4096 12 apr 15:34 ..
drwxr-x--- 2 bacula bacula 4096 3 mei 11:29 c2
> 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.
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
|