Re: [Bacula-users] Help Understanding Auto Pruning?
Maria Mckinley wrote: From the manual under pool resource: The Volume Retention applied independently to the Job Retention and the File Retention periods defined in the Client resource. This means that the shorter period is the one that applies. Note, that when the Volume Retention period has been reached, and it is necessary to obtain a new volume, Bacula will prune both the Job and the File records. The first sentence isn't really a complete sentences, so I'm not really sure what it is trying to say. However, I think the quote as a whole means that if you have a job or a client resource that you are backing up using this pool, and if more than one of these resources has a volume retention time, then bacula will use the smallest of these retention times. You didn't include your job resources, but I assume that this is where you will find the conflict in retention times. hope someone corrects me if I read this wrong... Thank you for your reply. Yes, I read the part under pool resource which led me to checking the client resources (which have a default retention period of 60 days) and changing them to 100 years. However I have just re-read the job resource section and am unable to find any references to job retention times. Did you find something there? I'm still lost. Help!!! :) Thanks, Drew Drew Tomlinson wrote: I would like to prune based on the volume retention I set in pool resources, not based upon client. In reading the docs, I found that auto pruning can occur based on statements in both the client and pool resources. Thus I set all of my client resources file and job retention times to 100 years, assuming this would prevent any auto pruning from occurring based upon the clients. Then I set my various pool resources volume retention times as I wished. However I have one pool Default that I really don't want to prune automatically and thus I set its volume retention time to 100 years. I assume it's associated job (and thus file?) records were pruned initially because of the 60 default retention times for clients. Now I've made the changes to bacula-dir.conf and SIGHUPed the process. But after running bscan to rebuild the job and file records, it still gets pruned every night. Can someone explain what I'm missing? Hopefully before tonight? :) The client and pool resource portions of my bacula-dir.conf file follow. Thanks, Drew --- BEGIN Client --- # Client (File Services) to backup Client { Name = blacklamb-fd Address = blacklamb FDPort = 9102 Catalog = MyCatalog Password = baculapassword # password for FileDaemon File Retention = 100 years# set job file to 100 years as pruning Job Retention = 100 years # occurs when shortest time expires AutoPrune = yes # Prune expired Jobs/Files } Client { Name = blacksheep-fd Address = blacksheep FDPort = 9102 Catalog = MyCatalog Password = baculapassword # password for FileDaemon File Retention = 100 years# set job file to 100 years as pruning Job Retention = 100 years # occurs when shortest time expires AutoPrune = yes # Prune expired Jobs/Files } Client { Name = tv-fd Address = tv FDPort = 9102 Catalog = MyCatalog Password = baculapassword # password for FileDaemon File Retention = 100 years# set job file to 100 years as pruning Job Retention = 100 years # occurs when shortest time expires AutoPrune = yes # Prune expired Jobs/Files } Client { Name = bigdaddy-fd Address = bigdaddy FDPort = 9102 Catalog = MyCatalog Password = baculapassword # password for FileDaemon File Retention = 100 years# set job file to 100 years as pruning Job Retention = 100 years # occurs when shortest time expires AutoPrune = yes # Prune expired Jobs/Files } Client { Name = lillady-fd Address = lillady FDPort = 9102 Catalog = MyCatalog Password = baculapassword # password for FileDaemon File Retention = 100 years# set job file to 100 years as pruning Job Retention = 100 years # occurs when shortest time expires AutoPrune = yes # Prune expired Jobs/Files } --- END Client --- --- BEGIN Pool --- # Default pool definition Pool { Name = Default Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes Recycle Oldest Volume = yes Maximum Volume Jobs = 0 LabelFormat = TAPE- AutoPrune = yes # Prune expired volumes Volume Retention = 100 years Accept Any Volume = yes # write on any volume in the pool } Pool { Name = Fulls Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes Recycle Oldest Volume = yes Maximum Volume Jobs = 1 LabelFormat =
[Bacula-users] mysql socket location
Hi, new to using Bacula. When initially setting up, on ./bacula start, I get the message that it can't connect to the mysql database, and it's probably a password problem. Not so, I discovered that it was a socket problem, ie bacula was looking for /var/lib/mysql/mysql.sock, whereas mysql here is using /tmp/mysql.sock A workaround was to change the mysql config to use /var/lib/mysql/mysql.sock - and it worked instantly. But that's a system change that Bacula surely shouldn't require. I haven't been able to find any reference - be it in config files, run scripts, or even in the source code - to where the socket location is set. Any ideas? Cheers, Greg. --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] 1.36.3 Director dying/freezing/rebooting
Hello, I just subscribed to the list, though I've been happily using Bacula for about a year now. Last month I ran into my first serious problem, and I'm not sure how to troubleshoot it. I'd been using version 1.36.2 on an SMP machine running FreeBSD 5.4 (i386 platform) backing up several different machines on a network to a hardware RAID array. It worked great. Then I decided to put the backup responsibilities on a different machine. This one is a single-processor AMD machine that also runs the i386 port of FreeBSD 5.4. It's headless, and it also runs a webserver, mailserver, firewall, and several other always on services, so I thought it would be good to give it the backup responsibilities too. I got a SATA controller and a couple of 200GB drives to hold the backups, set up gmirroring on them, and installed Bacula 1.36.3 from the ports collection, since that was the new current version. I chose the default SQLite database, since I was familiar with it and had always been happy with it before. I copied my old configuration over to the new machine, changing names and addresses where appropriate. I built Bacula from source using the ports collection with the default options. I'm not using any graphical components at all. Then the problems started. Often (nearly always) whenever I'd attempt a full backup, the director daemon would (a) silently terminate (b) cause the system to hang or (c) reboot the system. There was never anything in the Bacula log, syslog, or the console message log. It doesn't matter if the job starts automatically or manually from bconsole. Liklihood of a problem seems directly proportional to the size of the fileset. My first suspicion was hardware, since the new and old machines were running the same OS and almost the same version of Bacula with almost the same configuration. First I replaced my hub with a switch, since I was getting tons of packet collisions. This improved my traffic situation, but then I realized that the director would sometimes die even on a totally local backup, so that rules out network problems. Next I suspected a problem with the new controller, drives, or gmirror configuration. I stress-tested these drives as much as I could, copying huge amounts of data in several different threads all at the same time, pushing the drives to the limits according to gstat, but never had any problems. I'm not ruling out bad hardware or gmirror problems, but if that is the problem, I don't know how to prove it. Simply loading down the drives with prolonged heavy write activity doesn't seem to cause a problem. Then I decided to upgrade all the file daemons on my network from 1.36.2 to 1.36.3, just in case there was some compatibility problem between the two versions. No change. Through sheer persistence and luck, I managed to get Bacula to make full backups of all the machines on my network. I left Bacula running, and it ran fine for most of a month doing small incremental backups... but when it came time for some new full backups, the system hung again. Next I started over from scratch and tried a different database. I already had SQLite3 on this machine and I thought perhaps there was some conflict with the SQLite2 that Bacula used. I switched from SQLite to Postgresql 8.0. No change. The director still usually terminates, hangs the system, or reboots the system soon after I begin a full backup of anything. I haven't tried getting a traceback. I thought I'd try to get more information on how to proceed before I crash my server anymore. I've gone several pages into the bugs database and don't see anything relevant that hasn't already been fixed. I've got to believe that this is a hardware/OS problem that I don't know how to isolate, some bizarre configuration problem that this machine has that the other machine did not, or a difference between 1.36.2 and 1.36.3. Thank you for this great software and any hints on how I could proceed. --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Help Understanding Auto Pruning?
Is it possible the volumes in the pool still have the old retention period? Have you looked at list volumes to see if it gives you what you expect? Updating the config file won't change the parameters already set on existing volumes. -maria Drew Tomlinson wrote: Maria Mckinley wrote: From the manual under pool resource: The Volume Retention applied independently to the Job Retention and the File Retention periods defined in the Client resource. This means that the shorter period is the one that applies. Note, that when the Volume Retention period has been reached, and it is necessary to obtain a new volume, Bacula will prune both the Job and the File records. The first sentence isn't really a complete sentences, so I'm not really sure what it is trying to say. However, I think the quote as a whole means that if you have a job or a client resource that you are backing up using this pool, and if more than one of these resources has a volume retention time, then bacula will use the smallest of these retention times. You didn't include your job resources, but I assume that this is where you will find the conflict in retention times. hope someone corrects me if I read this wrong... Thank you for your reply. Yes, I read the part under pool resource which led me to checking the client resources (which have a default retention period of 60 days) and changing them to 100 years. However I have just re-read the job resource section and am unable to find any references to job retention times. Did you find something there? I'm still lost. Help!!! :) Thanks, Drew Drew Tomlinson wrote: I would like to prune based on the volume retention I set in pool resources, not based upon client. In reading the docs, I found that auto pruning can occur based on statements in both the client and pool resources. Thus I set all of my client resources file and job retention times to 100 years, assuming this would prevent any auto pruning from occurring based upon the clients. Then I set my various pool resources volume retention times as I wished. However I have one pool Default that I really don't want to prune automatically and thus I set its volume retention time to 100 years. I assume it's associated job (and thus file?) records were pruned initially because of the 60 default retention times for clients. Now I've made the changes to bacula-dir.conf and SIGHUPed the process. But after running bscan to rebuild the job and file records, it still gets pruned every night. Can someone explain what I'm missing? Hopefully before tonight? :) The client and pool resource portions of my bacula-dir.conf file follow. Thanks, Drew --- BEGIN Client --- # Client (File Services) to backup Client { Name = blacklamb-fd Address = blacklamb FDPort = 9102 Catalog = MyCatalog Password = baculapassword # password for FileDaemon File Retention = 100 years# set job file to 100 years as pruning Job Retention = 100 years # occurs when shortest time expires AutoPrune = yes # Prune expired Jobs/Files } Client { Name = blacksheep-fd Address = blacksheep FDPort = 9102 Catalog = MyCatalog Password = baculapassword # password for FileDaemon File Retention = 100 years# set job file to 100 years as pruning Job Retention = 100 years # occurs when shortest time expires AutoPrune = yes # Prune expired Jobs/Files } Client { Name = tv-fd Address = tv FDPort = 9102 Catalog = MyCatalog Password = baculapassword # password for FileDaemon File Retention = 100 years# set job file to 100 years as pruning Job Retention = 100 years # occurs when shortest time expires AutoPrune = yes # Prune expired Jobs/Files } Client { Name = bigdaddy-fd Address = bigdaddy FDPort = 9102 Catalog = MyCatalog Password = baculapassword # password for FileDaemon File Retention = 100 years# set job file to 100 years as pruning Job Retention = 100 years # occurs when shortest time expires AutoPrune = yes # Prune expired Jobs/Files } Client { Name = lillady-fd Address = lillady FDPort = 9102 Catalog = MyCatalog Password = baculapassword # password for FileDaemon File Retention = 100 years# set job file to 100 years as pruning Job Retention = 100 years # occurs when shortest time expires AutoPrune = yes # Prune expired Jobs/Files } --- END Client --- --- BEGIN Pool --- # Default pool definition Pool { Name = Default Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes Recycle Oldest Volume = yes Maximum Volume Jobs = 0 LabelFormat = TAPE- AutoPrune = yes # Prune expired volumes Volume Retention = 100
[Bacula-users] Question about Bacula tape handling.
How does Bacula handle foreign tapes? I am currently using Amanda for back-up but planning to switch to Bacula and sometimes I erroneously leave an Amanda labeled tape in the tape drive. I see the error when Bacula complains about the tape and pull it out, but later when Amanda recycles the tape it cannot read it and reports i/o error. dd if=/dev/nst0 cannot read it either and the only way to recover the tape is to erase it and relabel. Shouldn't Bacula leave the tape untouched when it sees that it does not carry the correct Bacula label? -- Regards, Erik P. Olsen --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Help Understanding Auto Pruning?
Maria McKinley wrote: Is it possible the volumes in the pool still have the old retention period? Have you looked at list volumes to see if it gives you what you expect? Updating the config file won't change the parameters already set on existing volumes. I didn't change the volume retention times in the config file as I set them as I wished initially. Then when the jobs that used the Default pool (which was set at 100 years) disappeared, I looked into the matter further. That's when I changed the job and file retention times in my client resources and SIGHUPed the bacula-dir process. Next I ran bscan to rebuilt the job and file records. But every night the associated job and file records still get pruned. Thanks for your help! Drew Drew Tomlinson wrote: Maria Mckinley wrote: From the manual under pool resource: The Volume Retention applied independently to the Job Retention and the File Retention periods defined in the Client resource. This means that the shorter period is the one that applies. Note, that when the Volume Retention period has been reached, and it is necessary to obtain a new volume, Bacula will prune both the Job and the File records. The first sentence isn't really a complete sentences, so I'm not really sure what it is trying to say. However, I think the quote as a whole means that if you have a job or a client resource that you are backing up using this pool, and if more than one of these resources has a volume retention time, then bacula will use the smallest of these retention times. You didn't include your job resources, but I assume that this is where you will find the conflict in retention times. hope someone corrects me if I read this wrong... Thank you for your reply. Yes, I read the part under pool resource which led me to checking the client resources (which have a default retention period of 60 days) and changing them to 100 years. However I have just re-read the job resource section and am unable to find any references to job retention times. Did you find something there? I'm still lost. Help!!! :) Thanks, Drew Drew Tomlinson wrote: I would like to prune based on the volume retention I set in pool resources, not based upon client. In reading the docs, I found that auto pruning can occur based on statements in both the client and pool resources. Thus I set all of my client resources file and job retention times to 100 years, assuming this would prevent any auto pruning from occurring based upon the clients. Then I set my various pool resources volume retention times as I wished. However I have one pool Default that I really don't want to prune automatically and thus I set its volume retention time to 100 years. I assume it's associated job (and thus file?) records were pruned initially because of the 60 default retention times for clients. Now I've made the changes to bacula-dir.conf and SIGHUPed the process. But after running bscan to rebuild the job and file records, it still gets pruned every night. Can someone explain what I'm missing? Hopefully before tonight? :) The client and pool resource portions of my bacula-dir.conf file follow. Thanks, Drew [snipped bacula-dir.conf as this thread is getting kind of long] --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Question about Bacula tape handling.
Erik P. Olsen wrote: How does Bacula handle foreign tapes? I am currently using Amanda for back-up but planning to switch to Bacula and sometimes I erroneously leave an Amanda labeled tape in the tape drive. I see the error when Bacula complains about the tape and pull it out, but later when Amanda recycles the tape it cannot read it and reports i/o error. dd if=/dev/nst0 cannot read it either and the only way to recover the tape is to erase it and relabel. Shouldn't Bacula leave the tape untouched when it sees that it does not carry the correct Bacula label? that depends on your settings ... there is an auto label option you know .. Florian --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Help Understanding Auto Pruning?
Drew Tomlinson wrote: Maria McKinley wrote: Is it possible the volumes in the pool still have the old retention period? Have you looked at list volumes to see if it gives you what you expect? Updating the config file won't change the parameters already set on existing volumes. I didn't change the volume retention times in the config file as I set them as I wished initially. Then when the jobs that used the Default pool (which was set at 100 years) disappeared, I looked into the matter further. That's when I changed the job and file retention times in my client resources and SIGHUPed the bacula-dir process. Next I ran bscan to rebuilt the job and file records. But every night the associated job and file records still get pruned. Thanks for your help! Drew for one setting something to 100 years could easily hit a number border somewhere and cause unexpected behaviour why don't you just turn off auto pruning and set a reasonable retention period (that is as long as you intend to actually keep your backups) Florian --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Restore Problems
Hi , sorry for the long post :) Wanted to do a test restore , and it seems either my catalog is doing funny things , or I messed up in the Pool defs : +---+---+--+-+--+---+--++ | JobId | Level | JobFiles | StartTime | VolumeName | StartFile | VolSessionId | VolSessionTime | +---+---+--+-+--+---+--++ | 2,389 | F | 46,653 | 2005-10-03 19:50:54 | apollousersfull-0007 | 2 |3 | 1,128,326,240 | | 2,389 | F | 46,653 | 2005-10-03 19:50:54 | apollousersfull-0007 | 1 |3 | 1,128,326,240 | | 2,389 | F | 46,653 | 2005-10-03 19:50:54 | apollousersfull-0007 | 1 |3 | 1,128,326,240 | | 2,389 | F | 46,653 | 2005-10-03 19:50:54 | apollousersfull-0007 | 1 |3 | 1,128,326,240 | | 2,389 | F | 46,653 | 2005-10-03 19:50:54 | apollousersfull-0007 | 1 |3 | 1,128,326,240 | | 2,389 | F | 46,653 | 2005-10-03 19:50:54 | apollousersfull-0007 | 0 |3 | 1,128,326,240 | | 2,389 | F | 46,653 | 2005-10-03 19:50:54 | apollousersfull-0007 | 0 |3 | 1,128,326,240 | | 2,389 | F | 46,653 | 2005-10-03 19:50:54 | apollousersfull-0007 | 0 |3 | 1,128,326,240 | | 2,389 | F | 46,653 | 2005-10-03 19:50:54 | apollousersfull-0007 | 0 |3 | 1,128,326,240 | | 2,389 | F | 46,653 | 2005-10-03 19:50:54 | apollousersfull-0007 | 0 |3 | 1,128,326,240 | | 2,465 | D | 394 | 2005-10-09 01:14:41 | apollusersdiff-0001 | 0 | 20 | 1,128,695,386 | | 2,470 | I | 42 | 2005-10-09 21:31:35 | apollousersincr-0014 | 0 | 24 | 1,128,695,386 | | 2,482 | I | 109 | 2005-10-10 21:32:39 | apollousersincr-0011 | 0 |3 | 1,128,959,605 | | 2,482 | I | 109 | 2005-10-10 21:32:39 | apollousersincr-0011 | 0 |3 | 1,128,959,605 | | 2,482 | I | 109 | 2005-10-10 21:32:39 | apollousersincr-0011 | 0 |3 | 1,128,959,605 | +---+---+--+-+--+---+--++ Now , correct me if I'm wrong , but shouldn't it use the latest full , diff , as well as ALL the incr vols? Yet if I do a list media : *list media pool=apollousersincr +-+--+---+---+--+--+-+--+---+---+-+ | MediaId | VolumeName | VolStatus | VolBytes | VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +-+--+---+---+--+--+-+--+---+---+-+ | 67 | apollousersincr-0001 | Used | 2,628,320,758 |0 |1,728,000 | 1 |0 | 0 | File | 2005-09-27 21:48:43 | | 76 | apollousersincr-0002 | Used | 2,500,204,331 |0 |1,728,000 | 1 |0 | 0 | File | 2005-09-23 21:45:27 | | 77 | apollousersincr-0003 | Used | 2,173,623,654 |0 |1,728,000 | 1 |0 | 0 | File | 2005-09-26 21:32:30 | | 78 | apollousersincr-0004 | Used | 5,658,242 |0 |1,728,000 | 1 |0 | 0 | File | 2005-09-25 21:17:45 | | 82 | apollousersincr-0005 | Used | 1,207,803,363 |0 |1,728,000 | 1 |0 | 0 | File | 2005-09-29 21:35:33 | | 89 | apollousersincr-0006 | Used | 1,187,813,180 |0 |1,728,000 | 1 |0 | 0 | File | 2005-10-06 21:31:37 | | 96 | apollousersincr-0007 | Used | 2,459,398,536 |0 |1,728,000 | 1 |0 | 0 | File | 2005-09-30 21:43:38 | | 103 | apollousersincr-0008 | Used | 2,864,756,783 |0 |1,728,000 | 1 |0 | 0 | File | 2005-10-07 21:48:15 | | 111 | apollousersincr-0009 | Used | 939,941,338 |0 |1,728,000 | 1 |0 | 0 | File | 2005-10-04 21:17:49 | | 120 | apollousersincr-0010 | Used | 229,669,022 |0 |1,728,000 | 1 |0 | 0 | File | 2005-10-08 21:20:27 | | 128 | apollousersincr-0011 | Used | 2,782,895,686 |0 |1,728,000 | 1 |0 | 0 | File | 2005-10-10 22:05:28 | | 136 | apollousersincr-0012 | Used | 2,898,126,863 |0 |1,728,000 | 1 |0 | 0 | File | 2005-10-05 21:49:40 | | 143 | apollousersincr-0013 | Used | 170,845,487 |0 |1,728,000 | 1 |
Re: [Bacula-users] Fedora
On Monday 10 October 2005 23:34, Josh Fisher wrote: Kern Sibbald wrote: On Monday 10 October 2005 18:29, Josh Fisher wrote: Kern Sibbald wrote: On Sunday 09 October 2005 22:27, Josh Fisher wrote: Sounds like you are using the 1.36.3 stable version of bacula-rescue, which will not work with a 2.6.x kernel. You need to grab the latest 1.37.x development version of bacula-rescue from CVS. You do not have to use 1.37.x versions of the other bacula programs, just the bacula-rescue module. You will need the source for 1.36.3 installed and configured before making the bacula-rescue stuff. I have made a CD-R using bacula-rescue 1.37.40 compiled against the 1.36.3 source. I believe the 1.36.3 source is only needed to make the statically linked bacula-fd daemon. In any case, I was able to create a rescue CD-R under Fedora Core 4, boot from it, reformat the partitions, mount the partitions, start networking, start the statically linked bacula-fd and then run a restore job from bconsole on another machine and restore the machine. Once all files are restored it is necessary to install grub in order for the restored machine to boot. So, yes, it works. There are scripts on the rescue CD to perform most of the tasks. The script to copy the bacula-fd daemon and conf file to the newly formatted partition did not work for me and I had to do that manually, but hey, it worked. Thanks for the nice response and the confirmation that the 1.37.40 rescue does work. I'm pleased to hear that someone other than myself has got it to work. :-) Do you happen to remember exactly what went wrong in the script to copy bacula-fd and the conf file? Sorry, it wasn't the copy_static_bacula script, it was the restore_bacula script. It is a bit confusing because the Makefile and several scripts that are used to create the CD-R are also included in the bacula-xxx directory on the initrd image. The restore_bacula script expects to find the static bacula-fd and bacula-fd.conf files under /mnt/floppy, and so does not work on the CD-ROM version. Oh, I hadn't noticed that. I've now fixed it and will commit it to the CVS. Also, is it by design that my bacula-fd.conf is not copied to the bacula-xxx directory on the initrd image? I hadn't thought about that too much, and it appears that I just put a sort of template in the bin directory (from where the restore copies it). I've modified the script that makes the static Bacula to copy the bacula-fd.conf that it finds in the build directory overwriting my template. Perhaps this will make it easier for you ... Thanks for the comments. If the client's bacula-fd.conf is put on the CD, then the CD is a security risk. Even though root's password is needed to login when booting from the CD, anyone could extract the bacula-fd.conf file from the initrd image on the CD, create their own bootable CD, and possibly convince the director into restoring the client's file to the wrong machine. I can think of two solutions: 1. Don't put the client's bacula-fd.conf on the CD and require entering the key manually. Possibly an ssh client could be put on the CD to make it easier to get the key from the director machine. 2. Use mcrypt or something to password protect the client's bacula-fd.conf file on the CD. The rescue CD must be kept secure. The bacula-fd.conf is the least of the problems. Making a rescue CD also copies your /etc/ssh directory, and tells you so very clearly. If you want to avoid the problem of keeping the rescue CD secure, it seems to me you have two choices: 1. Cleanup or delete the files that pose a security problem before burning the CD. 2. Don't use the Bacula rescude CD. Josh Fisher [EMAIL PROTECTED] Gordon Larsen wrote: Has anyone tried/been able to build a rescue CD that works with Fedora yet? The build scripts still look for the deprecated modules.conf and raidstart on my system, neither of which are used any longer (replaced by modprobe.conf/modprobe.conf.dist and mdadm). I can build a CD, but a kernel panic happens when trying to mount the root file system when starting up. Thanks muchly, Gordon Larsen [EMAIL PROTECTED] --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net
Re: [Bacula-users] mysql socket location
On Tuesday 11 October 2005 08:29, Gregory Orange wrote: Hi, new to using Bacula. When initially setting up, on ./bacula start, I get the message that it can't connect to the mysql database, and it's probably a password problem. Not so, I discovered that it was a socket problem, ie bacula was looking for /var/lib/mysql/mysql.sock, whereas mysql here is using /tmp/mysql.sock A workaround was to change the mysql config to use /var/lib/mysql/mysql.sock - and it worked instantly. But that's a system change that Bacula surely shouldn't require. I haven't been able to find any reference - be it in config files, run scripts, or even in the source code - to where the socket location is set. Any ideas? Try the manual under Catalog Resource. The text seems pretty clear to me. Cheers, Greg. --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users -- Best regards, Kern ( /\ V_V --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Question about Bacula tape handling.
On Tuesday 11 October 2005 09:06, Erik P. Olsen wrote: How does Bacula handle foreign tapes? I am currently using Amanda for back-up but planning to switch to Bacula and sometimes I erroneously leave an Amanda labeled tape in the tape drive. I see the error when Bacula complains about the tape and pull it out, but later when Amanda recycles the tape it cannot read it and reports i/o error. dd if=/dev/nst0 cannot read it either and the only way to recover the tape is to erase it and relabel. Shouldn't Bacula leave the tape untouched when it sees that it does not carry the correct Bacula label? Unless you have setup for Bacula to automatically label tape (or explicitly do a label command), Bacula will not write to a non-Bacula tape. However, depending on what version of Bacula you are running, it will automatically modify your tape drive parameters (variable blocksize, ...) to be compatible with how Bacula uses tapes. If you subsequently try to use the drive and the program is expecting a different mode (fixed blocksize, ...) it will fail. -- Best regards, Kern ( /\ V_V --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] 1.36.3 Director dying/freezing/rebooting
Hello, On 11.10.2005 08:35, Luke Dean wrote: Hello, I just subscribed to the list, though I've been happily using Bacula for about a year now. Last month I ran into my first serious problem, and I'm not sure how to troubleshoot it. I'd been using version 1.36.2 on an SMP machine running FreeBSD 5.4 (i386 platform) backing up several different machines on a network to a hardware RAID array. It worked great. Then I decided to put the backup responsibilities on a different machine. ... upgrade to 1.36.3 on single-CPU FreeBSD 5.4 machine Then the problems started. Often (nearly always) whenever I'd attempt a full backup, the director daemon would (a) silently terminate (b) cause the system to hang or (c) reboot the system. There was never anything in the Bacula log, syslog, or the console message log. It doesn't matter if the job starts automatically or manually from bconsole. Liklihood of a problem seems directly proportional to the size of the fileset. I'll remove the rest of your description - looks like you tried to rule out problems not related to Bacula. My first impression was that there should be something OS- or hardware related. After all, a reboot without log entries etc. usually indicates that. Anyway, what you experience might prove hard to analyze. Concerning bacula - I understand you are using file storage only and your backups are running rather unrelaibale right now. I'd suggest to upgrade to the current development version (1.37.40) and see if that fixes your problems (I guess it will not, but you never know). There were, as far as I remember, some deadlock problems in the 1.36 versions which should be fixed in 1.37. An upgrade to 1.37.40 will require a catalog database change, but the configuration can remain (mostly) unchanged. Personally, I consider 1.37 stable since 1.37.3something, although it is not tested as thorougly as a relase version, of course. Anyway, even if this doesn't fix anything for you, you will not lose much considering the current situation :-) Then it would seem useful to analyze the server crashes, reboot, and hangs. The first step I'd take is to set up system logging to another host - that can sometimes catch the last log messages before or during a crash. Then I'd suggest removing the new disk controller - that seems to be the only new hardware that can physically reset or hold your machine. Pull it out and use a test-setup for your backups. For example, set up disk volumes with very short retention times and limited size. Have them automatically recycled, and let some big jobs run on them. Of course, you will not be able to use these backups - they will overwrite their own data - but as far as I know you can (still) do this and it allows testing with limited disk space. then run bacula with debug output enabled and capture the files, which, in case of a crash, might be difficult. NFS mount and syncronous writing could be one solution for the logging directory. See if you can determine if bacula always does the same when the server crashes. And, of course, observe the temperature in your server and of your disks. I have an old machine I use as file server, and during normal operation without many accesses the disks report temperatures of more than 50 degrees (Celsius, of course). I wouldn't try to use that setup for high throughput applications... Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Restore Problems
Hello, On 11.10.2005 09:31, Danie Theron wrote: Hi , sorry for the long post :) No worries, I didn't read it :-) (Only joking) Wanted to do a test restore , and it seems either my catalog is doing funny things , or I messed up in the Pool defs : +---+---+--+-+--+---+--++ | JobId | Level | JobFiles | StartTime | VolumeName | StartFile | VolSessionId | VolSessionTime | +---+---+--+-+--+---+--++ | 2,389 | F | 46,653 | 2005-10-03 19:50:54 | apollousersfull-0007 | 2 |3 | 1,128,326,240 | removed some table output | 2,482 | I | 109 | 2005-10-10 21:32:39 | apollousersincr-0011 | 0 |3 | 1,128,959,605 | +---+---+--+-+--+---+--++ That's the list of backup jobs run for that client, right? It used tapes -full-007, -diff-001, and -incr-0011 and -0014. Now , correct me if I'm wrong , but shouldn't it use the latest full , diff , as well as ALL the incr vols? No, only the incremental ones that actually hold relevant data. Imagine you only change one file each day, and that file is, accordingly, the only one backed up daily. For a restore, you only need the latest volume. Yet if I do a list media : *list media pool=apollousersincr ... *list media pool=apollousersdiff ... There are many volumes in these pools... If I need to post my confs I can , but here are the defs for this spesific Pool : ... Not sure if I'm just paranoid , stupid , or missing something (it's been a long day) Erm. Possibly :-) Somehow you forgot to tell us of your problem - what sort of a restore do you start, and which volumes does it want to use? If you want to verify what Bacula does, I found it helpful to do things differently: For example, doing a full restore. I look up the job ids of the last full job, the relevant (i.e. latest) differential one, and all the incrementals past that one. Then I listthe volumes which contain data from these jobs. Up till now, I could always stop here :-) The next step would be to compare the file lists for incremental jobs to see why incremental volumes don't need to be used - all files stored in the relevant jobs should also exist in later incremental backups. Hope this helps, Arno --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Re: How do I move tapes accross volumes?
Hello Arno, Thanks for the pointers. Yup thats' the way I've being doing it; basically writing weof on each tape before labeling. But this is a long step. I've been thinking got to be a better way of doing it. I'm thinking the re-label should be able to help but I'm doing it wrong somehow. The way I arrange it is like this. Volume Pools:- Storage1-- Refers to HP DLT Surestore mounted to /dev/nst0 -- all tapes in volume are given volume names Storage1-01 till Storage1-60 Storage2--Refers to HP DLT Surestore mounted to /dev/nst1 -- all tapes in volume are given volume names Storage2-01 till Storage2-20 I'm looking to move tapes from volume Storage1 to Storage2. But when I relabel lets say tape Storage1-60 to Storage2-21, the relabeling works but it's in the wrong volume. It's still listed in Volume Storage1. Basically the only one with naming convention Storage2-?? in Storage1. Does that make sense? Actually I could probably do the relabeling, maybe just need the command to assign a tape that currently in Volume Storage1 to Storage2. Thanks! Kind Regards, Anwar Arno Lehmann wrote: Hello, On 10.10.2005 12:17, Anwar Ahmad wrote: Hi, I currently have 2 volumes labeled Storage1 and Storage2. They are physically different tape autoloader and they back up different sets of servers. Initially Storage1 server had lots of data so we assigned plenty of tapes to that set. However more recently the servers backing up to Storage2 is growing in data more rapidly. Basically I'd like to move some tapes that are being used on Storage1 onto Storage2. Since I'm using bacula console, I initially thought of doing a delete-volume-Storage1. Then label the tape as a new volume in Storage2. However bacula will mount the tape and detect that it contains a label namely from Storage1. I had already deleted the volume but it's still detecting the volume in the tape. How do I clear the contents for this particular tape so that I can use it as a new volume? You clear the label from the tape by overwriting it, for example using 'mt weof' on it twice. In any case, I think you took the wrong route... It would have been easier to simply move the tape from one autoloader to the other and have it detected with the 'update slots' command. As long as you use identical Media types, that should have been all. If you used different Media Types, you would first adjust tis information in the catalog. Arno Thanks! Kind Regards, Anwar --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Re: How do I move tapes accross volumes?
Hello, On 11.10.2005 10:10, Anwar Ahmad wrote: Hello Arno, Thanks for the pointers. Yup thats' the way I've being doing it; basically writing weof on each tape before labeling. But this is a long step. I've been thinking got to be a better way of doing it. I'm thinking the re-label should be able to help but I'm doing it wrong somehow. The way I arrange it is like this. Volume Pools:- Storage1-- Refers to HP DLT Surestore mounted to /dev/nst0 -- all tapes in volume are given volume names Storage1-01 till Storage1-60 Storage2--Refers to HP DLT Surestore mounted to /dev/nst1 -- all tapes in volume are given volume names Storage2-01 till Storage2-20 Ah, now I see the problem. If you really want volume names that reflect the storage the volumes is used with you will have to relabel the tapes. (By the way, I wouldn't attach volumes to storages, either do that with pools or use the Media Type - both ways, things fit better to Baculas volume managment, I think.) I'm looking to move tapes from volume Storage1 to Storage2. But when I relabel lets say tape Storage1-60 to Storage2-21, the relabeling works but it's in the wrong volume. It's still listed in Volume Storage1. Basically the only one with naming convention Storage2-?? in Storage1. Does that make sense? Yes, of course. Actually I could probably do the relabeling, maybe just need the command to assign a tape that currently in Volume Storage1 to Storage2. There is no command to do that. Simply load the tape into its new storage device, use the update slots command, and then relabel. After update slots, Bacula knows that this tape is in the new storage device. Arno Thanks! Kind Regards, Anwar Arno Lehmann wrote: Hello, On 10.10.2005 12:17, Anwar Ahmad wrote: Hi, I currently have 2 volumes labeled Storage1 and Storage2. They are physically different tape autoloader and they back up different sets of servers. Initially Storage1 server had lots of data so we assigned plenty of tapes to that set. However more recently the servers backing up to Storage2 is growing in data more rapidly. Basically I'd like to move some tapes that are being used on Storage1 onto Storage2. Since I'm using bacula console, I initially thought of doing a delete-volume-Storage1. Then label the tape as a new volume in Storage2. However bacula will mount the tape and detect that it contains a label namely from Storage1. I had already deleted the volume but it's still detecting the volume in the tape. How do I clear the contents for this particular tape so that I can use it as a new volume? You clear the label from the tape by overwriting it, for example using 'mt weof' on it twice. In any case, I think you took the wrong route... It would have been easier to simply move the tape from one autoloader to the other and have it detected with the 'update slots' command. As long as you use identical Media types, that should have been all. If you used different Media Types, you would first adjust tis information in the catalog. Arno Thanks! Kind Regards, Anwar --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Still getting that darned hang...
Hey all, wanted to see if you knew what this was, as it's been a thorn in my side for a while now: the bacula director starts just fine, and it's running it's backups just fine (I'm now using the most recent release), at least for a while. After about 5 to 10 minutes, I attempt to connect to the director via the console and it just hangs there for about 3 minutes or more. Then I get an error message: Director authorization problem. Most likely the passwords do not agree. Please see http://www.bacula.org/html-manual/faq.html#AuthorizationErrors for help I promise you all that I have identical passwords, as until about 2 weeks ago this problem was only occasional and a restart fixed it just fine. Now it happens EVERY time I attempt to connect, be it 1 minute or 1 week later, I cannot connect. Please help, this is most disturbing. System is 1.63.3 Bacula on CentOS 4.1. I686 Processor family (sorry I can't remember the exact details but it's in a datacenter in another location) Sherwood McGowan nute or 1 week later, I cannot connect.br br Please help, this is most disturbing.br br System is 1.63.3 Bacula on CentOS 4.1. I686 Processor family (sorry I can't remember the exact details but it's in a datacenter in another location)br br Sherwood McGowanbr /body /html --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] separated config files
Hello, I manage a park of over 30 servers of whom I need to backup daily wich different configurations, so as you may guess my 'bacula-dir.conf' get's pretty big ! I would like to know if there's someway to define a separate config file for each server, so i could edit that file instead of messing with bacula-dir.conf all the time. thanks -- Paulo Carvalho - pcarvalho(at)di.fc.ul.pt ADMIN/DI - Fac. Ciências - Univ. Lisboa Campo Grande Bloco C6 6.3.2 1749-016 Lisboa, Portugal Tel: +351 21750 - Ext: 26372 There's no chemical solution for a spiritual problem, The Sopranos - LIX --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
RE: [Bacula-users] separated config files
yes that's possible. i have a general bacula-dir.conf and in this file i include (@include ) one file for each of my clients. best regards, chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Carvalho Sent: Monday, October 10, 2005 11:59 AM To: bacula-users@lists.sourceforge.net Subject: [Bacula-users] separated config files Hello, I manage a park of over 30 servers of whom I need to backup daily wich different configurations, so as you may guess my 'bacula-dir.conf' get's pretty big ! I would like to know if there's someway to define a separate config file for each server, so i could edit that file instead of messing with bacula-dir.conf all the time. thanks -- Paulo Carvalho - pcarvalho(at)di.fc.ul.pt ADMIN/DI - Fac. Ciências - Univ. Lisboa Campo Grande Bloco C6 6.3.2 1749-016 Lisboa, Portugal Tel: +351 21750 - Ext: 26372 There's no chemical solution for a spiritual problem, The Sopranos - LIX --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] separated config files
Hello, On 10.10.2005 11:59, Paulo Carvalho wrote: Hello, I manage a park of over 30 servers of whom I need to backup daily wich different configurations, so as you may guess my 'bacula-dir.conf' get's pretty big ! I would like to know if there's someway to define a separate config file for each server, so i could edit that file instead of messing with bacula-dir.conf all the time. There is such a possibility: use a notation of @file-name and the file given will be read when parsing the configuration file. I noticed that this is only mentioned in the FileSet explanation, but it should probably go to the general director configuration section in the manual. Arno thanks -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Help - Label failed after DB version change
Hello all; I've been using Bacula for about a year now to back up some linux machines using RAID disk storage instead to tape and all has been working great. I upgraded some months ago to 1.34.6 and all seemed to go well. I used the DB upgrade script when I upgraded. However, I had to restart my server last week and when the bacula-sd tried to start it would stop with an error message saying: bacula-dir: Fatal error: Version error for database bacula. Wanted 7, got 6 bacula-dir: Fatal error: Version error for database bacula. Wanted 7, got 6 bacula-dir: Fatal error: Could not open database bacula. bacula-dir: Fatal error: Version error for database bacula. Wanted 7, got 6 bacula-dir ERROR TERMINATION I went into the postgres bacula database and changed the versionid to 7 as in: bacula=# update version set versionid = 7; And now the director will start and backups will run but when I go to label a new volume I get the following message: *label Automatically selected Storage: File Enter new Volume name: Vol_34 Automatically selected Pool: Default Connecting to Storage daemon File at acsbackup.arinc.com:9103 ... Sending label command for Volume Vol_34 Slot 0 ... 3000 OK label. Volume=Vol_34 Device=/mnt/raid0/ sql_create.c:279 Create DB Media record INSERT INTO Media (VolumeName,MediaType,PoolId,MaxVolBytes,VolCapacityBytes,Recycle,VolRet ention,VolUseDuration,MaxVolJobs,MaxVolFiles,VolStatus,Slot,VolBytes,InC hanger,VolReadTime,VolWriteTime) VALUES ('Vol_34','File',2,0,0,0,47347200,604800,0,0,'Append',0,1,1,0,0) failed. ERR=ERROR: ExecInsert: Fail to add null value in not null attribute endfile Do not forget to mount the drive!!! Any help would be appreciated. -Kevin Traub --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Help - Label failed after DB version change
Hello, On 11.10.2005 13:07, Traub, Kevin (KTRAUB) wrote: Hello all; I've been using Bacula for about a year now to back up some linux machines using RAID disk storage instead to tape and all has been working great. I upgraded some months ago to 1.34.6 and all seemed to go well. I used the DB upgrade script when I upgraded. However, I had to restart my server last week and when the bacula-sd tried to start it would stop with an error message saying: bacula-dir: Fatal error: Version error for database bacula. Wanted 7, got 6 bacula-dir: Fatal error: Version error for database bacula. Wanted 7, got 6 bacula-dir: Fatal error: Could not open database bacula. bacula-dir: Fatal error: Version error for database bacula. Wanted 7, got 6 bacula-dir ERROR TERMINATION That looks as though the database upgrade didn't work correctly. The next error you report might be a result of that, too. I'd suggest to change back the version in the database, and run the upgrade script again. After that, better do a dbckeck run to see if the catalog is usable. After that, I'd suggest upgrading to 1.36.3 as this has some improvements. Of course, don't forget to backup your database before further modifications - pg_dump is the tool you might want. Arno I went into the postgres bacula database and changed the versionid to 7 as in: bacula=# update version set versionid = 7; And now the director will start and backups will run but when I go to label a new volume I get the following message: *label Automatically selected Storage: File Enter new Volume name: Vol_34 Automatically selected Pool: Default Connecting to Storage daemon File at acsbackup.arinc.com:9103 ... Sending label command for Volume Vol_34 Slot 0 ... 3000 OK label. Volume=Vol_34 Device=/mnt/raid0/ sql_create.c:279 Create DB Media record INSERT INTO Media (VolumeName,MediaType,PoolId,MaxVolBytes,VolCapacityBytes,Recycle,VolRet ention,VolUseDuration,MaxVolJobs,MaxVolFiles,VolStatus,Slot,VolBytes,InC hanger,VolReadTime,VolWriteTime) VALUES ('Vol_34','File',2,0,0,0,47347200,604800,0,0,'Append',0,1,1,0,0) failed. ERR=ERROR: ExecInsert: Fail to add null value in not null attribute endfile Do not forget to mount the drive!!! Any help would be appreciated. -Kevin Traub --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Restore Problems
Danie Theron wrote: Hi , sorry for the long post :) Wanted to do a test restore , and it seems either my catalog is doing funny things , or I messed up in the Pool defs : Now , correct me if I'm wrong , but shouldn't it use the latest full , diff , as well as ALL the incr vols? No. A Restore should use the latest Full, the latest Differential, and Incrementals written since that Differential, and ONLY those -- and only as many of those Incrementals as is necessary to get the latest version of each changed file. That's the entire point of Differentials: that you DON'T have to restore every Incremental in the catalog. -- Phil Stracchino [EMAIL PROTECTED] Renaissance Man, Unix generalist, Perl hacker Mobile: 603-216-7037 Landline: 603-886-3518 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] separated config files
Arno Lehmann wrote: Hello, On 10.10.2005 11:59, Paulo Carvalho wrote: Hello, I manage a park of over 30 servers of whom I need to backup daily wich different configurations, so as you may guess my 'bacula-dir.conf' get's pretty big ! I would like to know if there's someway to define a separate config file for each server, so i could edit that file instead of messing with bacula-dir.conf all the time. There is such a possibility: use a notation of @file-name and the file given will be read when parsing the configuration file. I noticed that this is only mentioned in the FileSet explanation, but it should probably go to the general director configuration section in the manual. Arno since you are on the topic and i noticed some time ago bacula-director config gets pretty big fast ... how about adding an option to just include every file (maybe in a particular format) in a directory so you could f.ex make seperate folders for jobs, clients etc. as you like and it all will get included. could be that is too much work to implement or you say it's not needed, just though it might be a good idea Florian --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] separated config files
On Tuesday 11 October 2005 13:19, Arno Lehmann wrote: Hello, On 10.10.2005 11:59, Paulo Carvalho wrote: Hello, I manage a park of over 30 servers of whom I need to backup daily wich different configurations, so as you may guess my 'bacula-dir.conf' get's pretty big ! I would like to know if there's someway to define a separate config file for each server, so i could edit that file instead of messing with bacula-dir.conf all the time. There is such a possibility: use a notation of @file-name and the file given will be read when parsing the configuration file. I noticed that this is only mentioned in the FileSet explanation, but it should probably go to the general director configuration section in the manual. It is in the general director configuration section in the development manual ... :-) Arno thanks -- Best regards, Kern ( /\ V_V --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Restore Problems
On Tuesday 11 October 2005 13:42, Phil Stracchino wrote: Danie Theron wrote: Hi , sorry for the long post :) Wanted to do a test restore , and it seems either my catalog is doing funny things , or I messed up in the Pool defs : Now , correct me if I'm wrong , but shouldn't it use the latest full , diff , as well as ALL the incr vols? No. A Restore should use the latest Full, the latest Differential, and Incrementals written since that Differential, and ONLY those -- and only as many of those Incrementals as is necessary to get the latest version of each changed file. That's the entire point of Differentials: that you DON'T have to restore every Incremental in the catalog. Yes, exactly. In addition, the restore is smart enough to use only the Volumes that are necessary to restore the latest version of each file. As a simple example, if you have two Incrementals that save the same files, only the second one will be used. -- Best regards, Kern ( /\ V_V --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] rotate volumes on disk
I have one machine with data and one backup machine with bacula dir, both linux. I want to do backups on disk on backup machine. I have one default pool and few volumes on same disk. Bacula appends to one volume until it is full, then it searches for other volumes which are null sized, but full as well. I would like to dispense jobs to volumes day by day to allow bacula delete the old ones. I set max job per volume parameter, but it did not help. I dont want to take x pools for x days, it must be possible to solve it other way, like with tapes. Can someone advice me? Marek --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] rotate volumes on disk
Marek Simon wrote: I have one machine with data and one backup machine with bacula dir, both linux. I want to do backups on disk on backup machine. I have one default pool and few volumes on same disk. Bacula appends to one volume until it is full, then it searches for other volumes which are null sized, but full as well. I would like to dispense jobs to volumes day by day to allow bacula delete the old ones. I set max job per volume parameter, but it did not help. I dont want to take x pools for x days, it must be possible to solve it other way, like with tapes. Can someone advice me? Marek there are several ways to achieve that. i got 2 HD files, doing a daily backup on the older one so i set max use duration to 20 hours, max volumes in pool to 2 to prevent it from creating new volumes and recyle to on works fine, if you want the detailed config files just ask :-) Florian --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] rotate volumes on disk
Hello, On 11.10.2005 16:17, Marek Simon wrote: I have one machine with data and one backup machine with bacula dir, both linux. I want to do backups on disk on backup machine. I have one default pool and few volumes on same disk. Bacula appends to one volume until it is full, then it searches for other volumes which are null sized, but full as well. I would like to dispense jobs to volumes day by day to allow bacula delete the old ones. I set max job per volume parameter, but it did not help. I dont want to take x pools for x days, it must be possible to solve it other way, like with tapes. Can someone advice me? Marek You need to update the information for the existing volumes. Whatever you set in the configuration file (regarding pools) is just a template that is used when new volumes are created. In the console, use the update command Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Help - Label failed after DB version change
Hello, you sent this to me, not to the list... I corrected that mistake :-) On 11.10.2005 13:50, Traub, Kevin (KTRAUB) wrote: Arno; Thank you for the reply. I am doing a pg_dumpall right now and then will re-run the update_postgresql_tables script. You mentioned running dbckeck, I'm assuming you mean dbcheck, but I don't see a dbcheck command in the bacula directory. Sorry, yes, sure, you're right... it should have been dbcheck and it is actually part of bacula... if it isn't in the install directory, and you installed from a distribution package, I don't know where to find it - I always compiled Bacula myself, and the program was generated in the src/tools directory. Is this a bacula command, or a postgres command, or did you mean something else? No, I mean the bacula program dbcheck. Arno You help is greatly appreciated. -Kev -Original Message- From: Arno Lehmann [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 7:35 AM To: Traub, Kevin (KTRAUB) Cc: bacula-users@lists.sourceforge.net Subject: Re: [Bacula-users] Help - Label failed after DB version change Hello, On 11.10.2005 13:07, Traub, Kevin (KTRAUB) wrote: Hello all; I've been using Bacula for about a year now to back up some linux machines using RAID disk storage instead to tape and all has been working great. I upgraded some months ago to 1.34.6 and all seemed to go well. I used the DB upgrade script when I upgraded. However, I had to restart my server last week and when the bacula-sd tried to start it would stop with an error message saying: bacula-dir: Fatal error: Version error for database bacula. Wanted 7, got 6 bacula-dir: Fatal error: Version error for database bacula. Wanted 7, got 6 bacula-dir: Fatal error: Could not open database bacula. bacula-dir: Fatal error: Version error for database bacula. Wanted 7, got 6 bacula-dir ERROR TERMINATION That looks as though the database upgrade didn't work correctly. The next error you report might be a result of that, too. I'd suggest to change back the version in the database, and run the upgrade script again. After that, better do a dbckeck run to see if the catalog is usable. After that, I'd suggest upgrading to 1.36.3 as this has some improvements. Of course, don't forget to backup your database before further modifications - pg_dump is the tool you might want. Arno I went into the postgres bacula database and changed the versionid to 7 as in: bacula=# update version set versionid = 7; And now the director will start and backups will run but when I go to label a new volume I get the following message: *label Automatically selected Storage: File Enter new Volume name: Vol_34 Automatically selected Pool: Default Connecting to Storage daemon File at acsbackup.arinc.com:9103 ... Sending label command for Volume Vol_34 Slot 0 ... 3000 OK label. Volume=Vol_34 Device=/mnt/raid0/ sql_create.c:279 Create DB Media record INSERT INTO Media (VolumeName,MediaType,PoolId,MaxVolBytes,VolCapacityBytes,Recycle,VolR et ention,VolUseDuration,MaxVolJobs,MaxVolFiles,VolStatus,Slot,VolBytes,InC hanger,VolReadTime,VolWriteTime) VALUES ('Vol_34','File',2,0,0,0,47347200,604800,0,0,'Append',0,1,1,0,0) failed. ERR=ERROR: ExecInsert: Fail to add null value in not null attribute endfile Do not forget to mount the drive!!! Any help would be appreciated. -Kevin Traub --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ 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: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Autochanger: Tapes are sometimes not changed automatically
Christian, you sent this not to the list but to me only. On 10.10.2005 09:36, Christian Theune wrote: Hi, On 10/8/05, *Arno Lehmann* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I don't know if I understood you correctly, so... Do you say that the autochanger works sometimes, or that the autochanger never works? The hardware is fine. The autochanger itself works. The mtx script also always works. (At least when beeing invoked by me manually.) What I meant was: Do you always get the request to change tapes, or does bacula change the tapes sometimes, and sometimes not? It usually ends up that I have to: Usually... so sometimes it does work automatically? Arno bconsole: unmount mtx-changer ... unload ... mtx-changer ... load ... bconsole: mount (which is supposed to happen automatically ...) It tends to send out an operator intervention needed mail and wants me to change the tape. Once that happened, it keeps asking me for changing the tapes. Sometimes a restart helps. I wasn't able to find any information about this in the list archives or on google, and the message log doesn't mention any problem, except asking every now and then for a new tape. Any ideas? Configuration? Hardware issue? Debug output from SD and mtx-changer? I don't think there is a hardware issue. I'll attach some of my configuration here. I'll try to find out how to enable debug output for SD and mtx-changer. Best regards, Christian -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Catalog backups to disk problem
George, your mail went to me only, not to the list. On 07.10.2005 21:45, George R. Kasica wrote: Hello, On 06.10.2005 19:55, George R.Kasica wrote: I'm running into an interesting problem here with the pre configured backups of the catalog to disk file system. It seem to continue to grow without ever getting smaller: 14008761445 Oct 6 00:37 BaculaBackup How can I configure Bacula to reuse or purge some of this space?? You need to set up more than one volume, and then use retention times and automatic pruning and recycling correctly. There are some detailed examples in the manual... The setup isn't hard for tapes, but how would I do it for files, same way? I didn't know that I could make more than one disk volume...so I could make a Backup-Set-1 (2,3,4,5,6,7) volumes and then put them in a Pool with the retention times and recycling options shown below, correct? In short: Bacula *never* shortens a volume that it still considers valid. Internally, bacula handles all volumes similar to tapes, and tapes are only appended to or they are completely overwritten (which means truncated with file based volumes). I've got a file in /tmp called BaculaBackup where the two backup to disk jobs run to. The expire times are as follows: Pool { Name = Default Pool Type = Backup Recycle = yes # Bacula can auto recycle AutoPrune = yes # Prune expired volumes Volume Retention = 7 days # 7 days Accept Any Volume = yes # write on any volume in pool I hope the missing } is only a cut-and-paste error :-) I'd bet that you only have one volume in that pool. Yes, missed the } sorry. :) Yes, there is only one volume in the Default Pool it's called BaculaBackup. I'm assuming making a set as above BaculaBackup-1 BaculaBackup-2 BaculaBackup-3 BaculaBackup-4 BaculaBackup-5 BaculaBackup-6 BaculaBackup-7 in that pool will solve the problem? I'm guessing given a 7 day tape lifetime I'd want about 7 volumes in the pool? Yes, that's one way to do this. It's easiest to set up automatic volume labeling and then limit the number of volmes in the pool. Additionally, you should either limit the number of jobs per volume (not generally recommended), the maximum volume size (good if you want to limit the overall disk usage) or the volume use duration (that's what you use when you want to use each volme during one day, and then cycle to the next one). Once this setup works, you should either delete or modify your existing volume - the information about volumes is not updated when you change the pool definition, so that volume will still grow and grow and grow... Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Backup problem
Hi, I have a problem with incremental backups. During an incremental backup many files a backuped again although they haven't been changed since the last full backup. Most of the backuped files are located under /home which is mounted with the following mount options: /dev/mapper/vg00-lvol6 on /home type ext3 (rw,noexec,sync,usrquota,data=journal) Does that matter? Are there other reasons which can cause an incremental backup of a file or directory although there haven't been any changes? Thanks a lot in advance and kind regards, Oliver Koch -- Oliver Koch Tel.: 05323/72-2626 | Fax: -3536 Rechenzentrum TU Clausthal E-Mail: [EMAIL PROTECTED] Erzstraße 51WWW:www.rz.tu-clausthal.de D - 38678 Clausthal-Zellerfeld Jabber: [EMAIL PROTECTED] signature.asc Description: OpenPGP digital signature
Re: [Bacula-users] Backup problem
Hello, On 11.10.2005 21:20, Oliver Koch wrote: Hi, I have a problem with incremental backups. During an incremental backup many files a backuped again although they haven't been changed since the last full backup. Most of the backuped files are located under /home which is mounted with the following mount options: /dev/mapper/vg00-lvol6 on /home type ext3 (rw,noexec,sync,usrquota,data=journal) Does that matter? Are there other reasons which can cause an incremental backup of a file or directory although there haven't been any changes? Usually, there _has_ something changed. Even if you don't see it. What does stat filename tell you about the timestamps? Or have you set up different jobs for the different levels? Arno Thanks a lot in advance and kind regards, Oliver Koch -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] mysql socket location
David Logan wrote: Gregory Orange wrote: I haven't been able to find any reference - be it in config files, run scripts, or even in the source code - to where the socket location is set. Any ideas? Cheers, Greg. Hi Greg, Different distributions and installation methods put the socket in different places. Bacula can't take that into account as it may be different on every machine it is installed on. Ah, but as Kern Sibbald so kindly pointed out, Bacula takes the socket location as a configuration setting in the bacula-dir.conf file. I must have mistyped 'socket' when searching for it in the manual, and not noticed it when reading it in the first place. Greg. --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users