Bacula-users

Re: [Bacula-users] USB disk automount problem

2008-06-13 10:48:32
Subject: Re: [Bacula-users] USB disk automount problem
From: Josh Fisher <jfisher AT pvct DOT com>
To: Jorge Cabello <jorge AT aspl DOT es>
Date: Fri, 13 Jun 2008 10:48:15 -0400
Jorge Cabello wrote:
> El jue, 12-06-2008 a las 12:07 -0400, Josh Fisher escribió:
>   
>> Jorge Cabello wrote:
>>     
>> This could be your problem. How do you know that udev always assigns 
>> /dev/sdb1 to the USB drive when it is plugged in
>
> System is configured to always assign the same device (sdb1) to that
> drive.
>   

OK. Another approach, in this case, is to use autofs to automount the 
drive as needed. Then Bacula doesn't have to do anything fancy and you 
just setup Bacula SD as if it were a normal fixed disk drive.

>>>  
>>> .....
>>>
>>>       
>>>   Removable Media = no
>>>   
>>>       
>> This should probably be 'Yes' to tell Bacula to search for a usable 
>> volume on the drive.
>>
>>     
>
> I changed it to 'no' to try to find the problem. Again set to 'yes'.
>
>   

It doesn't have anything to do with the problem. But if the volume 
Bacula wants is not found on the drive, then if RemovableMedia=yes 
Bacula will search the drive for another volume that is usable and use 
it if it can. If RemovableMedia=no, then Bacula will fail the job if the 
volume is not found. This can happen if you have multiple USB drives 
that you rotate. When the volume that Bacula decides should be next is 
on a drive that is not plugged in, it is sometimes better to use a 
volume on the drive that is plugged in, rather than failing the job.

>>>   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.
>>>   
>>>       
>> Because AlwaysOpen=no, Bacula expects to have to open the device before 
>> using it. Also, because RequiresMount=yes, Bacula expects to have to 
>> mount the device before opening it. So this might be a misleading 
>> message, meaning that manual mounts are not allowed for the case where 
>> AlwaysOpen=no and RequiresMount=yes??
>>
>>     
>
> I check documentation and AlwaysOpen is ignored in File storages.
>   

I think 'ignored', in this case, means that it is always forced to be 
'no'. In any case, RequiresMount=yes should be causing Bacula to mount 
before opening.

> Anyways, removed and still failing.
>
> Could it be a version problem? 
> Using Debian Etch package: Version: 1.38.11 (28 June 2006)
>
>   

That is possible. The 1.38.x releases were the first to have this 
feature, and I believe it was at first to support DVD drives. It would 
be a good idea to upgrade anyway. There have been numerous beneficial 
features added since then, as well as bug fixes.

>
> -------------------------------------------------------------------------
> 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
>   

-------------------------------------------------------------------------
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>