Bacula-users

Re: [Bacula-users] Problems using bscan to put Files back in catalog ?

2010-04-21 15:33:52
Subject: Re: [Bacula-users] Problems using bscan to put Files back in catalog ?
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 21 Apr 2010 20:31:19 +0100
>>>>> On Wed, 21 Apr 2010 13:54:52 +0200, Matija Nalis said:
> 
> OK, everything is understandable so far. So, I recon I'd restore File
> entries by bscaning tapes (which I never used before).
> 
> So I've executed (with right tapes loaded in right drives according
> to bscan outputs) the following commands to fully rescan all tapes
> involved back into catalog:
> 
> bscan -s -S -v -V 783AHNL2 drv2_lto2
> bscan -s -S -v -V 661AHNL2 drv3_lto2
> bscan -s -S -v -V 674AHNL2 drv4_lto2
> 
> Which all ended with info like (with different non-zero numbers of course) :
> 
> Records added or updated in the catalog:
>       1 Media
>       1 Pool
>       2 Job
> 8992911 File
> 
> So I guessed it should be ready to go. I started bacula again, run
> the restore -- but again I got dreaded "For one or more of the JobIds
> selected, no files were found, so file selection is not possible"
> error.
> 
> In mysql I executed a series of queries like (one for each job
> listed):
> 
> select count(*) from File where JobId=10553;
> 
> And they all returned non-zero results (showing millions or hundreds
> of files per job). So I would expect that the Files in catalog should
> be available, but it seems bconsole disagrees with me.
> 
> Am I doing something wrong, or am I hitting a bug ?
> Any hints ?

What is the value in the Job.PurgedFiles column for those JobIds?  If it is 1,
then Bacula will ignore the file entries.

__Martin

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