[pkg-cryptsetup-devel] Bug#1016474: cryptsetup: The system installed on encrypted LVM (both root and swap partitions) freezes during massive writes

Wojciech Zabołotny wojciech.zabolotny at pw.edu.pl
Mon Aug 1 22:00:21 BST 2022


W dniu 01.08.2022 o 22:01, Christoph Anton Mitterer pisze:
> On Mon, 2022-08-01 at 15:42 +0200, Guilhem Moulin wrote:
>> Pretty sure most systems don't freeze under heavy
>> write anyway :-)
> I have that too... on basically every system with dm-crypt and high
> memory.
> I just thought it was a known issue of dm-crypt and never really digged
> any deeper into it ^^
>
> Also I don't use LVM anymore.
>
>
> Whenever I write a lot of data it first goes fast (as if some buffer
> would first be filled up) and then easily freezes the whole system
> (until all data has been encrypted and written).
> Sometimes it even freezes stuff which one would assume shouldn't need
> any IO (clock applet in the desktop environment or even the mouse
> cursor).
>
Probably the number of affected people is quite big, but they have 
simply accepted this situation.
I was leaving with that problem for a few years. Generally the problem 
appeared when I had to install a new Vivado version from Xilinx/AMD, 
when I was changing the disc and copying a lot of data from the old one 
to the new, or when doing the backups.
BTW, that problem gives even more "interesting" results when one copies 
a lot of data from or to the USB disc. The freeze of the system may 
break the USB communication (unmounting the filesystem or remounting it 
read-only due to errors) which may result in partially copied data.
E.g., when I synchronized a ~1TB archive via Unison between the main 
disc and the USB backup disc, I had to do it in a few iterations. The 
communication got broken, then I had to kill unison, reconnect the USB 
disc and retry. Fortunately, after a few retries I got everything 
synchronized. I don't know whether such procedure posed any risk of data 
corruption. It seems that in my case iti didn't happen. Maybe I was lucky...

Cheers,
Wojtek




More information about the pkg-cryptsetup-devel mailing list