You are not logged in.

#1 2016-03-08 19:39:56

hexfusion
Member
Registered: 2016-03-08
Posts: 3

[Solved] LVM not found after install Luks UEFI Boot

I am having a hard time figuring out what is causing this issue.

When I restart I get an error that device /dev/mapper/lvm-name-lvroot is not found

from the rescue shell I can get the lvm back

cryptsetup luksOpen /dev/sdaX cryptdisk
lvm
lvm> vgscan 
lvm> vgchange -a y lvm-name

and it says that it found it and is now active but after reboot the LVM records are not longer in /dev/mapper/.

Any help would be greatly appreciated.  I assume something needs to be initialized that is not during boot but I can't isolate the problem.

Not using grub with UEFI.

Last edited by hexfusion (2016-03-09 17:04:37)

Offline

#2 2016-03-08 20:48:30

CarlD
Member
From: London
Registered: 2013-11-23
Posts: 128

Re: [Solved] LVM not found after install Luks UEFI Boot

Need a bit more info.

1. What is your partition scheme?
2. LVM on LUKS or LUKS on LVM?
3. What are your bootloader parameters (e.g. root=....  cryptdevice=....)?

Offline

#3 2016-03-09 01:46:59

hexfusion
Member
Registered: 2016-03-08
Posts: 3

Re: [Solved] LVM not found after install Luks UEFI Boot

CarlD wrote:

Need a bit more info.

1. What is your partition scheme?
2. LVM on LUKS or LUKS on LVM?
3. What are your bootloader parameters (e.g. root=....  cryptdevice=....)?

I have 2 partitions
[Device]
/dev/nvme0n1p1   2048   82147     81920    400M EFI System
/dev/nvme0n1p2   82148   100215182     999393935    476.6G Linux filesystem

[luks]
This was how I setup luks to it seems LVM on LUKS?
cryptsetup --cipher aes-xts-plain64 --key-size 512 --hash sha512 \
--iter-time 5000 --use-random --verify-passphrase luksFormat /dev/nvme0n1p2

cryptsetup luksOpen /dev/nvme0n1p2 cryptdisk

[bootloader]
options root=/dev/mapper/ob1-lvroot cryptdevice=/dev/nvme0n1p2:ob1:allow-discards

Last edited by hexfusion (2016-03-09 01:47:27)

Offline

#4 2016-03-09 02:06:15

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] LVM not found after install Luks UEFI Boot

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_code

Is that a typo in your kernel line?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2016-03-09 08:24:20

CarlD
Member
From: London
Registered: 2013-11-23
Posts: 128

Re: [Solved] LVM not found after install Luks UEFI Boot

So it looks like LVM on LUKS for root. Looks like Jason may also have found the problem...

Offline

#6 2016-03-09 17:04:12

hexfusion
Member
Registered: 2016-03-08
Posts: 3

Re: [Solved] LVM not found after install Luks UEFI Boot

Well I am not 100% sure what fixed it but I adjusted the order of my hooks and put the required details directly before filesystem which they were at the front before.  The typo was real but only because I was transposing from my screen.  Regardless I have noted using code tags and I appreciate both of your help.

Offline

Board footer

Powered by FluxBB