You are not logged in.

#1 2019-11-25 18:37:53

Moosey_Linux
Member
From: Malmö Sweden
Registered: 2012-07-01
Posts: 39

LVM boot fails can't find volume group

Hi guys my computer failed to boot after installing lvm2-2.02.186-2. After typing my encryption passphrase the boot process stops for some minutes then it says it can't find my SysPart1-root. I tried to solve this the lazy way and simple wait for a better update to come around. Now the lvm2-2.02.186-3 update came and the problem remains the same. This problem only occurs on my desktop computer where my LVM system is spread out over four different HDD's. On my laptop I'm running the latest LVM version whit out any problem.

vgdisplay

 --- Volume group ---
  VG Name               SysPart1
  System ID             
  Format                lvm2
  Metadata Areas        4
  Metadata Sequence No  17
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                5
  Open LV               4
  Max PV                0
  Cur PV                4
  Act PV                4
  VG Size               <1.99 TiB
  PE Size               4.00 MiB
  Total PE              520467
  Alloc PE / Size       520467 / <1.99 TiB
  Free  PE / Size       0 / 0   
  VG UUID               zA7pQS-3w7J-fW2R-bZ0Q-zMz1-Ybrg-9ki4EA
lsblk

NAME                  MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                     8:0    0 238.5G  0 disk  
|-sda1                  8:1    0     2G  0 part  /boot
|-sda2                  8:2    0 138.8G  0 part  
| `-root              254:0    0 138.8G  0 crypt 
|   |-SysPart1-root   254:1    0    50G  0 lvm   /
|   `-SysPart1-home   254:5    0   1.7T  0 lvm   /home
`-sda3                  8:3    0  97.7G  0 part  
sdb                     8:16   0 279.5G  0 disk  
|-sdb1                  8:17   0 101.7G  0 part  
`-sdb2                  8:18   0 177.8G  0 part  
  `-Disk2             254:3    0 177.8G  0 crypt 
    |-SysPart1-home   254:5    0   1.7T  0 lvm   /home
    `-SysPart1-var    254:6    0    40G  0 lvm   /var
sdc                     8:32   0 931.5G  0 disk  
|-sdc1                  8:33   0   785G  0 part  
| `-Disk3             254:4    0   785G  0 crypt 
|   |-SysPart1-home   254:5    0   1.7T  0 lvm   /home
|   |-SysPart1-var    254:6    0    40G  0 lvm   /var
|   `-SysPart1-BackUp 254:7    0   100G  0 lvm   /media/Backup
`-sdc2                  8:34   0 146.5G  0 part  
sdd                     8:48   0 931.5G  0 disk  
`-Disk4               254:2    0 931.5G  0 crypt 
  |-SysPart1-home     254:5    0   1.7T  0 lvm   /home
  |-SysPart1-var      254:6    0    40G  0 lvm   /var
  `-SysPart1-BackUp2  254:8    0   150G  0 lvm   
/etc/mkinitcpio.conf

HOOKS=(base udev autodetect modconf lvm2 encrypt block filesystems keyboard fsck)
/boot/syslinux/syslinux.cfg

[LABEL arch
    MENU LABEL Arch Linux
    LINUX ../vmlinuz-linux
    APPEND root=/dev/mapper/SysPart1-root cryptdevice=/dev/sda2:root vga=773
    INITRD ../initramfs-linux.img

Offline

#2 2019-11-25 21:50:53

xerxes_
Member
Registered: 2018-04-29
Posts: 135

Re: LVM boot fails can't find volume group

In file /etc/mkinitcpio.conf in "hooks" line maybe try place encrypt before lvm2.

Offline

#3 2019-11-26 21:25:56

j4y4r
Member
Registered: 2019-11-26
Posts: 3

Re: LVM boot fails can't find volume group

I experienced the same issue, for me it was impossible to boot up my system with the latest version of LVM because the partition containing root was not found.
Tried two evenings and half a day to find the exact cause and debug the problem, changing various options found across the forum about similar issues, like changing the order of the hooks, regenerating initramfs, changing to systemd init, etc. nothing fixed the problem.
My finding was that the logs showed the disks were scanned for lvm, but no changes were commited.
Doing a manual

 lvm vgscan && lvm vgchange -ay 

in the rescue shell shows the partition and i was able to unlock it with cryptsetup.

At the end i plugged in the arch-iso stick and downgraded lvm, device-mapper and cryptsetup to this version:

device-mapper-2.02.185-1-x86_64.pkg.tar.xz cryptsetup-2.1.0-1-x86_64.pkg.tar.xz lvm2-2.02.185-1-x86_64.pkg.tar.xz

After downgrading the packages i was able to boot the system again.

My System is setup following LVM on Luks
The LVM has been extended with two disks, they are mounted at non critical points, so they should not cause the issue.

Offline

#4 2019-11-27 21:08:21

Moosey_Linux
Member
From: Malmö Sweden
Registered: 2012-07-01
Posts: 39

Re: LVM boot fails can't find volume group

xerxes_ wrote:

In file /etc/mkinitcpio.conf in "hooks" line maybe try place encrypt before lvm2.

My laptop is running the latest LVM2 version and with the same mkinitcpio hooks and same order it cant be that.

j4y4r wrote:

I experienced the same issue,

Then we are two to fix this.

xerxes_ wrote:

My finding was that the logs showed the disks were scanned for lvm, but no changes were commited.

What logs did you check? I thought there wouldn't be any as the system partition never mounted or opened. Was it in systemd journal maybe?

j4y4r wrote:

in the rescue shell shows the partition and i was able to unlock it with cryptsetup.

At the end i plugged in the arch-iso stick and downgraded lvm, device-mapper and cryptsetup to this version:

My disks were all unlocked but my rescue shell lacked LVM support so I couldn't do to much. I never hade to downgrade any thing but the LVM2 package if you try to upgrade device-mapper and cryptsetup I think you will be fine. If not it can be worth trying so we know if we share the same problem.

Offline

#5 2019-11-29 14:03:28

j4y4r
Member
Registered: 2019-11-26
Posts: 3

Re: LVM boot fails can't find volume group

Moosey_Linux wrote:

What logs did you check? I thought there wouldn't be any as the system partition never mounted or opened. Was it in systemd journal maybe?

When using systemd init, logs are more verbose.

Moosey_Linux wrote:

My disks were all unlocked but my rescue shell lacked LVM support so I couldn't do to much. I never hade to downgrade any thing but the LVM2 package if you try to upgrade device-mapper and cryptsetup I think you will be fine. If not it can be worth trying so we know if we share the same problem.

Well then we do not have the same issue, since you got no LVM in the rescue shell , did you try regenerating initcpio with

mkinitcpio -p linux

?
Maybe i am missing something..how do you know the disk got unlocked without LVM support?
I use a key from a USB Drive to unlock my root partition, if i do not have this attached the boot fails while searching for the USB drive, obviously.
This does not mean only because there is no error when searching for the disk the root partition got unlocked when the Drive is inserted.

Because of the version i downgraded lvm to i had to use another version of device-mapper as well.
You are right about cryptsetup, this should be fine to upgrade.

Offline

#6 2019-12-05 11:32:47

Efka
Member
From: Kaunas
Registered: 2014-04-27
Posts: 56
Website

Re: LVM boot fails can't find volume group

I'm, not 100% my question will be right but let's try:
What Kernel do you use?
I just had some issue whit 5.4 kernel and encryption and lvm and luks, had to downgrade to 5.3 Kernel and also my emergency shell was giving no info ... but when i ran "lvm vgchange -ay" i had errors .


IBM Lenovo ThinkPad T61 ; Lenovo ThinkPad X220; Lenovo ThinkPad T440p; Lenovo Thinkpad P71
Asus Z10PE D-16 WS; 2x Intel Xeon E-5 2623V4; 32GB ECC; NVME; 1070Ti

Offline

#7 2019-12-07 22:32:26

j4y4r
Member
Registered: 2019-11-26
Posts: 3

Re: LVM boot fails can't find volume group

Efka wrote:

What Kernel do you use?

My Kernel version is 5.3.12, did not update the system in question since then.
The lvm and device-mapper package are still the same versions which i believe where causing the problems for me, i doubt the newer kernel will solve the issue.
As long as no one can tell me for sure what is causing the issue, limited time for playing around with a broken system force me to wait for newer package versions before giving it another try.

Offline

Board footer

Powered by FluxBB