On Tuesday 17 October 2006 11:05, Kern Sibbald wrote:

> > The problem with the timeout on my earlier regress tests was the
> > AlwaysOpen parameter in the SD configuration.  In the early days of
> > my working with Bacula I had set that to off for some reason I don't
> > remember.  In my earlier regress tests I had copied my current
> > configuration, which had AlwaysOpen as off.
> >
> > Your regress tests have it on.  I can reproduce the problem merely
> > by setting AlwaysOpen to off in your standard regress configuration
> > scripts/bacula-sd-2drive.conf and running 2drive-incremental-2tape.
> >
> > There may be something to look at in the Bacula source but at least
> > now I know what is causing it.
>
> Yes, this is interesting. If you have AlwaysOpen off, it is clear that
> Bacula depending on the timing will be *much* more likely to use only the
> first drive since with AlwaysOpen off and an offline in mtx-changer, the
> tapes are not going to stay in the drive as much.

The 'mt offline' in mtx-changer until now (because I had not understood the 
option you describe below) has been necessary to work with the Q47, as it 
does not take the drive offline before issuing the unload to the changer.

> I've taken a quick look at the code and see no obvious reason why things
> should break if AlwaysOpen is off.  You might try moving the offline
> request into Bacula code by turning if off in the mtx-changer script and
> and enabling OfflineOnClose (or whatever the directive is really called)
> in the SD.  This will give better coordination with Bacula.  Please let me
> know if you do try this.

Hmmm... I had not seen that SD option and will definitely try it.

> I'm glad that at least you found a workaround, and a much more efficient
> one at that.

I have been able to run a clean regress 'all-non-root-tape-tests' on the 
Overland, with no change to the regress scripts.

I can run a clean regress on the Q47 with one mod to scripts/prepare-two-tapes 
to uncomment an offline.

==================================
#!/bin/sh
#
# Create two blank tapes
#
mt -f /dev/nst0 offline     <=========== uncommented
/usr/sbin/mtx -f /dev/sg2 unload
...
==================================

I will keep you posted on the status of the SD changes, and thanks again.

-- 

   -- Michael

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to