I just fixed this for 1.39.X and 1.40.x. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Wilson Sent: Tuesday, October 03, 2006 1:45 PM To: bacula-users@lists.sourceforge.net Subject: [Bacula-users] Bacula unable to use autochanger during testing with btape's fill command
Hello, I've installed Bacula 1.38.11 on one of my servers. I'm running Red Hat Enterprise 3, using an Overland Power Loader with a single LT02 drive. Following the suggested test instructions here - http://www.bacula.org/dev-manual/Testing_Your_Tape_Drive.html#_ChapterStart2 7 I am using btape's fill command with two volumes. The first volume fills fine. However, when it is full, the autochanger fails to change volumes. I get the following - 02-Oct 12:37 btape: End of Volume "TestVolume1" at 308:7287 on device "Drive-1" (/dev/nst0). Write of 64512 bytes got -1. 02-Oct 12:37 btape: Re-read of last block succeeded. btape: btape.c:2301 Last block at: 308:7286 this_dev_block_num=7287 btape: btape.c:2335 End of tape 308:0. VolumeCapacity=212,037,168,200. Write rate = 26016.8 KB/s 02-Oct 12:37 btape: End of medium on Volume "TestVolume1" Bytes=212,037,168,200 Blocks=3,286,787 at 02-Oct-2006 12:37. 02-Oct 12:38 btape: Invalid slot=0 defined, cannot autoload Volume. Mount blank Volume on device "Drive-1" (/dev/nst0) and press return when ready: I have the mtx-changer script, which works when I run it from the command line. I have the autochanger configured within Bacula's bacula-sd.conf - Device { Name = Drive-1 # Drive Index = 0 Media Type = LTO-2 Archive Device = /dev/nst0 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'" } Autochanger { Name = Changer-1 Device = Drive-1 Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" Changer Device = /dev/sg0 } Further, here is a snap shot of the tape drive's status before running btape's fill - Storage Changer /dev/sg0:1 Drives, 16 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 15 Loaded):VolumeTag = NAV520L2 Storage Element 1:Full :VolumeTag=NAV522L2 Storage Element 2:Empty Storage Element 3:Empty Storage Element 4:Empty Storage Element 5:Full :VolumeTag=CLN421L1 Storage Element 6:Full :VolumeTag=NAV521L2 Storage Element 7:Full :VolumeTag=NAV523L2 Storage Element 8:Empty Storage Element 9:Empty Storage Element 10:Empty Storage Element 11:Empty Storage Element 12:Empty Storage Element 13:Empty Storage Element 14:Empty Storage Element 15:Empty Storage Element 16:Empty I would greatly appreciate any insight as to why Bacula is unable to use the autochanger ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users