Thanks for your comments, Kern.

On Friday 28 October 2005 23:05, Kern Sibbald wrote:
> On Friday 28 October 2005 21:22, Christoph Haas wrote:
> > I had accidentally purged a client and wanted to rebuild the catalog
> > using bscan. So I browsed through my status mails looking for the
> > status report of the last full backup. I inserted all three tapes
> > mentioned in the backup report and ran bscan like this:
> >
> > /usr/lib/bacula/bscan.mysql -V bacula02 -c /etc/bacula/bacula-sd.conf
> > \ -u database-user -P database-password -v -s -m /dev/nst0
> > /usr/lib/bacula/bscan.mysql -V bacula12 -c /etc/bacula/bacula-sd.conf
> > \ -u database-user -P database-password -v -s -m /dev/nst0
> > /usr/lib/bacula/bscan.mysql -V bacula15 -c /etc/bacula/bacula-sd.conf
> > \ -u database-user -P database-password -v -s -m /dev/nst0
> >
> > After the tapes have been read in I entered the bconsole and ran
> > "list jobs". (I needed to do this twice until today.) And both times
> > the full backup job was listed with status 'E' (error). Running
> > "list files jobid=188" told me that no files were backed up in that
> > job.
>
> Well, I can see two things:
> 1. It would be better to do a single bscan with all the tapes mentioned
> in the correct order.  The development (1.38.0) manual shows how to do
> that: bscan ... -V bacula02\|bacula12\|bacula15  ...
> if I remember right.

You are right, that's the correct way from the documentation. Would it "be
better" or "only work at all like this"? :) I'm not sure what kind of
information is stored on the tape. Like "this is an incremental backup
based on JobId 188 on bacula02"? Or is that information about jobs,
incremental and full backups only stored in the catalog?

> 2. If JobId 188 existed in the database after the purge (i.e. you did
> not delete it), then during the bscan when it is re-inserted, it will
> probably get a new JobId.  The output from bscan should indicate what
> happened.

Ah, I didn't look for new jobs because I assumed the old job number would
have been restored. But I guess that job numbers are not stored on tape. So
I'll look for a new job after I bscanned the tapes next time.

A similar issue: I still don't seem to have my catalog in perfect shape.
When trying a backup a volume (tape) was set to "Error" and Bacula reported
that the "number of files on tape mismatch". So I followed the
documentation and bscanned the tape. However the volume status remained
"Error". Do I need to bconsole/update it to "Append" to make it usable
again? The bscanning was finished successfully ('Records added or updated
in the catalog: 1 Media 1 Pool 7 Job 251291 File'). The documentation just
talks about "Read-Only" and "Used". Or do I need to purge it before I bscan
it?

 Christoph
-- 
    |\      _,,,---,,_        Famous last words of a sysadmin:
    /,`.-'`'    -.  ;-;;,_    "Oops."
  <|,4-  ) )-,_..;\ (  `'-'
    '---''(_/--'  `-'\_)






-------------------------------------------------------
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

Reply via email to