Hi, I'm have a system with a sw raid for mirroring md0 that have a luks device, and I'm trying to create a new md device to boot from, md127, where to move the root of the system. I issued: # mdadm --create --verbose /dev/md127 --level=0 --raid-devices=2 /dev/sda /dev/sdb # cryptsetup luksFormat # cryptsetup luksDump /dev/md127 LUKS header information for /dev/md127 Version: 1 Cipher name: aes Cipher mode: xts-plain64 Hash spec: sha256 Payload offset: 4096 MK bits: 512 MK digest: <digest> MK salt: <salt> MK iterations: 178329 UUID: <UUID> Key Slot 0: ENABLED Iterations: 2837824 Salt: <salt> Key material offset: 8 AF stripes: 4000 Key Slot 1: DISABLED Key Slot 2: DISABLED Key Slot 3: DISABLED Key Slot 4: DISABLED Key Slot 5: DISABLED Key Slot 6: DISABLED Key Slot 7: DISABLED Pointing grub to use this new device and rebooting, I expect it to prompt the password of the luks, instead it complains saying the device has no luks header. The may luks seems to be similar, though using 256b instead of 512, forcing 256b in this makes no difference cryptsetup in the initrd doesn't find it, and recreating the initrd makes no difference. Thanks! José.
From the initrd environment, the same luksDump reports: # cryptsetup luksDump /dev/md127 Device /dev/md127 is not a valid LUKS device. José.
This is not a support forum. Try our https://forums.gentoo.org/ instead, or our mailing lists or IRC support channels.