Bug 1324028
Summary: | Possible timing issue when processing udev events for multipathed PV causing lvmetad and LVM commands to not see the PV | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Peter Rajnoha <prajnoha> | ||||
Component: | lvm2 | Assignee: | Peter Rajnoha <prajnoha> | ||||
lvm2 sub component: | Udev | QA Contact: | cluster-qe <cluster-qe> | ||||
Status: | CLOSED ERRATA | Docs Contact: | |||||
Severity: | medium | ||||||
Priority: | medium | CC: | agk, bubrown, cmarthal, heinzm, jbrassow, jfenal, jscalf, lenh_jea, msnitzer, prajnoha, prockai, rbednar, unixhosting, zkabelac | ||||
Version: | 7.3 | ||||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | lvm2-2.02.152-1.el7 | Doc Type: | Bug Fix | ||||
Doc Text: |
Due to timing problems, when processing udev events for multipathed Physical Volumes (PVs), lvmetad and LVM commands previously failed to detect the PVs on reboot. This update fixes the aforementioned timing bug, and the system now
finds and activates all LVM volume groups while scanning and activating PVs.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-11-04 04:19:54 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: | 1287106 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Peter Rajnoha
2016-04-05 11:35:18 UTC
This is an excerpt and summary of existing private bug #1287106 so this problem and solution can be searched for and referenced in other bugs if needed. Hi, Is there a roadmap available somewhere about the release date of RHEL 7.3 ? Version lvm2-2.02.130-5.el7_2.2 seems not available yet in EUS channel... Is it on QA ? Regards, Paquets disponibles Nom : lvm2 Architecture : x86_64 Date : 7 Version : 2.02.130 Révision : 5.el7_2.1 Taille : 1.0 M Dépôt : rhel-7-server-eus-rpms/x86_64 Résumé : Userland logical volume management tools URL : http://sources.redhat.com/lvm2 Licence : GPLv2 Description : LVM2 includes all of the support for handling read/write operations on : physical volumes (hard disks, RAID-Systems, magneto optical, etc., : multiple devices (MD), see mdadd(8) or even loop devices, see : losetup(8)), creating volume groups (kind of virtual disks) from one : or more physical volumes and creating one or more logical volumes : (kind of logical partitions) in volume groups. [root@tstlsys007 yum.repos.d]# (In reply to LENHOF from comment #2) > Hi, > > Is there a roadmap available somewhere about the release date of RHEL 7.3 ? > Version lvm2-2.02.130-5.el7_2.2 seems not available yet in EUS channel... Is > it on QA ? I don't think 7.3 schedule is publicly available yet. The 7.2.z version (lvm2-2.02.130-5.el7_2.2) has currently passed QA so it should appear on the channel in a few days. Hi, Packages seems to not be available yet.... after more than "few days". Could you provide some feedback about progress been made about this bug report ? Regards, 7.1.EUS is shipped already (lvm2-2.02.115-3.el7_1.2). 7.2.z is in preparation (lvm2-2.02.130-5.el7_2.2). This one passed devel, passed QA, it's verified - all done, just waiting to be released. Add release engineering to needinfo if they can provide exact dates... (In reply to Peter Rajnoha from comment #7) > 7.1.EUS is shipped already (lvm2-2.02.115-3.el7_1.2). > > 7.2.z is in preparation (lvm2-2.02.130-5.el7_2.2). This one passed devel, > passed QA, it's verified - all done, just waiting to be released. Add > release engineering to needinfo if they can provide exact dates... The 7.2.z advisory with lvm2-2.02.130-5.el7_2.2 build was already released. https://access.redhat.com/errata/RHBA-2016:1028 Created attachment 1165180 [details] Udev monitoring service to collect device events with variables to /run/udev_monitor.log I'm copying the part about getting proper logs to analyze this issue from bug #1287106 so it's publicly available: 1) place systemd-udev-monitor.service file in /etc/systemd/system 2) call "systemctl daemon-reload" 3) call "systemctl enable systemd-udev-monitor.service" 4) reboot 5) append "systemd.log_level=debug systemd.log_target=kmsg udev.log-priority=debug log_buf_len=8M" to kernel cmd line at boot 6) make sure systemd-udev-monitor.service is running by checking "systemctl status systemd-udev-monitor.service" 7) after booting, grab the journal with "journalctl -b" 8) generate lvmdump by calling "lvmdump -u -l -s" and take the generated dump file 9) stop the systemd-udev-monitor.service with "systemctl stop systemd-udev-monitor.service" 10) take the /run/udev_monitor.log file that got generated 11) do the sosreport, just in case we'd need some extra info not already gathered by commands above 12) call "systemctl disable systemd-udev-monitor.service" and "rm /etc/systemd/system/systemd-udev-monitor.service" for cleanup. It's important to have all the information and logs in sync for *one single run* as otherwise it's harder to track devices with logs from different runs (major/minors changed, names can be changed etc.). I'm interested in logs which are gathered for the failed run, of course but if we also have exactly same set of logs for the correct boot as well, that would be even more perfect (for comparison). Note: as for z-streams, the fix for this issue has been released as: 7.2.z: ====== lvm2-2.02.130-5.el7_2.2 device-mapper-multipath-0.4.9-85.el7_2.2 7.1.z: ====== lvm2-2.02.115-3.el7_1.2 device-mapper-multipath-0.4.9-77.el7_1.3 Verified based on https://bugzilla.redhat.com/show_bug.cgi?id=1287106#c56 No warnings related to missing PVs observed after reboot with multipath setup using latest rpms. # systemctl is-active lvm2-lvmetad.service inactive # pvs -o +devices PV VG Fmt Attr PSize PFree Devices /dev/mapper/mpatha vg lvm2 a-- 972.00m 872.00m /dev/mapper/mpatha(0) /dev/mapper/mpatha vg lvm2 a-- 972.00m 872.00m ... # reboot ... # pvs PV VG Fmt Attr PSize PFree /dev/mapper/mpatha vg lvm2 a-- 972.00m 872.00m ... ============================================================== lvmetad on: # systemctl is-active lvm2-lvmetad.service active # vgcreate vg /dev/mapper/mpatha Volume group "vg" successfully created # lvcreate -L100M vg Logical volume "lvol0" created. # reboot ... # pvs PV VG Fmt Attr PSize PFree /dev/mapper/mpatha vg lvm2 a-- 972.00m 872.00m /dev/vda2 rhel_virt-283 lvm2 a-- 7.79g 40.00m 3.10.0-505.el7.x86_64 lvm2-2.02.165-2.el7 BUILT: Wed Sep 14 16:01:43 CEST 2016 lvm2-libs-2.02.165-2.el7 BUILT: Wed Sep 14 16:01:43 CEST 2016 lvm2-cluster-2.02.165-2.el7 BUILT: Wed Sep 14 16:01:43 CEST 2016 device-mapper-1.02.134-2.el7 BUILT: Wed Sep 14 16:01:43 CEST 2016 device-mapper-libs-1.02.134-2.el7 BUILT: Wed Sep 14 16:01:43 CEST 2016 device-mapper-event-1.02.134-2.el7 BUILT: Wed Sep 14 16:01:43 CEST 2016 device-mapper-event-libs-1.02.134-2.el7 BUILT: Wed Sep 14 16:01:43 CEST 2016 device-mapper-persistent-data-0.6.3-1.el7 BUILT: Fri Jul 22 12:29:13 CEST 2016 cmirror-2.02.165-2.el7 BUILT: Wed Sep 14 16:01:43 CEST 2016 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, 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://rhn.redhat.com/errata/RHBA-2016-1445.html |