Package: bacula
Version: 2.2.5-1
Severity: important
*** Please type your report below this line ***
Using the btape testing program, the testing of the autochanger Dell PV124T
with an LTO-3 drive failed. As far as I could tell, the mtx control script
was timing out and being killed with a signal 15.
Upon inspection of the bacula mtx script (/etc/bacula/scripts/mtx-changer) I
found that the problem lies in the function wait_for_drive(). The loop in the
function checks to see when the drive is available by matching 'ONLINE' on
the output of mt -f /dev/nst0 status.
In my system, ONLINE never appears in status, instead it lists the following
when the tape is available in the drive and hangs/errors otherwise.
# mt -f /dev/nst0 status
drive type = 114
drive status = 1140850688
sense key error = 0
residue count = 0
file number = 0
block number = 0
removing the pipe to grep solved the problem and the tape and changer passed
the test. At this point I am still testing bacula, so I have no idea of the
impact of this change in aditional functionality.
Thank you very much
João Sousa
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages bacula depends on:
ii bacula-client 2.2.5-1 Network backup, recovery and
verif
ii bacula-server 2.2.5-1 Network backup, recovery and
verif
bacula recommends no packages.
-- no debconf information
--