bacula-devel  

Re: [Bacula-devel] newly created disk volumes -> file not found warning

Kern Sibbald
Wed, 30 Sep 2009 22:29:25 -0700

On Thursday 01 October 2009 00:13:59 Carsten Menke wrote:
> Am 30.09.2009 um 22:18 schrieb Kern Sibbald:
> > Did you create the Volume in the catalog with a bconsole "add"
> > command?
> >
> > If that is the case, then it is sure you will get the error message
> > -- after
> > all when there is a Volume record in the database, it *should* exist
> > on disk.
> > If not there will be an error printed.
> >
> > If the above is not the case, please let me know.
>
> Could this behavior actually be changed? Because it is a little bit
> maintance intensive like that.
> So if I want to replace a DDS Cartridge because it has been used more
> than 100 times, I have
> to label it explicitly before I can use it.
>
> I understand that bacula refuses to write to
> volumes which carry any *other* label. But isn't it possible to just
> label/write to a blank Tape,
> even if it's already in the pool?
>
> The same goes for disk volumes, why when disks volumes are existent in
> the database and not on disk,
> not just create them?

I will look into the change between 2.4.x and 3.0.x, but it is not too 
surprising because the SD was very heavily modified including new tape 
handling logic and improved error messages,  It appears there is some useless 
error printed when creating a new Volume.

Bacula normally, creates a Volume by labeling it, then putting an entry in the 
catalog.  If there is only an entry in the catalog and no Volume that 
corresponds to it, it is in principle an error condition. As Ralf wrote, that 
is not his case.

What you seem to be proposing is to ignore those cases (entry in the catalog 
and no labeled Volume), which seems to me  dangerous.  Suppose that someone 
deletes one of your disk Volumes, should Bacula just silently ignore that?  
Suppose that you get an I/O error, on your tape drive that returns no data 
from a tape, should Bacula just ignore that and let you believe that 
everything is OK?   I would not like Bacula to silently ignore possible 
errors here.

Kern

>
> Regards
>
> Carsten
>
> ---------------------------------------------------------------------------
>--- Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Bacula-devel mailing list
> Bacula-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-devel



------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel