You are not logged in.

#1 2018-07-23 14:41:48

KylieGS
Member
Registered: 2018-02-19
Posts: 53

[Solved] Won't boot system running LVM on LUKS on RAID

Hi, in my new system I'm using LVM on LUKS on RAID. This is visualised below.

NAME               MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                  8:0    0 223.6G  0 disk  
|-sda1               8:1    0     1G  0 part  /boot
`-sda2               8:2    0 222.6G  0 part  
  `-md127            9:127  0 444.9G  0 raid0 
    `-ssdraid0enc  253:0    0 444.9G  0 crypt 
      |-ssdVG-swap 253:1    0    16G  0 lvm   
      |-ssdVG-root 253:2    0    96G  0 lvm   /
      `-ssdVG-home 253:3    0 299.6G  0 lvm   /home
sdb                  8:16   0 223.6G  0 disk  
|-sdb1               8:17   0     1G  0 part  
`-sdb2               8:18   0 222.6G  0 part  
  `-md127            9:127  0 444.9G  0 raid0 
    `-ssdraid0enc  253:0    0 444.9G  0 crypt 
      |-ssdVG-swap 253:1    0    16G  0 lvm   
      |-ssdVG-root 253:2    0    96G  0 lvm   /
      `-ssdVG-home 253:3    0 299.6G  0 lvm   /home

However the system won't boot and times out looking for /dev/ssdVG/root

I imagine it has something to do with my mkinitpcio image (https://ptpb.pw/Hb2c).
Also, here is my mdadm.conf file which is embedded in the initram when I use the mdadm_udev hook (https://ptpb.pw/ltOy)
And my /etc/default/grub file (https://ptpb.pw/x_sO)
The argument I am passing is cryptdevice=/dev/md/ssdraid0:ssdraid0enc
Are my hooks setup right? How do I debug this?

Thanks


Solution:
Need to use rd.luks.name rather than cryptdevice argument to kernel

Last edited by KylieGS (2018-07-23 15:44:24)

Offline

#2 2018-07-23 16:40:28

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: [Solved] Won't boot system running LVM on LUKS on RAID

KylieGS wrote:

Solution:
Need to use rd.luks.name rather than cryptdevice argument to kernel

Just to note cryptdevice is correct for the none sd hook,  rd.luks.name is correct for he sd hook.

Offline

Board footer

Powered by FluxBB