Graham Dunn wrote:
Just my 2 pence worth :). This works for me, FreeBSD 6.0 on bacula 1.38.5 with an Overland LTO-2 Powerloader:-Brian A. Seklecki wrote:On Tue, 2006-02-14 at 16:23, Graham Dunn wrote:Hi,The environment: ma21cab5# uname -a FreeBSD ma21cab5.inscriber.local 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #0: Mon Mar 28 19:24:46 EST 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 relevant bit of bacula-sd.conf: Device { Name = A500C Media Type = AIT2 Archive Device = /dev/nsa0 # Normal archive device Autochanger = yes Changer Device = /dev/ch0 Changer Command = "/usr/local/sbin/chio-bacula %c %o %S %a %d" AutomaticMount = yes; AlwaysOpen = yes Offline On Unmount = noThe following three fixed my scsi drive on FreeBSD 5.3: Hardware End of Medium = No BSF at EOM = yes TWO EOF = yesThat was the correct incantation :) Just for the archives, under FreeBSD 5.3, the Sony TSL-A500C AIT2 library works properly with the following Device entry in bacula-sd.conf: Device { Name = A500C Media Type = AIT2 Archive Device = /dev/nsa0 # Normal archive device Autochanger = yes Changer Device = /dev/ch0 Changer Command = "/usr/local/sbin/chio-bacula %c %o %S %a %d" AutomaticMount = yes; AlwaysOpen = yes Offline On Unmount = no Hardware End of Medium = no BSF at EOM = yes TWO EOF = yes Backward Space Record = no Backward Space File = no Fast Forward Space File = yes } Thanks, Graham bacula-sd.conf ----------snip------------ # An autochanger device with two drives # Autochanger { Name = Autochanger Device = Powerloader Changer Command = "/usr/local/sbin/mtx-changer %c %o %S %a %d" Changer Device = /dev/pass1 } Device { Name = Powerloader Drive Index = 0 Media Type = LT0-2 Archive Device = /dev/nsa0 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'" # FreeBSD Specific Settings Offline On Unmount = no Hardware End of Medium = no BSF at EOM = yes Backward Space Record = no Fast Forward Space File = no TWO EOF = yes } ----------snip------------ Also, for the changer to work correctly the bacula user requires access to the device, this can be set here:- /etc/devfs.conf ----------snip------------ # Bacula User needs access to the tape library - DannyB - 10/Oct/2005 own pass0 root:bacula perm pass0 0666 own nsa0.0 root:bacula perm nsa0.0 0666 own pass1 root:bacula perm pass1 0666 own ch0 root:bacula perm ch0 0666 ----------snip------------ Obviously you can set access manually but its a pain after a reboot without the above! Hope this helps. Cheers Danny ------------------------------------------------------- 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 Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users |