Bug 1366749
| Summary: | "Monitoring failed" messages during raid/mirror takeover | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Corey Marthaler <cmarthal> |
| Component: | lvm2 | Assignee: | LVM and device-mapper development team <lvm-team> |
| lvm2 sub component: | Mirroring and RAID | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | unspecified | CC: | agk, heinzm, jbrassow, mnavrati, msnitzer, prajnoha, prockai, zkabelac |
| Version: | 7.3 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.02.164-3.el7 | Doc Type: | No Doc Update |
| Doc Text: |
Intra-release bug, no documentation needed.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-04 04:17:27 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: | |||
Reproduced. Fixed upstream for next release. When unmonitoring, the dso for the new segment type was supplied and failing to match the one for the old segment type, so nothing was changing, leaving the LV still monitored by the wrong dso at the end. The code now finds out from dmeventd itself which dso is in use, and supplies that directly to the unmonitor call. Fix verified in the latest rpms. lvm2-2.02.164-3.el7 BUILT: Wed Aug 24 05:20:41 CDT 2016 lvm2-libs-2.02.164-3.el7 BUILT: Wed Aug 24 05:20:41 CDT 2016 lvm2-cluster-2.02.164-3.el7 BUILT: Wed Aug 24 05:20:41 CDT 2016 [root@host-117 ~]# lvcreate --type raid1 -L 50M -m 1 -n transform test Rounding up size to full physical extent 52.00 MiB Logical volume "transform" created. [root@host-117 ~]# lvs -a -o +devices LV VG Attr LSize Cpy%Sync Devices transform test rwi-a-r--- 52.00m 100.00 transform_rimage_0(0),transform_rimage_1(0) [transform_rimage_0] test iwi-aor--- 52.00m /dev/sda1(1) [transform_rimage_1] test iwi-aor--- 52.00m /dev/sdb1(1) [transform_rmeta_0] test ewi-aor--- 4.00m /dev/sda1(0) [transform_rmeta_1] test ewi-aor--- 4.00m /dev/sdb1(0) [root@host-117 ~]# lvconvert --type mirror test/transform Are you sure you want to convert test/transform back to the older "mirror" type? [y/n]: y Logical volume test/transform successfully converted. [root@host-117 ~]# lvs -a -o +devices LV VG Attr LSize Log Cpy%Sync Devices transform test mwi-a-m--- 52.00m [transform_mlog] 100.00 transform_mimage_0(0),transform_mimage_1(0) [transform_mimage_0] test iwi-aom--- 52.00m /dev/sda1(1) [transform_mimage_1] test iwi-aom--- 52.00m /dev/sdb1(1) [transform_mlog] test lwn-aom--- 4.00m /dev/sdg1(0) [root@host-117 ~]# lvconvert --type raid1 test/transform Logical volume test/transform successfully converted. [root@host-117 ~]# lvs -a -o +devices LV VG Attr LSize Cpy%Sync Devices transform test rwi-a-r--- 52.00m 100.00 transform_rimage_0(0),transform_rimage_1(0) [transform_rimage_0] test iwi-aor--- 52.00m /dev/sda1(1) [transform_rimage_1] test iwi-aor--- 52.00m /dev/sdb1(1) [transform_rmeta_0] test ewi-aor--- 4.00m /dev/sda1(0) [transform_rmeta_1] test ewi-aor--- 4.00m /dev/sdb1(0) 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 |
Description of problem: [root@host-082 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices root rhel_host-082 -wi-ao---- 6.67g /dev/vda2(205) swap rhel_host-082 -wi-ao---- 820.00m /dev/vda2(0) transform test rwi-a-r--- 28.00m 100.00 transform_rimage_0(0),transform_rimage_1(0) [transform_rimage_0] test iwi-aor--- 28.00m /dev/sda1(1) [transform_rimage_1] test iwi-aor--- 28.00m /dev/sdb1(1) [transform_rmeta_0] test ewi-aor--- 4.00m /dev/sda1(0) [transform_rmeta_1] test ewi-aor--- 4.00m /dev/sdb1(0) [root@host-082 ~]# lvconvert --type mirror --mirrorlog disk test/transform Using default stripesize 64.00 KiB. Are you sure you want to convert test/transform back to the older "mirror" type? [y/n]: y Monitoring test/transform failed. Logical volume test/transform successfully converted. Is this a real "failure"? Or should this message be the expected "No longer monitoring ..." that you see normally when monitoring needs to be toggled off and on due to creates/removes/converts? Version-Release number of selected component (if applicable): 3.10.0-489.el7.x86_64 lvm2-2.02.163-1.el7 BUILT: Wed Aug 10 06:53:21 CDT 2016 lvm2-libs-2.02.163-1.el7 BUILT: Wed Aug 10 06:53:21 CDT 2016 lvm2-cluster-2.02.163-1.el7 BUILT: Wed Aug 10 06:53:21 CDT 2016 device-mapper-1.02.133-1.el7 BUILT: Wed Aug 10 06:53:21 CDT 2016 device-mapper-libs-1.02.133-1.el7 BUILT: Wed Aug 10 06:53:21 CDT 2016 device-mapper-event-1.02.133-1.el7 BUILT: Wed Aug 10 06:53:21 CDT 2016 device-mapper-event-libs-1.02.133-1.el7 BUILT: Wed Aug 10 06:53:21 CDT 2016 device-mapper-persistent-data-0.6.3-1.el7 BUILT: Fri Jul 22 05:29:13 CDT 2016 cmirror-2.02.163-1.el7 BUILT: Wed Aug 10 06:53:21 CDT 2016 sanlock-3.4.0-1.el7 BUILT: Fri Jun 10 11:41:03 CDT 2016 sanlock-lib-3.4.0-1.el7 BUILT: Fri Jun 10 11:41:03 CDT 2016 lvm2-lockd-2.02.163-1.el7 BUILT: Wed Aug 10 06:53:21 CDT 2016