Dne 05. 11. 19 v 21:56 Tomas Dalebjörk napsal(a):
Thanks,
That really helped me to understand how the snapshot works.
Last question:
- lets say that block 100 which is 1MB in size is in the cow device, and a
write happen that wants to something or all data on that region of block 100.
Than I assume; based on what have been previously said here, that the block in
the cow device will be overwritten with the new changes.
Yes - it needs to be written to 'COW' device - since when the block will be
merged - it would overwrite whatever would have been written in 'origin'
(as said - there is nothing else in snapshot metadata then 'from->to' block
mapping table - so there is no way to store information about a portion of
'chunk' being already written into origin) - and 'merge' needs to work
reliable in cases like 'power-off' in the middle of merge operation...
Regards
Zdenek
_______________________________________________
linux-lvm mailing list
linux-lvm@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/