Hi, On 3/8/2007 1:21 PM, Alex wrote: > ---- Wiadomość Oryginalna ---- > Od: Arno Lehmann > Do: bacula-users@lists.sourceforge.net > Data: 7 marca 2007 21:51 > Temat: Re: [Bacula-users] EXABYTE 110 L autochanger problem > > > Hi, > > > > On 3/7/2007 8:43 PM, Alex wrote: > > > Hi ! > > > > > > I'm trying to run my autochanger (EXABYTE 110L under Mandriva 2007) > with > > > BACULA 2.0.2 but still without any effects. > > > Test by btape seems to be good: > > > > > > /301 Issuing autochanger "loaded" command. > > > Slot 1 loaded. I am going to unload it. > > > 3302 Issuing autochanger "unload 1 0" command. > > > unload status=OK 0 > > > 3303 Issuing autochanger "load 1 0" command. > > > 3303 Autochanger "load 1 0" status is OK. > > > 07-mar 21:25 btape: 3301 Issuing autochanger "loaded? drive 0" > command. > > > 07-mar 21:25 btape: 3302 Autochanger "loaded? drive 0", result is > Slot 1. > > > btape: btape.c:368 open device "Driv1" (/dev/nst0): OK > > > btape: btape.c:1235 Rewound "Driv1" (/dev/nst0) > > > btape: btape.c:1242 Wrote EOF to "Driv1" (/dev/nst0)/ > > > > > > /The test autochanger worked!! > > > > > > /but I can't still use in bconsole "update slots": > > > > > > *update slots > > > > > > > > > /Automatically selected Catalog: MyCatalog > > > Using Catalog "MyCatalog" > > > Automatically selected Storage: Drive-1 > > > Connecting to Storage daemon Drive-1 at localhost:9103 ... > > > 3306 Issuing autochanger "slots" command. > > > Device "Drive-1" has 0 slots. > > > > This looks like the mtx-changer script doesn't report the number of > slots. > > > > What happens if you run mtx-changer on the command line (as a user that > > can access the device!) like this: > > './mtx-changer /dev/sg2 slots' > > > > If that doesn't report anything, or a "0", you should have a close look > > at what the script does. > > > > It might be a permissions problem. > > > > Arno > > I've checked it from two possible accounts. Everything seems to be O.K. > but the autochanger still can't read the slots : > > /[EMAIL PROTECTED]/ <mailto:[EMAIL PROTECTED]>/ bacula]$ ./mtx-changer > /dev/sg2 slots > 10 > / > > What should be wronge else ??
Hmm... I suggest you enable debug output for the SD by starting the SD like 'bacula-sd -c /etc/bacula/bacula-sd.conf -d 400 -f -v'. This will run the SD in the foreground and produce lots of debug output. Then, start ONE job to use the tape changer and see what that produces when a tape nees to be changed. You could then post the relevant part of the output here. Alternatively, you could add some debug output to mtx-changer and redirect that to some log file. By the way - I notice something in the configuration only now... see below. For example I have the following above the first test clause: echo "------" >>/var/log/mtx-changer.log echo "Called with $@ at `date`" >>/var/log/mtx-changer.log and this (on one line) echo "Doing mtx -f $ctl -- to get count of slots at `date`" >>/var/log/mtx-changer.log after the "slots)" in the final case switch. Then I find "Doing mtx -f /dev/sg7 -- to get count of slots at Thu Mar 8 22:17:19 CET 2007" in the log file while I'm running a job spanning tapes. You could easily add the raw output from the mtx command to the log to see if the output, for some reason doesn't fit to what the awk expects. > Alex > > > > > > > No slots in changer to scan./ > > > > > > My sd config: > > > > > > /Autochanger { > > > Name = "Drive-1" > > > Device = Driv1 > > > Changer Device = /dev/sg2 > > > Changer Command = "/etc/bacula/mtx-changer %c %o %S /dev/nst0 0" This line above - it's probably better to write Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" so that you don't have to keep the configuration current in two places. I don't think this is related to the problem you have as the information should be correct for you. Arno -- IT-Service Lehmann [EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- 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