You are not logged in.

#1 2014-11-26 05:42:04

crossroads1112
Member
Registered: 2014-01-08
Posts: 24

Troubles with booting with LVM on LUKS

Hello all, I have an LVM on LUKS setup, however after I boot up and enter my encryption password, I get a message that says something along the lines of "Waiting 10 seconds to mount /dev/mapper/lvmvol-mainvol on real root". This fails and I get booted into the BusyBox rescue shell. I head over to /dev/mapper/ and sure enough, my virtual group is there (lvmvol) and so are two of my logical volumes (swapvol and snapshot) but mainvol is not there. Out of desperation I tried to use cryptsetup and I ran "cryptsetup open /dev/sda2 lvmvol". I am greeted with a message something along the lines of "lvmvol already unlocked" however when I ls /dev/mapper again, lvmvol-mainvol is there again and when I exit the rescue shell, my machine boots up fine. It should be noted that if I do not do any of this and immediately exit the rescue shell, I get a kernel panic.



Any ideas?

Thanks

Offline

#2 2014-11-26 13:01:18

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

Re: Troubles with booting with LVM on LUKS

A few days ago I experienced a similar problem and it seems that in my case my root volume group and logical volume are not being activated. They are not in /dev/mapper. I've had this configuration up and running for some time now so something broke very recently - LVM2, LUKS or udev.

Last edited by KairiTech (2014-11-26 13:03:25)

Offline

#3 2014-11-26 13:51:08

TE
Member
Registered: 2014-06-21
Posts: 78

Re: Troubles with booting with LVM on LUKS

Observation - device-mapper and lvm2 were updated a bit ago to a release (2.02.112) that does not exist on the upstream server anymore, 2.02.113 was released with a few fixes including "Fix regression in vgscan --mknodes usage (2.02.112)." This commit:

https://git.fedorahosted.org/cgit/lvm2. … fe832a7610
fixes:
https://git.fedorahosted.org/cgit/lvm2. … df331ee416

...which has something to do with activation. The package is already marked out of date -- so you could downgrade and rebuild your iniramfs and see if that fixes it, or wait for Eric to make the new 2.02.113 package release.

https://www.archlinux.org/packages/core … ce-mapper/
ftp://sources.redhat.com/pub/lvm2/

Offline

#4 2014-11-26 15:24:11

crossroads1112
Member
Registered: 2014-01-08
Posts: 24

Re: Troubles with booting with LVM on LUKS

Its not a huge deal since I don't boot that often and so taking those extra steps isn't a huge deal. I'll just wait for the update and post back after I get it

Offline

#5 2014-12-08 12:57:42

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

Re: Troubles with booting with LVM on LUKS

Issue still exists. The new 2.02.114-1 version didn't seem to solve anything.

Last edited by KairiTech (2014-12-08 13:03:28)

Offline

#6 2014-12-09 06:50:13

bovis
Member
Registered: 2009-01-25
Posts: 22

Re: Troubles with booting with LVM on LUKS

Downgrading lvm2 and device-mapper packages didn't fix the similar issue I posted here.

Did you find any solution to your problem, crossroads1112, with an upgrade or downgrade in packages or by doing anything else?

Offline

#7 2014-12-09 07:57:05

th3voic3
Member
Registered: 2012-03-20
Posts: 92

Re: Troubles with booting with LVM on LUKS

I recently switched to the systemd lvm and encrypt hooks following these instructions and I don't have the issue. Maybe that is a workaround?

Offline

Board footer

Powered by FluxBB