On Saturday 14 January 2006 15:07, James P. Kinney III wrote: > 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.
More likely, there is a problem with paths (i.e. Bacula is using a different path from the one you are using), or a problem of permissions ... -- Best regards, Kern ("> /\ V_V ------------------------------------------------------- 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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users