LUKS on LVM fails consistently

Ask questions about Arch Linux ARM. Please search before making a new topic.

LUKS on LVM fails consistently

Postby yuvadm » Wed Dec 11, 2013 6:38 pm

I have an external HD which I've setup LVM on it and partitioned it to two logical volumes: one which is open, and one which should be encrypted.

LVM works just fine, but trying to setup LUKS on it is failing miserably.

$this->bbcode_second_pass_code('', '# cryptsetup luksFormat /dev/vgroup/lvolume

device-mapper: reload ioctl on failed: No such file or directory
Failed to open temporary keystore device.
device-mapper: remove ioctl on temporary-cryptsetup-698 failed: No such device or address
device-mapper: reload ioctl on temporary-cryptsetup-698 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-698 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-698 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-698 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-698 failed: No such device or address')

dmesg shows this:

$this->bbcode_second_pass_code('', '[ 6835.098030] device-mapper: table: 254:2: crypt: Error allocating crypto tfm
[ 6835.116377] device-mapper: ioctl: error adding target to table
')

This happens no matter which parameters I use for cryptsetup. I've also modprobe'd dm-crypt and dm_mod, no success.

What am I missing? This should be a pretty simple scenario. Thanks!

Forgot to mention, the device is a BeagleBone Black running armv7l, fully updated and upgraded.
yuvadm
 
Posts: 4
Joined: Wed Dec 11, 2013 6:27 pm

Re: LUKS on LVM fails consistently

Postby yuvadm » Wed Dec 11, 2013 11:00 pm

Taking this upstream as well to try to figure it out -

https://code.google.com/p/cryptsetup/is ... ail?id=190
yuvadm
 
Posts: 4
Joined: Wed Dec 11, 2013 6:27 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 4 guests