Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491362 - sys-fs/lvm2-2.02.103 doesn't creates devices in /dev/mapper when "lvm vgscan && lvm vgchange -ay lvm" is called
Summary: sys-fs/lvm2-2.02.103 doesn't creates devices in /dev/mapper when "lvm vgscan ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-15 19:14 UTC by c877686
Modified: 2014-02-04 02:13 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description c877686 2013-11-15 19:14:19 UTC
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
Comment 1 c877686 2013-11-15 19:39:13 UTC
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
Comment 2 Manuel Rüger (RETIRED) gentoo-dev 2013-11-21 21:07:30 UTC
Please try

"lvm vgscan --mknodes"
Comment 3 c877686 2013-11-23 18:40:24 UTC
"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-*
Comment 4 Konstantin 2014-02-04 01:59:56 UTC
"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.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-02-04 02:13:17 UTC
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.