Fedora 41 and lvm driving me insane

I’m trying to get my system up to Fedora 41 but i’m fighting against a weird issue in combination with lvm and ssh cache with my raid lvm.

have a 5 drive raid setup (lvm) that is cached by 2 drive raid on nvme and this worked since f38 or about there, due to health reasons i’ve been away for nearly a year now and that old f38 or f39 system was no longer supported, so i decided to update to 41 and ever since then i’ve been trying to get back to a working setup

I tried accessing my data by editing /etc/lvm/lvm.conf and setting scan_lvm = 1 and running vgchange -ay this worked when booting from the usb stick with the f41 installer (burned to usb stick with fedora writer but on a clean install this doesn’t work

to be clear, i’m not getting any errors, just missing a volume that is found when doing the same steps when booting from usb

@bagelcornbreadcarrot,

Glad to hear health is no longer keeping you away!

First, do you have backups of the data?

yeah, i have good backups, but trying to avoid having to restore 60TB, and trying to understand the issue

I would start with the lvm commands

vgscan
vgdisplay
lvscan
lvdisplay
pvscan
pvdisplay

and general block device info

lsblk

I wonder if you can vgcfgbackup on the usb boot and vgcfgrestore it. Not without risk!

LUKS Group doesn't show up - #2 by vtrefny

1 Like

I’ll test this over the coming weekend, but it might be related<3

@vgaetera was on the money, seems ik was a recent change in LVM that had me baffled, I still need to run vgchange -ay to be able to open the luks volume but the fedora 41 system itself is installed and working properly as far as i can tell

I have a couple of 5+ years old Fedora machines upgraded to the latest version.
The relevant LVM setup is pretty simple, without RAID, looks like this:

> sudo vgs
  VG     #PV #LV #SN Attr   VSize   VFree
  fedora   1   2   0 wz--n- 475.74g    0 

> sudo pvs
  PV             VG     Fmt  Attr PSize   PFree
  /dev/nvme0n1p3 fedora lvm2 a--  475.74g    0 

> sudo lvs
  LV   VG     Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  home fedora -wi-ao---- 455.74g                                                    
  root fedora -wi-ao----  20.00g                                                    

> grep -e ^GRUB_CMDLINE_LINUX= /etc/default/grub 
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/root rhgb quiet"

> cat /etc/kernel/cmdline
root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rhgb quiet

> sudo rpm -V -f $(sudo find /etc/lvm)
file /etc/lvm/backup/fedora is not owned by any package

Check if your configs look similar or is there any difference.
Remember to properly apply the changes if necessary:

sudo grub2-mkconfig -o /boot/grub2/grub.cfg
sudo dracut -f --regenerate-all