Re: [Bacula-users] Problems with storage device not being seen
I found the problem. The director had the tape devices defined with the 'Autochanger' commented. The storage director had the 'Autochanger' uncommented and set to 'yes'. Commented out the 'Autochanger' in the sd and it works just fine. See I knew it was easy. Jerry Lowry wrote: > I am setting up a new installation and I am having difficulty with the > tape drive not being seen. Here is the error message: > > Job=TapeBackup.2010-03-11_14.34.23_05 > 11-Mar 14:34 distress-dir JobId 20: Fatal error: > Storage daemon didn't accept Device "Drive-2" command. > 11-Mar 14:34 distress-dir JobId 20: Error: Bacula distress-dir 5.0.1 > (24Feb10): 11-Mar-2010 14:34:26 > Build OS: x86_64-unknown-linux-gnu redhat > JobId: 20 > Job:TapeBackup.2010-03-11_14.34.23_05 > Backup Level: Full (upgraded from Incremental) > Client: "distress-fd" 5.0.1 (24Feb10) > x86_64-unknown-linux-gnu,redhat, > FileSet:"Tape Set" 2010-03-10 23:05:00 > Pool: "Default" (From Job resource) > Catalog:"MyCatalog" (From Client resource) > Storage:"Tape-Left" (From Job resource) > Scheduled time: 11-Mar-2010 14:34:14 > > - > I have check both the dir-conf and the sd-conf and either I am blind due > to the length of time I've spent on it or I am just missing it. > Probably an easy fix. > > Here are the snapshots of the config files. > DIR.conf > # Definition of DLT tape storage device > Storage { > Name = Tape-Right # Do not use "localhost" here > Address = distress # N.B. Use a fully qualified name here > SDPort = 9103 > Password = "" # password for Storage daemon > Device = Drive-1 # must be same as Device in Storage daemon > Media Type = DLT-V4 # must be same as MediaType in Storage daemon > # Autochanger = yes # enable for autochanger device > } > > # Definition of DLT tape storage device > Storage { > Name = Tape-Left # Do not use "localhost" here > Address = distress # N.B. Use a fully qualified name here > SDPort = 9103 > Password = "" # password for Storage daemon > Device = Drive-2 # must be same as Device in Storage daemon > Media Type = DLT-V4 # must be same as MediaType in Storage daemon > # Autochanger = yes # enable for autochanger device > } > SD.conf > Device { > Name = Drive-1 # > Drive Index = 0 > Media Type = DLT-V4 > Archive Device = /dev/nst0 > AutomaticMount = no; # when device opened, read it > AlwaysOpen = yes; > RemovableMedia = yes; > RandomAccess = no; > AutoChanger = yes > } > Device { > Name = Drive-2 # > Drive Index = 1 > Media Type = DLT-V4 > Archive Device = /dev/nst1 > AutomaticMount = no; # when device opened, read it > AlwaysOpen = yes; > RemovableMedia = yes; > RandomAccess = no; > AutoChanger = yes > } > > also get a GDB traceback each time the job errors: > > [?1034h[Thread debugging using libthread_db enabled] > [New Thread 0x7fbb1e655710 (LWP 22578)] > [New Thread 0x7fbb1f056710 (LWP 22530)] > 0x003666cd6ca3 in select () from /lib64/libc.so.6 > $1 = '\000' > $2 = 0xa16058 "bacula-sd" > $3 = 0xa16098 "/usr/bacula/bin/bacula-sd" > $4 = 0x0 > $5 = 0x7fbb258cbd9e "5.0.1 (24 February 2010)" > $6 = 0x7fbb258cbdb7 "x86_64-unknown-linux-gnu" > $7 = 0x7fbb258cbdd0 "redhat" > $8 = 0x7fbb258cba7c "" > $9 = "distress", '\000' > #0 0x003666cd6ca3 in select () from /lib64/libc.so.6 > #1 0x7fbb258a0ad4 in bnet_thread_server (addrs=, > max_clients=, client_wq=, > handle_client_request=) at bnet_server.c:161 > #2 0x0040763e in main (argc=, > argv=) at stored.c:312 > > Thread 3 (Thread 0x7fbb1f056710 (LWP 22530)): > #0 0x00366740b3b9 in pthread_cond_timedwait@@GLIBC_2.3.2 () >from /lib64/libpthread.so.0 > #1 0x7fbb258c402c in watchdog_thread (arg=) > at watchdog.c:308 > #2 0x003667406a3a in start_thread () from /lib64/libpthread.so.0 > #3 0x003666cddf3d in clone () from /lib64/libc.so.6 > #4 0x in ?? () > > Thread 2 (Thread 0x7fbb1e655710 (LWP 22578)): > #0 0x00366740eb3d in waitpid () from /lib64/libpthread.so.0 > #1 0x7fbb258bb7ad in signal_handler (sig=11) at signal.c:229 > #2 > #3 0x00431bb3 in is_vol_in_autochanger (vol=, > rctx=) at reserve.c:389 > #4 find_suitable_device_for_job (vol=, > rctx=) at reserve.c:456 > #5 0x0043269a in use_storage_cmd (jcr=) > at reserve.c:317 > #6 use_cmd (jcr=) at reserve.c:71 > #7 0x0041e80f in handle_connection_request (arg=0xa1aad8) > at dircmd.c:233 > #8 0x7fbb258c44a9 in workq_server (arg=0x651e20) at workq.c:346 > #9 0x003667406a3a in start_thread () from /lib64/libpthread.so.0 > #10 0x003666cddf3d in clone () from /lib64/libc.so.6 > #11 0x in ?? () > > Thread 1 (Thread 0x7fbb25889720 (LWP 22522)): > #0 0x003666cd6ca3 in select () from /lib64/libc.so.6 > #1 0x7fbb258a0ad4 in bnet_thread_server (addrs=,
[Bacula-users] Problems with storage device not being seen
I am setting up a new installation and I am having difficulty with the tape drive not being seen. Here is the error message: Job=TapeBackup.2010-03-11_14.34.23_05 11-Mar 14:34 distress-dir JobId 20: Fatal error: Storage daemon didn't accept Device "Drive-2" command. 11-Mar 14:34 distress-dir JobId 20: Error: Bacula distress-dir 5.0.1 (24Feb10): 11-Mar-2010 14:34:26 Build OS: x86_64-unknown-linux-gnu redhat JobId: 20 Job:TapeBackup.2010-03-11_14.34.23_05 Backup Level: Full (upgraded from Incremental) Client: "distress-fd" 5.0.1 (24Feb10) x86_64-unknown-linux-gnu,redhat, FileSet:"Tape Set" 2010-03-10 23:05:00 Pool: "Default" (From Job resource) Catalog:"MyCatalog" (From Client resource) Storage:"Tape-Left" (From Job resource) Scheduled time: 11-Mar-2010 14:34:14 - I have check both the dir-conf and the sd-conf and either I am blind due to the length of time I've spent on it or I am just missing it. Probably an easy fix. Here are the snapshots of the config files. DIR.conf # Definition of DLT tape storage device Storage { Name = Tape-Right # Do not use "localhost" here Address = distress # N.B. Use a fully qualified name here SDPort = 9103 Password = "" # password for Storage daemon Device = Drive-1 # must be same as Device in Storage daemon Media Type = DLT-V4 # must be same as MediaType in Storage daemon # Autochanger = yes # enable for autochanger device } # Definition of DLT tape storage device Storage { Name = Tape-Left # Do not use "localhost" here Address = distress # N.B. Use a fully qualified name here SDPort = 9103 Password = "" # password for Storage daemon Device = Drive-2 # must be same as Device in Storage daemon Media Type = DLT-V4 # must be same as MediaType in Storage daemon # Autochanger = yes # enable for autochanger device } SD.conf Device { Name = Drive-1 # Drive Index = 0 Media Type = DLT-V4 Archive Device = /dev/nst0 AutomaticMount = no; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; AutoChanger = yes } Device { Name = Drive-2 # Drive Index = 1 Media Type = DLT-V4 Archive Device = /dev/nst1 AutomaticMount = no; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; AutoChanger = yes } also get a GDB traceback each time the job errors: [?1034h[Thread debugging using libthread_db enabled] [New Thread 0x7fbb1e655710 (LWP 22578)] [New Thread 0x7fbb1f056710 (LWP 22530)] 0x003666cd6ca3 in select () from /lib64/libc.so.6 $1 = '\000' $2 = 0xa16058 "bacula-sd" $3 = 0xa16098 "/usr/bacula/bin/bacula-sd" $4 = 0x0 $5 = 0x7fbb258cbd9e "5.0.1 (24 February 2010)" $6 = 0x7fbb258cbdb7 "x86_64-unknown-linux-gnu" $7 = 0x7fbb258cbdd0 "redhat" $8 = 0x7fbb258cba7c "" $9 = "distress", '\000' #0 0x003666cd6ca3 in select () from /lib64/libc.so.6 #1 0x7fbb258a0ad4 in bnet_thread_server (addrs=, max_clients=, client_wq=, handle_client_request=) at bnet_server.c:161 #2 0x0040763e in main (argc=, argv=) at stored.c:312 Thread 3 (Thread 0x7fbb1f056710 (LWP 22530)): #0 0x00366740b3b9 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x7fbb258c402c in watchdog_thread (arg=) at watchdog.c:308 #2 0x003667406a3a in start_thread () from /lib64/libpthread.so.0 #3 0x003666cddf3d in clone () from /lib64/libc.so.6 #4 0x in ?? () Thread 2 (Thread 0x7fbb1e655710 (LWP 22578)): #0 0x00366740eb3d in waitpid () from /lib64/libpthread.so.0 #1 0x7fbb258bb7ad in signal_handler (sig=11) at signal.c:229 #2 #3 0x00431bb3 in is_vol_in_autochanger (vol=, rctx=) at reserve.c:389 #4 find_suitable_device_for_job (vol=, rctx=) at reserve.c:456 #5 0x0043269a in use_storage_cmd (jcr=) at reserve.c:317 #6 use_cmd (jcr=) at reserve.c:71 #7 0x0041e80f in handle_connection_request (arg=0xa1aad8) at dircmd.c:233 #8 0x7fbb258c44a9 in workq_server (arg=0x651e20) at workq.c:346 #9 0x003667406a3a in start_thread () from /lib64/libpthread.so.0 #10 0x003666cddf3d in clone () from /lib64/libc.so.6 #11 0x in ?? () Thread 1 (Thread 0x7fbb25889720 (LWP 22522)): #0 0x003666cd6ca3 in select () from /lib64/libc.so.6 #1 0x7fbb258a0ad4 in bnet_thread_server (addrs=, max_clients=, client_wq=, handle_client_request=) at bnet_server.c:161 #2 0x0040763e in main (argc=, argv=) at stored.c:312 #0 0x003666cd6ca3 in select () from /lib64/libc.so.6 No symbol table info available. #1 0x7fbb258a0ad4 in bnet_thread_server (addrs=, max_clients=, client_wq=, handle_client_request=) at bnet_server.c:161 161 if ((stat = select(maxfd + 1, &sockset, NULL, NULL, NULL)) < 0) { Current language: auto The current source language is "auto; currently c