[Bacula-users] Restore problem - dir tells client wrong sd
I'm trying to do a restore of a directory of files. The restore gets a few files from one volume (disk volumes), but then stops with the director shows the job waiting on the client to connect to the storage daemon. I traced the problem down to the director telling the client to connect to the wrong storage daemon address. My backup server connects to several VLANs, and I have a storage definition for each (different IPs). When the director tells the client the first volume, it uses the correct storage daemon address, but for the second volume, it sends the client an address that the client can't reach. If I change the restore job to send the restore to a directory on the backup server (which of course can connect to all the storage daemon IPs), it works. This appears to be a bug in the director. It uses the specified storage daemon for the first volume, but it used a different one for the second volume. This was all with Bacula 5.2.12 on RHEL 6 (backup server) and RHEL 5 (client). I did try upgrading the backup server to Bacula 5.2.13, but I get the same behavior. -- Chris Adams cmad...@hiwaay.net Systems and Network Administrator - HiWAAY Internet Services I don't speak for anybody but myself - that's enough trouble. -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Vchanger attempts to mount 5 volumes before stopping and requesting magazine change
On 04/15/13 15:31, Bill Arlofski wrote: I'll let you know what I come up with. Hi Leon, and everyone. :) Leon, as promised I have spent some time to take a second look at the auto_enable_disable_vols.sh which I had originally hacked together to use Josh Fisher's benablemag script to enable/disable the available/not_available vchanger magazines on a system. I have posted a new, almost completely re-written version which now sends one bconsole sqlquery command per magazine to enable all volumes on it if it is plugged in, or to disable all volumes on any magazines which are not currently plugged in. So, in your case (Leon) instead of calling bconsole 18 * 186 = 3348 times, it would now make only 18 calls to bconsole. New version is here: http://www.revpol.com/node/146 As far as I can tell it is working on our systems, ymmv, not responsible for rising sea levels, all comments welcome, etc. :) -- Bill Arlofski Reverse Polarity, LLC -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Admin Job with console command crashing director
2013/4/17 Ana Emília Machado de Arruda emiliaarr...@gmail.com: Hello, I´m trying to run a console command from an admin job and this is crashing my director. A simple Console = list jobs, inside a RunScript directive, crashes the director (bacula-dir dead but subsys locked) and it generates a Bacula GDB traceback of bacula-dir on myDirector mail. Below is my Admin Job with a list jobs console command. My goal is a list nextvol job=\my\job\ days=1 command. Tried list jobs, list clients, and so on, all of them result in the same. When it runs on client side this does not happen. When I enter bconsole after restarting bacula, I get the messages: 17-Apr 17:24 myDirector-dir JobId 17821: console command: run BeforeJob list jobs 17-Apr 17:24 myDirector-dir JobId 0: Automatically selected Catalog: MyCatalog 17-Apr 17:24 myDirector-dir JobId 0: Using Catalog MyCatalog Hi, I have the same result as yours. After adding listing command as runscript console command, Bacula throws segmentation violation. I researched this problem. It seems that in: /usr/src/bacula-5.2.12-new/src/cats/sql.c lines 636-642: Dmsg0(800, list_result finished first loop\n); if (type == VERT_LIST) { goto vertical_list; } Dmsg1(800, list_result starts second loop looking at %d fields\n, num_fields); list_dashes(mdb, send, ctx); ^^^ variable ctx is broken, so it is not able to run list_dashes() without error. It looks like runscript directives were designed for run shell scripts/programs or bconsole commands which do not show results in tabular output. It makes sense. Summing, you found bug in Bacula. I prepared patch for this. It blocks running bconsole output for runscript. It works for me but I am not C++ programmer. Finally it does not cause segmentation violation and Director crash. I am attaching it to this message. For your solution I think that better will be to put your bconsole requests in a shell script. Regards, Marcin Haba (gani) bacula-runscript-listing-segfault.patch Description: Binary data -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Admin Job with console command crashing director
2013/4/19 Marcin Haba ganius...@gmail.com: 2013/4/17 Ana Emília Machado de Arruda emiliaarr...@gmail.com: Hello, I´m trying to run a console command from an admin job and this is crashing my director. A simple Console = list jobs, inside a RunScript directive, crashes the director (bacula-dir dead but subsys locked) and it generates a Bacula GDB traceback of bacula-dir on myDirector mail. Below is my Admin Job with a list jobs console command. My goal is a list nextvol job=\my\job\ days=1 command. Tried list jobs, list clients, and so on, all of them result in the same. When it runs on client side this does not happen. When I enter bconsole after restarting bacula, I get the messages: 17-Apr 17:24 myDirector-dir JobId 17821: console command: run BeforeJob list jobs 17-Apr 17:24 myDirector-dir JobId 0: Automatically selected Catalog: MyCatalog 17-Apr 17:24 myDirector-dir JobId 0: Using Catalog MyCatalog Hi, I have the same result as yours. After adding listing command as runscript console command, Bacula throws segmentation violation. I researched this problem. It seems that in: /usr/src/bacula-5.2.12-new/src/cats/sql.c lines 636-642: Dmsg0(800, list_result finished first loop\n); if (type == VERT_LIST) { goto vertical_list; } Dmsg1(800, list_result starts second loop looking at %d fields\n, num_fields); list_dashes(mdb, send, ctx); ^^^ variable ctx is broken, so it is not able to run list_dashes() without error. It looks like runscript directives were designed for run shell scripts/programs or bconsole commands which do not show results in tabular output. It makes sense. Summing, you found bug in Bacula. I prepared patch for this. It blocks running bconsole output for runscript. It works for me but I am not C++ programmer. Finally it does not cause segmentation violation and Director crash. I am attaching it to this message. For your solution I think that better will be to put your bconsole requests in a shell script. Regards, Marcin Haba (gani) Hi, I forgot about an important thing. Can you request this bug in Bacula BugTracker? I think that Bacula developers should know about this bug and I am sure that they will prepare better solution for this then my solution. Thanks. Marcin Haba (gani) -- Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za przyjaciół swoich. Jezus Chrystus -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users