Thanks for feedback.
Let me try to type different scenarios:
We have an origin volume, lets call it: /dev/vg00/lv00
We convert a snapshot volume to origin volume, lets call it: /dev/vg00/lv00-snap
- all blocks has been changed, and are represented in the /dev/vg00/lv00-snap, when we start the lvconvert process
I assume that something reads the data from /dev/vg00/lv00-snap and copy that to /dev/vg00/lv00
It will most likely start from the first block, to the last block to copy.
The block size is 1MB on /dev/vg00/lv00-snap, and we have for simplicity the same block size on the origin /dev/vg00/lv00
Scenario 1: A read comes want to read block LP 100, but lvconvert has not yet copied that LP block.
Will the read comes from /dev/vg00/lv00-snap directly and delivered to requestor?
Or will lvconvert prioritize to copy data from /dev/vg00/lv00-snap to /dev/vg00/lv00 for that block, and let the requestor wait until the copying has been completed, so that a read operation can happen from origin?
Or will the requestor have to wait until the copy data from /dev/vg00/lv00-snap to /dev/vg00/lv00 for that block has been completed, without any prioritization?
Scenario 2: A write comes want to write block LP 100, but lvconvert has not yet copied that LP block (yes, I do understand that origin is hidden now)
Will lvconvery prioritize to copy data from /dev/vg00/lv00-snap to /dev/vg00/lv00 for that block, and let the requestor write the changes directly on the origin after the copying has been performed?
Or will the write be blocked until lvconvert has finished the copying of the requested block, and than a write can be accepted to the origin?
Or where will the changes be written?
It is important for me to understand, as the backup device that I want to map as a COW device is a read only target, and is not allowed to be written to.
If read happends from the backup COW device, and writes happends to the origin, than it is possible to create an instant recovery.
If writes happends to the backup COW device, than it not that easy to implement a instance reovery solution, as the backup device is write protected.
Thanks in advance.