<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] System doen't boot with LVM
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20System%20doen%27t%20boot%20with%20LVM&In-Reply-To=%3C51262534.2060709%40colin.guthr.ie%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="023035.html">
   <LINK REL="Next"  HREF="022952.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] System doen't boot with LVM</H1>
    <B>Colin Guthrie</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20System%20doen%27t%20boot%20with%20LVM&In-Reply-To=%3C51262534.2060709%40colin.guthr.ie%3E"
       TITLE="[Mageia-dev] System doen't boot with LVM">mageia at colin.guthr.ie
       </A><BR>
    <I>Thu Feb 21 14:46:28 CET 2013</I>
    <P><UL>
        <LI>Previous message: <A HREF="023035.html">[Mageia-dev] System doen't boot with LVM
</A></li>
        <LI>Next message: <A HREF="022952.html">[Mageia-dev] System doen't boot with LVM
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#23042">[ date ]</a>
              <a href="thread.html#23042">[ thread ]</a>
              <a href="subject.html#23042">[ subject ]</a>
              <a href="author.html#23042">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>'Twas brillig, and Colin Guthrie at 21/02/13 11:08 did gyre and gimble:
&gt;<i> 'Twas brillig, and Colin Guthrie at 20/02/13 23:19 did gyre and gimble:
</I>&gt;&gt;<i> 'Twas brillig, and Olivier Thauvin at 20/02/13 20:13 did gyre and gimble:
</I>&gt;&gt;&gt;<i> * Colin Guthrie (<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">mageia at colin.guthr.ie</A>) wrote:
</I>&gt;&gt;&gt;&gt;<i> 'Twas brillig, and Olivier Thauvin at 20/02/13 18:13 did gyre and gimble:
</I>&gt;&gt;&gt;&gt;&gt;<i> * Colin Guthrie (<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">mageia at colin.guthr.ie</A>) wrote:
</I>&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;<i> Iirc I replaced for_each_host_dev_and_slaves by
</I>&gt;&gt;&gt;&gt;&gt;<i> for_each_host_dev_and_slaves_all.
</I>&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;<i> Honestly I don't understand what it change...
</I>&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;<i> Hope this help.
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> Yes, that helps a lot.
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> I'm not sure why it makes a difference (considering my own setup here is
</I>&gt;&gt;&gt;&gt;<i> at least partially similar to yours), but I'll definitely dig into it more.
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> Can you describe the LVM setup? i.e. how the lvm sits on top of the
</I>&gt;&gt;&gt;&gt;<i> physical disks etc? I really want to try and reproduce the issue so I
</I>&gt;&gt;&gt;&gt;<i> can make a good upstream explanation of the problem with the patch.
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Sure, my disk is a SSD:
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>    Device Boot      Start         End      Blocks   Id  System
</I>&gt;&gt;&gt;<i>    /dev/sda1              63       80324       40131   de  Dell Utility
</I>&gt;&gt;&gt;<i>    /dev/sda2   *       81920     1622015      770048    7  HPFS/NTFS/exFAT
</I>&gt;&gt;&gt;<i>    /dev/sda3         1622016   124499967    61438976    7  HPFS/NTFS/exFAT
</I>&gt;&gt;&gt;<i>    /dev/sda4       124502016   500105215   187801600    5  Extended
</I>&gt;&gt;&gt;<i>    /dev/sda5       124506112   125547974      520931+  83  Linux
</I>&gt;&gt;&gt;<i>    /dev/sda6       125550592   500103449   187276429   8e  Linux LVM
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> /dev/sda5 = /boot
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> /dev/sda6 = the whole lvm
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> [<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at localhost</A> foo]# lvs
</I>&gt;&gt;&gt;<i>   LV    VG          Attr      LSize   Pool Origin Data%  Move Log Copy% Convert
</I>&gt;&gt;&gt;<i>     crypt sagittarius -wi-ao--- 141,01g                                           
</I>&gt;&gt;&gt;<i>     root  sagittarius -wi-ao---  12,77g                                           
</I>&gt;&gt;&gt;<i>     swap  sagittarius -wi-ao---   3,91g                                           
</I>&gt;&gt;&gt;<i>     tmp   sagittarius -wi-ao---   3,00g                                           
</I>&gt;&gt;&gt;<i>     var   sagittarius -wi-ao---   1,95g
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> the &quot;crypt&quot; lv is my /home:
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> /dev/mapper/crypt_sagittarius_crypt on /home type ext4 (rw,noatime,commit=600,data=ordered)
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Don't hesitate if you need more output, especially device and dm number.
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> I can produce debug output of dracut too if necessary.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> If you could supply debug output when generating initrd both with the
</I>&gt;&gt;<i> packaged version and your patched version that would be very useful and
</I>&gt;&gt;<i> may allow me to avoid having to exactly duplicate the setup!!
</I>&gt;<i> 
</I>&gt;<i> Actually no need for debug output. I spoke to Harald upstream and he
</I>&gt;<i> reckoned your change is indeed correct and required. I'll patch our
</I>&gt;<i> package shortly.
</I>&gt;<i> 
</I>&gt;<i> Thank you very much for debugging this and being so patient :)
</I>
commit 7d4d3f8da624ccc27798b01fdd0f3c594267f53a (HEAD, origin/master,
origin/HEAD, master)
Author: Harald Hoyer &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">harald at ...</A>&gt;
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
<A HREF="http://colin.guthr.ie/">http://colin.guthr.ie/</A>

Day Job:
  Tribalogic Limited <A HREF="http://www.tribalogic.net/">http://www.tribalogic.net/</A>
Open Source:
  Mageia Contributor <A HREF="http://www.mageia.org/">http://www.mageia.org/</A>
  PulseAudio Hacker <A HREF="http://www.pulseaudio.org/">http://www.pulseaudio.org/</A>
  Trac Hacker <A HREF="http://trac.edgewall.org/">http://trac.edgewall.org/</A>
</PRE>








<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="023035.html">[Mageia-dev] System doen't boot with LVM
</A></li>
	<LI>Next message: <A HREF="022952.html">[Mageia-dev] System doen't boot with LVM
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#23042">[ date ]</a>
              <a href="thread.html#23042">[ thread ]</a>
              <a href="subject.html#23042">[ subject ]</a>
              <a href="author.html#23042">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>