[dm-devel] [PATCH 4/4] libmultipath: trigger uevents for partitions, too

Martin Wilck Martin.Wilck at suse.com
Wed Jul 10 10:41:53 UTC 2019


On Tue, 2019-07-09 at 11:40 -0500, Roger Heflin wrote:
> We have an observed behavior as follows:
> 
> When the host boots up, a uuid symbolic link is created pointing at
> /dev/sda1 (device for /boot)
> 
> Multipath starts up and creates an multipath device to manage
> /dev/sda
> and a udev rule deletes /dev/sda1 invalidating the symbolic link.

I suppose you are talking about 68-del-part-nodes.rules. Note that the
rules in this file can be deactivated by setting
ENV{DONT_DEL_PART_NODES}="1" in an early udev rule.

Also, the rule only removes partitions for devices that have been
detected as being eligible for multipathing.

> The symbolic link does not appear to get re-created to point to the
> new multipath device which would lead one to suspect that there was
> no
> event happening for when the multipath device is created.

That's very unlikely. You should verify that the multipath device (for
sda) is created. My patch here relates only to the case where creating
the multipath device *fails*.

If the creation of the multipath device succeeded, my patch would have
no effect on your system. In that case you should also verify that the
kpartx devices on top of it were created. I advise to boot with
"udev.log-priority=debug" and check what udev is actually doing.

> Right now our solution is a manual solution of blacklisting the
> device
> with /boot on it.
>
> Would this fix triggering an event on the multipath device partitions
> be expected to correct the above issue?

Maybe. I don't know enough details about your configuration to tell.
But if this is a device that should not be multipathed, from my point
of view, proper blacklisting via multipath.conf is the recommended way
to handle this problem. 

You can also use "find_multipaths"; please check the documentation.
Note also that since 0.7.8, blacklisting "by protocol" is possible,
which makes it possible e.g. to blacklist local SATA disks with a
simple statement.

Regards,
Martin





More information about the dm-devel mailing list