<div dir="ltr"><div>Hi,</div><div><br></div>Those example udev rules are indeed unmaintained and should be removed not to confuse distributors.<div><br></div><div>Distributors can't be asked to agree on a common udev ruleset. Ben, Hannes, Xosé, Peter are you ok with my deleting the udev rules example ?</div><div><br></div><div>Best regards,</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 25, 2016 at 2:32 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 25.4.2016 14:10, Peter Volkov wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On Mon, Apr 25, 2016 at 1:58 PM, Zdenek Kabelac <<a href="mailto:zkabelac@redhat.com" target="_blank">zkabelac@redhat.com</a><br></span><span class="">
<mailto:<a href="mailto:zkabelac@redhat.com" target="_blank">zkabelac@redhat.com</a>>> wrote:<br>
<br>
On 25.4.2016 12:52, Peter Volkov wrote:<br>
<br>
There is a problem: udev does not create partitions for multipath<br>
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>
<br>
<br>
Just curious - what would you want to do with inactive table???<br>
<br>
<br>
Actually don't understand what's this table and what's wrong with that. There<br>
is no traces of DM_TABLE_STATE variable in lvm2 sources. Yet there is such<br>
variable in udev rules file that comes with multipath sources:<br>
<a href="http://git.opensvc.com/gitweb.cgi?p=multipath-tools/.git;a=blob;f=kpartx/kpartx.rules;h=022361f907e873ac16fc75459b88af34b27576e5;hb=HEAD" rel="noreferrer" target="_blank">http://git.opensvc.com/gitweb.cgi?p=multipath-tools/.git;a=blob;f=kpartx/kpartx.rules;h=022361f907e873ac16fc75459b88af34b27576e5;hb=HEAD</a><br>
</span></blockquote>
<br>
<br>
So you would need to figure out which rules would have set DM_TABLE_STATE before ? (I assume such have never existed...)<br>
<br>
In Fedora/RHEL these kpartx.rules are not packaged as they are likely some 'ancient' rules - IMHO most of that file is useless on today's distros.<br>
(Unsure about dm-wwn logic???)<br>
<br>
So it's rather question for upstream kpartx maintainer why these rules<br>
are not maintained in any way.<br>
<br>
Vars like DM_TABLE_STATE are simply not created by dm rules.<br>
<br>
kpartx rules comes from year 2007, while dm rules started to be maintained in 2009 - that may explain few things as well...<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That's Gentoo. But I think any distro that uses whatever upstream prepares<br>
have this problem.<br>
<br>
Have you opened any bugzilla anywhere ?<br>
<br>
<br>
Not yet. I'd like to understand what needs to be done first.<br>
<br>
</blockquote>
<br></span>
Likely Gentoo should not install obsoleted udev rules file.<br>
<br>
Regards<span class="HOEnZb"><font color="#888888"><br>
<br>
Zdenek<br>
</font></span><br>
PS: I could be wrong here - since I've nothing in common with multipath,<br>
so in such case - feel free to correct me....<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
--<br>
dm-devel mailing list<br>
<a href="mailto:dm-devel@redhat.com" target="_blank">dm-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/dm-devel" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/dm-devel</a><br>
</div></div></blockquote></div><br></div>