How does online re-encryption work in LUKS2 ?
by sreyan32 from LinuxQuestions.org on (#52GT0)
I just learnt that you can re-encrypt your LUKS2 partition with cryptsetup reencrypt and whats more is that you can do it online while using the data.
I would like to know how that actually works, mainly where is the intermediate data stored ?
If the disk is 80% full then how does online re-encryption happens ?
Here in this video the creator of this feature says that it is done through creating a number of devices in the kernel, but that still does not explain where the data is stored.
Its like its defying the laws of physics !
Or I am just too dumb to understand it.
Thanks.


I would like to know how that actually works, mainly where is the intermediate data stored ?
If the disk is 80% full then how does online re-encryption happens ?
Here in this video the creator of this feature says that it is done through creating a number of devices in the kernel, but that still does not explain where the data is stored.
Its like its defying the laws of physics !
Or I am just too dumb to understand it.
Thanks.