----- Original Message -----From: "Arno Lehmann" <[EMAIL PROTECTED]>To: 
<bacula-users@lists.sourceforge.net>Sent: Thursday, March 08, 2007 10:39 
PMSubject: Re: [Bacula-users] EXABYTE 110 L autochanger problem> 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.>I've done it in firt way.After sending command "update 
slots" in a bconsole I got the messages:localhost-sd: bnet.c:1154 who=client 
host=x.x.x.x port=36643
localhost-sd: dircmd.c:169 Conn: Hello Director localhost-dir calling
localhost-sd: dircmd.c:178 Start Dir Job
localhost-sd: cram-md5.c:71 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
localhost-sd: cram-md5.c:131 cram-get: auth cram-md5 <[EMAIL PROTECTED]> 
ssl=0
localhost-sd: cram-md5.c:150 sending resp to challenge: gk4++z/Yi7/9dk/IbTl1mD
localhost-sd: dircmd.c:199 Message channel init completed.
localhost-sd: dircmd.c:206 <dird: autochanger drives Drive-1
localhost-sd: dircmd.c:220 Do command: autochanger
localhost-sd: dircmd.c:562 Try changer device Driv1
localhost-sd: dircmd.c:567 Device Drive-1 could not be opened. Skipped
localhost-sd: pythonlib.c:237 No startup module.
localhost-sd: mem_pool.c:376 garbage collect memory pool
localhost-sd: bnet.c:1154 who=client host=x.x.x.x port=36643
localhost-sd: dircmd.c:169 Conn: Hello Director localhost-dir calling
localhost-sd: dircmd.c:178 Start Dir Job
localhost-sd: cram-md5.c:71 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
localhost-sd: cram-md5.c:131 cram-get: auth cram-md5 <[EMAIL PROTECTED]> 
ssl=0
localhost-sd: cram-md5.c:150 sending resp to challenge: ZE/2yw0NL7hTZ6+H62cuwD
localhost-sd: dircmd.c:199 Message channel init completed.
localhost-sd: dircmd.c:206 <dird: autochanger slots Drive-1
localhost-sd: dircmd.c:220 Do command: autochanger
localhost-sd: dircmd.c:562 Try changer device Driv1
localhost-sd: dircmd.c:567 Device Drive-1 could not be opened. Skipped
localhost-sd: pythonlib.c:237 No startup module.
localhost-sd: mem_pool.c:376 garbage collect memory pool
Tell me if I'm wrong, but the problems in the not opened drive ?>> 
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.demailto:[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.>I've done it in firt way.After sending command "update 
slots" in a bconsole I got the messages:localhost-sd: bnet.c:1154 who=client 
host=x.x.x.x port=36643
localhost-sd: dircmd.c:169 Conn: Hello Director localhost-dir calling
localhost-sd: dircmd.c:178 Start Dir Job
localhost-sd: cram-md5.c:71 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
localhost-sd: cram-md5.c:131 cram-get: auth cram-md5 <[EMAIL PROTECTED]> 
ssl=0
localhost-sd: cram-md5.c:150 sending resp to challenge: gk4++z/Yi7/9dk/IbTl1mD
localhost-sd: dircmd.c:199 Message channel init completed.
localhost-sd: dircmd.c:206 <dird: autochanger drives Drive-1
localhost-sd: dircmd.c:220 Do command: autochanger
localhost-sd: dircmd.c:562 Try changer device Driv1
localhost-sd: dircmd.c:567 Device Drive-1 could not be opened. Skipped
localhost-sd: pythonlib.c:237 No startup module.
localhost-sd: mem_pool.c:376 garbage collect memory pool
localhost-sd: bnet.c:1154 who=client host=x.x.x.x port=36643
localhost-sd: dircmd.c:169 Conn: Hello Director localhost-dir calling
localhost-sd: dircmd.c:178 Start Dir Job
localhost-sd: cram-md5.c:71 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
localhost-sd: cram-md5.c:131 cram-get: auth cram-md5 <[EMAIL PROTECTED]> 
ssl=0
localhost-sd: cram-md5.c:150 sending resp to challenge: ZE/2yw0NL7hTZ6+H62cuwD
localhost-sd: dircmd.c:199 Message channel init completed.
localhost-sd: dircmd.c:206 <dird: autochanger slots Drive-1
localhost-sd: dircmd.c:220 Do command: autochanger
localhost-sd: dircmd.c:562 Try changer device Driv1
localhost-sd: dircmd.c:567 Device Drive-1 could not be opened. Skipped
localhost-sd: pythonlib.c:237 No startup module.
localhost-sd: mem_pool.c:376 garbage collect memory pool
Tell me if I'm wrong, but the problems in the not opened drive ?>> 
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.dehttp://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=DEVDEVhttp://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-usershttps://lists.sourceforge.net/lists/listinfo/bacula-users>
 
-------------------------------------------------------------------------
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

Reply via email to