[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 14:32:19 BST 2022
W dniu 01.08.2022 o 15:00, Guilhem Moulin pisze:
> On Mon, 01 Aug 2022 at 14:10:26 +0200, Wojciech Zabołotny wrote:
>> Modifying the mapping parameters with:
>> # cryptsetup --perf-no_write_workqueue refresh name_of_the_mapping
>>
>> indeed eliminates the problem.
>> Isn't it then the problem with default mapping parameters used in
>> cryptsetup?
> IMHO not: if setting up these flags were desirable in all cases then the
> better place to change the defaults would be the dm-crypt subsystem (ie
> the kernel). Note that if the --perf-* flag(s) improve performance on
> your system you can set them in /etc/crypttab too, so the wrappers pass
> them along when mapping the volume (like for discard).
>
Thanks, I've managed to modify the behavior of mapping by:
# cryptsetup --perf-no_write_workqueue --persistent refresh
name_of_the_mapping
I hope that anyway it is going to be only a temporary workaround.
BTW. I'm really amused that no one else complained about that issue.
The problem exists for at least a few years.
With best regards,
Wojtek
More information about the pkg-cryptsetup-devel
mailing list