If i use :
#
# 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
}

Th Sd start
But i want to go from Amanda to bacula for this feauture and some other.

Any help

----- Original Message ----- From: "Arno Lehmann" <[EMAIL PROTECTED]>
To: <bacula-users@lists.sourceforge.net>
Sent: Tuesday, January 24, 2006 1:45 PM
Subject: Re: [Bacula-users] Problem to start Sd


Hello,

I followed your discussion without any useful ideas, but now...

On 1/24/2006 5:44 PM, Bissot_j wrote:
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

... what happens if you comment out the above line?

 Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"

(and this one, too, just to be on the safe side).

}

It might be that this helps.

Arno


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


--
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
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