Re: [Bacula-users] Trouble building RPMS for 1.37.38
Richard Ryder wrote: 1: rhel3 is not included in the test for platform definition in the spec file. I added it and got on to the next problem rhel3 rhel4 are in the spec file you just need to look closely ;) -- bacula.spec -- # RedHat Enterprise builds %define rhel3 0 %{?build_rhel3:%define rhel3 1} %{?build_rhel3:%define wb3 1} %define rhel4 0 %{?build_rhel4:%define rhel4 1} %{?build_rhel4:%define fc3 1} -- bacula.spec -- rpmbuild -ba --define build_rhel3 1 --define build_mysql 1 bacula.spec is what i did (i compiled my first rpm yesterday so the memory is pretty fresh ;) ) 2: Spec file wants a Release_Notes-1.37.38-1.tar.gz file. I couldn't find that, so I just tar'd up the Release Notes file into a file with that name and put in the right spot for rpm to find it. That worked and I was able to get a little further. Exactly what i did :-) 3: The patches for the bundled sqlite scripts fail patching file src/cats/make_catalog_backup.in Hunk #3 FAILED at 20. Hunk #4 succeeded at 30 (offset 4 lines). 1 out of 4 hunks FAILED -- saving rejects to file src/cats/make_catalog_backup.in.rej error: Bad exit status from /var/tmp/rpm-tmp.61710 (%build) Yup, i had the same problem But i`m also only building packages for client-systems so i removed the patches from the spec file. I think you can safely ommit those patches if you are not running SQLLite. If you are using MySQL or PGSQL for your database the only thing that would need changing post-install is the make_catalog_backup file - you have to adjust the path to the mysql/pgsql executable ... For more clarity go to /usr/src/redhat/BUILD/bacula-1.37.38/src/cats/ and look at the rejected-file and the patch file, it`s just a minor change that produces the error (patch file pointing to wrong line i think) After that i was only having some trouble with the tray-monitor which i also don`t need so i removed the --with-tray-monitor option from the configure in the specfile. Best regards, -- Daniel HoltkampRiege Software International GmbH System Administration Mollsfeld 10 40670 Meerbusch, Germany Phone: +49-2159-9148-41 mail: holtkamp [at] riege.comFax: +49-2159-9148-11 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Serious question! Recycle versus wishful thinking...
Alright people, I seriously need an explanation here. You have X volumes, which are each retained for Y retention time. You can add another volume by labelling it. If no free volume is available, and Recycle is enabled, Bacula should recycle the oldest volume that is past the retention time, right? Why wouldn't it? And why would it add a non-existant volume to the media list, give it a name (even though it has no physical existance) and ask you to mount it? Wishful thinking? The relevant sections of my configuration are quoted below. I may have gotten something wrong, but it appears that the documentation is seriously misleading in this regard. On Fri, Sep 16, 2005 at 03:33:28PM -0700, Joe Rhett wrote: On 15.09.2005 09:06, Joe Rhett wrote: Okay, bacula seems to do two things that I believe are configured to not happen. It's probably me, so clue me in here: 1. It isn't recycling a volume that is way past it's retension time 2. It keep creating new volumes that don't exist. I think this is controlled by LabelMedia ? That's a fairly misleading function... Someone clue me in where I'm going wrong here? On Thu, Sep 15, 2005 at 09:34:13AM +0200, Arno Lehmann wrote: Without actually going through your configuration: Bacula only recycles a volumewhen it really needs to, i.e. when there is (almost) no other way for it to continue. Right. All volumes are used, this is the oldest. Recycling is the only possible/sensible option. Your best thing to do might be to limit the number of volumes in the pools. After that, bacula will reuse the existing volumes when the available space fills. limit the number of volumes in the pools - that limitation would be obviously done by not creating any new volumes, right? What confuses me is this Oh, I'll just make up a new volume approach. Where does it expect this new volume to be? There is no such labeled volume. (and changing LabelMedia didn't help either) 14-Sep-2005 03:10 maiasaura-sd: Current Volume liz5 not acceptable because: 1998 Volume liz5 status is Full, but should be Append, Purged or Recycle. However, list media shows that it's way past retention time... Pool: Tape +-++---+-+--+--+-+--+---+-+ | MediaId | VolumeName | VolStatus | VolBytes| VolFiles | VolRetention | Recycle | Slot | MediaType | LastWritten | +-++---+-+--+--+-+--+---+-+ | 9 | liz5 | Full | 14155350617 | 17 | 7776000 | 1 | 0| DDS-3 | 2005-06-27 23:12:20 | | 10 | liz6 | Full | 1907376 | 12 | 7776000 | 1 | 0| DDS-3 | 2005-07-19 16:35:47 | | 18 | liz4 | Full | 10882141539 | 13 | 2592000 | 1 | 0| DDS-3 | 2005-09-13 04:09:41 | | 19 | liz7 | Full | 10480425083 | 12 | 2592000 | 1 | 0| DDS-3 | 2005-08-11 02:19:32 | | 20 | liz8 | Full | 10731505815 | 13 | 2592000 | 1 | 0| DDS-3 | 2005-08-23 04:20:11 | | 21 | liz9 | Full | 11255199791 | 16 | 2592000 | 1 | 0| DDS-3 | 2005-08-28 11:26:10 | | 22 | liz10 | Full | 9675960782 | 11 | 2592000 | 1 | 0| DDS-3 | 2005-08-30 00:58:57 | | 23 | liz1 | Full | 8895815459 | 12 | 2592000 | 1 | 0| DDS-3 | 2005-09-05 08:19:11 | | 24 | liz2 | Full | 8477650556 | 11 | 2592000 | 1 | 0| DDS-3 | 2005-09-07 07:51:22 | | 25 | liz3 | Full | 12049471114 | 28 | 2592000 | 1 | 0| DDS-3 | 2005-09-11 10:33:23 | +-++---+-+--+--+-+--+---+-+ # Job templates JobDefs { Name = UnixTemplate Type = Backup Level = Incremental FileSet = Unix Files Schedule = WeeklyCycle Storage = Seagate-DDS3 Messages = Standard Pool = Tape Priority = 10 Reschedule On Error = yes Reschedule Interval = 1d SpoolData = yes } # Tape pool definition Pool { Name = Tape Pool Type = Backup Recycle = yes # Bacula can automatically recycle Recycle Oldest Volume = yes AutoPrune = yes # Prune expired volumes Volume Retention = 1 months # one month Accept Any Volume = yes # write on any volume in the pool LabelFormat = liz } Device { Name = Seagate Description = DDS-3 for FreeBSD Media Type = DDS-3 Archive
Re: [Bacula-users] Trouble building RPMS for 1.37.38
On Friday 16 September 2005 21:48, Richard Ryder wrote: Hi, I'm having trouble building RPMs for 1.37.38 with depkgs-22June05 using Sqlite. Item #3 is where I'm presently stuck. Note that with ./configure make it builds fine. 1: rhel3 is not included in the test for platform definition in the spec file. I added it and got on to the next problem 2: Spec file wants a Release_Notes-1.37.38-1.tar.gz file. I couldn't find that, so I just tar'd up the Release Notes file into a file with that name and put in the right spot for rpm to find it. That worked and I was able to get a little further. 3: The patches for the bundled sqlite scripts fail patching file src/cats/make_catalog_backup.in Hunk #3 FAILED at 20. Hunk #4 succeeded at 30 (offset 4 lines). 1 out of 4 hunks FAILED -- saving rejects to file src/cats/make_catalog_backup.in.rej error: Bad exit status from /var/tmp/rpm-tmp.61710 (%build) Anyone run into this? The spec files have not yet been updated from version 1.36.3, so until some work is done on them, they are not likely to work -- many things in the source have changed. -- Best regards, Kern ( /\ V_V --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] bacula rpms for centos4
Hello, Will the rpms for bacula for rhel4 work for centos4, which is a recompiled version of rhel4? Thanks. Dave. --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
RE: [Bacula-users] bacula-tray-icon
Anyone have a solution to the below? thanks From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of GenesisWeb Sent: 15 September 2005 21:43 To: bacula-users@lists.sourceforge.net Subject: [Bacula-users] bacula-tray-icon Hi, How do I get the bacula-tray-icon to start automatically with my vnc session? I have tried adding it to sessions but it does not start, if I double click the executable from /etc/bacula is starts ok and im able to start it from a terminal prompt but cannot get it to start automatically on system start. How do I do this? Thanks Sc00by -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.0/103 - Release Date: 15/09/2005 -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.1/104 - Release Date: 16/09/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.1/104 - Release Date: 16/09/2005
Re: [Bacula-users] Serious question! Recycle versus wishful thinking...
Hello, On 17.09.2005 08:49, Joe Rhett wrote: Alright people, I seriously need an explanation here. You have X volumes, which are each retained for Y retention time. You can add another volume by labelling it. If no free volume is available, and Recycle is enabled, Bacula should recycle the oldest volume that is past the retention time, right? Why wouldn't it? And why would it add a non-existant volume to the media list, give it a name (even though it has no physical existance) and ask you to mount it? Wishful thinking? The relevant sections of my configuration are quoted below. I may have gotten something wrong, but it appears that the documentation is seriously misleading in this regard. Well, I do know that you can limit the number of volumes in a pool. I did set up such pools, and they worked as expected, i.e. they recycle volumes once all the volumes I wanted exist. The key is to either prepare the right number of volumes manually or limit the number of volumes in the pool explicitly. In the latter case, the manual has the following information: Maximum Volumes = number This directive specifies the maximum number of volumes (tapes or files) contained in the pool. This directive is optional, if omitted or set to zero, any number of volumes will be permitted. In general, this directive is useful for Autochangers where there is a fixed number of Volumes, or for File storage where you wish to ensure that the backups made to disk files do not become too numerous or consume too much space. I'd recommend you set this to a reasonable number for your setup. The other solution, manually preparing the volumes and disabling automatic labeling is something I haven't tried yet. Concerning your setup, I'd suggest to remove the label format directive - perhaps, when set, this allows automatic labeling even when the corresponding SD device setting is No. If you can verify that behaviour, it would be worth a bug report, I think. I don not see where the documentation is misleading except for, perhaps, the last item above. After all, it states Bacula can automatically label Volumes if instructed to do so, but this feature is not yet fully implemented. ;-) If, after you changed your configuration accordingly, bacula still insists on creating new volumes, you should run the director with lots of debug output, capture that, find the places where it looks for a volume to use, and post the relevant debug log parts to the list. Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] bacula-tray-icon
Hello, On 17.09.2005 13:13, GenesisWeb wrote: How do I get the bacula-tray-icon to start automatically with my vnc session? I have tried adding it to sessions but it does not start, if I double click the executable from /etc/bacula is starts ok and im able to start it from a terminal prompt but cannot get it to start automatically on system start. How do I do this? I can't give you a detailed answer, but I suppose that vnc, when it starts a session, either starts an X session or it has it's own X included. In the former case, the scripts that set up these sessions have lots of hooks to start other programs - systemwide or user-specific ones. That's where I'd look... Or, if you have a vnc server with integrated X, then this one might have it's own startup files - here, with TightVNC, this is .vnc/xstartup. If you need to know more details about how xvnc starts an X server or which startup files your X server uses,you should read the accompanying manuals, because this is quite system- and distribution-specific. And, of course, you need to know which flavour of vnc you use - as far as I know there are some quite different things available. Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] GUI?
Does a gui frontend to Bacula exist? -- Regards, Erik P. Olsen --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] GUI?
Hi. On 17.09.2005 22:31, Erik P. Olsen wrote: Does a gui frontend to Bacula exist? Yes. A more useful answer would, of course, be possible if you told us what aspect of bacula you want to use graphically... Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] HD image
On Fri, 16 Sep 2005, Karl Cunningham wrote: Some months ago I had occasion to backup and restore a disk image of a Windows system using Bacula. The situation was a hard disk on a Windows system that had suddenly developed a loud whine and we wanted to replace it ASAP. There are lots of arguments for using RAID1 even on simple windows systems and this is one of them. Disks are cheap enough and so is software RAID (Built in on NT-based systems) --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] GUI?
Erik P. Olsen wrote: Does a gui frontend to Bacula exist? There is a GUI console, though it is fairly minimally GUIfied. An optional wxConsole exists, which is a little more GUI in some respects; in particular it offers a GUI file-selection tree window for restores. There is a Bacula-Web application which can be used to monitor Bacula status and recent job history. There is not, at this time, a complete GUI point-click-select administration/management console, though I believe several people are working on web-based management front-ends. -- Phil Stracchino [EMAIL PROTECTED] Renaissance Man, Unix generalist, Perl hacker Mobile: 603-216-7037 Landline: 603-886-3518 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Serious question! Recycle versus wishful thinking...
On 17.09.2005 08:49, Joe Rhett wrote: Alright people, I seriously need an explanation here. You have X volumes, which are each retained for Y retention time. You can add another volume by labelling it. If no free volume is available, and Recycle is enabled, Bacula should recycle the oldest volume that is past the retention time, right? Why wouldn't it? And why would it add a non-existant volume to the media list, give it a name (even though it has no physical existance) and ask you to mount it? Wishful thinking? The relevant sections of my configuration are quoted below. I may have gotten something wrong, but it appears that the documentation is seriously misleading in this regard. On Sat, Sep 17, 2005 at 08:16:33PM +0200, Arno Lehmann wrote: Well, I do know that you can limit the number of volumes in a pool. I did set up such pools, and they worked as expected, i.e. they recycle volumes once all the volumes I wanted exist. The key is to either prepare the right number of volumes manually or limit the number of volumes in the pool explicitly. In the latter case, the manual has the following information: I did prepare the right number of volumes manually. Maximum Volumes = number This directive specifies the maximum number of volumes (tapes or files) contained in the pool. This directive is optional, if omitted or set to zero, any number of volumes will be permitted. In general, this directive is useful for Autochangers where there is a fixed number of Volumes, or for File storage where you wish to ensure that the backups made to disk files do not become too numerous or consume too much space. I'd recommend you set this to a reasonable number for your setup. Okay, but why should I be forced to manually specify this directive and then restart bacula every time I add a new volume to the pool? That doesn't make much sense. The other solution, manually preparing the volumes and disabling automatic labeling is something I haven't tried yet. Concerning your setup, I'd suggest to remove the label format directive - perhaps, when set, this allows automatic labeling even when the corresponding SD device setting is No. If you can verify that behaviour, it would be worth a bug report, I think. As I have already stated, LabelMedia was changed to 'No' and bacula processes completely stopped and restarted, and it continues to create new volumes in the pool that have no physical reality. I don not see where the documentation is misleading except for, perhaps, the last item above. After all, it states Bacula can automatically label Volumes if instructed to do so, but this feature is not yet fully implemented. ;-) It talks about recycling with example configurations. I'm using more or less exactly one of the examples, and it doesn't recycle as documented. It does create new volumes (from thin air with no physical reality) and that is not discussed anywhere in the documentation. If, after you changed your configuration accordingly, bacula still insists on creating new volumes, you should run the director with lots of debug output, capture that, find the places where it looks for a volume to use, and post the relevant debug log parts to the list. Before I go to all of that trouble, could someone kindly look at the configuration I posted and tell me what is missing? I'm fairly certain that it is a configuration problem. I doubt that so many people using it wouldn't have found this problem before. Could someone please review the configuration for sanity? -- Joe Rhett senior geek meer.net --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users