Hello Martin,
Thanks for mentioning that VolAddr is undocumented. That was an
oversight that I will fix.
Please be aware that VolAddr is a relatively new bsr keyword, so it will
not work on older Bacula's such as 5.2.x. I don't remember when it was
implemented.
Note also: VolAddr is formed as you say for File and Tape volumes, but
in the next version of Bacula, VolAddr is used for Cloud Volumes and the
algorithm is not the same. I will document it once it is released.
Bottom line each driver, File, Tape, Aligned, Dedup, Cloud, ... has its
own 64 bit VolAddr representation of the address. In this next version
for File volumes for example, there is no longer any concept of File and
Block there is only a 64 bit address. For tapes, due to their
architecture (currently) we still must have File and Block.
Best regards,
Kern
On 03/22/2017 01:58 PM, Martin Simmons wrote:
>>>>>> On Wed, 22 Mar 2017 13:52:50 +0300, Konstantin Khomoutov said:
>> On Wed, 22 Mar 2017 12:07:55 +0300
>> Konstantin Khomoutov <flatworm AT users.sourceforge DOT net> wrote:
>>
>> [...]
>>> Here, the job starts at 338:1 and ends at 339:10868, how do I write
>>> out the bootstrap file's data to cover that whole range in it?
>>> From [1], it appears that I could use
>>>
>>> VolFile=338-339
>>>
>>> to cover the files but the VolBlock spec appears to pertain to a
>>> single VolFile. I thought of using multiple VolFile + VolBlock pairs
>>> but that would require me to use an open range for the VolBlock of the
>>> first pair, something like
>> [...]
>>
>> Looks like I could combine the output of `bls -j` with the output of
>> `bls -v` run on the same volume: from the former, I'd get the starting
>> and ending VolFile-s, and from the latter, I'd get a range of FileIndex
>> values and/or VolSessionId+VolSessionTime tuple which would cover both
>> "coarse-grained" tape positioning and "fine-grained" selection of what
>> to restore.
>>
>> Still, I'd love to hear opinions on this matter from those well-versed
>> in how restoration from the tape works.
> The bsr format has an undocumented keyword VolAddr (which Bacula uses when it
> writes a bsr). When present, it overrides VolFile and VolBlock like this:
>
> VolAddr = (VolFile << 32) + VolBlock
>
> __Martin
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|