i use a encrypted luks partition with lvm2 but when i call lvm vgscan && lvm vgchange -ay lvm Reading all physical volumes. This may take a while... Found volume group "lvm" using metadata type lvm2 6 logical volume(s) in volume group "lvm" now active the 6 locagical volumes are not created in /dev/mapper using sys-fs/lvm2-2.02.97-r1 works as expected sys-fs/lvm2-2.02.103 USE="readline static static-libs thin udev (-clvm) (-cman) -lvm1 -lvm2create_initrd% (-selinux)" 0 kB Reproducible: Always
also tried to enable the use flag lvm2create_initrd which didn't solve the problem. btw lvm.static is used in an initramfs in comination with cryptsetup
Please try "lvm vgscan --mknodes"
"lvm vgscan --mknodes" works i found a solution yesterday with "lvm vgmknodes" but as it seems lvm vgchange -ay lvm creates also the devices /dev/dm-* building lvm wihtout udev useflag avoids this but is there a way to get the same result out of lvm when its compiled with udev support? i also tried lvm vgscan lvm vgchange -ay lvm --noudevsync --sysinit lvm vgmknodes which also creates the devices /dev/dm-*
"lvm vgscan --mknodes" worked for me. Thank you, Manuel(In reply to Manuel Rüger from comment #2) > Please try > > "lvm vgscan --mknodes" Worked for me. Thank you.
The behaviour described is correct. udev should create the devices, otherwise --mknodes will. I'd watch the 'udevadm monitor' output while running your previous commands, and go from there.