I got Permission denied error when bacula tried to write into the volume. VolStatus of this volume (name is varund0070) is Recycle and it's size is 1 byte. I have one pool with 100 volumes (varund0001 .. varund0100) each 4GB and they are on HD with free space 48GB. I'm probably missing some important information which helps to solve this, ask then. And log is here:

The first thing is to determine exactly what permissions are wrong:

1) Look at the mode and ownership of the volume using
   ls -l /mnt/varund/varund0070
Login as a root gives

   varund:~# ls -l /mnt/varund/varund0070
   ls: /mnt/varund/varund0070: Permission denied


   varund:~# ls -l /mnt/varund
   ls: /mnt/varund/varund0070: Permission denied
   total 433409986
   -rw-r-----  1 bacula tape 4649952949 Feb 25 02:13 varund0001
   -rw-r-----  1 bacula tape 4649960250 Jan 30 09:07 varund0002
   -rw-r-----  1 bacula tape 4649960464 Jan 30 09:25 varund0003
   -rw-r-----  1 bacula tape 4649962658 Jan 31 02:17 varund0004
   ....
   -rw-r-----  1 bacula tape 4649956748 Jan 27 02:49 varund0068
   -rwxrwxrwx  1 bacula tape 1341030322 Feb 25 02:31 varund0069
   -rwxrwxrwx  1 bacula tape 4649960511 Feb 20 11:18 varund0071
   -rwxrwxrwx  1 bacula tape 4649958092 Feb 20 12:04 varund0072
   ....


2) Find the user/group bacula-sd (varund-sd) runs as, e.g. from the command
   line args used to start it.

   varund:~# ps aux | more
   bacula   24880  0.0  1.4  27928  1868 ?        Ssl  Mar08   0:00
   /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g tape


3) Is /mnt/varund mounted for writing?

   varund:~# mount -l
   ...
   /dev/mapper/vg-lv on /mnt/varund type reiserfs (rw)
   ...


4) Did anything change since you first wrote these volumes?

   I'm not sure. I have to deal with system which is set up by someone
   else and I have written anything yet. Bacula suppose to do backup
   jobs every night, but haven't done anything since I came to the
   house (that was two weeks ago). But in first days I didn't touch
   anything.


   Andrus



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to