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

Colin Guthrie mageia at colin.guthr.ie
Thu Feb 21 14:46:28 CET 2013


'Twas brillig, and Colin Guthrie at 21/02/13 11:08 did gyre and gimble:
> 'Twas brillig, and Colin Guthrie at 20/02/13 23:19 did gyre and gimble:
>> 'Twas brillig, and Olivier Thauvin at 20/02/13 20:13 did gyre and gimble:
>>> * Colin Guthrie (mageia at colin.guthr.ie) wrote:
>>>> 'Twas brillig, and Olivier Thauvin at 20/02/13 18:13 did gyre and gimble:
>>>>> * Colin Guthrie (mageia at colin.guthr.ie) wrote:
>>>>>
>>>>> 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.
>>>
>>> Sure, my disk is a SSD:
>>>
>>>    Device Boot      Start         End      Blocks   Id  System
>>>    /dev/sda1              63       80324       40131   de  Dell Utility
>>>    /dev/sda2   *       81920     1622015      770048    7  HPFS/NTFS/exFAT
>>>    /dev/sda3         1622016   124499967    61438976    7  HPFS/NTFS/exFAT
>>>    /dev/sda4       124502016   500105215   187801600    5  Extended
>>>    /dev/sda5       124506112   125547974      520931+  83  Linux
>>>    /dev/sda6       125550592   500103449   187276429   8e  Linux LVM
>>>
>>>
>>> /dev/sda5 = /boot
>>>
>>> /dev/sda6 = the whole lvm
>>>
>>> [root at localhost foo]# lvs
>>>   LV    VG          Attr      LSize   Pool Origin Data%  Move Log Copy% Convert
>>>     crypt sagittarius -wi-ao--- 141,01g                                           
>>>     root  sagittarius -wi-ao---  12,77g                                           
>>>     swap  sagittarius -wi-ao---   3,91g                                           
>>>     tmp   sagittarius -wi-ao---   3,00g                                           
>>>     var   sagittarius -wi-ao---   1,95g
>>>
>>> the "crypt" lv is my /home:
>>>
>>> /dev/mapper/crypt_sagittarius_crypt on /home type ext4 (rw,noatime,commit=600,data=ordered)
>>>
>>> Don't hesitate if you need more output, especially device and dm number.
>>>
>>> I can produce debug output of dracut too if necessary.
>>
>>
>> If you could supply debug output when generating initrd both with the
>> packaged version and your patched version that would be very useful and
>> may allow me to avoid having to exactly duplicate the setup!!
> 
> Actually no need for debug output. I spoke to Harald upstream and he
> reckoned your change is indeed correct and required. I'll patch our
> package shortly.
> 
> Thank you very much for debugging this and being so patient :)

commit 7d4d3f8da624ccc27798b01fdd0f3c594267f53a (HEAD, origin/master,
origin/HEAD, master)
Author: Harald Hoyer <harald at ...>
Date:   Thu Feb 21 12:07:34 2013 +0100

    lvm/module-setup.sh: use for_each_host_dev_and_slaves_all

    Use for_each_host_dev_and_slaves_all to get all lvm setups for the
    host-only case.

    Thanks to Olivier Thauvin

Available soon in dracut-025-4.mga3.

Thanks again!

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