Bacula-users

[Bacula-users] bacula and curlftpfs does not work

2010-01-06 09:53:34
Subject: [Bacula-users] bacula and curlftpfs does not work
From: Karsten Schulze <kaschulze AT web DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 06 Jan 2010 15:50:57 +0100
System: Debian Squeeze (testing),
Kernel version 2.6.26 (modified)
Bacula V3.0.2. and MySQL v5.1.41
curlftpfs 0.9.2-1
curl 7.19.7-1

At the moment I test some configurations before I want to go to the live 
system.
I want to store the backup files on te ftp-server using curlftpfs,
but I am not able to create a label on this machine.

The configuration of bacula
/etc/bacula/bacula-dir.conf:
Pool {
  Name = Default
  Pool Type = Backup
  Recycle = Yes                       # Bacula can automatically recycle 
Volumes
  AutoPrune = Yes                     # Prune expired volumes
  Volume Retention = 9 days    
  Label Format = "Volume-"
  Maximum Volume Bytes = 1g
  Maximum Volumes = 25          
}

/etc/bacula/bacula-sd.conf:
Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /home/bacula/archive/Daten/Backup
  LabelMedia = Yes
  Random Access = Yes
  Maximum Volume Size = 1g
  AutomaticMount = Yes               # when device opened, read it
  RemovableMedia = No
}

/etc/group:
...
fuse:x:120:bacula
...

/etc/fuse.conf:
# Allow non-root users to specify the 'allow_other' or 'allow_root'mount 
options.
user_allow_other


I have mounted the ftp-filesystem permanently using the following command:
# curlftpfs -o user=karsten:mysecret,debug,allow_other,uid=117  
192.168.1.43 /home/bacula/archive
( I added the debug flag to get some hints )
In the shell it is possible to create a file:
# sudo -u bacula cat > /home/bacula/archive/Daten/Backup/VolTest2
sssss
^C
# ll -al /home/bacula/archive/Daten/Backup
...
-rw-r--r-- 1 bacula root    6  6. Jan 14:21 VolTest2
...
#

When I try to create a label in the bconsole, I got the following message:
*label
Automatically selected Storage: File
Enter new Volume name: Vol4
Automatically selected Pool: Default
Connecting to Storage daemon File at vdrserver:9103 ...
Sending label command for Volume "Vol4" Slot 0 ...
Jmsg Job=*System* type=5 level=1262785239 vdrserver-sd JobId 0: Warning: 
dev.c:534 dev.c:532 Could not open: 
/home/bacula/archive/Daten/Backup/Vol4, ERR=Operation not supported
3910 Unable to open device "FileStorage" 
(/home/bacula/archive/Daten/Backup): ERR=dev.c:532 Could not open: 
/home/bacula/archive/Daten/Backup/Vol4, ERR=Operation not supported

Label command failed for Volume Vol4.
Do not forget to mount the drive!!!
*
mount command is not helpful.

Below a short list of debug messages of curlftpfs:

with successful command in the shell:
...
getattr /Daten/Backup/VolTest1
ftpfs: operation ftpfs_getattr failed because No such file or directory
   unique: 5, error: -2 (No such file or directory), outsize: 16
unique: 6, opcode: CREATE (35), nodeid: 3, insize: 57
create flags: 0x8241 /Daten/Backup/VolTest1 0100644 umask=0000
   create[147432816] flags: 0x8241 /Daten/Backup/VolTest1


with label command of bacula:
...
getattr /Daten/Backup/Vol4
ftpfs: operation ftpfs_getattr failed because No such file or directory
   unique: 25, error: -2 (No such file or directory), outsize: 16
unique: 26, opcode: CREATE (35), nodeid: 3, insize: 53
 >>>>>>>>>> create flags: 0x8042 /Daten/Backup/Vol4 0100640 umask=0000
ftpfs: operation ftpfs_open failed because Operation not supported
   unique: 26, error: -95 (Operation not supported), outsize: 16

   
Why does bacula use this interface in a different way? What is wrong in 
my configuration?
Any hints are appreciated.

Karsten

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
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>