Hi. I am trying to set up a backup with Bacula on OpenBSD. So far I only used disks and had no issue whatsoever. However I am now trying to use an LTO-4 drive and this is not a walk in the park.
First I had to write an autochanger script (called chio-changer-openbsd) based on the several examples in bacula source to cope with specific OpenBSD outputs. As far as I can tell it works fine (if I can make the LTO-4 works, I'll send the script to bacula it so that it could maybe be included in the source directly). e.g. outputs # /usr/local/libexec/bacula/chio-changer-openbsd /dev/ch0 list 0 0 0 2:ODD002L4 3:ODD003L4 4:ODD004L4 5:ODD005L4 6:ODD006L4 7:CLN710 8:WEEK01L4 # /usr/local/libexec/bacula/chio-changer-openbsd /dev/ch0 loaded 0 0 0 1 # /usr/local/libexec/bacula/chio-changer-openbsd /dev/ch0 unload 1 0 0 # /usr/local/libexec/bacula/chio-changer-openbsd /dev/ch0 loaded 0 0 0 0 # /usr/local/libexec/bacula/chio-changer-openbsd /dev/ch0 slots 0 0 0 Anyway, back to the issue btape "test" "weof" "eof" "qfill", all work fine. However, the "fill" test (multiple tapes) errors out after a little more than 6 hours with: Wrote block=12600000, file,blk=813,13999 VolBytes=812,851,135,488 rate=54.22 MB/s 29-Jun 21:57 btape JobId 0: Fatal error: Unable to write EOF. ERR=dev.c:1557 ioctl MTWEOF error on "LTO-4" (/ dev/nrst0). ERR=Input/output error. 29-Jun 21:57 btape JobId 0: Error: Error writing final EOF to tape. This Volume may not be readable. dev.c:1557 ioctl MTWEOF error on "LTO-4" (/dev/nrst0). ERR=Input/output error. btape: btape.c:2712 Last block at: 813:15499 this_dev_block_num=15500 btape: btape.c:2747 End of tape 813:15500. Volume Bytes=812,947,968,000. Write rate = 54.20 MB/s 29-Jun 21:57 btape JobId 0: End of medium on Volume "TestVolume1" Bytes=812,947,968,000 Blocks=12,601,500 at 29-Jun-2012 21:57. 29-Jun 21:57 btape JobId 0: Fatal error: Job 0 canceled. btape: btape.c:2754 Cannot fixup device error. dev.c:1557 ioctl MTWEOF error on "LTO-4" (/dev/nrst0). ERR=Inpu t/output error. btape: btape.c:2284 Flush block failed. btape: btape.c:2323 Not OK btape: btape.c:2387 Wrote state file last_block_num1=15499 last_block_num2=0 btape: btape.c:2415 21:57:37: Error during test. Now, here are the settings I am using for the sd. ------------------------------------------------------------------------ Autochanger { Name = Autochanger Device = LTO-4 Changer Command = "/usr/local/libexec/bacula/chio-changer-openbsd %c %o %S %a %d" Changer Device = /dev/ch0 } Device { Name = LTO-4 Media Type = LTO-4 Archive Device = /dev/nrst0 Maximum Spool Size = 1342177280 # 10G Spool Directory = /var/tmp AutomaticMount = yes AlwaysOpen = yes RemovableMedia = yes RandomAccess = no AutoChanger = yes Use MTIOCGET= no Maximum Changer Wait = 6000 Offline On Unmount = no BSF at EOM = yes TWO EOF = yes Hardware End of Medium = yes } ------------------------------------------------------------------------ Changing "BSF at EOM", "TWO EOF" and "Hardware End of Medium" values did not help. I also switched the hardware to a similar model and the issue keeps happening. My next move will be to use "Maximum File Size = 2GB" option... Meanwhile, any clue would be greatly appreciated :-) Thanks! -- Antoine ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users