-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Kern. (and list)
I fix my config files for solve the problem, thank you for your help (and for your great program). But I still receive messages from bacula whith date 12/31/1969. I use the version 1.37.37 now. What could be ? The date of machine is ok. My line to send mail is that: mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c (%n) %l on %v\" %r [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]" operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" - -s \"Bacula: Intervention needed for %j\" %r" [EMAIL PROTECTED] mail = [EMAIL PROTECTED] = all, !skipped operator = [EMAIL PROTECTED] = mount console = all, !skipped, !saved I have some users then receive this alerts. Just for document, my storage's problem solve with this configuration: bacula-sd.conf: Autochanger { Name = autoloader1 Device = Drive-1 Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" Changer Device = /dev/sg1 } Autochanger { Name = autoloader2 Device = Drive-2 Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" Changer Device = /dev/sg3 } Device { Name = Drive-1 Drive Index = 0 Media Type = LTO Archive Device = /dev/nst0 AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; AutoChanger = yes Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" } Device { Name = Drive-2 Drive Index = 0 Media Type = LTO Archive Device = /dev/nst1 AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; AutoChanger = yes Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" } [ ]'s - -- Jeronimo Zucco LPIC-1 Linux Professional Institute Certified NĂșcleo de Processamento de Dados Universidade de Caxias do Sul "May the Source be with you." - An unknown jedi programmer. http://jczucco.blogspot.com Kern Sibbald wrote: > Hello, > > Well, the first thing that I see is that you are using an autochanger but > have > not defined an Autochanger resource in the SD. Under 1.37.30, this might > have continued to work as it did in 1.36, because the new autochanger code > was only partially implemented. In 1.37.36, you *must* use the new > Autochanger resource and make a number of other changes to your SD and > Director conf files, or it is not going to work. This is all described > pretty well in the manual, and the ReleaseNotes say: > > Items to note!!! > ... > - If you use an Autochanger, you *must* update your SD conf file > to use the new Autochanger resource. Otherwise, certain commands > such as "update slots" may not work. > > I guess I should have removed the second sentence. > > I cannot say for sure your problems will go away with those changes, but > without them, you are sure to have problems. > > > > On Tuesday 23 August 2005 21:32, Jeronimo Zucco wrote: > >>Sorry, follow a description complete for my problems whith 1.37.36 version: >> >>We have 2 autoloaders (both have just one LTO2 drive) connected to one >>Intel server. We have being running bacula 1.37.30 without problems so >>far. Today we have upgraded to 1.37.36 and start to get this error: >> >> bacula-sd: 3302 Autochanger "loaded drive 0", result: nothing loaded. >> 23-Ago 09:27 pan-fd: PanJob.2005-08-23_09.25.22 Fatal error: job.c:1588 >> Comm error with SD. bad response to Append Data. ERR=No data available >> >> >>The e-mail reporting errors and warnings of bacula come with date >>12/30/1969 too. >> >>We have several jobs running concurrently (maximum 3 jobs) and about 25 >>servers (most of them are Linux, but there are a few Microsoft servers >>too). At least 3 servers run a script before backup (it does an export >>of an Oracle database) and it takes from 1 to 3 hours to accomplish this >>export and another hour to make the backup itself. >> >> >> >>Our bacula configuration files follow: >> >>bacula-fd.conf: >> >>Director { >> Name = bacula-dir >> Password = "XXXXXXXXXXXXXXXXXXXXXXXX" >>} >> >>Director { >> Name = bacula-mon >> Password = "XXXXXXXXXXXXXXXXXXXXX" >> Monitor = yes >>} >> >>FileDaemon { # this is me >> Name = bacula-fd >> FDport = 9102 # where we listen for the director >> WorkingDirectory = /var/bacula >> Pid Directory = /var/run >> Maximum Concurrent Jobs = 10 >>} >> >>Messages { >> Name = Standard >> director = bacula-dir = all, !skipped >>} >> >> >> >>bacula-sd.conf: >> >>Storage { # definition of myself >> Name = bacula-sd >> SDPort = 9103 # Director's port >> WorkingDirectory = "/var/bacula" >> Pid Directory = "/var/run" >> Maximum Concurrent Jobs = 10 >>} >> >>Director { >> Name = bacula-dir >> Password = "XXXXXXXXXX" >>} >> >>Director { >> Name = bacula-mon >> Password = "XXXXXXXXXXXXXXXXXx" >> Monitor = yes >>} >> >>Device { >> Name = autoloader1 # >> Media Type = LTO >> Archive Device = /dev/nst0 >> AutomaticMount = yes; # when device opened, read it >> AlwaysOpen = yes; >> RemovableMedia = yes; >> RandomAccess = no; >> Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" >> Changer Device = /dev/sg1 >> AutoChanger = yes >> Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" >>} >> >>Device { >> Name = autoloader2 # >> Media Type = LTO >> Archive Device = /dev/nst1 >> AutomaticMount = yes; # when device opened, read it >> AlwaysOpen = yes; >> RemovableMedia = yes; >> RandomAccess = no; >> Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" >> Changer Device = /dev/sg3 >> AutoChanger = yes >> Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" >>} >> >> >>bacula-dir.conf: >> >>Director { # define myself >> Name = bacula-dir >> DIRport = 9101 # where we listen for UA connections >> QueryFile = "/etc/bacula/query.sql" >> WorkingDirectory = "/var/bacula" >> PidDirectory = "/var/run" >> Maximum Concurrent Jobs = 3 >> Password = "XXXXXXXXXXXXXXXXXXXXXXXXXX" # Console password >> Messages = Standard >> FD Connect Timeout = 15 >>} >> >>Job { >> Name = "HermesJob" >> Type = Backup >> Client = hermes-fd >> FileSet = "Set Hermes" >> Schedule = "Ciclo" >> Storage = Autoloader-1 >> Messages = Standard >> Pool = Default >> Priority = 10 >> Write Bootstrap = "/var/bacula/Hermes.bsr" >> SpoolData = yes >> Spool Attributes = yes >> Maximum Concurrent Jobs = 1 >>} >> >>Job { >> Name = "ShivaJob" >> Type = Backup >> Level = Full >> Client = shiva-fd >> FileSet = "Set Shiva" >> Schedule = "CicloShiva" >> Storage = Autoloader-2 >> Messages = Standard >> Pool = ShivaDiarioImpar >> Priority = 8 >> Write Bootstrap = "/var/bacula/Shiva.bsr" >> SpoolData = yes >> ClientRunBeforeJob = "/home/oracle/bkp_disparado_pelo_bacula" >>} >> >>Job { >> Name = "AtenaJob" >> Type = Backup >> Level = Full >> Client = atena-fd >> FileSet = "Set Atena" >> Schedule = "CicloAtena" >> Storage = Autoloader-2 >> Messages = Standard >> Pool = ShivaDiarioImpar >> Priority = 8 >> Write Bootstrap = "/var/bacula/Atena.bsr" >> SpoolData = yes >> ClientRunBeforeJob = "/home/oracle/bkp_disparado_pelo_bacula" >>} >> >>FileSet { >> Name = "Set Hermes" >> Include { >> Options { >> signature = MD5 >> } >> File = "</etc/bacula/SETS/SetHermes.txt" >> } >> Exclude { >> File = /dev >> File = /proc >> File = /tmp >> File = /.journal >> File = /.fsck >> } >>} >> >>FileSet { >> Name = "Set Shiva" >> Include { >> Options { >> signature = MD5 >> } >> File = "</etc/bacula/SETS/SetShiva.txt" >> File = "|/etc/bacula/Shiva.sh" >> } >> Exclude { >> File = /proc >> File = /tmp >> File = /.journal >> File = /.fsck >> } >>} >> >>FileSet { >> Name = "Set Atena" >> Include { >> Options { >> signature = MD5 >> } >> File = "</etc/bacula/SETS/SetAtena.txt" >> File = "|/etc/bacula/Atena.sh" >> } >> Exclude { >> File = /proc >> File = /tmp >> File = /.journal >> File = /.fsck >> } >>} >> >> >># >># When to do the backups, full backup on first sunday of the month, >># differential (i.e. incremental since full) every other sunday, >># and incremental backups other days >>Schedule { >> Name = "Ciclo" >> Run = Level=Full Storage=Autoloader-1 Pool=MensalPar 1st sat feb at 18:00 >> Run = Level=Full Storage=Autoloader-1 Pool=MensalPar 1st sat apr at 18:00 >> Run = Level=Full Storage=Autoloader-1 Pool=MensalPar 1st sat jun at 18:00 >> Run = Level=Full Storage=Autoloader-1 Pool=MensalPar 1st sat aug at 18:00 >> Run = Level=Full Storage=Autoloader-1 Pool=MensalPar 1st sat oct at 18:00 >> Run = Level=Full Storage=Autoloader-1 Pool=MensalPar 1st sat dec at 18:00 >> Run = Level=Full Storage=Autoloader-1 Pool=SemanalPar 2nd sat at 18:00 >> Run = Level=Full Storage=Autoloader-1 Pool=SemanalPar 4th sat at 18:00 >> Run = Level=Differential Storage=Autoloader-1 Pool=DiarioPar mon at 00:05 >> Run = Level=Differential Storage=Autoloader-1 Pool=DiarioPar wed at 00:05 >> Run = Level=Differential Storage=Autoloader-1 Pool=DiarioPar fri at 00:05 >> >> Run = Level=Full Storage=Autoloader-1 Pool=MensalImpar 1st sat jan at >>18:00 Run = Level=Full Storage=Autoloader-1 Pool=MensalImpar 1st sat mar at >>18:00 Run = Level=Full Storage=Autoloader-1 Pool=MensalImpar 1st sat may at >>18:00 Run = Level=Full Storage=Autoloader-1 Pool=MensalImpar 1st sat jul at >>18:00 Run = Level=Full Storage=Autoloader-1 Pool=MensalImpar 1st sat sep at >>18:00 Run = Level=Full Storage=Autoloader-1 Pool=MensalImpar 1st sat nov at >>18:00 Run = Level=Full Storage=Autoloader-1 Pool=SemanalImpar 3rd sat at >>18:00 Run = Level=Full Storage=Autoloader-1 Pool=SemanalImpar 5th sat at >>18:00 Run = Level=Differential Storage=Autoloader-1 Pool=DiarioImpar tue at >>00:05 Run = Level=Differential Storage=Autoloader-1 Pool=DiarioImpar thu at >>00:05 Run = Level=Differential Storage=Autoloader-1 Pool=DiarioImpar sat at >>00:05 } >> >> >>Schedule { >> Name = "CicloShiva" >> Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun feb at >>04:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun apr at >>04:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun jun at >>04:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun aug at >>04:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun oct at >>04:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun dec at >>04:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaDiarioPar mon at >>02:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaDiarioPar wed at >>02:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaDiarioPar fri at >>02:05 >> >> Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun jan at >>04:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun mar at >>04:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun may at >>04:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun jul at >>04:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun sep at >>04:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun nov at >>04:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaDiarioImpar tue at >>02:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaDiarioImpar thu at >>02:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaDiarioImpar sat at >>02:05 >> >> Run = Level=Full Storage=Autoloader-2 Pool=ShivaSemanal 1st sun at 04:05 >> Run = Level=Full Storage=Autoloader-2 Pool=ShivaSemanal 3rd sun at 04:05 >> Run = Level=Full Storage=Autoloader-2 Pool=ShivaSemanal 2nd sun at 04:05 >> Run = Level=Full Storage=Autoloader-2 Pool=ShivaSemanal 4th sun at 04:05 >>} >> >>Schedule { >> Name = "CicloAtena" >> Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun feb at >>05:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun apr at >>05:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun jun at >>05:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun aug at >>05:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun oct at >>05:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun dec at >>05:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaDiarioPar mon at >>03:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaDiarioPar wed at >>03:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaDiarioPar fri at >>03:05 >> >> Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun jan at >>05:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun mar at >>05:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun may at >>05:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun jul at >>05:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun sep at >>05:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaMensal 1st sun nov at >>05:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaDiarioImpar tue at >>03:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaDiarioImpar thu at >>03:05 Run = Level=Full Storage=Autoloader-2 Pool=ShivaDiarioImpar sat at >>03:05 >> >> Run = Level=Full Storage=Autoloader-2 Pool=ShivaSemanal 1st sun at 05:05 >> Run = Level=Full Storage=Autoloader-2 Pool=ShivaSemanal 3rd sun at 05:05 >> Run = Level=Full Storage=Autoloader-2 Pool=ShivaSemanal 2nd sun at 05:05 >> Run = Level=Full Storage=Autoloader-2 Pool=ShivaSemanal 4th sun at 05:05 >>} >> >>Client { >> Name = hermes-fd >> Address = hermes.ucs.br >> FDPort = 9102 >> Catalog = MyCatalog >> Password = "XXXXXXXXXXXXXXXXXX" # password for FileDaemon >> AutoPrune = yes # Prune expired Jobs/Files >> Maximum Concurrent Jobs = 1 >>} >> >>Client { >> Name = shiva-fd >> Address = shiva-vpn >> FDPort = 9102 >> Catalog = MyCatalog >> Password = "XXXXXXXXXXXXXXXXXX" # password for FileDaemon >> AutoPrune = yes # Prune expired Jobs/Files >> Maximum Concurrent Jobs = 1 >>} >> >>Client { >> Name = atena-fd >> Address = atena-vpn >> FDPort = 9102 >> Catalog = MyCatalog >> Password = "XXXXXXXXXXXXXXXXXXXX" # password for FileDaemon >> AutoPrune = yes # Prune expired Jobs/Files >> Maximum Concurrent Jobs = 1 >>} >> >># Definition of LTO tape storage device autoloader >>Storage { >> Name = Autoloader-1 >> Address = bacula.ucs.br # N.B. Use a fully qualified name >>here SDPort = 9103 >> Password = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" # >>password for FileDaemon >> Device = autoloader1 # must be same as Device in Storage >>daemon Media Type = LTO # must be same as MediaType in >>Storage daemon >> Autochanger = yes >> Maximum Concurrent Jobs = 3 >>} >> >># Definition of LTO tape storage device autoloader >>Storage { >> Name = Autoloader-2 >> Address = bacula.ucs.br # N.B. Use a fully qualified name >>here SDPort = 9103 >> Password = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" # >>password for FileDaemon >> Device = autoloader2 # must be same as Device in Storage >>daemon Media Type = LTO # must be same as MediaType in >>Storage daemon >> Autochanger = yes >> Maximum Concurrent Jobs = 3 >>} >> >> >># Generic catalog service >>Catalog { >> Name = MyCatalog >> dbname = bacula; user = bacula; password = "" >>} >> >>Messages { >> Name = Standard >> mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s >>\"Bacula: %t %e of %c (%n) %l on %v\" %r [EMAIL PROTECTED] [EMAIL PROTECTED] >>[EMAIL PROTECTED] [EMAIL PROTECTED]" >> operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s >>\"Bacula: Intervention needed for %j\" %r" [EMAIL PROTECTED] >> mail = [EMAIL PROTECTED] = all, !skipped >> operator = [EMAIL PROTECTED] = mount >> console = all, !skipped, !saved >> append = "/var/bacula/log" = all, !skipped >>} >> >># Default pool definition >>Pool { >> Name = Default >> Pool Type = Backup >> Recycle = yes # Bacula can automatically recycle >>Volumes AutoPrune = yes # Prune expired volumes >> Volume Retention = 365 days # one year >> Accept Any Volume = yes # write on any volume in the pool >> Cleaning Prefix = CLN >>} >> >>Pool { >> Name = ShivaDiarioImpar >> Pool Type = Backup >> Recycle = yes # Bacula can automatically recycle >>Volumes AutoPrune = yes # Prune expired volumes >> Volume Retention = 20 days >> Accept Any Volume = yes # write on any volume in the pool >> Cleaning Prefix = CLN >>} >> >>Pool { >> Name = ShivaDiarioPar >> Pool Type = Backup >> Recycle = yes # Bacula can automatically recycle >>Volumes AutoPrune = yes # Prune expired volumes >> Volume Retention = 20 days # one year >> Accept Any Volume = yes # write on any volume in the pool >> Cleaning Prefix = CLN >>} >> >>Pool { >> Name = ShivaSemanal >> Pool Type = Backup >> Recycle = yes # Bacula can automatically recycle >>Volumes AutoPrune = yes # Prune expired volumes >> Volume Retention = 365 days # one year >> Accept Any Volume = yes # write on any volume in the pool >>} >> >>Pool { >> Name = ShivaMensal >> Pool Type = Backup >> Recycle = no # Bacula can automatically recycle >>Volumes AutoPrune = yes # Prune expired volumes >> Volume Retention = 730 days # 2 anos >> Accept Any Volume = yes # write on any volume in the pool >> Cleaning Prefix = CLN >>} >> >>Pool { >> Name = DiarioPar >> Pool Type = Backup >> AutoPrune = yes >> VolumeRetention = 10 days # recycle in 10 days >> Recycle = yes >> Cleaning Prefix = CLN >>} >> >>Pool { >> Name = DiarioImpar >> Pool Type = Backup >> AutoPrune = yes >> VolumeRetention = 10 days # recycle in 10 days >> Recycle = yes >> Cleaning Prefix = CLN >>} >> >>Pool { >> Name = SemanalPar >> Pool Type = Backup >> AutoPrune = yes >> VolumeRetention = 30 days # recycle in 30 days (default) >> Recycle = yes >> Cleaning Prefix = CLN >>} >> >>Pool { >> Name = SemanalImpar >> Pool Type = Backup >> AutoPrune = yes >> VolumeRetention = 30 days # recycle in 30 days (default) >> Recycle = yes >> Cleaning Prefix = CLN >>} >> >>Pool { >> Name = MensalPar >> Pool Type = Backup >> AutoPrune = yes >> VolumeRetention = 365 days # recycle in 1 year >> Recycle = yes >> Cleaning Prefix = CLN >>} >> >>Pool { >> Name = MensalImpar >> Pool Type = Backup >> AutoPrune = yes >> VolumeRetention = 365 days # recycle in 1 year >> Recycle = yes >> Cleaning Prefix = CLN >>} >> >> >>Sorry for my long post, but it is necessary. >> >>If anyone can help us, I will thak you. >> >>[ ]'s >> >>Jeronimo Zucco >>LPIC-1 Linux Professional Institute Certified >>NĂșcleo de Processamento de Dados >>Universidade de Caxias do Sul >> >> >>---------------------------------------------------------------- >>This message was sent using IMP, the Internet Messaging Program. > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDFF4WTCq0VJ4DIPwRAof4AJ4tLhDTuwltQsXY7n2pctXaK1fUFgCgsRFu SmHWZTv+JRX9So7GD7vDy5s= =Oplo -----END PGP SIGNATURE----- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users