PVE 5.4 LVM error message on startup

ricardoj

Member
Oct 16, 2018
101
8
23
65
Sao Paulo - Brazil
Hi,

I just installed PVE 5.4 in a single ( /dev/sda ) HD as I'm using BtrFS on the other 2 HD ( /dev/sdb and /dev/sdc ) for my LAB environment.

I selected ext4 from installation Menu.

As so, PVE installation created a LVM volume in this single drive

When I boot there is a message at very beginning :

========================================
Found volume group "pve" using metadata type lvm2
/sbin/modprobe failed: 1
Can't process LV pve/data: thin-pool target support missing from kernel?
2 logical volume(s) in volume group "pve" now active
=========================================

Regards,

Ricardo Jorge
 
Hi,

I see on another Forum message that this error message is just "cosmetic"

Well here it was not as I have swap errors

===================================
Apr 28 09:02:37 pve-01 systemd[1]: Found device /dev/pve/swap.
Apr 28 09:02:37 pve-01 systemd[1]: Activating swap /dev/pve/swap...
Apr 28 09:02:37 pve-01 systemd[1]: Activated swap /dev/pve/swap.
Apr 28 09:02:37 pve-01 systemd[1]: Reached target Swap.
Apr 28 09:02:37 pve-01 kernel: [ 0.853994] zswap: loaded using pool lzo/zbud
Apr 28 09:02:37 pve-01 kernel: [ 13.361260] Adding 8388604k swap on /dev/mapper/pve-swap. Priority:-2 extents:1 across:8388604k FS
Apr 28 09:42:14 pve-01 kernel: [ 2394.836068] Read-error on swap-device (253:0:108152)
Apr 28 11:02:21 pve-01 kernel: [ 7201.396118] Read-error on swap-device (253:0:127376)
Apr 28 11:02:21 pve-01 kernel: [ 7201.396129] Read-error on swap-device (253:0:127384)
Apr 28 11:03:22 pve-01 systemd[1]: Found device /dev/pve/swap.
Apr 28 11:03:22 pve-01 systemd[1]: Activating swap /dev/pve/swap...
Apr 28 11:03:22 pve-01 systemd[1]: Activated swap /dev/pve/swap.
Apr 28 11:03:22 pve-01 systemd[1]: Reached target Swap.
Apr 28 11:03:22 pve-01 kernel: [ 0.850377] zswap: loaded using pool lzo/zbud
Apr 28 11:03:22 pve-01 kernel: [ 14.382357] Adding 8388604k swap on /dev/mapper/pve-swap. Priority:-2 extents:1 across:8388604k FS
===================================

Looking at Internet I've found this : https://askubuntu.com/questions/673...-laptop-with-root-partition-on-lvm2-thin-pool

And the solution at the moment was :

====================================
edit a file like : /etc/initramfs-tools/hooks/lvm2thin

put the following content on it

#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}

case $1 in
prereqs)
prereqs
exit 0
;;
esac

. /usr/share/initramfs-tools/hook-functions
# Begin real processing below this line
copy_exec /lib/modules/${version}/kernel/drivers/md/dm-thin-pool.ko
copy_exec /lib/modules/${version}/kernel/drivers/md/dm-bio-prison.ko
copy_exec /lib/modules/${version}/kernel/drivers/md/dm-bufio.ko
copy_exec /lib/modules/${version}/kernel/drivers/md/persistent-data/dm-persistent-data.ko
#
copy_exec /usr/sbin/thin_check

save the file

run chmod 755 /etc/initramfs-tools/hooks/lvm2thin

run update-initramfs -u

reboot
====================================

I hope this help someone else.

I'm still evaluating this solution.

So far it is working.

Regards,

Ricardo Jorge
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!