Bug 525319
Summary: | LiveCD boot gets stuck during dmsetup? | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Warren Togami <wtogami> |
Component: | dracut | Assignee: | Harald Hoyer <harald> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | agk, awilliam, harald, mbroz, prajnoha |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-09-28 02:19:24 UTC | Type: | --- |
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: | |||
Bug Blocks: | 507678 |
Description
Warren Togami
2009-09-23 21:54:39 UTC
lvm seems to be broken in dracut, see also bug 525015 That's the long-overdue RPM to enable full udev support. Can someone point us to the sequence of lvm/dm commands being run here and whether the normal udev rules are in place with udev running or not? dracut-002-7.gitb9c4654a.fc12 has all rules files, shared libs and the dmeventd and is supposed to fix this. Fingers crossed it works now... I've located the source, so if not, we can attempt to isolate and reproduce problems outside the dracut environment. I put dracut-002-7.gitb9c4654a.fc12 into a livecd and it boots in KVM successfully. Will try LiveUSB with tomorrow's nightly live image. should block Beta, not just final release. will test tomorrow myself too. -- Fedora Bugzappers volunteer triage team https://fedoraproject.org/wiki/BugZappers Well, when using those new device-mapper/lvm2 packages with udev synchronisation enabled (and using kernels >= 2.6.31), then dmsetup/lvm2 process expects the notification after device resume/rename/remove and waits for it! (so we're sure that all udev processing is finished and we can continue with dmsetup/lvm2 command processing) You can disable this by using "--noudevsync" option (in dmsetup as well as LVM2 commands). There's also a new setting in lvm.conf called udev_sync with which you can enable/disable this for LVM2 globally. But when you decide to use udev synchronisation, you must include the logic that is in 95-dm-notify.rules udev rules into dracut (those rules are part of device-mapper package)! This one unlocks the waiting process. It's just this rule that's most important: ENV{DM_COOKIE}=="?*", RUN+="$env{DM_SBIN_PATH}/dmsetup udevcomplete $env{DM_COOKIE}" (...change the DM_SBIN_PATH to where you have dmsetup binary installed..) This synchronisation is automatically turned off for older kernels < 2.6.31, because we do not provide support for important DM_COOKIE env var within udev events there. (..it is also turned off automatically when we detect that udev is not running, but that's just for complete information :)) (DM_COOKIE env var is sent from kernel directly, so no need for any extra rules to get this one) this was changed again, lvm and dracut both being reverted: warren and I will test and confirm 20090925 rawhide live images boot, and close the bug if so. -- Fedora Bugzappers volunteer triage team https://fedoraproject.org/wiki/BugZappers all reports say 20090925+ builds work, so closing this. -- Fedora Bugzappers volunteer triage team https://fedoraproject.org/wiki/BugZappers |