Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New valid luks header not recognized in initrd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pekkari
n00b
n00b


Joined: 18 Nov 2019
Posts: 1

PostPosted: Mon Nov 18, 2019 12:37 pm    Post subject: New valid luks header not recognized in initrd Reply with quote

Hi,

I have a server where I have sw raid(md0) with luks booting correctly, I added a couple of
disks to do a new raid(md127) with luks, and use it to boot the system, for what I run the
following set of commands:

Code:

# 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


Afterwards I point grub.cfg to reach md127 instead of md0 expecting
I'll get prompted the password of my luks, instead, I receive a message like:

The LUKS device /dev/md127 does not contain a LUKS header.

And trying the same luksDump inside the initrd shell I get:

Code:

# cryptsetup luksDump /dev/md127
Device /dev/md127 is not a valid LUKS device.


Anybody have seen this by chance? Any ideas why this could happen?

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum