Bug 2121277
Summary: | [RHEL9.1] system hung at Started cancel waiting for multipath siblings of x | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Ben Marzinski <bmarzins> | ||||
Component: | device-mapper-multipath | Assignee: | Ben Marzinski <bmarzins> | ||||
Status: | CLOSED ERRATA | QA Contact: | Lin Li <lilin> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 9.0 | CC: | abenoit, acardace, agk, atragler, bgalvani, bmarzins, bugproxy, cwei, dracut-maint-list, drosario, dtardon, fge, guazhang, heinzm, honli, lilin, lrintel, mgandhi, mharri, msnitzer, nyewale, pgm-rhel-tools, phess, prajnoha, pvlasin, rituagar, rkhan, rmetrich, saurav.kashyap, shangsong2, sukulkar, thaller, till, wdh, zkabelac | ||||
Target Milestone: | rc | Keywords: | Reopened, Triaged | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | device-mapper-multipath-0.8.7-12.el9 | Doc Type: | Bug Fix | ||||
Doc Text: |
Cause: When multipath is configured with "find_multipaths smart" (which it is when booting into anaconda) and a new storage device appears, it starts a systemd timer to wait for another path to the device to appear. If this timer expires while the initramfs is cleaning up to pivot to the regular filesystem during boot, it will restart multipathd, which will stop systemd from cleaning up the initramfs.
Consequence: systems can hang booting into anaconda during installation, if storage devices appear late enough in the initramfs portion of the bootup.
Fix: The systemd timers now conflict with initramfs cleanup, so they will automatically get stopped when the system cleans up to pivot to the regular file system. They also no longer restart multipathd if it has stopped running
Result: Systems no longer hang while booting into anaconda for installation.
|
Story Points: | --- | ||||
Clone Of: | 1916168 | ||||||
: | 2123372 (view as bug list) | Environment: | |||||
Last Closed: | 2022-11-15 11:16:24 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 1916168 | ||||||
Bug Blocks: | 1997272, 1916117, 1934584, 1965064, 1997257, 2024217, 2123372 | ||||||
Attachments: |
|
Description
Ben Marzinski
2022-08-25 03:27:38 UTC
Created attachment 1907478 [details]
Patch to fix the hang.
This is the patch from the test iso that fixes the issue. When multipath is configured with find_multipaths "smart" (which it is in the installer boot initramfs) it waits to see if multiple paths will appear for devices. It sets systemd timers to stop this waiting. If these timers triggered while the initramfs was cleaning up to pivot to the actual root filesystem, they would restart multipathd, which would cause the cleanup to hang. The fix makes the timers conflict with initrd-cleanup.service, so that they get disabled when the initramfs starts cleaning up. Also, they no longer force multipathd to restart if it has already been stopped.
*** Bug 2123663 has been marked as a duplicate of this bug. *** *** Bug 2123372 has been marked as a duplicate of this bug. *** A test iso with a patch to resolve this issue is available here: https://people.redhat.com/bmarzins/isos/bz2121277/rhel-9.1-patched-boot.iso Can you try booting with this iso instead of your regular installation iso. This boot iso won't actually be able to install a system, since it doesn't contain any of the necessary installation sources. It will just boot you into anaconda. But since it has the multipath fix, you should be able to successfully boot into anaconda, without hanging in the initramfs. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (device-mapper-multipath bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:8313 |