September 28, 20178 yr I use a keyfile of 1MB in size. Upgraded to rc9f, inputted my keyfile, and server was unable to mount any of my disks with the following error repeated for each one. Reverting to rc8q allowed me to mount the drives again. Sep 28 17:26:33 core emhttpd: Opening encrypted volumes... Sep 28 17:26:33 core emhttpd: shcmd (2902): /usr/sbin/cryptsetup luksOpen /dev/md1 md1 --key-file /root/keyfile Sep 28 17:26:35 core root: No key available with this passphrase. Sep 28 17:26:35 core emhttpd: shcmd (2902): exit status: 2 Sep 28 17:26:35 core emhttpd: shcmd (2903): /usr/sbin/cryptsetup luksOpen /dev/md2 md2 --key-file /root/keyfile Sep 28 17:26:38 core root: No key available with this passphrase. Sep 28 17:26:38 core emhttpd: shcmd (2903): exit status: 2 Sep 28 17:26:38 core emhttpd: shcmd (2904): /usr/sbin/cryptsetup luksOpen /dev/md3 md3 --key-file /root/keyfile Sep 28 17:26:40 core root: No key available with this passphrase. Sep 28 17:26:40 core emhttpd: shcmd (2904): exit status: 2 Sep 28 17:26:40 core emhttpd: shcmd (2905): /usr/sbin/cryptsetup luksOpen /dev/md4 md4 --key-file /root/keyfile Sep 28 17:26:42 core root: No key available with this passphrase. Sep 28 17:26:42 core emhttpd: shcmd (2905): exit status: 2 Sep 28 17:26:42 core emhttpd: shcmd (2906): /usr/sbin/cryptsetup luksOpen /dev/md5 md5 --key-file /root/keyfile Sep 28 17:26:44 core root: No key available with this passphrase. Sep 28 17:26:44 core emhttpd: shcmd (2906): exit status: 2 Sep 28 17:26:44 core emhttpd: shcmd (2907): /usr/sbin/cryptsetup luksOpen /dev/md6 md6 --key-file /root/keyfile Sep 28 17:26:47 core root: No key available with this passphrase. Sep 28 17:26:47 core emhttpd: shcmd (2907): exit status: 2 Sep 28 17:26:47 core emhttpd: Failed opening encrypted volumes: Wrong encryption key Sep 28 17:26:47 core kernel: mdcmd (43): stop Sep 28 17:26:47 core kernel: md1: stopping Sep 28 17:26:47 core kernel: md2: stopping Sep 28 17:26:47 core kernel: md3: stopping Sep 28 17:26:47 core kernel: md4: stopping Sep 28 17:26:47 core kernel: md5: stopping Sep 28 17:26:47 core kernel: md6: stopping Sep 28 17:26:47 core emhttpd: shcmd (2908): rmmod md-mod Sep 28 17:26:47 core kernel: md: unRAID driver removed Sep 28 17:26:47 core emhttpd: shcmd (2909): modprobe md-mod super=/boot/config/super.dat Sep 28 17:26:47 core kernel: md: unRAID driver 2.9.0 installed Edited September 28, 20178 yr by jayseejc
September 29, 20178 yr Version rc8 does not store a binary file in the proper format, this has been corrected in rc9. You need to redo the encryption when using a keyfile.
September 29, 20178 yr Author Ah thanks a lot! Now that you point it out, the md5sum, sha1, and sha256 of the keyfile are different on the file than they should be. Strange, but understandable.
September 29, 20178 yr Author Thanks for the pointer. I was able to use cryptsetup luksAddKey to temporarily add an additional password key to the drives, upgraded to rc9f, then re-added the keyfile correct keyfile. No need to start over with luks support
Archived
This topic is now archived and is closed to further replies.