Bug 247265
Summary: | race between loading xenblk.ko and scanning for LVM partitions etc. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Ian Campbell <ijc> | ||||||
Component: | kernel-xen | Assignee: | Richard W.M. Jones <rjones> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Martin Jenner <mjenner> | ||||||
Severity: | low | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 5.0 | CC: | clalance, jarod, mshao, rjones, tao, xen-maint | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | RHBA-2007-0959 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2007-11-07 19:55:12 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: | 241793 | ||||||||
Bug Blocks: | 248462 | ||||||||
Attachments: |
|
Description
Ian Campbell
2007-07-06 14:17:18 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. AFAICS, this only solves half the problem. Waiting for the disk to be added gets you so far. You also need to wait for the partitions on the disk to be scanned. See 241793 comment 15 (and onwards). Bug 241793 comment 15 (Bugzilla _really_ needs a preview feature). The proposed patch causes the module load to wait until add_disk() has returned. In 2.6.18 at least this calls down to rescan_partitions in a synchronous manner. (add_disk->register_disk->blkdev_get->do_open->rescan_partitions). trapped into this issue too while trying to make rhel5 boot with pv-on-hvm drivers. Fixed it this way: --- /sbin/mkinitrd.kraxel 2007-07-11 13:25:06.000000000 +0200 +++ /sbin/mkinitrd 2007-07-12 12:58:16.000000000 +0200 @@ -1239,9 +1239,11 @@ unset usb_mounted if [ -n "$scsi" ]; then - emit "echo Waiting for driver initialization." + emit "echo Waiting for driver initialization (scsi)." emit "stabilized --hash --interval 250 /proc/scsi/scsi" fi +emit "echo Waiting for driver initialization (partitions)." +emit "stabilized --hash --interval 250 /proc/partitions" if [ -n "$vg_list" ]; then I have now tested the Xen upstream fix and it works. Created attachment 159140 [details]
Upstream patch against 2.6.20-2925.10
Created attachment 159143 [details]
Patch against RHEL 5.1 2.6.18-32.el5 kernel
This patch applies cleanly against the RHEL 5.1 2.6.18-32.el5 kernel
(you will need %patch... -p2).
change QA contact I'd ping dzickus about this one, last comment from him about the patch was a request for a -p1 repost, which Rik did on 7/20, but it doesn't yet appear to have been pulled into the kernel build. in 2.6.18-37.el5 You can download this test kernel from http://people.redhat.com/dzickus/el5 *** Bug 241793 has been marked as a duplicate of this bug. *** *** Bug 230561 has been marked as a duplicate of this bug. *** The feedback from Fujitsu: ------------------------------------ We tested this issue on PV domain with RHEL5.1 snapshot 2. The result is fine. But we also tested it on HVM domain, the result is no good. We understand currently system-volume is qemu-dm device and so we not get this problem. We try to system-volume be VBD device, and this case we get same this problem. How about system-volume be VBD device in Red Hat? On HVM domain which system-volume is VBD device, it is difficult to fix this problem at driver side. We think some waiting logic is needed for the initial sequence of Linux OS. Thank you. Nishi This event sent from IssueTracker by mmatsuya issue 125723 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0959.html |