Mr. Andrey,
wait_for_drive() {
i=0
while [ $i -le 300 ]; do # Wait max 300 seconds
if mt -f $1 status 2>&1 | grep "${ready}" >/dev/null 2>&1; then
break
fi
debug "Device $1 - not ready, retrying..."
sleep 1
i=`expr $i + 1`
done
}
De: "Andrey Chebotarev" <a AT 525 DOT su>
Para: "Dan Langille" <dan AT langille DOT org>
Cc: bacula-devel AT lists.sourceforge DOT net, "bacula-users" <bacula-users AT lists.sourceforge DOT net>
Enviadas: Segunda-feira, 10 de novembro de 2014 10:24:48
Assunto: Re: [Bacula-devel] Load slots timeout
I wanted to change the code by myself. I just wanted to know where is in code place where defined 5 minutes timeout.
Hi.
It's in devel because the question about editing sources, but not about configuration.
And I think solve the question could only developer.
The conclusion to change the code is premature.
Hi guys.
I use bacula 5.2.13 with IBM TS3200 library.
Periodically I face problem with load slot time out. In logs it looks lilke:
22-Sep 00:35 baculasrv-dir JobId 10471: Recycled volume "220AAAL6"
22-Sep 00:35 baculasrv-sd JobId 10471: 3304 Issuing autochanger "load slot 1, drive 1" command.
22-Sep 00:40 baculasrv-sd JobId 10471: Fatal error: 3992 Bad autochanger "load slot 1, drive 1": ERR=Child died from signal 15: Termination.
Results=Program killed by Bacula (timeout)
22-Sep 00:32 sqcompose-fd JobId 10471: Fatal error: backup.c:1019 Network send error to SD.
As I understood, bacula tries to load slot for 5 minutes and if it's not successful stops job.
I started investigation why bacula sometimes doesn't manage to load slot in 5 minutes and find out library stops responding to commands and starts cleaning drive procedure which takes more than 5 minutes(Library was configured to clean drive automatically)
So how can I solve the problem?
I've found place in mtx-changer script where declared 300 seconds to wait. I've increased it value to 1800 seconds. Is it only place or I have to change somthing else in sources?
Hi everybody.
Increasing timeout in mtx-changer script hasn't helped, I have the same issue. Where in sources I can increase timeout to 30 minutes?
I don’t see why this is on devel It should be on users, which is cc’d here.
------------------------------------------------------------------------------
_______________________________________________
Bacula-devel mailing list
Bacula-devel AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-devel