Bacula-users

Re: [Bacula-users] Way to check ANY bacula volume on disk

2015-08-12 09:39:13
Subject: Re: [Bacula-users] Way to check ANY bacula volume on disk
From: Heitor Faria <heitor AT bacula.com DOT br>
To: Andrey Tataranovich <tataranovich AT gmail DOT com>
Date: Wed, 12 Aug 2015 10:37:13 -0300 (BRT)
> On Tue, 11 Aug 2015 15:47:40 +0100
> Martin Simmons <martin AT lispworks DOT com> wrote:
> 
>> You could use bls -j with the volume file to scan the whole volume.
> 
> I'm upset with bls behavior - it does not return non zero exit code
> on error and output error messages to stdout instead of stderr.
> 
> # bls -j /bacula/backup/Libvirt-0177; echo $?
> bls: butil.c:287 Using device: "/bacula/backup" for reading.
> 12-Aug 16:11 bls JobId 0: Ready to read from volume "Libvirt-0177" on
> device "FileStorage" (/bacula/backup). Volume Record: File:blk=0:196
> SessId=6 SessTime=1438429819 JobId=0 DataLen=161 Begin Job Session
> Record: File:blk=0:64708 SessId=6 SessTime=1438429819 JobId=7462
> Job=Backup_Win2k3.2015-08-02_22.00.00_20 Date=02-Aug-2015 22:18:05
> Level=F Type=B 12-Aug 16:12 bls JobId 0: Error: block.c:318 Volume data
> error at 1:1073721369! Block checksum mismatch in block=83221
> len=64512: calc=91787392 blk=161ef20e
> 0

Hello Andrey: I think it was the developer option not to terminate de bls on 
error if this kind of message / alert happens, after all it's not pretty much 
it's purpose.
I think you can change both things with a little shell script tricks (if, grep 
"Block checksum mismach", change $?). About redirection: 
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html

Regards,
=========================================================================== 
Heitor Medrado de Faria - LPIC-III | ITIL-F | Bacula Systems Certified 
Administrator II 
Do you need Bacula training? 
https://www.udemy.com/bacula-backup-software/?couponCode=bacula-list 
I do Bacula training and deploy in any city of the world. More information: 
http://bacula.us/ 
+55 61 8268-4220 
Site: http://bacula.us FB: heitor.faria 
===========================================================================
> 
> Is it fixed in newer versions? Currently I'm using 5.2.6.
> 
> --
> WBR, Andrey Tataranovich
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users