All of lore.kernel.org
 help / color / mirror / Atom feed
* PATCH: Fix / on lvm
@ 2009-07-10 16:49 Hans de Goede
       [not found] ` <4A577113.2040804-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Hans de Goede @ 2009-07-10 16:49 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA; +Cc: Hans de Goede

[-- Attachment #1: Type: text/plain, Size: 231 bytes --]

Hi,

Currently / on lvm is not working because the udev rules test for KERNEL="dm-*" which of course
will not be true for PV's, so PV's are not recognized and thus lvm does not work.

The attached patch fixes this.

Regards,

Hans

[-- Attachment #2: dracut-patch --]
[-- Type: text/plain, Size: 727 bytes --]

diff --git a/modules.d/90lvm/64-lvm-vol_id.rules b/modules.d/90lvm/64-lvm-vol_id.rules
index d4b5269..0ebf009 100644
--- a/modules.d/90lvm/64-lvm-vol_id.rules
+++ b/modules.d/90lvm/64-lvm-vol_id.rules
@@ -6,7 +6,6 @@
 
 SUBSYSTEM!="block", GOTO="lvm_end"
 ACTION!="add|change", GOTO="lvm_end"
-KERNEL!="dm-*", GOTO="lvm_end"
 
 IMPORT{program}="vol_id --export $tempnode"
 
diff --git a/modules.d/90lvm/64-lvm.rules b/modules.d/90lvm/64-lvm.rules
index 3eddd07..7218862 100644
--- a/modules.d/90lvm/64-lvm.rules
+++ b/modules.d/90lvm/64-lvm.rules
@@ -6,7 +6,6 @@
 
 SUBSYSTEM!="block", GOTO="lvm_end"
 ACTION!="add|change", GOTO="lvm_end"
-KERNEL!="dm-*", GOTO="lvm_end"
 
 IMPORT{program}="/sbin/blkid -o udev -p $tempnode"
 

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: PATCH: Fix / on lvm
       [not found] ` <4A577113.2040804-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2009-07-13  3:09   ` Warren Togami
       [not found]     ` <4A5AA554.3000304-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2009-07-13 12:56   ` Harald Hoyer
  1 sibling, 1 reply; 4+ messages in thread
From: Warren Togami @ 2009-07-13  3:09 UTC (permalink / raw)
  To: Hans de Goede, initramfs

On 07/10/2009 12:49 PM, Hans de Goede wrote:
> Hi,
>
> Currently / on lvm is not working because the udev rules test for
> KERNEL="dm-*" which of course
> will not be true for PV's, so PV's are not recognized and thus lvm does
> not work.
>
> The attached patch fixes this.
>
> Regards,
>
> Hans

Could you please describe in detail the type of setup needed to 
reproduce this failure?  I have / on lvm here and dracut is working just 
fine.

Warren Togami
wtogami-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATCH: Fix / on lvm
       [not found]     ` <4A5AA554.3000304-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2009-07-13  7:04       ` Hans de Goede
  0 siblings, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2009-07-13  7:04 UTC (permalink / raw)
  To: Warren Togami; +Cc: initramfs

Hi,

On 07/13/2009 05:09 AM, Warren Togami wrote:
> On 07/10/2009 12:49 PM, Hans de Goede wrote:
>> Hi,
>>
>> Currently / on lvm is not working because the udev rules test for
>> KERNEL="dm-*" which of course
>> will not be true for PV's, so PV's are not recognized and thus lvm does
>> not work.
>>
>> The attached patch fixes this.
>>
>> Regards,
>>
>> Hans
>
> Could you please describe in detail the type of setup needed to
> reproduce this failure? I have / on lvm here and dracut is working just
> fine.
>

Basically the default anaconda partitioning setup so /boot /dev/sda1
(sata disk) and / on an lv whose vg contains one (large) pv which is
/dev/sda2

But this isn't all that interesting, read the rules, they are there to
do: "lvm vgscan; lvm vgchange -ay" when a new PV gets added to the system,
yet they contain the line:

KERNEL!="dm-*", GOTO="lvm_end"

Before doing this, meaning that a PV on a regular scsi disk (instead of a
PV on top of device mapper) will not cause the
"lvm vgscan; lvm vgchange -ay" to get executed and thus my / to not be
found.

Maybe you are using a dmraid setup ?  That would explain why these rules
are working for you.

Regards,

Hans


--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATCH: Fix / on lvm
       [not found] ` <4A577113.2040804-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2009-07-13  3:09   ` Warren Togami
@ 2009-07-13 12:56   ` Harald Hoyer
  1 sibling, 0 replies; 4+ messages in thread
From: Harald Hoyer @ 2009-07-13 12:56 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

On 07/10/2009 06:49 PM, Hans de Goede wrote:
> Hi,
>
> Currently / on lvm is not working because the udev rules test for
> KERNEL="dm-*" which of course
> will not be true for PV's, so PV's are not recognized and thus lvm does
> not work.
>
> The attached patch fixes this.
>
> Regards,
>
> Hans

fixed
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-13 12:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-10 16:49 PATCH: Fix / on lvm Hans de Goede
     [not found] ` <4A577113.2040804-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-07-13  3:09   ` Warren Togami
     [not found]     ` <4A5AA554.3000304-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-07-13  7:04       ` Hans de Goede
2009-07-13 12:56   ` Harald Hoyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.