I am setting up a new installation using 1.38.3 built from src.rpm on a Fedora 3 system. The btape program finds the autochanger and it's slots OK. The mtx-changer script does as well if I use it manually (mtx-changer /dev/sg4 slots which correctly returns "30"). But bconsole fails every time. The message I get back is:
Connecting to Director test:9101 1000 OK: test-dir Version: 1.38.3 (04 January 2006) Enter a period to cancel a command. *update slots Using default Catalog name=MyCatalog DB=bacula Automatically selected Storage: AutoPak Enter autochanger drive[0]: Connecting to Storage daemon AutoPak at 192.168.0.7:9103 ... 3306 Issuing autochanger "slots" command. Device "AutoPak" has 0 slots. No slots in changer to scan. The relevant section from bacula-sd.conf is : # # An autochanger device with two drives # Autochanger { Name = AutoPak Device = Drive-1, Drive-2 Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" Changer Device = /dev/sg4 } Device { Name = Drive-1 # Drive Index = 0 Media Type = VXA1 Archive Device = /dev/nst1 Changer Device = /dev/sg4 AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; AutoChanger = yes Autoselect = yes # Enable the Alert command only if you have the mtx package loaded Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" } Device { Name = Drive-2 # Drive Index = 1 Media Type = VXA1 Archive Device = /dev/nst2 Changer Device = /dev/sg4 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'" } and from the director: # Definition of Ecrix VXA Tape library Storage { Name = "AutoPak" Address = 192.168.0.7 SDPort = 9103 Password = "" MediaType = VXA1 Device = AutoPak Autochanger = yes } The btape autochanger test succeeded. It seems as if the bconsole application is not doing a correct read from the external mtx-changer script. So I edited the mtx-changer script to write to a temp file when the slots command is run. Nothing got written. So I added a line to write when the script gets opened but nothing was written. So it looks like the mtx-changer is not being touched. -- James P. Kinney III \Changing the mobile computing world/ CEO & Director of Engineering \ one Linux user / Local Net Solutions,LLC \ at a time. / 770-493-8244 \.___________________________./ http://www.localnetsolutions.com GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics) <[EMAIL PROTECTED]> Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
signature.asc
Description: This is a digitally signed message part