Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Cause: Multipath wasn't signalling when it reloaded the device because of a path change.
Consequence: Other udev rules would process events that were internal to multipath, wasting time and occasionally dropping events
Fix: Multipath now sets a udev environment variable flag when for actions that cause uevents that can be safely ignored by other udev rules.
Result: Other rules do not process events that are internal to multipath, keeping udev from slowing down, and occasionally dropping events
The event is always generated on the DM_DEVICE_RESUME ioctl call. However, both reload and create event contains this event. Make it possible to recognize reload events (DM_DEVICE_RELOAD + DM_DEVICE_RESUME) from creation events (DM_DEVICE_CREATE + DM_DEVICE_RELOAD + DM_DEVICE_RESUME).
Once we can recognize these two events in udev rules, we can optimize udev handling in a way to avoid extra event processing when not actually needed - e.g. in case the path fail and get reinstated and multipath issues a reload. For any device stack layered on top of such mpath device, it makes no difference since multipath takes care of these situations in a transparent way so that the device is kept usable (as long as at least on path is available).
This requires patching both userspace multipath code as well as adding specific udev rules that handle this situation (reacting to DM_ACTION="PATH_FAILED|PATH_REINSTATED" events).
This will make it possible to optimize event handling and also resolve some problems that arise because of high number of events being processed if there's any device stack on top of the mpath (see also bug #1049387).
To test this, you need to create a multipath device with multiple paths. As paths are added and removed, and failed and restored, you need to either watch the udev events with
# udevadm monitor --udev --property
or check the udev database with
# udevadm info --export-db
DM_NR_VALID_PATHS should match the number of working paths. if DM_NR_VALID_PATH=0, DM_SCAN should also equal 0.
Finally, on events that are just caused from reloads where paths are added or removed, you should see DM_ACTIVATION=0
Yes, if ther(In reply to yanfu,wang from comment #8)
> @Ben, just one question want to confirm with you, instead of 'DM_SCAN should
> also equal 0' you mentioned, DM_NOSCAN=1 in fact during testing. But I think
> It's OK too, right?
Yes, indeed - whenever the number of valid paths drop to 0, the DM_NOSCAN=1 should be set. That was just a typo before...
(In reply to Peter Rajnoha from comment #9)
> Yes, if ther(In reply to yanfu,wang from comment #8)
> > @Ben, just one question want to confirm with you, instead of 'DM_SCAN should
> > also equal 0' you mentioned, DM_NOSCAN=1 in fact during testing. But I think
> > It's OK too, right?
>
> Yes, indeed - whenever the number of valid paths drop to 0, the DM_NOSCAN=1
> should be set. That was just a typo before...
Thanks for the confirmation, change to verify now.
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.