Hello! I'm setting up an HP autochanger with an LTO-7 drive with Bacula on Ubuntu 22.04 server at home. I've been able to run mt and mtx commands successfully to erase a tape and change the loaded tape.
I've installed Bacula 13.0.1 using apt-get from the repo. I also installed Bacularis for a GUI, but that isn't relevant to this issue. I've searched Google and the mailing list archive and while I've seen others experiencing the same problem from over a decade ago, I haven't found a fix. I'm not sure if I am missing some udev rules or if it's something else. When I try to run the btape test, I get this output. ./btape -c ../etc/bacula-sd.conf /dev/nst0 Tape block granularity is 1024 bytes. btape: butil.c:295-0 Using device: "/dev/nst0" for writing. btape: btape.c:477-0 open device "LTO-7" (/dev/nst0): OK *test === Write, rewind, and re-read test === I'm going to write 10000 records and an EOF then write 10000 records and an EOF, then rewind, and re-read the data to verify that it is correct. This is an *essential* feature ... btape: block.c:291-0 [SE0201] Write error at 0:0 on device "LTO-7" (/dev/nst0) Vol=. ERR=Input/output error. 15-Sep 15:11 btape JobId 0: Error: block.c:291 [SE0201] Write error at 0:0 on device "LTO-7" (/dev/nst0) Vol=. ERR=Input/output error. 15-Sep 15:12 btape JobId 0: Error: Backspace record at EOT failed. ERR=Input/output error btape: btape.c:1156-0 Error writing block to device. Here's my bacula-sd.conf configuration: Device { Name = "LTO-7" Description = "LTO-7" MediaType = "LTO-7" DeviceType = "Tape" ArchiveDevice = "/dev/nst0" AutomaticMount = yes Autochanger = yes RemovableMedia = yes; RandomAccess = no; AlwaysOpen = yes; ChangerDevice = "/dev/sg3" ChangerCommand = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d" AlertCommand = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" MaximumFileSize = 100G LabelType = "Bacula" LabelMedia = yes } Autochanger { Name = "LTO-7 Autochanger" Description = "LTO-7" Device = "LTO-7" ChangerDevice = "/dev/sg3" ChangerCommand = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d" } Any assistance would be greatly appreciated, Doug _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users