From: <bac...@li...> - 2008-01-29 16:44:35
|
The following issue has been SUBMITTED. ====================================================================== http://bugs.bacula.org/view.php?id=1048 ====================================================================== Reported By: jgoerzen Assigned To: ====================================================================== Project: bacula Issue ID: 1048 Category: btape Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 01-29-2008 16:31 UTC Last Modified: 01-29-2008 16:31 UTC ====================================================================== Summary: MTX script fails in Dell PV124T Description: Received at the Debian BTS from João Sousa <jts...@gm...> at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=452136 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 ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 01-29-08 16:31 jgoerzen New Issue ====================================================================== |