Re: [Bacula-users] Oracle backups using RMAN
Hi ! Yu Safin wrote: One of my departments is using Oracle and via RMAN they backup to Netbackup. How can I accomplish the same using Bacula instead of RMAN? Is anybody backing up Oracle using Bacula? I`m administrating two Oracle 10g Servers and back them up with bacula. One is a development-server - with the ClientRunBeforeJob directive I shutdown the oracle-db (service oradb stop), then backup the whole system (closed-database backup basically) and start the oracle again with the ClientRunAfterJob directive. (This would be without RMAN) Of course this can only be done if you can afford that the database goes down during the backup which is not always the case. This is why we have another Oracle-Server (development-system with live-data) that gets backed up online. I`ve configured a standard oracle-online-backup with the Enterprise Manager (Saturday Fullbackup + Inc Sun-Fri - everything handled by RMAN). This backup goes to a seperate partition on the oracle-server. Now bacula backs-up the system, the oracle itself and the backup-area. I hope that helped you a bit. 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 --- 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] Auto Creation of Volumes Query
Hi all, First off I do not use tapes, but volumes created on disk. Let us assume that this is a new implementation. So no Volumes exists, now they must be created. When the schedule executes (arguments sake 5 Jobs) Then the first Volume gets created as per the Label Format Value. But any subsequent job the Director reports that a an Appendable Volume is required. So... This forces me to create the additional Volumes Manually, and after the execution update the Volume Retention Period so that the volume would be pruned and recycled by the next execution run. Ie. MondayDocsPool Client1DocsMonday, Client2DocsMonday, ... TuesdayDocsPool Client1DocsTuesday, Client2DocsTuesday, ... WednesdayDocsPool Client1DocsWednesday, Client2DocsWednesday, ... Client1DocsMonday would be created no problem but for Client2DocsMonday the director reports that a appendable volume is required. On this implementation I would have a backup for each client For every day of the week in a different pool (storage device and so location). Pool { Name = MondayDocs Pool Type = Backup Recycle = yes Recycle Oldest Volume = yes AutoPrune = yes # Prune expired volumes Volume Retention = 7 days Volume Use Duration = 1 Maximum Volumes = 1 Accept Any Volume = yes # write on any volume in the pool Catalog Files = yes Label Format = ${Job}_ } Etc, etc. 1. What changes do I need to make to the Pool definition to ensure that if a new volume is required for a backup that it would automatically be created ? Your help would be appreciated. Yours sincerely Stephan Heine Support Engineer Genetic Interactive Tel: +27 861 99 88 99 Fax: +27 861 99 77 99 Cell: +27 82 467 1164 EMail: [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
Re: [Bacula-users] Large network bacula tips?
Hi, PgSQL or MySQL? :-) Do you have any problems using dbcheck? My db (mysql) size is 19,93GB and dbcheck(1.36.3) dies when the memory free is ended (RAM 2GB and SWAP 2GB). El Lunes 17 Octubre 2005 20:05, Mark Bober escribió: All in all I've got about 80 clients, Windows, Solaris, and Linux. A few OSF/1 also. I've ran about 3500 jobs, and have totalled about 17 TB over the past... 2 1/2 months I've been production with Bacula. (I secretly hope that wins me some sort of Biggest Bacula award) --- 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] Backing up offsite-maschines
Dear Bacula-Users, I do backups of some remote maschines using a ssh-tunnel for encrypted connections between dir, fd, and sd. My dir is sitting on a dial-up-adsl which reconnects every 24 hours (just 2 sec. of timeout). When a Job is running and the reconnection takes place the backup-job ends up with a fatal error. So if I do my monthly full-backups it is hard to do that within 24 hours. Is there a possibility to let bacula tolerate the new connection (and the different IP-adress) somhow? Any help would be appreciated. Best Stephan -- Stephan Holl Check headers for GnuPG Key! http://www.gdf-hannover.de pgpWy2UvX09UP.pgp Description: PGP signature
[Bacula-users] Remote client commands after bacula's fail
I backup oracle with by way: shut down the server, copy dbf files and start up the server both commands are sent by bacula through Client Run Before Job and Client Run After Job parameters. but when bacula fails to do backup (full storage etc), the after command don't start and the server remains down. Can I set bacula to run the after command (or any command), even if backup fails? 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] SD craches during backup with Network send error to SD
Hi Christoph Christoph Haas a écrit : On Saturday 15 October 2005 20:51, François Roels wrote: I'm not able to backup my server any longer. Le backup processes crach after any attempt without usefull (for me) message. I have filed a bug report against the package a week ago on the BTS (Debian's bug tracking system). See: http://bugs.debian.org/332743 Perhaps these two cases are related? (Question asked in direction of the honored Bacula development crew.) Kind regards Christoph Humm... doesn't seem to be a related problem. The medium is a disk and the local backups (the catalog) are working well. I'm trying to investigate using the Arno advice... François --- 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] Connection Problems
Has there been a response to this post as I have exactly the same problem, i have done a tcp dump on both server and client and all seems aok -- Paul Burton | Systems Administrator | Reading Room T: 020 7432 6016 | E: [EMAIL PROTECTED] A: 53 Frith St, Soho, London W1D 4SN --- LONDON/MANCHESTER/SYDNEY www.readingroom.com 2 sites short listed for 2005 New Media Age Awards Winner Best Website - LexisNexis Awards 2005 - LITRG Ranked 2nd in UK - Digital Media, Design High Flyers - Design Week 2005 Winner - Visionary Design Award 2004 - Disability Rights Commission Most Respected Agency – top ten listing New Media Age 2003 and 2004 Winner - New Media Age Effectiveness Award 2004 – Race for Life The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient please notify us by telephone immediately on 0207 025 1800 or return it to us via e-mail. Please then delete it from your system. --- 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] Large network bacula tips?
On Mon, 17 Oct 2005, Lyle Vogtmann wrote: I was thinking of limiting the number of concurrent jobs. The project manager really wants to have them all done simultaneously, not 100% sure on the reasoning, but it is listed as a requirement. If it has a large negative impact on performance, I'm sure we can drop that requirement. As long as you're using spooling, it is a BIG win to use concurrent clients on incremental backups, but usually a loss to have concurrent jobs running on any one client ...as long as you have enough CPU/RAM on the storage director and mysql server (check the load averages and swap levels while things are running) --- 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] Backing up offsite-maschines
Hi Stephan, i would solve that issue due to network topics build a vpn (like openvpn) between the systems and then let bacula connect to the vpn inside ip's. then the ip's are ever the same for the services. For connecting the outside (dynamic) ip's dyndns usage or somthing like that would help. but there are also a couple of adsl providers out there, that are able to assign fixed ip addresses and fixed ip networks through ADSL. I'm using this (fixed network on my adsl ...) with great success ... rgds, Achim Stephan Holl wrote: Dear Bacula-Users, I do backups of some remote maschines using a ssh-tunnel for encrypted connections between dir, fd, and sd. My dir is sitting on a dial-up-adsl which reconnects every 24 hours (just 2 sec. of timeout). When a Job is running and the reconnection takes place the backup-job ends up with a fatal error. So if I do my monthly full-backups it is hard to do that within 24 hours. Is there a possibility to let bacula tolerate the new connection (and the different IP-adress) somhow? Any help would be appreciated. Best Stephan --- 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] DLT 40/80GB never reaches 40GB
On Tue, 18 Oct 2005, Anwar Ahmad wrote: Interestingly, I've relabeled a 40/80 tape that was originally in the pool that backed up from pool1 (the one with the problem) and put it into pool2 (working normally) and it works correctly. I thought about the physical tape drive causing the problem but I've nowhere to check? Is there any way to check using software? btape's fill command. --- 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] Auto Creation of Volumes Query
Hello, On 18.10.2005 09:28, Stephan Heine - Genetic Interactive wrote: Hi all, First off I do not use tapes, but volumes created on disk. Let us assume that this is a new implementation. So no Volumes exists, now they must be created. When the schedule executes (arguments sake 5 Jobs) Then the first Volume gets created as per the Label Format Value. But any subsequent job the Director reports that a an Appendable Volume is required. So... This forces me to create the additional Volumes Manually, and after the execution update the Volume Retention Period so that the volume would be pruned and recycled by the next execution run. Ie. MondayDocsPool Client1DocsMonday, Client2DocsMonday, ... TuesdayDocsPool Client1DocsTuesday, Client2DocsTuesday, ... WednesdayDocsPool Client1DocsWednesday, Client2DocsWednesday, ... Client1DocsMonday would be created no problem but for Client2DocsMonday the director reports that a appendable volume is required. On this implementation I would have a backup for each client For every day of the week in a different pool (storage device and so location). Pool { Name = MondayDocs Pool Type = Backup Recycle = yes Recycle Oldest Volume = yes AutoPrune = yes # Prune expired volumes Volume Retention = 7 days Volume Use Duration = 1 Maximum Volumes = 1 Accept Any Volume = yes # write on any volume in the pool Catalog Files = yes Label Format = ${Job}_ } Etc, etc. 1. What changes do I need to make to the Pool definition to ensure that if a new volume is required for a backup that it would automatically be created ? You woiuld have to set Maximum Volumes to a reasonable value, and when you're working on it, also set Volume Use Duration sensibly, too. And set a maximum number of volumes for the pool to prevent your partition filling. Arno Your help would be appreciated. Yours sincerely Stephan Heine Support Engineer Genetic Interactive Tel: +27 861 99 88 99 Fax: +27 861 99 77 99 Cell: +27 82 467 1164 EMail: [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 -- 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] Some issues while trying to setup bacula environment
Op vrijdag 14 oktober 2005 20:18, schreef Phil Stracchino: I don't fully get the naming.. Should i manually give all 8 tapes a name, and then add them through bconsole with the same names? But the naming i want them to have is dynamic ( Label Format = Test-$Day$Month$Year ), so it'll nag again that i don't have the correct named tape present, and to insert it... :$ There is no mechanism for automatically deleting and relabelling tapes. I suggest just naming all your tapes once, numerically, and using them in rotation. If you need to restore something, Bacula will tell you which tape it needs anyway; the whole point of an automated backup system with a catalog database is that it keeps track of things like this for you. Oh, that explains a lot of my worries :d Is there a way to script this? Like when somebody inserts a tape, and then starts a shellscript that asks for the name, and labels it for him? Secondly, is it better to have 1 big pool of 7 tapes, each with a Test-$Day$Month$Year kind of label?, or per dag 1 tape, with correct label ofcourse? Will bacula automatically unload the current tape if it has a different label, and load the correct one if it's in the same pool? I mean, will it know like ah, tape 2 is currently loaded, but it has a label of Test-12102005, but i need Test-14102005, which is in slot 5, let's load this one instead to do the backup. ? :d Maybe anybody has experience in making it not-really-technical-tape-changer-people-proof? :d Thanks a lot for the help so far :d Kind regards, Bart Verwilst --- 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] Re: OT: downloadable bacula mailing list archives?
Hi Felix, On Fri, Oct 14, 2005 at 10:06:57AM +0200, Felix Schwarz wrote: Thorsten Huber schrieb: is there somewhere a downloadable archive of the bacula-users and bacula-devel mailinglists? I cannont find such a service on sourceforge or any hints in recent mails in the sourceforge webinterface to the bacula archives. have a look at: http://gmane.org/info.php?group=gmane.comp.bacula.user http://gmane.org/info.php?group=gmane.comp.sysutils.backup.bacula.devel thats great. The gmane NNTP feed is exactly what I was searching for. -- Gruss / Best regards | LF.net GmbH| fon +49 711 90074-414 Thorsten Huber| Ruppmannstrasse 27 | fax +49 711 90074-33 [EMAIL PROTECTED] | D-70565 Stuttgart | http://www.lf.net --- 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] Barcode labels with Bacula
Bacula will use the barcode labels as the label for the tape. The label of the tape and the barcode must match, or it will not work, in my exigence. I am using barcodes on all my tapes. I had to relabel all the tapes to match the barcodes... Once it is working though, it is a breeze to swap tapes! - Thank you, Grant Della Vecchia System Administrator -- AIS Media, Inc. 7000 Central Parkway, Suite 1700 Atlanta, GA 30328 Tel: 770.350.7998 | Fax: 770.350.9409 URL: www.aismedia.com | Email: [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
[Bacula-users] Bacula fail if no tape inside tape unit.
Hi All, I'm using bacula (version 1.36.3, with Linux/CRUX and kernel 2.6.12, tape unit HP DDS-72) as my primary backup solution. It works very well, but when there is no tape inside the tape unit the backup job fails without ask for the required tape to the operator. Is this behaviour ok ?, how can I avoid it ? You can see the output of a bacula job when there is no tape inside of the tape unit. 15-Oct 09:00 phfs-dir: Start Backup JobId 10, Job=phfs-fd.2005-10-15_09.00.00 15-Oct 09:02 phfs-fd: phfs-fd.2005-10-15_09.00.00 Fatal error: job.c:1665 Bad response to Append Data command. Wanted 3000 OK data , got 3903 Error append data 15-Oct 09:02 phfs-sd: phfs-fd.2005-10-15_09.00.00 Fatal error: device.c:317 Unable to open device /dev/nst0. ERR=dev.c:289 stored: unable to open device /dev/nst0: ERR=Input/output error Regards Manuel Ruiz --- 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] no backups
I'm getting really frustrated now. I've been trying unsuccessfully to get a backup done in bacula and am having trouble with an error i can't work out when i run the job everything connects ok, i have done tcpdump and seen traffic between client and server i have check iptables and ports are open and netstat -na has ports listening and open 9101-9103. but after a short amount of time i get this message .. 18-Oct 14:23 xx-dir: x.2005-10-18_14.08.55 Fatal error: Socket error from Filed on Storage command: ERR=No data available If anyone can help i wold be extremely grateful i must add I'm a newbie to this for only about week !!! many Thanx -- Paul Burton | Systems Administrator | Reading Room T: 020 7432 6016 | E: [EMAIL PROTECTED] A: 53 Frith St, Soho, London W1D 4SN --- LONDON/MANCHESTER/SYDNEY www.readingroom.com 2 sites short listed for 2005 New Media Age Awards Winner Best Website - LexisNexis Awards 2005 - LITRG Ranked 2nd in UK - Digital Media, Design High Flyers - Design Week 2005 Winner - Visionary Design Award 2004 - Disability Rights Commission Most Respected Agency – top ten listing New Media Age 2003 and 2004 Winner - New Media Age Effectiveness Award 2004 – Race for Life The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient please notify us by telephone immediately on 0207 025 1800 or return it to us via e-mail. Please then delete it from your system. --- 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 Thu, 2005-10-13 at 11:28 +0200, Erik P. Olsen wrote: On Tue, 2005-10-11 at 09:56 +0200, Kern Sibbald wrote: 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. No, I don't have automatic labeling specified and haven't issued any label command. 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. This sounds possible, but a closer investigation proves that it cannot be the case. I have stopped the bacula tests for a couple of days and today a tape showed the same i/o error symptom and only amanda has used the tape drive the last three times it was used, so drive settings should be OK. I get the following using dd on the tape: [EMAIL PROTECTED] ~]$ dd if=/dev/nst0 dd: reading `/dev/nst0': Input/output error 0+0 records in 0+0 records out My conclusion is that since I only use bacula and amanda with the tape drive then bacula has indeed caused the failure (it can hardly be dd or mt). My experience with tapes comes from mainframes and there this type of error would occur with a variable blocked tape where the block size or record size was wrongly recorded on the tape. Could that be the case here? Replying to myself! I have now seen that this conclusion is wrong. I haven't been testing Bacula for quite some time and yet the tape error has again shown its ugly face. Perhaps it's a hardware problem? Anyway, I apologise for having accused Bacula for this problem and I shan't bother this mailing list with this tape problem anymore. -- 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
[Bacula-users] LTO drive - End Of Volume error
Hi list, Am totally new to bacula and have installed v1.37.41 from CVS. When I use the btape command and try to run test I get this message immediately and no other tests are performed. : then write 1000 records and an EOF, then rewind, and re-read the data to verify that it is correct. This is an *essential* feature ... 18-Oct 14:58 btape: btape Fatal error: End of Volume at 0:0 on device LTO-A (/dev/st0) (part_size=0,free_space=0, free_space_errno=0, errmsg=). btape: btape.c:791 Error writing block to device. The bacula-sd.conf device entry is shown below: Device { Name = LTO-A Media Type = LTO Archive Device = /dev/st0 LabelMedia = yes; Random Access = no; AutomaticMount = yes; RemovableMedia=yes; AlwaysOpen = no; } The device is a Seagate LTO-1 drive. /proc/scsi/scsi lists it as: Host: scsi6 Channel: 00 Id: 00 Lun: 01 Vendor: SEAGATE Model: ULTRIUM06242-XXX Rev: 1536 Type: Sequential-AccessANSI SCSI revision: 03 I have also tried various recommendations from the manual, such as setting blksize to 0. There is a tape in the drive and I can write to it using tar. mt, etc. I have also tried the Hardware end of file option in the device entry with no change. btape cap output is: Configured device capabilities: !EOF BSR BSF FSR FSF FASTFSF !BSFATEOM EOM REM !RACCESS AUTOMOUNT LABEL !ANONVOLS !ALWAYSOPEN MTIOCGET Device status: OPENED TAPE !LABEL MALLOC APPEND !READ !EOT !WEOT !EOF !NEXTVOL !SHORT Device parameters: Device name: /dev/st0 File=0 block=0 Min block=0 Max block=0 Status: Bacula status: file=0 block=0 Device status: BOT ONLINE IM_REP_EN file=0 block=0 btape: btape.c:1759 Device status: 645. ERR= Can anyone advise if there is something else I should be doing or anything else I can try? Regards David Raine --- 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] retention for each job?
Hi, retention times are client specific, as far as I can see. however I have a client with two filesets and two backup jobs. the first runs nightly and needs to be kept for a month only, the other one runs monthly, but needs to be kept for months. can I somehow set the retention time for each job? so far I get errors (1.36.2/debian) and can set the retention time only for the client in the config file. maybe any tricks or workarounds? guess I can configure the longer retention time, and then use sql to find the jobs which can be expired early and use some console command to forefully purge those jobs and files so the tape can be recycled. would that work? is there a better way? Regards, Andreas -- - [ SECURITY NOTICE ] - To: [EMAIL PROTECTED] For your security, [EMAIL PROTECTED] digitally signed this message on 18 October 2005 at 15:44:20 UTC. Verify this digital signature at http://www.ciphire.com/verify. [ CIPHIRE DIGITAL SIGNATURE ] Q2lwaGlyZSBTaWcuAjhiYWN1bGEtdXNlcnNAbGlzdHMuc291cmNlZm9yZ2UubmV0 AGFqQGxlb2dpYy5jb20AZW1haWwgYm9keQA7AgAAfAB8AQAAAFQYVUM7AgAA vgEAAgACAAIAIIdrK0IL8jXIl9JZRO4QIw3DBoaepRzC9+dTc0eONcPhAQBDO3Bq 3LM8hPJ4BlNeKI9mlfaCyWW9V5vOkBAcDyr7MYiELiiycBspUvjaMjSpyXAfgp3U eFi/wcLMKjjNsB68U2lnRW5k -- [ END DIGITAL SIGNATURE ] -- --- 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] LTO drive - End Of Volume error
David Raine wrote: Hi list, Am totally new to bacula and have installed v1.37.41 from CVS. When I use the btape command and try to run test I get this message immediately and no other tests are performed. : then write 1000 records and an EOF, then rewind, and re-read the data to verify that it is correct. This is an *essential* feature ... 18-Oct 14:58 btape: btape Fatal error: End of Volume at 0:0 on device LTO-A (/dev/st0) (part_size=0,free_space=0, free_space_errno=0, errmsg=). btape: btape.c:791 Error writing block to device. The bacula-sd.conf device entry is shown below: Device { Name = LTO-A Media Type = LTO Archive Device = /dev/st0 LabelMedia = yes; Random Access = no; AutomaticMount = yes; RemovableMedia=yes; AlwaysOpen = no; } The device is a Seagate LTO-1 drive. /proc/scsi/scsi lists it as: Host: scsi6 Channel: 00 Id: 00 Lun: 01 Vendor: SEAGATE Model: ULTRIUM06242-XXX Rev: 1536 Type: Sequential-AccessANSI SCSI revision: 03 My new LTO1, Host: scsi1 Channel: 00 Id: 08 Lun: 00 Vendor: HP Model: Ultrium 1-SCSI Rev: E0AV Type: Sequential-AccessANSI SCSI revision: 03 is working fine with this config: Device { Name = Ultrium-LTO1 Media Type = LTO1 Archive Device = /dev/nst1 Removable Media = yes RandomAccess = no Autochanger = no Backward Space Record = yes Automatic Mount = yes Offline On Unmount = yes Always Open = yes Close on Poll = yes Volume Poll Interval = 1m } and the following mt tweaks: /etc/rc.d/rc.M:/bin/mt -f /dev/nst1 stsetoptions can-bsr /etc/rc.d/rc.M:/bin/mt -f /dev/nst1 defblksize 0 -- 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] retention for each job?
Andreas Jellinghaus wrote: Hi, retention times are client specific, as far as I can see. however I have a client with two filesets and two backup jobs. the first runs nightly and needs to be kept for a month only, the other one runs monthly, but needs to be kept for months. can I somehow set the retention time for each job? so far I get errors (1.36.2/debian) and can set the retention time only for the client in the config file. maybe any tricks or workarounds? guess I can configure the longer retention time, and then use sql to find the jobs which can be expired early and use some console command to forefully purge those jobs and files so the tape can be recycled. would that work? is there a better way? One assumes these jobs run to different Pools. The correct way to do this, certainly, is to use two divverent Pools with retention set differently for each Pool. -- 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] LTO drive - End Of Volume error
Phil, Thanks for the response and the useful info. Sadly, the error persists... Regards David Am totally new to bacula and have installed v1.37.41 from CVS. When I use the btape command and try to run test I get this message immediately and no other tests are performed. : 18-Oct 14:58 btape: btape Fatal error: End of Volume at 0:0 on device LTO-A (/dev/st0) (part_size=0,free_space=0, free_space_errno=0, errmsg=). btape: btape.c:791 Error writing block to device. The bacula-sd.conf device entry is shown below: Device { Name = LTO-A Media Type = LTO Archive Device = /dev/st0 LabelMedia = yes; Random Access = no; AutomaticMount = yes; RemovableMedia=yes; AlwaysOpen = no; } The device is a Seagate LTO-1 drive. /proc/scsi/scsi lists it as: Host: scsi6 Channel: 00 Id: 00 Lun: 01 Vendor: SEAGATE Model: ULTRIUM06242-XXX Rev: 1536 Type: Sequential-AccessANSI SCSI revision: 03 My new LTO1, Host: scsi1 Channel: 00 Id: 08 Lun: 00 Vendor: HP Model: Ultrium 1-SCSI Rev: E0AV Type: Sequential-AccessANSI SCSI revision: 03 is working fine with this config: Device { Name = Ultrium-LTO1 Media Type = LTO1 Archive Device = /dev/nst1 Removable Media = yes RandomAccess = no Autochanger = no Backward Space Record = yes Automatic Mount = yes Offline On Unmount = yes Always Open = yes Close on Poll = yes Volume Poll Interval = 1m } and the following mt tweaks: /etc/rc.d/rc.M:/bin/mt -f /dev/nst1 stsetoptions can-bsr /etc/rc.d/rc.M:/bin/mt -f /dev/nst1 defblksize 0 --- 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] LTO drive - End Of Volume error
Good thought... OK - I have a new box of tapes and it gives the same error on three that I've tried from that box, too. Is there a way to get more info on the error? Am happy to compile with debug if that would help identify the cause... Regards David From: Phil Stracchino [EMAIL PROTECTED] To: David Raine [EMAIL PROTECTED] CC: bacula-users@lists.sourceforge.net Subject: Re: [Bacula-users] LTO drive - End Of Volume error Date: Tue, 18 Oct 2005 14:45:55 -0400 David Raine wrote: Phil, Thanks for the response and the useful info. Sadly, the error persists... Is it consistent across multiple tapes? -- 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] retention for each job?
On Tuesday 18 October 2005 19:53, Phil Stracchino wrote: One assumes these jobs run to different Pools. The correct way to do this, certainly, is to use two divverent Pools with retention set differently for each Pool. Hi Phil, thanks for the idea. unfortunatly I'm not using serveral pools at the moment. Is there still a way to set retention times per Job? or maybe is it possible to set it within a schedule? Regards, Andreas -- - [ SECURITY NOTICE ] - To: [EMAIL PROTECTED], [EMAIL PROTECTED] For your security, [EMAIL PROTECTED] digitally signed this message on 18 October 2005 at 19:24:14 UTC. Verify this digital signature at http://www.ciphire.com/verify. [ CIPHIRE DIGITAL SIGNATURE ] Q2lwaGlyZSBTaWcuAjhwaGlsLnN0cmFjY2hpbm9Ac3BlYWtlYXN5Lm5ldCwgYmFj dWxhLXVzZXJzQGxpc3RzLnNvdXJjZWZvcmdlLm5ldABhakBsZW9naWMuY29tAGVt YWlsIGJvZHkAZAEAAHwAfAEAAADeS1VDZAEAAKMCAAIAAgACACCHaytCC/I1 yJfSWUTuECMNwwaGnqUcwvfnU3NHjjXD4QEAQztwatyzPITyeAZTXiiPZpX2gsll vVebzpAQHA8q+zFHH1OKupxJl9ggV++HRrW4CZi/4ILB07tWyXXuxV2HgahfRdvW U2lnRW5k -- [ END DIGITAL SIGNATURE ] -- --- 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] how to change volume attributes
Shawn Wilson wrote: Hi I need to change the Max volume jobs attribute on a volume but I can't figure out how other than changing the attributes of the pool and re-labelling the volume. Is this the only way to do it Change the Pool definition, reload, then execute the console command Update Volumes From Pool -- 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] LTO drive - End Of Volume error
David Raine wrote: Good thought... OK - I have a new box of tapes and it gives the same error on three that I've tried from that box, too. Is there a way to get more info on the error? Am happy to compile with debug if that would help identify the cause... Have you tried using tapeinfo -f /dev/tape to get error information? -- 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] retention for each job?
Andreas Jellinghaus wrote: On Tuesday 18 October 2005 19:53, Phil Stracchino wrote: One assumes these jobs run to different Pools. The correct way to do this, certainly, is to use two divverent Pools with retention set differently for each Pool. Hi Phil, thanks for the idea. unfortunatly I'm not using serveral pools at the moment. Is there still a way to set retention times per Job? or maybe is it possible to set it within a schedule? No, this is not possible. You need to set up multiple Pools, otherwise you can end up with Jobs with vastly different retention times on the same Volume. -- 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
[Bacula-users] problems with schedules 1.33.6
good day all ... i'm confused a bit about schedules. i have a basic setup of 1.33.6, i added another job to the default config. in the console, status director shows only default jobs: *status director Using default Catalog name=MyCatalog DB=bacula lance-dir Version: 1.36.3 (22 April 2005) x86_64-unknown-linux-gnu suse 9.3 Daemon started 18-Oct-05 15:02, 0 Jobs run since started. Scheduled Jobs: Level Type Pri Scheduled Name Volume === Incremental Backup 10 19-Oct-05 01:05 Client1 *unknown* Full Backup 11 19-Oct-05 01:10 BackupCatalog *unknown* however, the other job does show up in the console using show jobs: Job: name=LanceLocal JobType=66 level=Full Priority=10 MaxJobs=1 Resched=0 Times=0 Interval=1,800 Spool=0 and its schedule -- Schedule: name=LanceSched -- Run Level=Full hour=6 mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 month=0 1 2 3 4 5 6 7 8 9 10 11 wday=0 wom=0 1 2 3 4 woy=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 mins=22 the schedule i have in the config file is: Schedule { Name = LanceSched Run = Full sun at 6:22 } why doesn't this job show up in the director status? --- michael
Re: [Bacula-users] Connection Problems
Just the post about doing a tcp-dump. Which isn't helpful.On 10/18/05, Paul Burton [EMAIL PROTECTED] wrote:Has there been a response to this post as I have exactly the sameproblem, i have done a tcp dump on both server and client and all seems aok --Paul Burton | Systems Administrator | Reading RoomT: 020 7432 6016 | E: [EMAIL PROTECTED]A: 53 Frith St, Soho, London W1D 4SN--- LONDON/MANCHESTER/SYDNEY www.readingroom.com2 sites short listed for 2005 New Media Age AwardsWinner Best Website - LexisNexis Awards 2005 - LITRGRanked 2nd in UK - Digital Media, Design High Flyers - Design Week 2005 Winner - Visionary Design Award 2004 - Disability Rights CommissionMost Respected Agency – top ten listing New Media Age 2003 and 2004Winner - New Media Age Effectiveness Award 2004 – Race for LifeThe information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.If you are not the intended recipient please notify us by telephone immediately on 0207 025 1800 or return it to us via e-mail. Please then delete it from your system.
Re: [Bacula-users] Remote client commands after bacula's fail
Hello, On 18.10.2005 09:58, Marek Simon wrote: I backup oracle with by way: shut down the server, copy dbf files and start up the server both commands are sent by bacula through Client Run Before Job and Client Run After Job parameters. but when bacula fails to do backup (full storage etc), the after command don't start and the server remains down. Can I set bacula to run the after command (or any command), even if backup fails? I don't think so. That would also be a problem if connectivity between the DIR and the FD was lost... In your situation, I'd do things differently. Either, use a backup method which doesn't require tha server to be shut down. That should be possible. You could also shutdown the server, copy the data files to another, local, location, and restart the server. Then back up the copy. That would also reduce service downtime, but it would require additional space. Or you use a process that watches for the backup to take place. In your client run before script, start another script into the background, that could do the following: Wait a while, query the DIR if the backup job still runs, query the FD if the backup job still runs, check a reasonable timeout, if any of the above tests fail, if the job is not finished, send a cancel to the DIR, stop and restart the FD, send a message to the operator, otherwise the job has terminated ok restart your database exit continue This would need some scripting or serious programming, but you could do most checks either through bconsole or start your own programm with the tray monitor as a template. Marek 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] Restoring a Bacula Server
Hi all, I've been using Bacula on our FreeBSD servers for less than half of this year and it has worked quite well. It occurred to me that I should brush up on the Bacula recovery process and in the process of reading I find I am not quite clear as to what I need to do in order to restore a Bacula server. I need to document the restore process as clearly as possible. I'm looking at this section (Here's the link (http://bacula.org/rel-manual/Disast_Recove_Using_Bacula.html#SECTION0003612 000) as follows: If you have a valid saved Bootstrap file as created for your damaged machine with WriteBootstrap, use it to restore the files to the damaged machine, where you have loaded a static Bacula File daemon using the Bacula Rescue disk). This is done by using the restore command and at the yes/mod/no prompt, selecting mod then specifying the path to the bootstrap file. It seems that I am to restore a valid saved bootstrap file for the damaged machine. I am unsure to which machine the bootstrap file is to go. Is it to the damaged server or to the new machine? If I interpret it correctly, the bootstrap file should be restored to the new server. I then need to run the static bacula-fd on the damaged machine to be recovered. The static bacula-fd then will restore data from either an attached tape drive or an external HD on the new server using the catalog on the new bacula server. Once the damaged machine has restored its files, it can be rebooted and then be its old self (assuming the necessary files have been properly backed up and restored). Am I on the right track as far as restoring a Bacula server is concerned? In the above particular case, the bootstrap file is the BackupCatalog.bsr? Not the bootstrap file for the client (i.e. Aries.bsr)? ~Doug --- 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 errors: Permission Denied
I'm running bacula 1.36.2 on Debian stable. Whenever I try to run a restore job, it fails with: 19-Oct 11:29 helmsdeep: Start Restore Job Restore.2005-10-19_11.29.50 19-Oct 11:29 newman: Restore.2005-10-19_11.29.50 Fatal error: Could not create bootstrap file /var/lib/bacula/newman.Restore.2005-10-19_11.29.50.bootstrap: ERR=Permission denied 19-Oct 11:29 newman: Restore.2005-10-19_11.29.50 Fatal error: job.c:1662 Comm error with SD. bad response to Bootstrap. ERR=Connection reset by peer 19-Oct 11:29 helmsdeep: Restore.2005-10-19_11.29.50 Error: Bacula 1.36.2 (28Feb05): 19-Oct-2005 11:29:53 JobId: 878 Job:Restore.2005-10-19_11.29.50 Client: newman Start time: 19-Oct-2005 11:29:52 End time: 19-Oct-2005 11:29:53 Files Expected: 1 Files Restored: 0 Bytes Restored: 0 Rate: 0.0 KB/s FD Errors: 0 FD termination status: Error SD termination status: Error Termination:*** Restore Error *** This machine runs all bacula daemons. The director and sd run as the bacula user, and the sd runs as root. /var/lib/bacula is writable by the bacula user (and root, obviously :-). I've tried modifying the job and redirecting the bootstrap file elsewhere (eg /tmp), but I keep getting the same errors. I have never run a successful restore using bconsole. I'm forced to use bextract to do all my restores, which works fine. Any ideas? Thanks, Craig -- Craig Holyoak [EMAIL PROTECTED] http://www.helmsdeep.org/ signature.asc Description: Digital signature