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.



-------------------------------------------------------
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

Reply via email to