Cryptsetup device /dev/md0 is not a valid luks device

view full story

http://serverfault.com – After reinstallation of my OS, I decide to manually assemble a RAID6 array. # mdadm --assemble --auto=yes --scan=auto /dev/md0 I don't exactly remember a message but program mdadm return a resizing raid array. $ more /proc/mdstat Personalities : [raid6] [raid5] [raid4] md0 : active raid6 sdc1[0] sdf17 sdh1[6] sdd1[5] sdg1[4] sda1[3] sdi1[2] sdb1[1] 4883799680 blocks level 6, 64k chunk, algorithm 2 [7/7] [UUUUUUU] After I try to run an encryption and: # cryptsetup luksOpen /dev/md0 md0_crypt Device /dev/md0 is not a valid LUKS device I searched but I can't find in Internet how to sol (HowTos)