[linux-lvm] exposing snapshot block device
Dalebjörk, Tomas
tomas.dalebjork at gmail.com
Tue Oct 22 16:13:25 UTC 2019
That is cool,
But, are there any practical example how this could be working in reality.
Eg:
lvcreate -s mysnap vg/testlv
thin_dump vg/mysnap > deltafile # I assume that this should be the name
of the snapshot?
But... How to recreate only the metadata only?, so that the meta data
changes are associated to an external device?
thin_restore -i metadata < deltafile # that will restore the metadata,
but I also want the restored meta data to point out the location of the
data from for example a file or a raw deice
I have created a way to perform block level incremental forever by
reading the -cow device, and thin_dump would be nice replacement for that.
This can also be reversed, so that the thin_restore can be used to
restore the meta data and the data at same time (If I now the format of it)
But it would be much more better if one can do the restoration in
background using "lvconvert --merge" tool, by first restoring the
metadata (I can understand that this part is needed), and assoicate all
the data to an external raw disk or much more better a file, so that all
changes associated to this restored snapshot can be found on the file.
Not so good to explain this, but I hope you understand how I am thinking.
A destroyed thin pool, can than be restored instantly using a backup
server as the cow similar device.
Regards Tomas
Den 2019-10-22 kl. 17:36, skrev Zdenek Kabelac:
> Dne 22. 10. 19 v 17:29 Dalebjörk, Tomas napsal(a):
>> Thanks for feedback,
>>
>> But, it would be better if the cow device could be recreated in a
>> faster way, mentioning that all blocks are present on an external
>> device, so that the LV volume can be restored much quicker using
>> "lvconvert --merge" command.
>>
>> That would be super cool!
>>
>> Imagine backing up multi terrabyte sized volumes in minutes to
>> external destinations, and restoring the data in seconds using
>> instant recovery by re-creating or emulating the cow device, and
>> associating all blocks to an external device?
>>
>
> Hi
>
> I do not want to break your imagination here, but that is exactly the
> thing you can do with thin provisioning and thin_delta tool.
>
> You just work with LV, take snapshot1, take snapshot2,
> send delta between s1 -> s2 to remove machine,
> remove s1, take s3, send delta s2 -> s3...
>
> It's just not automated by lvm2 ATM...
>
> Using this with old snapshot would be insanely inefficient...
>
> Regards
>
> Zdenek
>
More information about the linux-lvm
mailing list