<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Apr 25, 2016 at 1:58 PM, Zdenek Kabelac <span dir="ltr"><<a href="mailto:zkabelac@redhat.com" target="_blank">zkabelac@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 25.4.2016 12:52, Peter Volkov wrote:<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
There is a problem: udev does not create partitions for multipath devices in<br>
case I use kpartx.rules provided with multipath sources. I found that udev<br>
always go to kpartx_end after following line of rules:<br>
ENV{DM_TABLE_STATE}!="LIVE", GOTO="kpartx_end"<br>
</blockquote>
</span><br>
Just curious - what would you want to do with inactive table???<br></blockquote><div><div><br class="">Actually don't understand what's this table and what's wrong with that. There is no traces of DM_TABLE_STATE variable in lvm2 sources. Yet there is such variable in udev rules file that comes with multipath sources:</div><div><a href="http://git.opensvc.com/gitweb.cgi?p=multipath-tools/.git;a=blob;f=kpartx/kpartx.rules;h=022361f907e873ac16fc75459b88af34b27576e5;hb=HEAD">http://git.opensvc.com/gitweb.cgi?p=multipath-tools/.git;a=blob;f=kpartx/kpartx.rules;h=022361f907e873ac16fc75459b88af34b27576e5;hb=HEAD</a></div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
You cannot read/scan such device ?</blockquote><div><br></div><div>The problem I have - multipath with udev's help creates /dev/mapper/mpatha block device but does not create devices for partitions, e.g. /dev/mapper/mpatha1. I found that this happens due to udev rule mentioned above. After execution rule on line 10 (<i>ENV{DM_TABLE_STATE}!="LIVE", GOTO="kpartx_end"</i>) udev goes directly to kpartx_end and rule on line 45 (...<span style="color:rgb(105,105,105);font-family:monospace,monospace;white-space:pre">"/sbin/kpartx -u -p -part /dev/$name")</span> is never executed.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
There is 8 (!!!) years old thread that discusses this problem:<br>
<a href="https://www.redhat.com/archives/dm-devel/2007-July/msg00095.html" rel="noreferrer" target="_blank">https://www.redhat.com/archives/dm-devel/2007-July/msg00095.html</a><br>
<br>
So what is the current state? Should we fix udev rules for multipath or should<br>
we create better patch for dmsetup.c? Meanwhile I've copied multipath.rules<br>
from redhat and partitions are created as they should.<br>
</blockquote>
<br>
<br></span>
What is the exact problem you do have/see ?</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Can you describe in some single repeatable steps a reproducer ?<br></blockquote><div><br></div><div>Install udev rules file from mutlipath tools and see that partitions are not created.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Which distro are you talking about  (Fedora ? Debian ??)<br></blockquote><div><br></div><div>That's Gentoo. But I think any distro that uses whatever upstream prepares have this problem.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Have you opened any bugzilla anywhere ?<br></blockquote><div><br></div><div>Not yet. I'd like to understand what needs to be done first.</div><div><br></div><div>--</div><div>Peter.</div></div></div></div>