Bacula-users

Re: [Bacula-users] Storage daemon didn't accept Device "VersBande" command.

2009-06-03 04:38:47
Subject: Re: [Bacula-users] Storage daemon didn't accept Device "VersBande" command.
From: "jc.duss59 AT laposte DOT net" <jc.duss59 AT laposte DOT net>
To: Bruno Friedmann <bruno AT ioda-net DOT ch>
Date: Wed, 3 Jun 2009 10:32:19 +0200 (CEST)

Hi Bruno,

Thanks for your feedback.

Yes this is a single drive.
Label and relabel works fine. Btape test was also working fine.

I comment the line you mention in bacula-sd.conf on Device section :
#Drive Index = 0
#AutoChanger = yes

And then it works fine!

Excellent.

Thanks for your reply once again!





> Message du 03/06/09 09:43
> De : "Bruno Friedmann"
> A :
> Copie à : bacula-users AT lists.sourceforge DOT net
> Objet : Re: [Bacula-users] Storage daemon didn't accept Device "VersBande" command.
>
> Hi Jc. Just to be clear. Have you a tape library or just a single drive ? If you have just a drive ( like your configuration /dev/nst0 let suppose ) I would remove the drive index in your configuration Device { Name = VersBande # >>>>>>>>>>>>>>>>>>>>>>> Drive Index = 0 Media Type = LTO4 Archive Device = /dev/nst0 AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; >>>>>>>>>>>>>>>>>>>>>> AutoChanger = yes; ? LabelMedia = yes; } After reviewing carefully your configuration. I would make some basic tests Did a label / relabel work with the device ? If you have a tape library I think you have to configure it with the mtx changer before use. Also bacula tests are usefull to ensure you have a working build & config. jc.duss59 AT laposte DOT net wrote: > Dear All bacula users, > > Here is some more information about my problem. After reading this : > http://www.mail-archive.com/bacula-users AT lists.sourceforge DOT net/msg10009.html > I try compiling it with the -O0 the source.. and I still get the same error. > > Here are more information from btraceback : > > [Thread debugging using libthread_db enabled] > [New Thread 0x7fb61dec06f0 (LWP 24300)] > [New Thread 0x41399950 (LWP 24369)] > [New Thread 0x41b9a950 (LWP 24303)] > 0x00007fb61ce4dce2 in select () from /lib/libc.so.6 > $1 = "LTO4", '\0' > $2 = 0x1060078 "bacula-sd" > $3 = 0x10600b8 "/usr/sbin/bacula-sd" > $4 = 0x0 > $5 = 0x472557 "2.4.4 (28 December 2008)" > $6 = 0x472570 "x86_64-unknown-linux-gnu" > $7 = 0x472589 "debian" > $8 = 0x472590 "5.0.1" > #0 0x00007fb61ce4dce2 in select () from /lib/libc.so.6 > #1 0x000000000043e7b0 in bnet_thread_server (addrs=0x1061d88, max_clients=41, client_wq=0x682640, > handle_client_request=0x41d5c8 ) at bnet_server.c:161 > #2 0x00000000004051c3 in main (argc=0, argv=0x7fff25ecd748) at stored.c:265 > > Thread 3 (Thread 0x41b9a950 (LWP 24303)): > #0 0x00007fb61d888fad in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 > #1 0x000000000045b5f6 in watchdog_thread (arg=0x0) at watchdog.c:307 > #2 0x00007fb61d884fc7 in start_thread () from /lib/libpthread.so.0 > #3 0x00007fb61ce545ad in clone () from /lib/libc.so.6 > #4 0x0000000000000000 in ?? () > > Thread 2 (Thread 0x41399950 (LWP 24369)): > #0 0x00007fb61d88c5ef in waitpid () from /lib/libpthread.so.0 > #1 0x0000000000459021 in signal_handler (sig=11) at signal.c:167 > #2 > #3 0x00000000004302ca in is_vol_in_autochanger (rctx=@0x41398c50, vol=0x1068758) at reserve.c:890 > #4 0x000000000043398e in find_suitable_device_for_job (jcr=0x1066178, rctx=@0x41398c50) at reserve.c:987 > #5 0x0000000000434681 in use_storage_cmd (jcr=0x1066178) at reserve.c:815 > #6 0x0000000000434b96 in use_cmd (jcr=0x1066178) at reserve.c:75 > #7 0x000000000041db94 in handle_connection_request (arg=0x1066848) at dircmd.c:232 > #8 0x000000000045bfa4 in workq_server (arg=0x682640) at workq.c:357 > #9 0x00007fb61d884fc7 in start_thread () from /lib/libpthread.so.0 > #10 0x00007fb61ce545ad in clone () from /lib/libc.so.6 > #11 0x0000000000000000 in ?? () > > Thread 1 (Thread 0x7fb61dec06f0 (LWP 24300)): > #0 0x00007fb61ce4dce2 in select () from /lib/libc.so.6 > #1 0x000000000043e7b0 in bnet_thread_server (addrs=0x1061d88, max_clients=41, client_wq=0x682640, > handle_client_request=0x41d5c8 ) at bnet_server.c:161 > #2 0x00000000004051c3 in main (argc=0, argv=0x7fff25ecd748) at stored.c:265 > #0 0x00007fb61ce4dce2 in select () from /lib/libc.so.6 > #0 0x00007fb61ce4dce2 in select () from /lib/libc.so.6 > No symbol table info available. > #1 0x000000000043e7b0 in bnet_thread_server (addrs=0x1061d88, max_clients=41, client_wq=0x682640, > handle_client_request=0x41d5c8 ) at bnet_server.c:161 > 161 if ((stat = select(maxfd + 1, &sockset, NULL, NULL, NULL)) < 0) { > Current language: auto; currently c++ > maxfd = 5 > sockset = {fds_bits = {32, 0 }} > newsockfd = 6 > stat = 0 > clilen = 16 > cli_addr = {sa_family = 2, sa_data = "¼×\n\001\033(\000\000\000\000\000\000\000"} > tlog = 0 > turnon = 1 > p = (IPADDR *) 0x0 > fd_ptr = (s_sockfd *) 0x0 > buf = "10.1.27.40\000%ÿ\177", '\0' , "ÊáË\035¶\177\000\000\005\000\000\000ÿ\177\000\000\000\000\000\000\000\000\000\000 ×ì%ÿ\177\000\000\000\000\000\000\000\000\000\000\220ý\207\035¶\177\000\000HÚì%ÿ\177\000\000\200Õì%ÿ\177\000\000\022@Ì\035¶\177\000\000 \206\001\000\000\000\000\000ÿÿÿÿÿÿÿÿ" > sockfds = { = {}, head = 0x7fff25ecc8f0, tail = 0x7fff25ecc8f0, loffset = 0, num_items = 1} > allbuf = "p/\006\001\000\000\000\000ÐÉì%ÿ\177\000\0000Åì%ÿ\177\000\000\230\006ì\035¶\177\000\000à`\r\035¶\177\000\000É1æ\034\002\000\000\000_nss_files_getho0Éì%ÿ\177\000\000\000\004\000\000\000\000\000\000\001\000\000\000ÿ\177\000\000`]\r\035¶\177\000\000\005\000\000\000\000\000\000\000à'\006\001\000\000\000\000\001\000\000\000\001\000\000\000 \000\000\000\000\000\000\000q\000\000\000\000\000\000\000x#\006\001\000\000\000\000PÊì%ÿ\177\000\000\000;@\000\000\000\000\000 ×ì%ÿ\177", '\0' , "NÃC\000\000\000\000\000à9\r\035¶\177\000\000\2009h\000\000\000\000\000"... > #2 0x00000000004051c3 in main (argc=0, argv=0x7fff25ecd748) at stored.c:265 > 265 &dird_workq, handle_connection_request); > ch = -1 > no_signals = false > test_config = false > thid = 1094293840 > uid = 0x0 > gid = 0x0 > #0 0x0000000000000000 in ?? () > No symbol table info available. > #0 0x0000000000000000 in ?? () > No symbol table info available. > #0 0x0000000000000000 in ?? () > No symbol table info available. > #0 0x0000000000000000 in ?? () > No symbol table info available. > #0 0x0000000000000000 in ?? () > No symbol table info available. > Can someone help me please? > Best Regards to all! > > > > > Message du 28/05/09 12:26 >> De : "jc.duss59 AT laposte DOT net" >> A : bacula-users AT lists.sourceforge DOT net >> Copie à : >> Objet : [Bacula-users] Storage daemon didn't accept Device "VersBande"command. >> >> > Dear all bacula users, > > I get a problem on a x86_64 debian lenny with bacula SD (Version: 2.4.4 (28 December 2008)) installed by apt-get and an IBM LTO4 Ultrium4-H storage device. I can't make backup trough my LTO but backup to a file works fine. > > When I try to launch a backup on it I got the following output : > 28-May 12:42 alibaba JobId 61: BeforeJob: run command "/etc/bacula/scripts/make_catalog_backup bacula bacula bacula" > 28-May 12:42 alibaba JobId 61: Start Backup JobId 61, Job=Job_Backup_vers_LTO.2009-05-28_12.42.16.11 > 28-May 12:42 alibaba JobId 61: Fatal error: > Storage daemon didn't accept Device "VersBande" command. > 28-May 12:42 alibaba JobId 61: Error: Bacula alibaba 2.4.4 (28Dec08): 28-May-2009 12:42:18 > Build OS: x86_64-pc-linux-gnu debian lenny/sid > JobId: 61 > Job: Job_Backup_vers_LTO.2009-05-28_12.42.16.11 > Backup Level: Full > Client: "alibaba" 2.4.4 (28Dec08) x86_64-pc-linux-gnu,debian,lenny/sid > FileSet: "Backup Files" 2009-05-28 12:39:31 > Pool: "Default" (From Job resource) > Storage: "SurBande" (From Job resource) > Scheduled time: 28-May-2009 12:42:15 > Start time: 28-May-2009 12:42:18 > End time: 28-May-2009 12:42:18 > Elapsed time: 0 secs > Priority: 11 > FD Files Written: 0 > SD Files Written: 0 > FD Bytes Written: 0 (0 B) > SD Bytes Written: 0 (0 B) > Rate: 0.0 KB/s > Software Compression: None > VSS: no > Storage Encryption: no > Volume name(s): > Volume Session Id: 1 > Volume Session Time: 1243507271 > Last Volume Bytes: 64,512 (64.51 KB) > Non-fatal FD errors: 0 > SD Errors: 0 > FD termination status: > SD termination status: > Termination: *** Backup Error *** > > > Here is the debug output of bacula-sd : > LTO4: cram-md5.c:73-0 send: auth cram-md5 <1242617274.12435 > LTO4: cram-md5.c:152-0 sending resp to challenge: 5+t7i5/BmiFUZkcloFNFyD > LTO4: dircmd.c:210-0 Message channel init completed. > LTO4: reserve.c:697-0 jid=61 > LTO4: reserve.c:726-0 jid=61 LTO4: reserve.c:743-0 jid=61 Storage=SurBande media_type=LTO4 pool=Default pool_ > LTO4: reserve.c:745-0 jid=61 Device=VersBande > LTO4: reserve.c:921-0 jid=61 PrefMnt=1 exact=1 suitable=0 chgronly=0 > LTO4: reserve.c:933-0 lock volumes > LTO4: reserve.c:944-0 jid=61 duplicate vol list > LTO4: reserve.c:963-0 jid=61 look for vol in vol list > LTO4: reserve.c:975-0 jid=61 vol=Test OK for this job > LTO4: reserve.c:986-0 jid=61 vol=Test is in changer > Kaboom! bacula-sd, LTO4 got signal 11 - Segmentation violation. Attempting trace > Kaboom! exepath=/usr/sbin/ > Calling: /usr/sbin/btraceback /usr/sbin/bacula-sd 3319 > Traceback complete, attempting cleanup ... > > > Here is my bacula-sd.conf file : > Storage { # definition of myself > Name = LTO4 > SDPort = 9103 # Director's port > WorkingDirectory = "/var/lib/bacula" > Pid Directory = "/var/run/bacula" > Maximum Concurrent Jobs = 20 > SDAddress = alibaba > } > Director { > Name = alibaba > Password = "" > } > Device { > Name = VersRepBackup > Media Type = File > Archive Device = /home/backup > LabelMedia = yes > Random Access = yes > AutomaticMount = yes > RemovableMedia = no > AlwaysOpen = no > } > Device { > Name = VersBande # > Drive Index = 0 > Media Type = LTO4 > Archive Device = /dev/nst0 > AutomaticMount = yes; # when device opened, read it > AlwaysOpen = yes; > RemovableMedia = yes; > RandomAccess = no; > AutoChanger = yes; > LabelMedia = yes; > } > > Messages { > Name = Standard > director = alibaba = all > } > > > Here is my bacula-dir.conf : > Director { # define myself > Name = alibaba > DIRport = 9101 # where we listen for UA connections > QueryFile = "/etc/bacula/scripts/query.sql" > WorkingDirectory = "/var/lib/bacula" > PidDirectory = "/var/run/bacula" > Maximum Concurrent Jobs = 1 > Password = "" > # Console password > Messages = Daemon > DirAddress = alibaba > } > JobDefs { > Name = "DefaultJob" > Type = Backup > Level = Incremental > Client = alibaba > FileSet = "Full Set" > Schedule = "WeeklyCycle" > Storage = File > Messages = Standard > Pool = Default > Priority = 10 > } > JobDefs { > Name = "VersFicWeekly" > Type = Backup > Level = Full > Client = alibaba > FileSet = "Backup Files" > Schedule = "WeeklyCycle" > Storage = File > Messages = Standard > Pool = Default > Priority = 10 > } > JobDefs { > Name = "VersBandeWeekly" > Type = Backup > Level = Full > Client = alibaba > FileSet = "Backup Files" > Schedule = "WeeklyCycle" > Storage = "SurBande" > Messages = Standard > Pool = Default > Priority = 10 > } > Job { > Name = "Client1" > JobDefs = "DefaultJob" > Write Bootstrap = "/var/lib/bacula/Client1.bsr" > } > Job { > Name = "BackupCatalog" > JobDefs = "DefaultJob" > Level = Full > FileSet="Catalog" > Schedule = "WeeklyCycleAfterBackup" > RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup bacula bacula bacula" > RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup" > Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr" > Priority = 11 # run after main backup > } > Job { > Name = "RestoreFiles" > Type = Restore > Client= alibaba > FileSet="Full Set" > Storage = File > Pool = Default > Messages = Standard > Where = /home/restore > } > Job { > Name = "Job Backup vers Fic" > JobDefs = "VersFicWeekly" > RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup bacula bacula bacula" > RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup" > Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr" > Priority = 11 # run after main backup > File Set = "Backup Files" > } > Job { > Name = "Job Backup vers LTO" > JobDefs = "VersBandeWeekly" > RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup bacula bacula bacula" > RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup" > Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr" > Priority = 11 # run after main backup > File Set = "Backup Files" > } > FileSet { > Name = "Full Set" > Include { > Options { > signature = MD5 > } > File = /build/buildd/bacula-2.4.4/debian/tmp-build-sqlite > } > Exclude { > File = /proc > File = /tmp > File = /.journal > File = /.fsck > } > } > FileSet { > Name = "Backup Files" > Include { > Options { > signature = MD5 > } > File = /home/myfolder > } > } > Schedule { > Name = "WeeklyCycle" > Run = Full 1st sun at 23:05 > Run = Differential 2nd-5th sun at 23:05 > Run = Incremental mon-sat at 23:05 > } > Schedule { > Name = "WeeklyCycleAfterBackup" > Run = Full sun-sat at 23:10 > } > FileSet { > Name = "Catalog" > Include { > Options { > signature = MD5 > } > File = /var/lib/bacula/bacula.sql > } > } > Client { > Name = alibaba > Address = alibaba > FDPort = 9102 > Catalog = MyCatalog > Password = "" > # password for FileDaemon > File Retention = 30 days # 30 days > Job Retention = 6 months # six months > AutoPrune = yes # Prune expired Jobs/Files > } > Storage { > Name = File > Address = alibaba # N.B. Use a fully qualified name here > SDPort = 9103 > > Password = "" > Device = VersRepBackup > Media Type = File > } > Storage { > Name = SurBande > Address = alibaba > SDPort = 9103 > Password = "" > Device = VersBande > Media Type = LTO4 > } > Catalog { > Name = MyCatalog > dbname = "bacula"; dbuser = "bacula"; dbpassword = "bacula" > } > Messages { > Name = Standard > mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r" > operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r" > mail = root@localhost = all, !skipped > operator = root@localhost = mount > console = all, !skipped, !saved > append = "/var/lib/bacula/log" = all, !skipped > } > Messages { > Name = Daemon > mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r" > mail = root@localhost = all, !skipped > console = all, !skipped, !saved > append = "/var/lib/bacula/log" = all, !skipped > } > > Pool { > Name = Default > Pool Type = Backup > Recycle = yes # Bacula can automatically recycle Volumes > AutoPrune = yes # Prune expired volumes > Volume Retention = 365 days # one year > } > Pool { > Name = Scratch > Pool Type = Backup > } > Console { > Name = alibaba > > Password = "" > CommandACL = status, .status > } > Does someone knows about this problem? > Thanks for your help! > -- Bruno Friedmann Ioda-Net Sàrl 2830 Vellerat - Switzerland www.ioda-net.ch ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ Bacula-users mailing list Bacula-users AT lists.sourceforge DOT net https://lists.sourceforge.net/lists/listinfo/bacula-users


Créez votre adresse électronique prenom.nom AT laposte DOT net
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Bacula-users] Storage daemon didn't accept Device "VersBande" command., jc.duss59 AT laposte DOT net <=