And, for the record, derived from the source code: VolAddr is the "file" << 32 (i.e. multipled by 2^32), with the "block" added. These being the startfile, endfile, startblock and endblock fields from jobmedia.
So if you're constructing your own VolAddr field in a bootstrap record, find the earliest and latest jobmedia records with the fileindexes you want (using firstindex/lastindex and jobid). Then, from the earliest jobmedia record take startfile, multiply by 2^32 and add startblock. That's your start VolAddr. The end VolAddr is the same thing, but using the latest jobmedia record and endfile/endblock instead. Using that I can replicate the results of creating a bootstrap file using bconsole, and my restores run wonderfully quickly (2-minutes to fast-forward to the right point about half-way through an LTO-4 tape), compared to not doing positioning where it was going to take about 4 hours.... :) Moral of the story? Use the source, Luke. Craig Craig Miskell wrote: > Apologies. I should have used the source. For the record, from > stored/parse_bsr.c: > > " * Every bsr should have a volfile entry and a volblock entry > * or a VolAddr > * if we are going to use positioning > " > > So I need to figure out what the VolBlock should be, or switch to using > VolAddr. > > I'll just head back to my little cave now :) > > Craig > > > Craig Miskell wrote: >> Hi, >> Is VolFile still used in bootstrap files? I created a bootstrap file >> using it, expecting that the tape would fairly >> rapidly fast forward over the intervening files. However, it is reading the >> entire tape up up to file 635 first, and >> taking it's sweet time about it. >> >> My manually created bsr is below. Have I done something dumb? >> >> Storage=LTO4 >> Volume="ComFri1" >> VolFile=635 >> VolSessionId=10 >> VolSessionTime=1266538544 >> FileIndex=16792-16828 >> FileIndex=16830-16897 >> Count=105 >> >> I also note that bconsole/the director will create BSR files with the >> "VolAddr" attribute which seems to be used for >> rapid fast-forwarding through the tape, but my googling hasn't shown any >> documentation of that attribute. If I've >> missed anything obvious by using dumb search keywords, I'd appreciate any >> pointers to documentation of what it means and >> how it's used. >> >> Thanks, >> > > -- Craig Miskell Senior Systems Administrator Opus International Consultants Phone: +64 4 471 7209 "...the Jedi learned early on what language the universe was programmed in. Then they took advantage of an accident of language to obscure this fact from the unwashed. They all affected an inverted lisp. So, a jedi to be, you the Forth must use." -Peter Da Silva in ASR ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users