Package: bacula-sd
Version: 2.2.8-5
Severity: important

I'm using DD3 4 tape autochanger (1 drive). I've noticed when backup is 
longer than one volume (in my case: ~10GB) sd crashes almost every time, 
when it cannot find next volume.
Lets say we have 2x4 tapes - 1-4 in one block and 5-8 in another.
When bacula fills tape no 4 and try to find tape 5. It looks for that 
tape in slot 1, but in autochanger we have tapes 1-4, so it gets tape 1.
Before version 2.2.8-4 bacula sends me an email and waits for correct tape.
Now bacula-sd crashes, which renders whole backup unusable, because director 
marks it "Error".

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash

Versions of packages bacula-sd depends on:
ii  bacula-common          2.2.8-5           Network backup, recovery and verif
ii  libacl1                2.2.45-1          Access control list shared library
ii  libc6                  2.7-9             GNU C Library: Shared libraries
ii  libgcc1                1:4.3.0-1         GCC support library
ii  libstdc++6             4.3.0-1           The GNU Standard C++ Library v3
ii  libwrap0               7.6.dbs-14        Wietse Venema's TCP wrappers libra
ii  mtx                    1.2.17rel-2       controls tape autochangers
ii  python                 2.4.4-6           An interactive high-level object-o
ii  python2.4              2.4.5-1           An interactive high-level object-o
ii  zlib1g                 1:1.2.3.3.dfsg-11 compression library - runtime

Versions of packages bacula-sd recommends:
ii  bacula-sd-sqlite3 [bacula-sd- 2.2.8-5    Network backup, recovery and verif
ii  mt-st                         0.9b-5     Linux SCSI tape driver aware magne

-- no debconf information
#
# Default Bacula Storage Daemon Configuration file
#
#  For Bacula release 1.36.1 (26 November 2004) -- debian 3.1
#
# You may need to change the name of your tape drive
#   on the "Archive Device" directive in the Device
#   resource.  If you change the Name and/or the 
#   "Media Type" in the Device resource, please ensure
#   that dird.conf has corresponding changes.
#

Storage {                             # definition of myself
  Name = alfa.domowa.pl-sd
  SDPort = 9103                  # Director's port      
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run/bacula"
  Maximum Concurrent Jobs = 20
}

#
# List Directors who are permitted to contact Storage daemon
#
Director {
  Name = alfa.domowa.pl-dir
  Password = "Yg4dOZWSzbAUpD0g3OzkuOpGeDnZwzEh32LMo1SZVbx7"
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the storage daemon
#
Director {
  Name = alfa.domowa.pl-mon
  Password = ""
  Monitor = yes
}

#
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
#  same Name and MediaType. 
#

Device {
  Name = File
  Media Type = File
  Archive Device = /var/lib/bacula
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Maximum Volume Size = 512m;
}

Autochanger {
  Name = "DDS-3"
  Device = D1
  Changer Device = /dev/sg0
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"  
}

Device {
  Name = "D1"
  Drive Index = 0
  Media Type = DDS-3
  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 = "DDS-3"                        # 
#  Media Type = DDS-3
#  Archive Device = /dev/nst0
#  AutomaticMount = yes;               # when device opened, read it
#  AlwaysOpen = yes;
#  RemovableMedia = yes;
#  RandomAccess = no;

#  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
#  Changer Device = /dev/sg0
#  AutoChanger = yes
#  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
#}

#
# A FreeBSD tape drive
#
#Device {
#  Name = DDS-4 
#  Description = "DDS-4 for FreeBSD"
#  Media Type = DDS-4
#  Archive Device = /dev/nsa1
#  AutomaticMount = yes;               # when device opened, read it
#  AlwaysOpen = yes
#  Offline On Unmount = no
#  Hardware End of Medium = no
#  BSF at EOM = yes
#  Backward Space Record = no
#  Fast Forward Space File = no
#  TWO EOF = yes
#}

#
# A OnStream tape drive. 
# You need the kernel osst driver 0.9.14 or later, and
#   do "mt -f /dev/nosst0 defblksize 32768" once as root.
#
#Device {
#  Name = OnStream
#  Description = "OnStream drive on Linux"
#  Media Type = OnStream
#  Archive Device = /dev/nrst0
#  AutomaticMount = yes;               # when device opened, read it
#  AlwaysOpen = yes
#  Offline On Unmount = no
## The min/max blocksizes of 32768 are *required*
#  Minimum Block Size = 32768
#  Maximum Block Size = 32768
#}
 

 


#
# A very old Exabyte with no end of media detection
#
#Device {
#  Name = "Exabyte 8mm"
#  Media Type = "8mm"
#  Archive Device = /dev/nrst0
#  Hardware end of medium = No;
#  AutomaticMount = yes;               # when device opened, read it
#  AlwaysOpen = Yes;
#  RemovableMedia = yes;
#  RandomAccess = no;
#}

# 
# Send all messages to the Director, 
# mount messages also are sent to the email address
#
Messages {
  Name = Standard
  director = alfa.domowa.pl-dir = all
}

Reply via email to