Bacula-users

[Bacula-users] USB disk automount problem

2008-06-12 10:58:20
Subject: [Bacula-users] USB disk automount problem
From: Jorge Cabello <jorge AT aspl DOT es>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Thu, 12 Jun 2008 16:58:10 +0200
Hello,

I have been trying to configure Bacula to use a USB disk without
success. The backup process works fine as the file is saved in the
directory where the USB disk should be mounted but this (the usb disk
mount) never happens.

It looks like the mount command is never executed.

      * Mount and unmount commands work fine at the console.
      * bacula-sd is currently running as root so it isn't a permissions
        problem.

Thanks for the help.


Here is my bacula-sd Device configuration:

Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /mnt/bacula
  Mount Point    = /mnt/bacula
  Mount Command = "/bin/mount /dev/sdb1 /mnt/bacula"
  Unmount Command = "/bin/umount /mnt/bacula"
  LabelMedia = yes
  Random Access = Yes
  Automatic Mount = yes
  Removable Media = no
  AlwaysOpen = no
  Requires Mount = yes
}


With debug (bacula-sd running with -d100 option) I get the following
outputs:

*mount
....
x-server-sd: dircmd.c:187 Message channel init completed.
x-server-sd: dircmd.c:513 Found device FileStorage
x-server-sd: dircmd.c:551 Found changer device FileStorage
x-server-sd: dircmd.c:576 mount cmd blocked=0 3906 File device "FileStorage" 
(/mnt/bacula) is always mounted.
x-server-sd: pythonlib.c:224 No startup module.


*umount
...
x-server-sd: dircmd.c:187 Message channel init completed.
x-server-sd: dircmd.c:513 Found device FileStorage
x-server-sd: dircmd.c:551 Found changer device FileStorage
x-server-sd: dircmd.c:710 Device already unmounted
3901 Device "FileStorage" (/mnt/bacula) is already unmounted.
x-server-sd: pythonlib.c:224 No startup module.


* Running a job:
x-server-sd: dircmd.c:187 Message channel init completed.
x-server-sd: job.c:72 <dird: JobId=9 
job=x_server_in_localhost.2008-06-12_16.24.44 job_name=xserverinlocalhost 
client_name=x-server-fd type=66 level=70 FileSet=xServerFileset NoAttr=0 
SpoolAttr=0 FileSetMD5=P6/9Q6+xM//+K8R818//kA SpoolData=0 WritePartAfterJob=0 
PreferMountedVols=1
x-server-sd: job.c:125 >dird: 3000 OK Job SDid=1 SDtime=1213280652 
Authorization=NJID-FCPP-LMMO-CJON-FMCJ-CKOI-EONJ-CKOA
x-server-sd: pythonlib.c:224 No startup module.
x-server-sd: reserve.c:353 <dird: use storage=xFile media_type=File 
pool_name=xServerFull pool_type=Backup append=1 copy=0 stripe=0
x-server-sd: reserve.c:376 <dird device: use device=FileStorage
x-server-sd: askdir.c:245 >dird: CatReq 
Job=x_server_in_localhost.2008-06-12_16.24.44 FindMedia=1 pool_name=xServerFull 
media_type=File
x-server-sd: reserve.c:146 New Vol=x_Full_12-06-2008 dev="FileStorage" 
(/mnt/bacula)
x-server-sd: reserve.c:700 JobId=9 looking for Volume=x_Full_12-06-2008
x-server-sd: reserve.c:245 free_unused_olume x_Full_12-06-2008
x-server-sd: reserve.c:960 OK Dev avail reserved "FileStorage" (/mnt/bacula) 
JobId=9
x-server-sd: reserve.c:834 Inc reserve=1 dev="FileStorage" (/mnt/bacula) 
0x5910f8
x-server-sd: reserve.c:712 Reserved=1 dev_name=FileStorage mediatype=File 
pool=xServerFull ok=1
x-server-sd: reserve.c:633 >dird dev: 3000 OK use device device=FileStorage
x-server-sd: reserve.c:557 Suitable device found=FileStorage
x-server-sd: job.c:157 x_server_in_localhost.2008-06-12_16.24.44 waiting on FD 
to contact SD
...
x-server-sd: job.c:175 Running job x_server_in_localhost.2008-06-12_16.24.44
x-server-sd: append.c:58 Start append data. res=1
x-server-sd: askdir.c:245 >dird: CatReq 
Job=Quiron_server_in_localhost.2008-06-12_16.24.44 FindMedia=1 
pool_name=xServerFull media_type=File
x-server-sd: reserve.c:301 Vol=x_Full_12-06-2008 not in use.
x-server-sd: reserve.c:146 New Vol=x_Full_12-06-2008 dev="FileStorage" 
(/mnt/bacula)
x-server-sd: dev.c:276 open dev: tape=0 dev_name="FileStorage" (/mnt/bacula) 
vol=x_Full_12-06-2008 mode=OPEN_READ_WRITE
x-server-sd: dev.c:285 call open_file_device mode=OPEN_READ_WRITE
x-server-sd: dev.c:437 open dev: disk dev=/mnt/bacula/x_Full_12-06-2008 
mode=OPEN_READ_WRITE


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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>