Mr. Andrey, /etc/bacula/scripts/mtx-changer:
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 } Regards, ========================================================================= Heitor Medrado de Faria Faltam poucos dias - Treinamento Telepresencial Bacula: http://www.bacula.com.br/?p=2174 61 2021-8260 | 8268-4220 Site: www.bacula.com.br | Facebook: heitor.faria | Gtalk: heitorfa...@gmail.com ========================================================================== ----- Mensagem original ----- De: "Andrey Chebotarev" <a...@525.su> Para: "Dan Langille" <d...@langille.org> Cc: bacula-de...@lists.sourceforge.net, "bacula-users" <bacula-users@lists.sourceforge.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. On Nov 10, 2014, at 3:33 AM, Andrey Chebotarev < a...@525.su > wrote: <blockquote> 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. <blockquote> <blockquote> <blockquote> On Nov 4, 2014, at 6:55 AM, Andrey Chebotarev < a...@525.su > wrote: <blockquote> 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? </blockquote> </blockquote> <blockquote> 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? </blockquote> I don’t see why this is on devel It should be on users, which is cc’d here. </blockquote> </blockquote> </blockquote> ------------------------------------------------------------------------------ _______________________________________________ Bacula-devel mailing list bacula-de...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel
------------------------------------------------------------------------------
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users