I am trying to setup bacula to work with my IBM Ultrium 2 3580 tape drive. When I run the btape utility the it makes it through the "Write, rewind, and re-read test", but fails on the "Write, rewind and position test". The block size it set to 0 for variable block size. Does anyone know what I can try to get this to work properly? The bacula documentation lists IBM 3580 as being compatible with bacula. If I understand the output correctly it seems like the btape utility is trying to position the tap at block 1000, but if I do a mt -f /dev/IBMtape0n tell it seems like the tape is at block 1001.
=== Write, rewind, and position test === I'm going to write 1000 records and an EOF then write 1000 records and an EOF, then rewind, and position to a few blocks and verify that it is correct. Section of btape that failed: This is an *essential* feature ... btape: btape.c:937 Wrote 1000 blocks of 64412 bytes. btape: btape.c:499 Wrote 1 EOF to "Drive-0" (/dev/IBMtape0n) btape: btape.c:953 Wrote 1000 blocks of 64412 bytes. btape: btape.c:499 Wrote 1 EOF to "Drive-0" (/dev/IBMtape0n) btape: btape.c:962 Rewind OK. Reposition to file:block 0:4 Block 5 re-read correctly. Reposition to file:block 0:200 Block 201 re-read correctly. Reposition to file:block 0:999 Block 1000 re-read correctly. Reposition to file:block 1:0 btape: btape.c:1004 Reposition error. * bacula-sd.conf Autochanger { Name = Autochanger Device = Drive-0 # Device = Drive-2 Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" Changer Device = /dev/sg6 } Device { Name = Drive-0 # Drive Index = 0 Media Type = Ultrium-2 LTO Device Type = Tape Archive Device = /dev/IBMtape0n AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; AutoChanger = yes # # Enable the Alert command only if you have the mtx package loaded Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" # If you have smartctl, enable this, it has more info than tapeinfo # Alert Command = "sh -c 'smartctl -H -l error %c'" } mt -f /dev/IBMtape0n status drive type = Generic SCSI-2 tape drive status = 1107296256 sense key error = 0 residue count = 0 file number = -1 block number = 1001 Tape block size 0 bytes. Density code 0x42 (unknown). Soft error count since last status=0 General status bits on (1000000): ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users