You are not logged in.
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
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
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
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?
Offline
So it looks like LVM on LUKS for root. Looks like Jason may also have found the problem...
Offline
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