Bacula-users

Re: [Bacula-users] recover partial readable tape

2009-03-04 13:10:31
Subject: Re: [Bacula-users] recover partial readable tape
From: Thomas Mueller <thomas AT chaschperli DOT ch>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 4 Mar 2009 18:07:04 +0000 (UTC)
>> 
>> Is there a way to "reassemble" the two parts of the file and reread
>> them with bacula? i've not found any option like "skip file 4 to 20"
>> with the bextract,bscan,bls tools
> 
> You should use a bootstrap file to that purpose. The easiest way would
> be to initiate a restore from the console, and when all is done, instead
> of starting the job, copy the created bootstrap file and cancel the
> restore. Then, in the bootstrap file, remove all records pointing to
> tape files 5 to 19.
> 
> Alternatively, it's not too big a task to manually write a minimal
> bootstrap file, omitting the files in question.

the problem is, that the data isn't in the catalog anymore. it got pruned 
after 6 months. the client limit was accidentially set to this value... 
also see my bls comment below.

but just thought about it, and there has to be a backup from the catalog. 
where the ARCHIVE-0000 volume is still available with file entries. 

> 
> When restoring, I guess you can expect problems with the files that have
> data partly in the affected tape files, but that might still be better
> than getting back nothing at all.

yeah, better loose 16GB than 1,3TB. :)

> 
>> i've allready read the first part of the tape to a file and tried to
>> read it from there. No luck so far:
>> 
>> bls: match.c:249-0 add_fname_to_include prefix=0 gzip=0 fname=/ bls:
>> butil.c:282 Using device: "/srv/backup/vtl" for reading. 04-Mar 16:50
>> bls JobId 0: Ready to read from volume "ARCHIVE-0000" on device
>> "FileStorage" (/srv/backup/vtl). 04-Mar 16:50 bls JobId 0: Error:
>> block.c:275 Volume data error at 0:64511! Wanted ID: "BB02", got "".
>> Buffer discarded. 0 files found.
>> bls: acquire.c:436-0 dir_update_vol_info. label=64 Vol=ARCHIVE-0000
>> 
>> seems that not all data is in correct order. if i do a "strings
>> ARCHIVE-0000":
> 
> I'd use bls with j, k, L, p and v options to get a better idea of what
> actually is in the resulting volume file.

problem: the tape drive doesn't go over file 4, it's running in circles 
telling me that it skipped a block but next message telling me again that 
the same block is beeing skipped (and so on).

if i do an "mt fsf 5" i need to rewind the tape to get access again, else 
it will print i/o error. 

so the bacula utilities won't give me a file list and restoring the whole 
job doesn't work because of the defective area. sort of henn/egg problem. 


> 
>> or if any programmer is out there: is it a big task to implement a
>> "skip file(s)" option to the volume utilities?
> 
> I guess you'll get a response similar to "manually edit the bootstrap
> file; the feature doesn't seem to be critical to most users, so we won't
> invest much there as long as more pressing projects are pending".

think the feature is cirtical for users whose catalog entries got pruned, 
no (maybe a really old one is needed) catalog  backup is available and 
the tape is not in a good state. 

Thanks

- Thomas


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users