On Wednesday 15 February 2006 11:17, Arno Lehmann wrote:
> Hello,
>
> On 2/15/2006 10:50 AM, Michael Ressel wrote:
> > Hi there,
> > i've realised that there is no volume connected with a job yet while the
> > RunBeforeJob-Script is running.
>
> Right, although this might not be documented, it sounds logical - a
> volume is attached to the job when the job starts running, i.e. it's
> impossible to have that link during a runBEFOREscript.
>
> ...
>
> > The running script is trapped in a loop. I'm testing an idea about
> > sending mailrequests for mounting a usb-harddisk (volume) to
> > bacula-operators and quitting the script with the incoming of the
> > mailreply from the operator after mounting the disk. By this a want to
> > avoid that bacula tries to write into the mountpoint-directory if there
> > is no usb-disk mountet yet.
>
> Try upgrading to 1.38.5 and investigate what the python hooks can do for
> you. Also, I would consider not (only) using the volume name but taking
> the device into consideration. And finally, from reading some posts in
> the -devel list lately, I suspect that Kern might implement a more
> sophisticated file-based volume handling some time soon.

Yes, USB filesystems handled through hald are a bit problematic for current 
(non-development) versions of Bacula because the SD expects the mount point 
to exist before opening any Volume device.  On hald mounted USB devices the 
mount point is defined when you open the file -- bizarre.  Bacula 1.39.5 
handles this, and I have back ported the code to 1.38.5, but have not had 
time to test it ...

One can get around the hald problems (I think) by pre-mounting the filesystem 
before the SD attempts to open/access the Volume, but doing so would be a bit 
tricky ...

>
> So, before you start working around problems that might not exist in
> future versions, it might be more interesting to find out if, what you
> want, can be achieved easier.
>
> Arno
>
> > "status director" in the console tells me that the job is running.
> > -------------------------------------------------------------------------
> >--------------------------------------------------------------------------
> >---------------
> >
> > Running Jobs:
> > Console connected at 15-Feb-06 09:42
> > JobId Level   Name                       Status
> > ======================================================================
> >  1201 Full    HOG-Monthly.2006-02-15_10.45.23 is running
> > ====
> > -------------------------------------------------------------------------
> >--------------------------------------------------------------------------
> >---------------
> >
> >
> > But why isn't there a volume defined yet? Does anyone know this problem?
> >
> > regards,
> > Michael
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > files
> > for problems?  Stop!  Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> > _______________________________________________
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to