On Thursday 20 April 2006 19:01, Alan Brown wrote:
> This may be fixed in 1.38, which is why I'm posting it here instead of to
> the bugs page for the moment.
>
> Over the easter break, our bacula system loaded in an unformatted LTO2
> tape - which it thought was labelled.
>
> Normally, if bacula believes the tape isn't labelled, it gets an io error,
> proceeds to label it and then all is happy.
>
> Because it believed the tape(volume) was already labelled, it got an IO
> error, waited and then retried every 3 seconds, generating an email
> message for every error
>
> 28,000+ error messages later, one of our older VMS machines (the one where
> 2 admins read mail) ran out of disk and got _very_ upset. Not long after
> that, the main internal mailserver got clogged up with refusal and delayed
> messages which were looping to that VMS box.
>
> All in all "not very pleasant"....
>
> What is current Bacula behaviour if it encounters a blank tape which it
> believes is already labelled and how can a mailbomb be prevented if
> someone else encounters this problem?

I suspect that something much more complicated is going on.  To the best of my 
knowledge in 1.36.3, there are only two waits in the device code.  The first 
one (most likely to apply in this case) will wait one second and then retry 
to open the device if there is an error opening the device, and the device 
returns a EBUSY status.  This loop will continue until the Max Open Wait time 
is exhaused, which is by default 5 minutes, which means a maximum of 300 
iterations.

The second wait has to do with rewinding, and there it will wait 5 seconds if 
an I/O error occurs during rewind.  It will then retry until Maximum Rewind 
Wait is exhausted, which is by default 5 minutes, which means a maximum of 60 
iterations.

In attempting to read() a label, if Bacula gets an I/O error, it will loop 
retrying to read() 11 times with no delay then give up.

None of the above code loops generates any messages during the looping.

If I could see the exact message or messages in the famous (not very user 
friendly) mailbomb, I might have a better idea of where it was coming from.

-- 
Best regards,

Kern

  (">
  /\
  V_V


-------------------------------------------------------
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
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to