Re: [Bacula-users] RunAfterJob

2018-06-06 Thread Bill Arlofski
On 06/06/2018 08:48 AM, Donna Hofmeister wrote:
> In a job{} definition, is it possible/advisable/wise to have multiple
> RunAfterJob statements?


Hello Donna,

Yes, it is possible.


> If so, does N+1 wait on N to complete?          - d

Yes.

However, there is not a 100% guarantee that they will be run in the order you
have them listed in the configuration. Most likely they will, but not
absolutely 100%.

When it comes to RunScripts{} - RunsWhen=(before|after), or the more simple
RunBeforeJob and RunAfterJob ones, I tend to agree with Dan on this and I will
usually have just one before and/or after, and each will call a script.

In the script I can guarantee that the commands I wish to run are run in the
precise order I want, and I can do whatever error checking I think is
necessary, and exit appropriately to fail the job if necessary. ie: dump a
database in a RunBeforeJob script , but it fails, so the job should fail.

If the order is not a precise requirement, then using multiple RunAfterJob
commands is fine though.


Best regards,

Bill

-- 
Bill Arlofski
http://www.revpol.com/bacula
-- Not responsible for anything below this line --

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] RunAfterJob

2018-06-06 Thread Dan Langille
> On Jun 6, 2018, at 10:48 AM, Donna Hofmeister  wrote:
> 
> In a job{} definition, is it possible/advisable/wise to have multiple 
> RunAfterJob statements?
> 
> If so, does N+1 wait on N to complete?  - d

I understand it is possible.

My preference would be just one. Make is a /bin/sh script and do everything in 
there.

Then you know.

-- 
Dan Langille - BSDCan / PGCon
d...@langille.org




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] RunAfterJob

2018-06-06 Thread Donna Hofmeister
In a job{} definition, is it possible/advisable/wise to have multiple
RunAfterJob statements?

If so, does N+1 wait on N to complete?  - d

-- 
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330
Visit us on Linkedin

Like us on Facebook 
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula h/w write fails, but tar writes w/out error?

2018-06-06 Thread Josh Fisher


On 6/5/2018 3:45 PM, Stieneke, Dan wrote:


Ubuntu 16.04, Bacula 5.2.6, single-drive autoloader, all running 
Bacula trouble-free for years.


Four months ago I got some errors in Bacula that looked like h/w 
errors, although jobs using tar on the same drive ran without error. I 
had suspicions about a cable, and when I replaced it everything 
returned to normal, until now, when I’m getting the same kinds of errors.




Tar works on the same drive, but what about on the same tape? How do you 
know you are not seeing bad tapes?



The relevant part of “messages” is:

= = = = = = = = = = = = = = = = = =

05-Jun 09:17 xxx-sd JobId 794: Error: block.c:577 Write error at 
12:60511 on device "Ultrium-TD4" 
(/dev/tape/by-id/scsi-1IBM_ULTRIUM-TD4_1310010391-nst). 
ERR=Input/output error.


05-Jun 09:18 xxx-sd JobId 794: Error: Re-read of last block OK, but 
block numbers differ. Read block=990557 Want block=990558.


05-Jun 09:18 xxx-sd JobId 794: End of medium on Volume "A00030L4" 
Bytes=63,902,942,208 Blocks=990,558 at 05-Jun-2018 09:18.


05-Jun 09:18 xxx-sd JobId 794: 3307 Issuing autochanger "unload slot 
16, drive 0" command.


= = = = = = = = = = = = = = = = = =

As you can see, it had an error after about 64GB (of an 800GB native / 
1600GB compressed tape).


I’ve cleaned the drive. And again, backups made with tar record 
without error and restore without error.


Any ideas?

Thanks,

Dan Stieneke

IT Specialist

USDA - ARS - NWISRL

3793 N 3600 E

Kimberly, ID 83341





This electronic message contains information generated by the USDA 
solely for the intended recipients. Any unauthorized interception of 
this message or the use or disclosure of the information it contains 
may violate the law and subject the violator to civil or criminal 
penalties. If you believe you have received this message in error, 
please notify the sender and delete the email immediately.



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Upgraded to Fedora 29 and got an unresolved dependency (libbaccats)

2018-06-06 Thread Bill Damage via Bacula-users
In desperation after the upgrade I removed bacula hoping a reinstall would fix 
the broken dependencies but got floored by this:
[root@tiger bacula]# bacula-dirbash: bacula-dir: command not found...Install 
package 'bacula-director' to provide command 'bacula-dir'? [N/y] y

 * Waiting in queue... * Loading list of packages Failed to install 
packages: Could not depsolve transaction; 1 problem detected:0. nothing 
provides libbaccats-9.0.7.so()(64bit) needed by 
bacula-director-9.0.7-3.fc29.x86_64
What do I need to install to provide this please?
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users