Hello,

On 2/15/2006 10:47 AM, [EMAIL PROTECTED] wrote:
Hi,

I'm new to bacula.

I looked in the manual and the mailing list but didn't find a solution.

I'm using bacula 1.36.3 on a debian sarge system. Connected to the system is a exabyte 221L with one IBM LTO-1 drive.

I got jobs scheduled which run fine. When there is no tape in the drive it loads the tape. But sometimes when a job starts it keeps waiting for a tape in the drive (there isn't one) and fails after a while saying:
<message>
BackupCatalog.2006-02-15_01.10.00 Fatal error: device.c:317 Unable to open device /dev/nst0. ERR=dev.c:289 stored: unable to open device /dev/nst0: ERR=Input/output error

15-Feb 03:07 fs2-fd: BackupCatalog.2006-02-15_01.10.00 Fatal error: job.c:1665 Bad response to Append Data command. Wanted 3000 OK data
, got 3903 Error append data
</message>

It didn't issue the 'mtx-changer loaded' and 'mtx-changer loaded' commands, which, i think, it should have.

Anyone an idea why this is done?

That might be because you're runing a linux kernel 2.6. The tape access there ahs changed quite a bit compared to 2.4 and standard unix behaviour which can result in the SD not being able to access tape drives without a tape loaded - just what you observe.

If that's the reason for your problem an upgrade to 1.38.5 might be your best solution. I don't know if there are debian packages available, but apart from that, an upgrade will improve some functionality and result in better stability in many cases.

Arno

Underneath the device resource for the exabyte.

<in bacula-sd.conf>
# EXABYTE 221L tape changer with IBM LTO-1 drive
Device {
  Name = EXABYTE
  Media Type = LTO-1
  Archive Device = /dev/nst0
  AutomaticMount = no;               # when device opened, read it
  AlwaysOpen = no;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Changer Device = /dev/sg2
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  Maximum Changer Wait = 120 seconds
}
</in bacula-sd.conf>


--
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to