[Bacula-users] One Backup OK - Others Hang
I'm using bacula 3.0.3 that was compiled on a Gentoo distribution using its portage system. The director, storage, and file daemons are all running on this same system. Bacula works fine for one backup. However any subsequent backup hangs. Stopping and restarting both the director and storage daemons will allow me to run one backup successfully and then it hangs again. The director status report the backup as running: *status dir snip Running Jobs: Console connected at 02-Feb-10 08:13 JobId Level Name Status == 21 Increme chameleon_test.2010-02-02_08.14.21_06 is running However the storage daemon is not doing anything: *status storage snip Running Jobs: No Jobs running. Jobs waiting to reserve a drive: Device status: Device FileStorage (/archive/backup) is not open. Any ideas on how to fix this? Thanks, Drew -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] One Backup OK - Others Hang
John Drescher wrote: On Tue, Feb 2, 2010 at 11:47 AM, Drew Tomlinson d...@mykitchentable.net wrote: I'm using bacula 3.0.3 that was compiled on a Gentoo distribution using its portage system. The director, storage, and file daemons are all running on this same system. Bacula works fine for one backup. However any subsequent backup hangs. Stopping and restarting both the director and storage daemons will allow me to run one backup successfully and then it hangs again. The director status report the backup as running: *status dir snip Running Jobs: Console connected at 02-Feb-10 08:13 JobId Level Name Status == 21 Increme chameleon_test.2010-02-02_08.14.21_06 is running However the storage daemon is not doing anything: *status storage snip Running Jobs: No Jobs running. Jobs waiting to reserve a drive: Device status: Device FileStorage (/archive/backup) is not open. Any ideas on how to fix this? How long is it running? Probably spooling attributes to the database. The particular instance has been running for 105 minutes. However I've let jobs run for over 8 hours and they still never finished. The fileset for this test backup is just /etc/bacula which totals about 18K. When I run the first backup that completes, it only takes about 10 seconds to run. Thanks, Drew -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] One Backup OK - Others Hang
John Drescher wrote: The particular instance has been running for 105 minutes. However I've let jobs run for over 8 hours and they still never finished. The fileset for this test backup is just /etc/bacula which totals about 18K. When I run the first backup that completes, it only takes about 10 seconds to run. Run the director from the shell with -d 100 -c /etc/bacula/bacula-dir.conf And see if there is anything suspicious in the output. John Thanks I tried that and do not see anything apparent to me. Here's the tail of that output: chameleon-dir: job.c:364-23 End Job stat=T == chameleon-dir: mysql.c:236-0 closedb ref=1 connected=1 db=6969f0 chameleon-dir: jcr.c:183-0 write_last_jobs seek to 192 End of first job that completes OK chameleon-dir: ua_run.c:1325-0 Using pool Incrementals chameleon-dir: job.c:1276-0 wstorage=File chameleon-dir: job.c:1285-0 wstore=File where=Job resource chameleon-dir: job.c:1310-0 wstore=File where=Job resource chameleon-dir: ua_run.c:178-0 JobId=0 using pool Incrementals priority=10 chameleon-dir: job.c:937-0 JobId=0 created Job=chameleon_test.2010-02-02_10.00.59_04 chameleon-dir: job.c:127-0 Open database chameleon-dir: mysql.c:92-0 DB REopen 1 bacula chameleon-dir: mysql.c:96-0 initdb ref=2 connected=1 db=6969f0 chameleon-dir: job.c:809-0 Created Client chameleon-fd record 1 chameleon-dir: job.c:173-24 Created job record JobId=24 Name=chameleon_test.2010-02-02_10.00.59_04 Type=B Level=I chameleon-dir: pythonlib.c:227-24 No startup module. chameleon-dir: sql_find.c:138-24 Got start time: 2010-02-02 10:00:47 chameleon-dir: sql_find.c:186-24 Got start time: 2010-02-01 14:54:53 chameleon-dir: fd_cmds.c:214-24 have_full=1 do_full=0 now=1265133659 full_time=1265064893 chameleon-dir: fd_cmds.c:271-24 Level=I last start time=2010-02-02 10:00:47 chameleon-dir: ua_run.c:182-0 JobId=24 NewJobId=24 using pool Incrementals priority=10 chameleon-dir: ua_dotcmds.c:130-0 Cmd: .messages chameleon-dir: ua_dotcmds.c:130-0 Cmd: .messages And it just sits there running... Thanks, Drew -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] One Backup OK - Others Hang
John Drescher wrote: On Tue, Feb 2, 2010 at 1:08 PM, Drew Tomlinson d...@mykitchentable.net wrote: John Drescher wrote: The particular instance has been running for 105 minutes. However I've let jobs run for over 8 hours and they still never finished. The fileset for this test backup is just /etc/bacula which totals about 18K. When I run the first backup that completes, it only takes about 10 seconds to run. Run the director from the shell with -d 100 -c /etc/bacula/bacula-dir.conf And see if there is anything suspicious in the output. John Wait a minute. Are you sending emails after each job? John Ahhh... Maybe. It's the default dir.conf that I only modified a little for testing. However this is in the dir.conf: # Reasonable message delivery -- send most everything to email address # and to the console Messages { Name = Standard # # NOTE! If you send to two email or more email addresses, you will need # to replace the %r in the from field (-f part) with a single valid # email address in both the mailcommand and the operatorcommand. # What this does is, it sets the email address that emails would display # in the FROM field, which is by default the same email as they're being # sent to. However, if you send email to more than one address, then # you'll have to set the FROM address manually, to a single address. # for example, a 'no-re...@mydomain.com', is better since that tends to # tell (most) people that its coming from an automated source. # mailcommand = /usr/sbin/bsmtp -h localhost -f \\(Bacula\) \%r\\ -s \Bacula: %t %e of %c %l\ %r operatorcommand = /usr/sbin/bsmtp -h localhost -f \\(Bacula\) \%r\\ -s \Bacula: Intervention needed for %j\ %r mail = r...@localhost = all, !skipped operator = r...@localhost = mount console = all, !skipped, !saved # # WARNING! the following will create a file that you must cycle from # time to time as it will grow indefinitely. However, it will # also keep all your messages if they scroll off the console. # append = /var/lib/bacula/log = all, !skipped catalog = all } # # Message delivery for daemon messages (no job). Messages { Name = Daemon mailcommand = /usr/sbin/bsmtp -h localhost -f \\(Bacula\) \%r\\ -s \Bacula daemon message\ %r mail = r...@localhost = all, !skipped console = all, !skipped, !saved append = /var/lib/bacula/log = all, !skipped } I can try commenting all that out and see what happens. Thanks, Drew -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] One Backup OK - Others Hang
John Drescher wrote: Wait a minute. Are you sending emails after each job? John Ahhh... Maybe. It's the default dir.conf that I only modified a little for testing. However this is in the dir.conf: Recently I have seen users on this list having problems where emailing was causing this type of hang. John Yes, that was it. Thanks for your help. Now I'll have to work through the problems with the mail command as ultimately, I'd like to receive status emails. Cheers, Drew -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula and OpenBSD's pf Firewall -- SOLVED (kind of)
On 4/3/2007 2:58 PM Drew Tomlinson said the following: On 4/3/2007 1:35 PM Kern Sibbald wrote: On Monday 02 April 2007 23:47, Drew Tomlinson wrote: I run Bacula v1.38 on my home network. Both the director and the client with which I am having trouble are running FreeBSD 6.1. Things worked flawlessly until I changed my firewall from ipfw2 to pf, backups fail intermittently on my router due to broken network pipes usually after somewhere around 10 MB - 12 MB has been transfered. Thus small incremental backups are successful but larger full backups are not. I do not have this problem when I disable pf on the router, nor do I have problems when completing backups with other machines on my internal network. My setup looks like this: bacula director - router (client) 192.168.1.4 (fxp0)192.168.1.2 (dc0) Communication takes place on ports 9102 and 9103. I captured this output from pflog0 after starting a backup: blacksheep# tcpdump -nei pflog0 ( host blacksheep or blacklamb ) and ( port 9102 or port 9103 ) tcpdump: WARNING: pflog0: no IPv4 address assigned tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on pflog0, link-type PFLOG (OpenBSD pflog file), capture size 96 bytes 2007-04-02 13:57:21.021122 rule 7/0(match): pass in on dc0: 192.168.1.4.52295 192.168.1.2.9102: S 2822997678:2822997678(0) win 65535 mss 1460,nop,wscale 1,[|tcp] 2007-04-02 13:57:23.532037 rule 13/0(match): pass out on dc0: 192.168.1.2.64955 192.168.1.4.9103: S 2265048451:2265048451(0) win 65535 mss 1460,nop,wscale 1,[|tcp] 2007-04-02 13:57:23.532323 rule 7/0(match): pass in on dc0: 192.168.1.4.9103 192.168.1.2.64955: S 3452777266:3452777266(0) ack 2265048452 win 65535 mss 1460,nop,wscale 1,[|tcp] And the rules are: @7 pass in log on dc0 inet proto tcp from 192.168.1.0/24 to any modulate state queue(std_out, ack_out) @13 pass out log on dc0 inet all Any ideas why Bacula would have such a problem? Other things to check? It sounds like it is clearly a problem with pf or your configuration of pf, and so you probably should bring it up with the OpenBSD pf group. The Bacula manual has a section some place with a schematic of all the connections that take place between the daemons for those who work with firewalls. With that info in hand, a pf firewall expert should be able to resolve the problem. Agreed. I am using FreeBSD and the ported pf that is included with the base system. I've posted this message to the FreeBSD pf list as well but there has only been limited response. I was just hoping maybe I'd find someone here that has experience with both pf and Bacula and might have some suggestions. I will find the connection schematic you mention and see if there's some clues there. Just wanted to update for the archives. After receiving some help on the FreeBSD pf list, I am fairly confident the problem lies with keep state in my pf configuration. Turning on detailed pf logging revealed numerous keep state related issues with my configuration. Now I have to learn more about pf and state and then configure my firewall accordingly. So bottom line, the problem is with my pf configuration and not Bacula. Sorry for the noise. Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula and OpenBSD's pf Firewall
On 4/3/2007 1:35 PM Kern Sibbald wrote: On Monday 02 April 2007 23:47, Drew Tomlinson wrote: I run Bacula v1.38 on my home network. Both the director and the client with which I am having trouble are running FreeBSD 6.1. Things worked flawlessly until I changed my firewall from ipfw2 to pf, backups fail intermittently on my router due to broken network pipes usually after somewhere around 10 MB - 12 MB has been transfered. Thus small incremental backups are successful but larger full backups are not. I do not have this problem when I disable pf on the router, nor do I have problems when completing backups with other machines on my internal network. My setup looks like this: bacula director - router (client) 192.168.1.4 (fxp0)192.168.1.2 (dc0) Communication takes place on ports 9102 and 9103. I captured this output from pflog0 after starting a backup: blacksheep# tcpdump -nei pflog0 ( host blacksheep or blacklamb ) and ( port 9102 or port 9103 ) tcpdump: WARNING: pflog0: no IPv4 address assigned tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on pflog0, link-type PFLOG (OpenBSD pflog file), capture size 96 bytes 2007-04-02 13:57:21.021122 rule 7/0(match): pass in on dc0: 192.168.1.4.52295 192.168.1.2.9102: S 2822997678:2822997678(0) win 65535 mss 1460,nop,wscale 1,[|tcp] 2007-04-02 13:57:23.532037 rule 13/0(match): pass out on dc0: 192.168.1.2.64955 192.168.1.4.9103: S 2265048451:2265048451(0) win 65535 mss 1460,nop,wscale 1,[|tcp] 2007-04-02 13:57:23.532323 rule 7/0(match): pass in on dc0: 192.168.1.4.9103 192.168.1.2.64955: S 3452777266:3452777266(0) ack 2265048452 win 65535 mss 1460,nop,wscale 1,[|tcp] And the rules are: @7 pass in log on dc0 inet proto tcp from 192.168.1.0/24 to any modulate state queue(std_out, ack_out) @13 pass out log on dc0 inet all Any ideas why Bacula would have such a problem? Other things to check? It sounds like it is clearly a problem with pf or your configuration of pf, and so you probably should bring it up with the OpenBSD pf group. The Bacula manual has a section some place with a schematic of all the connections that take place between the daemons for those who work with firewalls. With that info in hand, a pf firewall expert should be able to resolve the problem. Agreed. I am using FreeBSD and the ported pf that is included with the base system. I've posted this message to the FreeBSD pf list as well but there has only been limited response. I was just hoping maybe I'd find someone here that has experience with both pf and Bacula and might have some suggestions. I will find the connection schematic you mention and see if there's some clues there. Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Bacula and OpenBSD's pf Firewall
I run Bacula v1.38 on my home network. Both the director and the client with which I am having trouble are running FreeBSD 6.1. Things worked flawlessly until I changed my firewall from ipfw2 to pf, backups fail intermittently on my router due to broken network pipes usually after somewhere around 10 MB - 12 MB has been transfered. Thus small incremental backups are successful but larger full backups are not. I do not have this problem when I disable pf on the router, nor do I have problems when completing backups with other machines on my internal network. My setup looks like this: bacula director - router (client) 192.168.1.4 (fxp0)192.168.1.2 (dc0) Communication takes place on ports 9102 and 9103. I captured this output from pflog0 after starting a backup: blacksheep# tcpdump -nei pflog0 ( host blacksheep or blacklamb ) and ( port 9102 or port 9103 ) tcpdump: WARNING: pflog0: no IPv4 address assigned tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on pflog0, link-type PFLOG (OpenBSD pflog file), capture size 96 bytes 2007-04-02 13:57:21.021122 rule 7/0(match): pass in on dc0: 192.168.1.4.52295 192.168.1.2.9102: S 2822997678:2822997678(0) win 65535 mss 1460,nop,wscale 1,[|tcp] 2007-04-02 13:57:23.532037 rule 13/0(match): pass out on dc0: 192.168.1.2.64955 192.168.1.4.9103: S 2265048451:2265048451(0) win 65535 mss 1460,nop,wscale 1,[|tcp] 2007-04-02 13:57:23.532323 rule 7/0(match): pass in on dc0: 192.168.1.4.9103 192.168.1.2.64955: S 3452777266:3452777266(0) ack 2265048452 win 65535 mss 1460,nop,wscale 1,[|tcp] And the rules are: @7 pass in log on dc0 inet proto tcp from 192.168.1.0/24 to any modulate state queue(std_out, ack_out) @13 pass out log on dc0 inet all Any ideas why Bacula would have such a problem? Other things to check? Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Using Tape for Full but File for Other Levels
I have some large backup sets that are fairly static. Thus, I'd like to have full backups go to tape but use a disk drive to store diffs. The full jobs will be run manually but I'd like the diffs to run on a weekly schedule. Is this possible? I tried creating a separate job for the diffs but since it is different, Bacula wants to upgrade it to full (which makes sense now that I think about it). So if this is possible, it must have to be configured in the existing job. I've Googled but can't seem to use a relevant search string. Any kicks to docs or previous posts appreciated. Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Build Statically Linked Client on FreeBSD? (Was Re: [Bacula-users] Help With Bare Metal Recover on FreeBSD 6.0?)
On 2/25/2006 7:47 AM Dan Langille said the following: On 25 Feb 2006 at 7:17, Drew Tomlinson wrote: On 2/25/2006 4:45 AM Dan Langille said the following: On 24 Feb 2006 at 23:05, Drew Tomlinson wrote: I'm trying to do the FreeBSD Bare Metal Recover as described in the Bacula manual. I'm having problems with step 3, starting an emergency console. I follow the steps and get a message stating that an Emergency Holographic console has been started on vt4. OK, I use alt-F4 and get a black screen with a # prompt. However no commands work. Even a simple ls returns ls: not found. I am using the FreeBSD 6.0 install CD with which I installed this system. Any ideas on what I'm missing? I think you're using the install CD. Try using the Live CD. Something like FreeSBIE would work. Or the disc2. Yes, I'm using disk 1. Maybe the docs should be updated as step 1 says Boot with the FreeBSD installation disk which led me to believe that disk 1 was all I needed. I tried FreeSBIE2 and included the bacula client as a package. It almost worked but when I attempted to start bacula-fd, I received an error that was something along the lines of libexec/ld-elf.so: libz.so.2 not found. So I guess I need to build a statically linked bacula-fd? I would guess that. I don't know how to do that. My current situation is the device that needs to be restored is (was) FreeBSD 6.0 running on a Pentium III 550 mhz box. My bacula director, catalogs, storage, etc. is on another box running FreeBSD 6.0 on a Pentium III 600 box. Thus binaries should be transportable. I'm still on bacula 1.36.3 as one of the clients in my network is Gentoo and there is no updated ebuild in the regular portage tree and as such, I've been hesitant to upgrade. So what is the best (easiest) way to get a version of bacula-fd running on the failed box? I would install the OS, and build Bacula from ports. That's what I'd do. I did this and was able to restore my system. Thanks for your help. However, I would like to learn how to build a statically linked version of Bacula from within the ports system and then have that package available to include on a FreeSBIE CD for future incidents. Does anyone know if this is possible? And if so, how? Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Help With Bare Metal Recover on FreeBSD 6.0?
I'm trying to do the FreeBSD Bare Metal Recover as described in the Bacula manual. I'm having problems with step 3, starting an emergency console. I follow the steps and get a message stating that an Emergency Holographic console has been started on vt4. OK, I use alt-F4 and get a black screen with a # prompt. However no commands work. Even a simple ls returns ls: not found. I am using the FreeBSD 6.0 install CD with which I installed this system. Any ideas on what I'm missing? Thanks, Drew --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Re: Viewing MySQL Output (Was: Large Bacula databases and bacula's dbcheck)
On 1/28/2006 6:27 AM Deann Corum wrote: Thanks Jeffrey and Attiila. I'll look at the dbcheck script and see what I can figure out. And the mysqladmin processlist command is very helpful. It's also good to know others out there have large Bacula databases. I still wonder what the largest known one is! I suspect the answer is simple but I have been unable to find it. How can I view MySQL output such as that from the 'mysqladmin processlist' command without it wrapping on my terminal? When it wraps, it's unreadable. I'd like to pipe the output to some utility that will keep it all on one line and let me scroll through it with the arrow keys. I tried 'less' but it didn't work for me as it still wrapped. Is there something else? Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Re: Viewing MySQL Output (Was: Large Bacula databases and bacula's dbcheck)
On 1/28/2006 9:59 AM Sebastian Stark wrote: Am 28.01.2006 um 17:58 schrieb Drew Tomlinson: I tried 'less' but it didn't work for me as it still wrapped. Is there something else? Type -Senter within less. Or do export LESS=-S (or setenv LESS -S for tcsh) in your shell startup file. Thank you very much! That works well. However is there some way to achieve the same from within 'mysql' system? Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Large Bacula databases and bacula's dbcheck
On 1/28/2006 7:48 AM Jeffrey L. Taylor wrote: I added 4 indexes: File.PathId, File.FilenameId, Job.FileSetId, and Job.ClientId. dbcheck now takes 1 minute. Without the indexes, I killed the orphaned path check after 2 days. This made an amazing difference for me as well. I know basically nothing about MySQL but read the docs and added the indexes you mention. Is there any downside to doing this other than the additional overhead when inserting records? And if there's minimal downside, is there any reason why Bacula doesn't come with these indexes by default? Just curious. Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] exclude don't work
On 12/28/2005 8:29 AM Martin Simmons wrote: On Tue, 27 Dec 2005 11:10:16 +0100, Julien Cigar [EMAIL PROTECTED] said: Julien Hello, Julien I have some problems to exclude some files. Julien My fileset looks like this : Julien FileSet { Julien Name = canis-fs Julien Include { Julien Options { Julien #compression = GZIP6 Julien IgnoreCase = no Julien signature = MD5 Julien recurse = yes Julien onefs = yes Julien } Julien @/etc/bacula/includes/global Julien @/etc/bacula/includes/canis Julien } Julien Include { Julien Options { Julien IgnoreCase = yes Julien Exclude = yes Julien @/etc/bacula/excludes/global Julien } Julien } Julien Exclude { Julien File = /home/sys_samba/shares/bebif/pictures Julien File = core Julien } Julien } Julien in /etc/bacule/excludes/global I have : Julien WildFile = *.mp3 Julien WildFile = *.mpc Julien WildFile = *.ogg Julien WildFile = *.wav Julien WildFile = *.bak Julien WildFile = *.tmp Julien WildFile = *.pyc Julien but bacula backup continues to backup those files : Julien Enter Filename (no path): My Dying Bride - The Light At The End Of The Julien World - 01 - She Is The Dark.mpc Julien +---+--+-+---+-+---+--+-+ Julien | JobId | Client | Julien Path.Path Julien | Julien Filename.Name Julien | StartTime | Level | JobFiles | JobBytes| Julien +---+--+-+---+-+---+--+-+ Julien | 9 | canis-fd | Julien /home/jcigar/audio/My_Dying_Bride_-_The_Light_at_the_End_of_the_World/ | Julien My Dying Bride - The Light At The End Of The World - 01 - She Is The Julien Dark.mpc | 2005-12-19 03:00:02 | F | 500673 | 85791660261 | Julien ... Julien what did i miss ? What is in /etc/bacula/includes/global and /etc/bacula/includes/canis? If they contain any Options clauses with wild/regex patterns then these might match before the exclude. __Martin Please excuse me if this has already been discussed. I have missed most of the thread. However, there is some known issue regarding excludes and wildcard pattern matching with Bacula 1.36.x when it is running on FreeBSD. It may persist in the newest version too. I can't remember the details but if you're using FreeBSD, you might want to search the archives. HTH, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Device BLOCKED changing tapes
On 12/8/2005 5:18 PM David Raine wrote: I know this has been mentioned in the past, but I can't find anything other than Kern indicating that one should run through the tutorial (which I've done). Bacula 1.38.2 on debian sarge, LTO-1 tape drive When tape tape-0002 fills, I get a request to mount the next available volume (tape-0003, it is pre-labelled), I put tape-0003 in, wait a while then mount it. The mount succeeds but the backup does not continue. status stor gives this message: Device status: Device LTO-A (/dev/st0) open but no Bacula volume is mounted. Device is BLOCKED waiting for media. Total Bytes Read=0 Blocks Read=0 Bytes/block=0 Positioned at File=0 Block=0 In Use Volume status: tape-0003 on device LTO-A (/dev/st0) Data spooling: 1 active jobs, 10,737,373,907 bytes; 27 total jobs, 10,737,438,491 max bytes/job. Attr spooling: 1 active jobs, 0 bytes; 27 total jobs, 41,456,838 max bytes. What am I missing? I've tried re-mounting the tape a number of times, unmounting and then remounting does the same... Baffled, worked thru tutorial and still baffled. Rgds David I'm using 1.36.3 and have gotten the same thing when inserting a tape marked Append. On my system, there is some sort of status storage output error. I can't remember the exact message. Something about File=16/0 I think. Anyway, it seems to me that Bacula tries to position the tape to at the end of the current data so it can Append from there. But things don't match up and thus Bacula marks the tape with an Error status. I have yet to run btape to test my drive. It might reveal my problem. The workaround I've found for this is to use another tape if I need the existing data. Or if not, relabel the tape after manually setting its status to Purged. However note that every time I relabel the tape, it gets deleted from the catalog and thus I have to add it again. HTH a little, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] How To Delete One Job From Catalog?
On 11/22/2005 6:56 PM Ryan Novosielski wrote: You even said it in the subject, Drew. :) 'delete' is the command you're looking for. Thanks. I don't know how I missed it. Drew Drew Tomlinson wrote: How can I delete just one job from the catalog? I'm using 1.36.3. I have the following entry in my catalog: +---+-+-+--+---+--+--+---+ | JobId | Name| StartTime | Type | Level | JobFiles | JobBytes | JobStatus | +---+-+-+--+---+--+--+---+ |16 | Blacksheep_Root_Usr | 2005-11-22 04:32:07 | B| F |0 |0 | f | I can't delete by purging the volume because no volume was used. If I select jobs then I have to select the client which deletes all jobs for that client. Is there a way to delete just one job in particular? Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Windows Restore.
On 11/23/2005 11:57 AM Karl Hungus wrote: Here is my fileset. Does this look incorrect? FileSet { Name = Matt Windows Set Include { Options { signature = MD5 } File = C:\CMI_Photos It is incorrect as you have a backslash just as Arno suspected. Replace with C:/CMI_Photos. However that will only work for future backups. I don't know if you can restore anything from your current backup. Good Luck, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] How To Delete One Job From Catalog?
How can I delete just one job from the catalog? I'm using 1.36.3. I have the following entry in my catalog: +---+-+-+--+---+--+--+---+ | JobId | Name| StartTime | Type | Level | JobFiles | JobBytes | JobStatus | +---+-+-+--+---+--+--+---+ |16 | Blacksheep_Root_Usr | 2005-11-22 04:32:07 | B| F |0 |0 | f | I can't delete by purging the volume because no volume was used. If I select jobs then I have to select the client which deletes all jobs for that client. Is there a way to delete just one job in particular? Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Wildcard Workaround for FreeBSD?
I'm using Bacula 1.36.3. In trying to exclude some directories from backup, I tried various incantations of the wild= and regex= as described in the Configuring the Director section of the manual. I could get none to work. Then finally while reading through the examples, I found where is says that the regex functions have been reported not to work on FreeBSD. Is there any workaround short of specifying each directory individually? I'm trying to exclude the Trash folder in each users home directory. The complete path is /usr/home/user/Maildir/.Trash/. Any suggestions? Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Wildcard Workaround for FreeBSD?
On 11/21/2005 10:28 AM Kern Sibbald wrote: On Monday 21 November 2005 19:13, Drew Tomlinson wrote: I'm using Bacula 1.36.3. In trying to exclude some directories from backup, I tried various incantations of the wild= and regex= as described in the Configuring the Director section of the manual. I could get none to work. Then finally while reading through the examples, I found where is says that the regex functions have been reported not to work on FreeBSD. Is there any workaround short of specifying each directory individually? I'm trying to exclude the Trash folder in each users home directory. The complete path is /usr/home/user/Maildir/.Trash/. Any suggestions? Try using WildDir = *.Trash and exclusion. You might need to add a / to the end of that expression. Thanks for your reply. However, neither *.Trash nor *.Trash/ works for me. Just to be sure it's not a syntax issue, here is the specific section of my bacula-dir.conf file: FileSet { Name = FBSD Root_Usr Include { File = / File = /usr Options { compression=GZIP signature=MD5 } } # Second Include is to really Exclude some wildcard options. See manual Include { Options { # Manual states regex has been reported to not work on FBSD. Leaving # as placeholder. Idea is to exclude /~/Maildir/.Trash wilddir=*.Trash/ exclude=yes } } Exclude { File = /dev File = /proc File = /.journal File = /.fsck File = /usr/src File = /usr/ports File = /usr/doc File = /usr/obj File = /usr/var/db/mysql File = /usr/var/tmp } } For the record, I have SIGHUPed the bacula-dir process after making each change. I am using the estimate job= listing function from bconsole to test what files will get backed up. Thanks for your help! Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] No Files In Catalog - Where to Start?
I have Bacula 1.36.3 running on a FreeBSD 5.4 machine with MySQL 4.14. Scheduled backups run fine and show that bytes are being backed up. However when I try to restore any files from any job, no files are found to put in the directory tree. Here's some example bconsole output: --- BEGIN --- #restore First you select one or more JobIds that contain files to be restored. You will be presented several methods of specifying the JobIds. Then you will be allowed to select which files from those JobIds are to be restored. To select the JobIds, you have the following choices: 1: List last 20 Jobs run 2: List Jobs where a given File is saved 3: Enter list of comma separated JobIds to select 4: Enter SQL list command 5: Select the most recent backup for a client 6: Select backup for a client before a specified time 7: Enter a list of files to restore 8: Enter a list of files to restore before a specified time 9: Cancel Select item: (1-9): Unexpected question has been received. 3 Enter JobId(s), comma separated, to restore: Unexpected question has been received. 41 You have selected the following JobId: 41 Building directory tree for JobId 41 ... 1 Job, 0 files inserted into the tree. No MediaType found for your JobIds. The defined Storage resources are: 1: File 2: HP DLT 30 Select Storage resource (1-2): Unexpected question has been received. 1 You are now entering file selection mode where you add (mark) and remove (unmark) files to be restored. No files are initially added, unless you used the all keyword on the command line. Enter done to leave this mode. cwd is: / $ ls $ done No files selected to be restored. --- END --- Yet if I use bscan to rebuild the catalog, then files are found. I happened to do this with one volume used for job id 2. Here is more sample bconsole output: --- BEGIN --- #restore First you select one or more JobIds that contain files to be restored. You will be presented several methods of specifying the JobIds. Then you will be allowed to select which files from those JobIds are to be restored. To select the JobIds, you have the following choices: 1: List last 20 Jobs run 2: List Jobs where a given File is saved 3: Enter list of comma separated JobIds to select 4: Enter SQL list command 5: Select the most recent backup for a client 6: Select backup for a client before a specified time 7: Enter a list of files to restore 8: Enter a list of files to restore before a specified time 9: Cancel Select item: (1-9): Unexpected question has been received. 3 Enter JobId(s), comma separated, to restore: Unexpected question has been received. 2 You have selected the following JobId: 2 Building directory tree for JobId 2 ... + 1 Job, 320,834 files inserted into the tree. You are now entering file selection mode where you add (mark) and remove (unmark) files to be restored. No files are initially added, unless you used the all keyword on the command line. Enter done to leave this mode. cwd is: / $ --- END --- Initially I thought this problem was due to a corrupted database. I tried various MySQL commands to repair tables but still had no files listed. Next I ran dbcheck. I had lots of orphaned records. Finally I decided to just blow the database away and start over from scratch. But now that I've started over, I am having the same trouble. So I suspect there is something wrong with my configuration. What are the most likely causes of this and where should I start looking? I'd appreciate any pointers as I have been unable to turn anything up with Google. Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Restore Doesn't List Any Files?
I have many jobs that have backed up zillions of files in my catalog. However when I attempt to restore, no files are inserted into the tree for file selection. I have tried this for many jobs. Here's some example output from bconsole: Expected a positive integer, got: Select item: (1-9): 3 Enter JobId(s), comma separated, to restore: 33 You have selected the following JobId: 33 Building directory tree for JobId 33 ... 1 Job, 0 files inserted into the tree. You are now entering file selection mode where you add (mark) and remove (unmark) files to be restored. No files are initially added, unless you used the all keyword on the command line. Enter done to leave this mode. cwd is: / $ ls $ I have also tried using option 2 (2: List Jobs where a given File is saved) using file names I know exist and no results are returned. So I thought maybe my database was corrupted. I'm using MySQL 4.1.14. I followed the instructions for repairing tables using 'myisamchk' as described in the MySQL docs. There were a few corrupted tables but they were repaired. However the problem persists. I also looked in the database and find lots of records in both the Filename and File tables. So any ideas on what might have happened? Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Re: Database Must Be Broken - Was Restore Doesn't List Any Files?
On 10/27/2005 8:47 AM Drew Tomlinson wrote: I have many jobs that have backed up zillions of files in my catalog. However when I attempt to restore, no files are inserted into the tree for file selection. I have tried this for many jobs. Here's some example output from bconsole: Expected a positive integer, got: Select item: (1-9): 3 Enter JobId(s), comma separated, to restore: 33 You have selected the following JobId: 33 Building directory tree for JobId 33 ... 1 Job, 0 files inserted into the tree. You are now entering file selection mode where you add (mark) and remove (unmark) files to be restored. No files are initially added, unless you used the all keyword on the command line. Enter done to leave this mode. cwd is: / $ ls $ I have also tried using option 2 (2: List Jobs where a given File is saved) using file names I know exist and no results are returned. So I thought maybe my database was corrupted. I'm using MySQL 4.1.14. I followed the instructions for repairing tables using 'myisamchk' as described in the MySQL docs. There were a few corrupted tables but they were repaired. However the problem persists. I also looked in the database and find lots of records in both the Filename and File tables. So any ideas on what might have happened? Thanks, Drew A little more poking around and I find that basically nothing works in bconsole so I suspect my database is extremely corrupted. So now I'm off to Google in search of the recommended method to wipe out the current corrupted database and restore from my nightly catalog backups. However if someone could nudge me in the proper direction, I'd really appreciate it. Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Media without catalog several doubts several questions
On 10/15/2005 6:52 AM Wanderson Berbert wrote: There is a way to extract files from a media without the catalog and the bootstrap file? Bacula dont delete fisicaly the media when pruning catalog so we have a media in the storage without the catalog and without any reference of its existence in bacula, right? A media without the catalog is useless or there is a way to recover flies from it? Look in the manual for bextract and bscan. They're in the Utilities section IIRC. bextract copies directly from media to destination. bscan reads media and rebuilds (mostly) the catalog. I have a DVD and Id like to put my medias in there. For example, medias with less then 30 days is stored on my local hd for faster recovery. After 30 days bacula automatically or with minimal intervention copy the media to a DVD storage for example, maybe a event fired after the media is full or used. My local HD will act like a pool until the media gets the status of full or used and after that the media will be moved to a DVD, the catalog pruned or not and a bootstrap for the media writen with the media in DVD storage. What I really want is have the same medias in HD and CD the diference that the media in HD will have data for the last 30 days for example and in cd will have the data as long as I have the cd, these CDS I dont know how many time I will stay with it (I have a example that I need to restore a almost 2 years old backup due fiscalization) the same time I dont want to fill my catalog with data that maybe I will need so I mentioned the bootstrap. Maybe a separeted catalog for cds will be fine too... I dont know. Is there a way to bacula acomplish with this, sorry for being a bit confused but it is so many question :) You'll have to do some testing to see if the above tools work for you. HTH, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- 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] Media without catalog several doubts several questions
You might want to change your email address to something valid in your mail client: The Postfix program [EMAIL PROTECTED]: host relay.frontiernet.net[66.133.129.10] said: 554 [EMAIL PROTECTED]: Recipient address rejected: RFC1918 address in MX or NS records (192.168.0.0/16). See http://postmaster.frontiernet.net. See http://postmaster.frontiernet.net (in reply to RCPT TO command) On 10/15/2005 6:52 AM Wanderson Berbert wrote: There is a way to extract files from a media without the catalog and the bootstrap file? Bacula dont delete fisicaly the media when pruning catalog so we have a media in the storage without the catalog and without any reference of its existence in bacula, right? A media without the catalog is useless or there is a way to recover flies from it? I have a DVD and Id like to put my medias in there. For example, medias with less then 30 days is stored on my local hd for faster recovery. After 30 days bacula automatically or with minimal intervention copy the media to a DVD storage for example, maybe a event fired after the media is full or used. My local HD will act like a pool until the media gets the status of full or used and after that the media will be moved to a DVD, the catalog pruned or not and a bootstrap for the media writen with the media in DVD storage. What I really want is have the same medias in HD and CD the diference that the media in HD will have data for the last 30 days for example and in cd will have the data as long as I have the cd, these CDS I dont know how many time I will stay with it (I have a example that I need to restore a almost 2 years old backup due fiscalization) the same time I dont want to fill my catalog with data that maybe I will need so I mentioned the bootstrap. Maybe a separeted catalog for cds will be fine too... I dont know. Is there a way to bacula acomplish with this, sorry for being a bit confused but it is so many question :) Thanks... -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- 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: 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
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
[Bacula-users] Help Understanding Auto Pruning?
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 = FULL- AutoPrune = yes # Prune expired volumes Volume Retention = 35 days Accept Any Volume = yes # write on any volume in the pool Maximum Volumes = 10 } Pool { Name = Differentials Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes Recycle Oldest Volume = yes Maximum Volume Jobs = 1 LabelFormat = DIFF- AutoPrune = yes # Prune expired volumes Volume Retention = 8 days Accept Any Volume = yes # write on any volume in the pool Maximum Volumes = 25 } Pool { Name = Incrementals Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes Recycle Oldest Volume = yes Maximum Volume Jobs = 1 LabelFormat = INCR- AutoPrune = yes # Prune expired volumes Volume Retention = 7 days Accept Any Volume = yes # write on any volume in the pool Maximum Volumes = 48 } Pool { Name = Catalogs Pool Type = Backup Recycle = yes # Bacula can automatically recycle Volumes Recycle Oldest Volume = yes Maximum Volume Jobs = 1 LabelFormat = CAT- AutoPrune = yes # Prune expired volumes Volume Retention = 8 days Accept Any Volume = yes # write on any volume in the pool Maximum Volumes = 10 } Pool { Name =
[Bacula-users] Is There A Way To Restore Only Missing Files?
Is there a way to build a restore job that compares the all the files associated with a particular job with the ones currently on a disk and then only restore those that are missing? I was unable to turn anything up with Google. So if this is possible, any nudges toward documentation would be appreciated Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- 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] Is There A Way To Restore Only Missing Files?
On 10/10/2005 12:59 PM Ludovic Strappazon wrote: Hello, A restore with replace = never would'nt do what you need ? Yes, I guess that would do it. Being as these backups are on tape, will a job like that require me to feed all the tapes through or will Bacula only ask for the tapes that are needed? Still new to bacula but beginning to learn enough to become dangerous. :) Thanks, Drew Drew Tomlinson a écrit : Is there a way to build a restore job that compares the all the files associated with a particular job with the ones currently on a disk and then only restore those that are missing? I was unable to turn anything up with Google. So if this is possible, any nudges toward documentation would be appreciated Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- 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] is pthreads fixed on 5.3?
On 10/7/2005 9:38 AM Dan Langille wrote: On 7 Oct 2005 at 12:11, Mason Fischer wrote: I keep getting tape errors from bacula. 19-Aug 15:04 vni-sd: backup.gaoler.2005-08-19_14.55.50 Error: Unable to position to end of data on device /dev/nsa0.0. ERR=dev.c:920 ioctl MTFSF error on /dev/nsa0.0. ERR=Input/output error. 22-Sep 04:09 vni-sd: backup.gaoler.2005-09-22_04.05.02 Error: Unable to position to end of data on device /dev/nsa0.0. ERR=dev.c:920 ioctl MTFSF error on /dev/nsa0.0. ERR=Input/output error. 05-Oct 09:11 vni-sd: backup.gaoler.2005-10-05_09.07.26 Error: Unable to position to end of data on device /dev/nsa0.0. ERR=dev.c:888 read error on /dev/nsa0.0. ERR=Input/output error. I am running FreeBSD 5.3-RELEASE-p1with a sony sdx 500c I was wondering if the pthreads library was fixed in this release platforms/freebsd/pthreads-fix.txt says 5.3 might have it. Also any other ideas on what could be causeing these errors. Did the btape tests run OK? Run the two tape test. If that works, you'll be fine. If it doesn't, then we need to look closer. And did you see the port info? Seems to me I had to add this stuff to get btape to report success. Here's the relevant part of my tape device resource in my bacula-sd.conf: # From the port info: # Due to lack of some features in the FreeBSD tape driver # implementation you MUST add some OS dependent options to # the bacula-sd.conf file: Hardware End of Medium = no; Backward Space Record = no; Backward Space File = no; # With 2 filemart at EOT (see man mt): Fast Forward Space File = no; BSF at EOM = yes; TWO EOF = yes; Good luck, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- 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] Can Bacula Read Tapes Created With BackupExec?
I suspect the answer to my questions is no but wanted to ask before I give up on a batch of tapes created by BackupExec 8.x. Apparently, BackupExec is so stupid that if it encounters an error on any tape of a multiple tape volume set, it can't restore anything past the error. For example I had used BackupExec to backup about 40 GB of data to 2 GB DDS tapes. When I attempted to restore after a drive failure, BE encountered an error on tape 5 and refused to continue. I called their help(less) desk and was told that that's just the way it is and hopefully I learned my lesson to not create backup jobs that span multiple volumes in the future. This is when I switched to Bacula for future backups. So anyway, Bacula has been running great and meeting my needs (a big THANK YOU to all the contributors!). But before I throw out that old box of tapes I was just wondering if Bacula could help me recover any data from them. Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- 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] Can Bacula Read Tapes Created With BackupExec?
On 10/6/2005 3:21 PM Joshua Kugler wrote: On Thursday 06 October 2005 12:30, Drew Tomlinson wrote: I suspect the answer to my questions is no but wanted to ask before I give up on a batch of tapes created by BackupExec 8.x. Apparently, BackupExec is so stupid that if it encounters an error on any tape of a multiple tape volume set, it can't restore anything past the error. For example I had used BackupExec to backup about 40 GB of data to 2 GB DDS tapes. When I attempted to restore after a drive failure, BE encountered an error on tape 5 and refused to continue. I called their help(less) desk and was told that that's just the way it is and hopefully I learned my lesson to not create backup jobs that span multiple volumes in the future. This is when I switched to Bacula for future backups. So anyway, Bacula has been running great and meeting my needs (a big THANK YOU to all the contributors!). But before I throw out that old box of tapes I was just wondering if Bacula could help me recover any data from them. How does BackupExec store its data? Is it in a gross proprietary format, or would dd'ing the contents of the tapes do you any good? I have no idea how it's stored. I guess I could attach the drive, read the dd man page, and give it a try... Anyone else happen to know? Thanks for the idea. Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- 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] bextract - How To Eject and Load Next Volume?
On 10/3/2005 4:42 PM Drew Tomlinson wrote: On 10/3/2005 12:27 PM Arno Lehmann wrote: Hello, On 03.10.2005 21:00, Dean Waldow wrote: I also have have learned I have to stop bacula (likely the bacula-sd daemon) to use either 'mt -t /dev/st0 COMMAND' or 'btape ... ' for testing. It appears that bacula has the device in use because I defined it already in the bacula-sd.conf file. Just FYI: unmount does what you want, and this is documented (at least) in the description for the console command - release. Not actually funny, and something that should be changed. I'll see if I can come up with some suggestions, but not immediately... It is likely documented some where but I didn't see it near the Testing your Tape Drive with Bacula section. It took me a little while to realize that. :) That seems to take care of the resource busy error for me. However, as Maria notes, it likely doesn't help the rest... Hmm. Now I wonder - you are using bextract while you've got the daemons running? Wouldn't it be easier to just recreate the catalog and use bacula itself? I hadn't thought about the daemons running and creating a possible conflict... Yes, the daemons are running although no other backup jobs are active that use this drive. I do most of my backups to disk. I just use the tape drive to backup my 200 GB or so of various media files occasionally. So yes, I could use bscan to scan them all in and then use bacula to run the tapes through again to do the actual restore. However I intend to restore everything, update my collection, and then run a new backup. Thus I don't really care about recovering the database records and felt that bextract would save some time and wear and tear on the tapes and drive. I will try stopping all the daemons and then see if bextract will traverse volumes. And of course I will post my results for the next poor soul that might be experiencing the same problems as I. :) Stopping the daemons still did not allow me to eject the tape. However it's an external drive and powering it off/on, waiting for it's startup routine, and then ejecting the tape seems to do the trick. Drew On Oct 3, 2005, at 11:40 AM, Maria McKinley wrote: You've probably already tried this, but I have had a problem occasionally before of getting the device busy error when trying to use mt-st, and just stopping the bacula daemons has gotten rid of it. Worth a shot, anyhow, if you haven't tried already. Doesn't answer the rest of your question, though. -m Arno Lehmann wrote: Hello, On 02.10.2005 17:50, Drew Tomlinson wrote: I'm still stuck on this. Any attempts to eject the tape with 'mt' or 'camcontrol' result in 'device busy' errors. Thus I assume that bextract has a hold of the device and won't let the tape eject. Is there some config or command line option that I need to add so bextract will eject the tape at the end of each volume? I'd really appreciate any thoughts, suggestions, or RTFM pointers as I lost a couple drives and just want to put all the data stored on these tapes back on my system. Unfortunately the catalog was lost as well. Unfortunately, I don't remember any information usefule for you, and I never tried bextract like that... Now, I assume you're in sort of an emergency. You could try the development version - there were some changes in drive locking and release, and hopefully they also affect bextract. Or you use your drive's emergency eject feature if it has one - the drives I know do this after holding the eject button a long time. An easier solution might be to bextract from the volumes one at a time, ignore the problems at tape traversal, hope everything works, and then restore the jobs crossing tape boundaries again. Or you set up a full bacula install first and bscan all the tapes into the catalog - that might take longer, though. Arno Thanks, Drew On 9/29/2005 12:03 PM Drew Tomlinson wrote: I'm running FreeBSD 5.4 and using bextract 1.36.3 to restore multiple tape volumes to a drive I lost. It's giving me the following message: 29-Sep 10:39 bextract: End of Volume at file 16 on device /dev/nsa0, Volume TAPE-0003|TAPE-0004|TAPE-0005|TAPE-0006|TAPE-0010|TAPE-0011|TAPE-0012 29-Sep 10:39 bextract: bextract Warning: Wrong Volume mounted on device /dev/nsa0: Wanted TAPE-0004 have TAPE-0003 Mount Volume TAPE-0004 on device /dev/nsa0 and press return when ready: OK, I understand it wants me to mount the next volume. However I can not get the drive to eject the tape. It's an HP DLT-30 drive. I press the eject button on the drive but get no response. Any attempts to use the 'mt' program from FreeBSD result in a device busy error. What should I try next? Here's the relevant part of my storage daemon conf file: ---BEGIN--- Device { Name = HP DLT 30 Media Type = DLT Archive Device = /dev/nsa0 LabelMedia = yes; # lets Bacula label unlabeled media
Re: [Bacula-users] How to force Bacula to use this or that FULL Backup?
On 10/4/2005 5:57 AM Luis Marcelo Achite wrote: Hi, Do you know how can I force bacula to select one specific Full backup before a differential backup? Here is my scenario: I made a complete full backup yesterday, then accidently another full backup began through schedule. I cancelled this second full backup, so I have one complete full backup and one cancelled full backup. The issue is that when I try to make a differential backup, Bacula is informing that there is no full backup available and begin doing a full backup instead of a differential. When looking the logs, I can see that the SQL command is not considering the previous full backup, but the one I cancelled. SELECT StartTime FROM Job WHERE JobStatus='T' AND Type='B' AND Level='F' AND Name='Client1' AND ClientId=1 AND FileSetId=2 ORDER BY StartTime DESC LIMIT 1; If I change FileSetId parameter to FileSetId=1, I can retrieve information about my full backup. How to instruct Bacula to use jobid=1 instead of jobid=2? What is tha table I need to modify to have this working? Thanks for any information on this. Just a guess but what happens if you delete the job associated with the partial full and then try the differential? Good luck, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- 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] bextract - How To Eject and Load Next Volume?
On 10/3/2005 12:27 PM Arno Lehmann wrote: Hello, On 03.10.2005 21:00, Dean Waldow wrote: I also have have learned I have to stop bacula (likely the bacula-sd daemon) to use either 'mt -t /dev/st0 COMMAND' or 'btape ... ' for testing. It appears that bacula has the device in use because I defined it already in the bacula-sd.conf file. Just FYI: unmount does what you want, and this is documented (at least) in the description for the console command - release. Not actually funny, and something that should be changed. I'll see if I can come up with some suggestions, but not immediately... It is likely documented some where but I didn't see it near the Testing your Tape Drive with Bacula section. It took me a little while to realize that. :) That seems to take care of the resource busy error for me. However, as Maria notes, it likely doesn't help the rest... Hmm. Now I wonder - you are using bextract while you've got the daemons running? Wouldn't it be easier to just recreate the catalog and use bacula itself? I hadn't thought about the daemons running and creating a possible conflict... Yes, the daemons are running although no other backup jobs are active that use this drive. I do most of my backups to disk. I just use the tape drive to backup my 200 GB or so of various media files occasionally. So yes, I could use bscan to scan them all in and then use bacula to run the tapes through again to do the actual restore. However I intend to restore everything, update my collection, and then run a new backup. Thus I don't really care about recovering the database records and felt that bextract would save some time and wear and tear on the tapes and drive. I will try stopping all the daemons and then see if bextract will traverse volumes. And of course I will post my results for the next poor soul that might be experiencing the same problems as I. :) Thanks for the ideas! You've given me something new to try! Drew On Oct 3, 2005, at 11:40 AM, Maria McKinley wrote: You've probably already tried this, but I have had a problem occasionally before of getting the device busy error when trying to use mt-st, and just stopping the bacula daemons has gotten rid of it. Worth a shot, anyhow, if you haven't tried already. Doesn't answer the rest of your question, though. -m Arno Lehmann wrote: Hello, On 02.10.2005 17:50, Drew Tomlinson wrote: I'm still stuck on this. Any attempts to eject the tape with 'mt' or 'camcontrol' result in 'device busy' errors. Thus I assume that bextract has a hold of the device and won't let the tape eject. Is there some config or command line option that I need to add so bextract will eject the tape at the end of each volume? I'd really appreciate any thoughts, suggestions, or RTFM pointers as I lost a couple drives and just want to put all the data stored on these tapes back on my system. Unfortunately the catalog was lost as well. Unfortunately, I don't remember any information usefule for you, and I never tried bextract like that... Now, I assume you're in sort of an emergency. You could try the development version - there were some changes in drive locking and release, and hopefully they also affect bextract. Or you use your drive's emergency eject feature if it has one - the drives I know do this after holding the eject button a long time. An easier solution might be to bextract from the volumes one at a time, ignore the problems at tape traversal, hope everything works, and then restore the jobs crossing tape boundaries again. Or you set up a full bacula install first and bscan all the tapes into the catalog - that might take longer, though. Arno Thanks, Drew On 9/29/2005 12:03 PM Drew Tomlinson wrote: I'm running FreeBSD 5.4 and using bextract 1.36.3 to restore multiple tape volumes to a drive I lost. It's giving me the following message: 29-Sep 10:39 bextract: End of Volume at file 16 on device /dev/nsa0, Volume TAPE-0003|TAPE-0004|TAPE-0005|TAPE-0006|TAPE-0010|TAPE-0011|TAPE-0012 29-Sep 10:39 bextract: bextract Warning: Wrong Volume mounted on device /dev/nsa0: Wanted TAPE-0004 have TAPE-0003 Mount Volume TAPE-0004 on device /dev/nsa0 and press return when ready: OK, I understand it wants me to mount the next volume. However I can not get the drive to eject the tape. It's an HP DLT-30 drive. I press the eject button on the drive but get no response. Any attempts to use the 'mt' program from FreeBSD result in a device busy error. What should I try next? Here's the relevant part of my storage daemon conf file: ---BEGIN--- Device { Name = HP DLT 30 Media Type = DLT Archive Device = /dev/nsa0 LabelMedia = yes; # lets Bacula label unlabeled media AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; # From the port info: # Due to lack of some features in the FreeBSD tape
Re: [Bacula-users] bextract - How To Eject and Load Next Volume?
I'm still stuck on this. Any attempts to eject the tape with 'mt' or 'camcontrol' result in 'device busy' errors. Thus I assume that bextract has a hold of the device and won't let the tape eject. Is there some config or command line option that I need to add so bextract will eject the tape at the end of each volume? I'd really appreciate any thoughts, suggestions, or RTFM pointers as I lost a couple drives and just want to put all the data stored on these tapes back on my system. Unfortunately the catalog was lost as well. Thanks, Drew On 9/29/2005 12:03 PM Drew Tomlinson wrote: I'm running FreeBSD 5.4 and using bextract 1.36.3 to restore multiple tape volumes to a drive I lost. It's giving me the following message: 29-Sep 10:39 bextract: End of Volume at file 16 on device /dev/nsa0, Volume TAPE-0003|TAPE-0004|TAPE-0005|TAPE-0006|TAPE-0010|TAPE-0011|TAPE-0012 29-Sep 10:39 bextract: bextract Warning: Wrong Volume mounted on device /dev/nsa0: Wanted TAPE-0004 have TAPE-0003 Mount Volume TAPE-0004 on device /dev/nsa0 and press return when ready: OK, I understand it wants me to mount the next volume. However I can not get the drive to eject the tape. It's an HP DLT-30 drive. I press the eject button on the drive but get no response. Any attempts to use the 'mt' program from FreeBSD result in a device busy error. What should I try next? Here's the relevant part of my storage daemon conf file: ---BEGIN--- Device { Name = HP DLT 30 Media Type = DLT Archive Device = /dev/nsa0 LabelMedia = yes; # lets Bacula label unlabeled media AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; # From the port info: # Due to lack of some features in the FreeBSD tape driver # implementation you MUST add some OS dependent options to # the bacula-sd.conf file: Hardware End of Medium = no; Backward Space Record = no; Backward Space File = no; # With 2 filemart at EOT (see man mt): Fast Forward Space File = no; BSF at EOM = yes; TWO EOF = yes; } ---END--- Any ideas? Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, More! http://www.alchemistswarehouse.com --- 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