Sorry to come into the conversation late, I may have missed some of the more obvious thoughts, but:

Autochanger {
        Name = Autochanger
        Device = Drive-1
        Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
        Changer Device = /dev/sg2
        }

Have you tried changing the names of the Autochanger and the tape device? Calling your Autochanger err... "Autochanger" might be the culprit (maybe not... it just looks "odd").



Bissot_j wrote:
I dont think something else in the conf broke it.
because it workl fine when i remove autochanger section :(

So now what next ?
what i can do to be able use the autochanger ?
in the : mtx-changer %c %o %S %a %d
what is %c %o %S %a %d ?

the mtx-changer can be the prob , i compile MTX i will try to replace
mtx-changer by mtx but need to know what the arg mean.

thanks a lot

----- Original Message ----- From: "Martin Simmons" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <bacula-users@lists.sourceforge.net>
Sent: Friday, January 27, 2006 6:46 AM
Subject: Re: [Bacula-users] Problem to start Sd


On Thu, 26 Jan 2006 08:42:07 -0500, "Bissot_j" <[EMAIL PROTECTED]> said:

----- Original Message ----- From: "Martin Simmons" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <bacula-users@lists.sourceforge.net>
Sent: Wednesday, January 25, 2006 4:33 PM
Subject: Re: [Bacula-users] Problem to start Sd


>>>>>> On Tue, 24 Jan 2006 11:44:50 -0500, "Bissot_j" >>>>>> <[EMAIL PROTECTED]>
>>>>>> said:
>>
>> Hi Martin,
>>
>> Thanks for your help.
>>
>> When i comment the Autochanger section in the SD conf it works.
>> so i am a bit lost on why my autochanger section crash the sd daemon
>>
>> here is my sd conf who cause the problems :
>> #
>> # Devices supported by this Storage daemon
>> # To connect, the Director's bacula-dir.conf must have the
>> #  same Name and MediaType.
>> #
>> Autochanger {
>>   Name = Autochanger
>>   Device = Drive-1
>>   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
>>   Changer Device = /dev/sg2
>> }
>>
>> Device {
>>   Name = "Drive-1"
>>   Media Type = "8mm"
>>   Archive Device = /dev/nst0
>>   Hardware end of medium = No;
>>   AutomaticMount = yes;               # when device opened, read it
>>   AlwaysOpen = Yes;
>>   RemovableMedia = yes;
>>   RandomAccess = no;
>>  AutoChanger = yes
>>   Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
>> }
>
> That is strange -- I tried your settings above in 1.38.5 on FreeBSD 4.9
> and it
> started without problems.  Maybe a compiler bug?
>
> __Martin

Yes very strange.
is the way i declare my autochanger device is wrong ?

It looks OK to me, unless you have somethign else in the conf that breaks it.


what sort of compiler bugs you are thinking about.

Nothing in particular, but I don't see how it can crash on the line that gdb
reported.

__Martin


thanks

>
>
>>
>>
>> thanks
>> ----- Original Message ----- >> From: "Martin Simmons" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Cc: <bacula-users@lists.sourceforge.net>
>> Sent: Tuesday, January 24, 2006 11:27 AM
>> Subject: Re: [Bacula-users] Problem to start Sd
>>
>>
>> >>>>>> On Mon, 23 Jan 2006 07:58:38 -0500, "Bissot_j"
>> >>>>>> <[EMAIL PROTECTED]>
>> >>>>>> said:
>> >>
>> >> Hi
>> >> thanks, i run  bacula-sd  under debugger and got this ouput
>> >> someone can help me ?
>> >> ===========================================================================
>> >> gdb ./bacula-sdThis GDB was configured as
>> >> "i586-mandriva-linux-gnu"...Using
>> >> host libthread_db library "/lib/tls/libthread_db.so.1".
>> >>
>> >> (gdb) run -s -f -d 99 -c /etc/bacula/bacula-sd.conf
>> >> Starting program: /usr/sbin/bacula-sd -s -f -d 99 -c
>> >> /etc/bacula/bacula-sd.conf
>> >> Reading symbols from shared object read from target memory...done.
>> >> Loaded system supplied DSO at 0xffffe000
>> >> [Thread debugging using libthread_db enabled]
>> >> [New Thread -1213241664 (LWP 23855)]
>> >> bacula-sd: stored_conf.c:613 Inserting director res: cow-mon
>> >>
>> >> Program received signal SIGSEGV, Segmentation fault.
>> >> [Switching to Thread -1213241664 (LWP 23855)]
>> >> 0x0804dff4 in init_autochangers () at autochanger.c:48
>> >> 48               if (!device->changer_command &&
>> >> changer->changer_command) {
>> >> Current language:  auto; currently c++
>> >> (gdb) thread apply all bt
>> >>
>> >> Thread 1 (Thread -1213241664 (LWP 23855)):
>> >> #0  0x0804dff4 in init_autochangers () at autochanger.c:48
>> >> #1  0x0804c170 in main (argc=Variable "argc" is not available.
>> >> ) at stored.c:399
>> >> #2  0xb7b0ce40 in __libc_start_main () from /lib/tls/libc.so.6
>> >> #3  0x0804b841 in _start () at ../sysdeps/i386/elf/start.S:119
>> >> (gdb)
>> >
>> > I don't see how it can crash there really, but it might be problem >> > with
>> > your
>> > configuration.  Can you post your bacula-sd.conf?
>> >
>> > Also, can you redo the above and also post the output of
>> >
>> > disass init_autochangers
>> >
>> > at the gdb prompt when it crashes?
>> >
>> > __Martin



-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to