[Mageia-dev] System doen't boot with LVM

Colin Guthrie mageia at colin.guthr.ie
Wed Feb 20 20:58:01 CET 2013


'Twas brillig, and Olivier Thauvin at 20/02/13 18:13 did gyre and gimble:
> * Colin Guthrie (mageia at colin.guthr.ie) wrote:
>> If it does fail then ultimately the problem will be in:
>> /usr/lib/dracut/modules.d/90lvm/module-setup.sh (or one of the utility
>> functions it uses). It should use "udevadm info" to query the system
>> about LVM info. You can add debug to the check_lvm function and then
>> re-run dracut -f foo.img again to see where it bails out.
>>
>>
>> If, however, it works fine on your running system then perhaps the
>> problem is with the installer lacking some udev rules to properly
>> capture all the needed metadata in udev database. This will require a
>> bit more fiddling (i.e. running udevadm info in the installer to look at
>> the properties it exports about the devices).
> 
> I did reproduced the issue.
> 
> By changing the end of check() function in
> /usr/lib/dracut/modules.d/90lvm/module-setup.sh by this:
> 
> [[ $hostonly ]] || [[ $mount_needs ]] && {
>     for_each_host_dev_and_slaves_all check_lvm || return 1
> }
> 
> I got:
> # cat ./etc/cmdline.d/90lvm.conf
>  rd.lvm.lv=sagittarius/swap 
>  rd.lvm.lv=sagittarius/root
> 
> Iirc I replaced for_each_host_dev_and_slaves by
> for_each_host_dev_and_slaves_all.
> 
> Honestly I don't understand what it change...
> 
> Hope this help.

Yes, that helps a lot.

I'm not sure why it makes a difference (considering my own setup here is
at least partially similar to yours), but I'll definitely dig into it more.

Can you describe the LVM setup? i.e. how the lvm sits on top of the
physical disks etc? I really want to try and reproduce the issue so I
can make a good upstream explanation of the problem with the patch.

Col




-- 

Colin Guthrie
colin(at)mageia.org
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/


More information about the Mageia-dev mailing list