howto/raid: add step to disable dm-crypt workqueues authored by Jérôme Charaoui's avatar Jérôme Charaoui
this improves i/o significantly for solid state devices
...@@ -85,6 +85,10 @@ Assume our new drives are `/dev/sdc` and `/dev/sdd`, and the highest array we ha ...@@ -85,6 +85,10 @@ Assume our new drives are `/dev/sdc` and `/dev/sdd`, and the highest array we ha
echo crypt_dev_md2 UUID=$(lsblk -n -o UUID /dev/md2 | head -1) /etc/luks/crypt_dev_md2 luks,discard | tee -a /etc/crypttab && echo crypt_dev_md2 UUID=$(lsblk -n -o UUID /dev/md2 | head -1) /etc/luks/crypt_dev_md2 luks,discard | tee -a /etc/crypttab &&
update-initramfs -u update-initramfs -u
4. Disable dm-crypt work queues (solid state devices only)
cryptsetup --perf-no_read_workqueue --perf-no_write_workqueue --persistent refresh crypt_dev_md2
From here, the array is ready for use in From here, the array is ready for use in
`/dev/mapper/crypt_dev_md2`. It will be resyncing for a while, you can `/dev/mapper/crypt_dev_md2`. It will be resyncing for a while, you can
see the status with: see the status with:
... ...
......