Hello,
The real problem is that Bacula read a block from the tape and got
garbage (a . instead of BB02 in the block identification field). The
read error: success printed after that is an artifact from unwinding an
error condition in a low level subroutine (i.e. a minor bug).
Concerning your next email: Bacula *is* quite capable of forward spacing
files as well as blocks and does this more often than not when restoring
a single file.
I have two suggestions for resolving your problem:
- Upgrade to 1.32f-4 because if I am not mistaken I turned off fast
block rejection in a prior release which could create similar problems.
The ChangeLog would verify if it occurred before or after your version.
- If that doesn't solve your problem, try restoring all the files from
the job that contains the one you want. That will prevent Bacula from
doing the block forward spacing, and you will see whether or not it is a
bug or a bad tape that is returning a bad block of data.
Regards, Kern
On Thu, 2004-02-05 at 20:48, Gregory Brauer wrote:
We are attempting to restore a single file from a backup set, and the
restore is failing. We have done restores previously without a problem.
The odd line in the output is the "Error: Read error on Record Header
/dev/nst0: Success". What does that mean? This is with bacula-1.32d.
I'm running further tests now.
Greg
kiev-dir: Start Restore Job RestoreFiles.2004-02-05_11.22.50
kiev-sd: RestoreFiles.2004-02-05_11.22.50 Warning: Wrong Volume mounted
on device /dev/nst0: Wanted Set1Tape12 have Set1Tape15
kiev-sd: 3301 Issuing autochanger "loaded" command.
kiev-sd: 3302 Issuing autochanger "unload" command.
kiev-sd: 3303 Issuing autochanger "load slot 12" command.
kiev-sd: 3304 Autochanger "load slot 12" status is OK.
kiev-sd: Ready to read from volume "Set1Tape12" on device /dev/nst0.
kiev-sd: Forward spacing to file:block 17:7833.
kiev-sd: RestoreFiles.2004-02-05_11.22.50 Error: block.c:248 Expected
block-id BB01 or BB02, got . Buffer discarded.
kiev-sd: RestoreFiles.2004-02-05_11.22.50 Error: block.c:248 Expected
block-id BB01 or BB02, got . Buffer discarded.
kiev-sd: RestoreFiles.2004-02-05_11.22.50 Error: Read error on Record
Header /dev/nst0: Success
kiev-dir: RestoreFiles.2004-02-05_11.22.50 Error: Bacula 1.32d
(02Nov03): 05-Feb-2004 11:31
JobId: 702
Job: RestoreFiles.2004-02-05_11.22.50
Client: nara-fd
Start time: 05-Feb-2004 11:22
End time: 05-Feb-2004 11:31
Files Restored: 0
Bytes Restored: 0
Rate: 0.0 KB/s
Non-fatal FD Errors: 0
FD termination status: OK
SD termination status: Error
Termination: *** Restore Error ***
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users
RE: [Bacula-users] incremental restore question From: Dan Langille <dan < at > la...> - 2004-02-06 01:53
On Thu, 5 Feb 2004, Stuart McGraw wrote:
I can think of several reasons why you would want a file
system restored to *exactly* the state it was in at the
time of the last backup...
All would agree that achieving the solution is a good thing. I can only
go by what Kern said: it is not easy.
If it was easy, it would be done. Someone needs to sit down and create
the algorithm.
RE: [Bacula-users] incremental restore question From: Stuart McGraw <smcg4191 < at > fr...> - 2004-02-06 01:34
I can think of several reasons why you would want a file
system restored to *exactly* the state it was in at the
time of the last backup...
- The file system is near capacity and restoring deleted
files can result in a full file system before all the
files are restored. I have experienced this and it was
nor pleasant.
- In some cases the presence of a file can affect the behavior
of the system. The files in the /etc/xinetd.d directory on
a linux system for example.
- It is common to have processes that receive data in files,
process the data, then delete the files. Injecting the
data a second time could have deleterious effects.
- The simple action of deleting files can represent significant
work -- is this file obsolete? Is it redundant? Is it bad?
Is it in the wrong location? Just having to redo this work
can be a significant loss of time (the avoidance of which is
the real purpose of backups, yes?) I have seen cases where
several people-days were spent cleaning up a file system. I
would not want to be the one to tell them that the work had
to be repeated because the backups had "helpfully" restored
everything.
Backups have several purposes but one of them is to get things
back as they were, as quickly as possible, after a failure.
Restoring deleted files does not contribute to this goal.
Volker Sauer wrote:
Alan Brown wrote:
Will I end
up with files A and C, or files A, B, and C?
A, B and C.
This is common answer virtually to ANY backup system, as far as I know.
Given that Bacula uses a database to track changes, why not record
deletions to the incremental update so that during restores, B would be
deleted?
Why? I don't think that this is very smart. A backup is primarily for
restoring files not for deleting them.
The only reason I can imagine is to restore a complete user-directory
*exactly* like it was before it got delete while using full- and
incremenatial jobs for the restore. Then you'd have files which where
deleted during the period the incremenatial backups ran beneatch the
restored files of the user. But I don't thnik, that this is really bad.