Hi,
I'm using luks for drive encryption. I decrypt the drives at bootup via usb-stick, /etc/crypttab:
Code
sda-crypt UUID=fbc503de-a359-41e8-9f74-bd009a4ff5b6 /dev/disk/by-id/usb luks,tries=3,keyfile-size=8192,keyfile-offset=512
sdb-crypt UUID=eea24687-f2f4-4738-b47d-a2b8840a815e /dev/disk/by-id/usb luks,tries=3,keyfile-size=8192,keyfile-offset=512
sdc-crypt UUID=1d51afa7-6ee0-4a0d-b568-7f4b9e0f7ada /dev/disk/by-id/usb luks,tries=3,keyfile-size=8192,keyfile-offset=512
sdd-crypt UUID=01139fc6-56bc-42b2-b863-199695d68d1e /dev/disk/by-id/usb luks,tries=3,keyfile-size=8192,keyfile-offset=512
sde-crypt UUID=5826dfc3-bfe4-4f62-a266-f169870dec75 /dev/disk/by-id/usb luks,tries=3,keyfile-size=8192,keyfile-offset=512
sdf-crypt UUID=3757d17b-a7e0-4bba-828d-53f87becafa5 /dev/disk/by-id/usb luks,tries=3,keyfile-size=8192,keyfile-offset=512
sdi-crypt UUID=07d49183-b216-44fb-b016-88951c4a6036 /dev/disk/by-id/usb luks,tries=3,keyfile-size=8192,keyfile-offset=512
sdj-crypt UUID=1b9f32c0-10f1-4cf3-84b1-b065d86aabfd /dev/disk/by-id/usb luks,tries=3,keyfile-size=8192,keyfile-offset=512
as you can see, the number of drives are 8 and this doesn't work. If I reduce this number to 7 or lower, the bootup works as expected.
Here are some log infos.
Code
root@omv:~# systemctl --state=failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● systemd-cryptsetup@sda\x2dcrypt.service loaded failed failed Cryptography Setup for sda-crypt
● systemd-cryptsetup@sdf\x2dcrypt.service loaded failed failed Cryptography Setup for sdf-crypt
The drives are different at every boot:
Code
root@omv:~# systemctl --state=failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● systemd-cryptsetup@sda\x2dcrypt.service loaded failed failed Cryptography Setup for sda-crypt
● systemd-cryptsetup@sdb\x2dcrypt.service loaded failed failed Cryptography Setup for sdb-crypt
● systemd-cryptsetup@sdd\x2dcrypt.service loaded failed failed Cryptography Setup for sdd-crypt
● systemd-cryptsetup@sde\x2dcrypt.service loaded failed failed Cryptography Setup for sde-crypt
● systemd-cryptsetup@sdf\x2dcrypt.service loaded failed failed Cryptography Setup for sdf-crypt
bootup:
Code
Nov 27 16:09:36 omv systemd[1]: Starting Cryptography Setup for sdd-crypt...
Nov 27 16:09:36 omv systemd[1]: Starting Cryptography Setup for sdj-crypt...
Nov 27 16:09:36 omv systemd[1]: Starting Cryptography Setup for sdc-crypt...
Nov 27 16:09:36 omv systemd[1]: Starting Cryptography Setup for sdb-crypt...
Nov 27 16:09:36 omv systemd[1]: Starting Cryptography Setup for sda-crypt...
Nov 27 16:09:36 omv systemd[1]: Starting Cryptography Setup for sde-crypt...
Nov 27 16:09:36 omv systemd[1]: Starting Cryptography Setup for sdi-crypt...
Nov 27 16:09:36 omv systemd[1]: Starting Cryptography Setup for sdf-crypt...
Nov 27 16:09:36 omv systemd-cryptsetup[642]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/fbc503de-a359-41e8-9f74-bd009a4ff5b6.
Nov 27 16:09:36 omv systemd-cryptsetup[646]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/07d49183-b216-44fb-b016-88951c4a6036.
Nov 27 16:09:36 omv systemd-cryptsetup[638]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/01139fc6-56bc-42b2-b863-199695d68d1e.
Nov 27 16:09:36 omv systemd-cryptsetup[645]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/5826dfc3-bfe4-4f62-a266-f169870dec75.
Nov 27 16:09:36 omv systemd-cryptsetup[647]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/3757d17b-a7e0-4bba-828d-53f87becafa5.
Nov 27 16:09:36 omv systemd-cryptsetup[640]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/1d51afa7-6ee0-4a0d-b568-7f4b9e0f7ada.
Nov 27 16:09:36 omv systemd-cryptsetup[639]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/1b9f32c0-10f1-4cf3-84b1-b065d86aabfd.
Nov 27 16:09:36 omv systemd-cryptsetup[641]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/eea24687-f2f4-4738-b47d-a2b8840a815e.
Nov 27 16:09:36 omv systemd[1]: Started Raise network interfaces.
Nov 27 16:09:36 omv systemd[1]: systemd-cryptsetup@sdd\x2dcrypt.service: Main process exited, code=killed, status=9/KILL
Nov 27 16:09:36 omv systemd[1]: systemd-cryptsetup@sdd\x2dcrypt.service: Failed with result 'signal'.
Nov 27 16:09:36 omv systemd[1]: Failed to start Cryptography Setup for sdd-crypt.
Nov 27 16:09:36 omv systemd[1]: Dependency failed for Local Encrypted Volumes.
Nov 27 16:09:36 omv systemd[1]: cryptsetup.target: Job cryptsetup.target/start failed with result 'dependency'.
Nov 27 16:09:36 omv systemd[1]: systemd-cryptsetup@sdb\x2dcrypt.service: Main process exited, code=killed, status=9/KILL
Nov 27 16:09:36 omv systemd[1]: systemd-cryptsetup@sdb\x2dcrypt.service: Failed with result 'signal'.
Nov 27 16:09:36 omv systemd[1]: Failed to start Cryptography Setup for sdb-crypt.
Nov 27 16:09:36 omv systemd[1]: systemd-cryptsetup@sda\x2dcrypt.service: Main process exited, code=killed, status=9/KILL
Nov 27 16:09:36 omv systemd[1]: systemd-cryptsetup@sda\x2dcrypt.service: Failed with result 'signal'.
Nov 27 16:09:36 omv systemd[1]: Failed to start Cryptography Setup for sda-crypt.
Nov 27 16:09:36 omv systemd[1]: systemd-cryptsetup@sde\x2dcrypt.service: Main process exited, code=killed, status=9/KILL
Nov 27 16:09:36 omv systemd[1]: systemd-cryptsetup@sde\x2dcrypt.service: Failed with result 'signal'.
Nov 27 16:09:36 omv systemd[1]: Failed to start Cryptography Setup for sde-crypt.
Nov 27 16:09:36 omv systemd[1]: systemd-cryptsetup@sdf\x2dcrypt.service: Main process exited, code=killed, status=9/KILL
Nov 27 16:09:36 omv systemd[1]: systemd-cryptsetup@sdf\x2dcrypt.service: Failed with result 'signal'.
Nov 27 16:09:36 omv systemd[1]: Failed to start Cryptography Setup for sdf-crypt.
Display More
What's going on here?
Are there some timing issues?