Bug 1509036
| Summary: | dm table not updated after automatic lvm segment merge | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | John Pittman <jpittman> |
| Component: | lvm2 | Assignee: | Zdenek Kabelac <zkabelac> |
| lvm2 sub component: | Changing Logical Volumes | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED CURRENTRELEASE | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | agk, alex.wang, cmarthal, heinzm, jbrassow, jmagrini, loberman, mcsontos, msnitzer, nweddle, orion, prajnoha, tcleveng, zkabelac |
| Version: | 7.4 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-04-20 15:09:59 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: | |||
| Bug Blocks: | 1784876 | ||
|
Description
John Pittman
2017-11-02 18:51:34 UTC
This was already fixed in 2.02.177 (upstream commit c489dd2e1764216de07be80d36b1025fb4f6fc85) # This appears to work effortlessly in the current rhel7.9 rpms, no need for the vgchange --refresh. Adding ack, but feel free to just close WORKSFORME. [root@mckinley-01 ~]# vgcreate seg_vg /dev/mapper/mpatha2 /dev/mapper/mpathb2 Volume group "seg_vg" successfully created [root@mckinley-01 ~]# lvcreate -n lv1 -l 200 seg_vg /dev/mapper/mpatha2:0-99 /dev/mapper/mpathb2:0-99 Logical volume "lv1" created. [root@mckinley-01 ~]# lvs -o +devices,seg_pe_ranges LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices PE Ranges lv1 seg_vg -wi-a----- 800.00m /dev/mapper/mpatha2(0) /dev/mapper/mpatha2:0-99 lv1 seg_vg -wi-a----- 800.00m /dev/mapper/mpathb2(0) /dev/mapper/mpathb2:0-99 [root@mckinley-01 ~]# dmsetup table seg_vg-lv1 0 819200 linear 253:4 65543 819200 819200 linear 253:8 65543 [root@mckinley-01 ~]# pvmove /dev/mapper/mpathb2:0-99 /dev/mapper/mpatha2:100-199 /dev/mapper/mpathb2: Moved: 0.00% /dev/mapper/mpathb2: Moved: 100.00% # This appears to work effortlessly in the current rhel7.9 rpms, no need for the vgchange --refresh [root@mckinley-01 ~]# lvs -o +devices,seg_pe_ranges LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices PE Ranges lv1 seg_vg -wi-a----- 800.00m /dev/mapper/mpatha2(0) /dev/mapper/mpatha2:0-199 [root@mckinley-01 ~]# dmsetup table seg_vg-lv1 0 1638400 linear 253:4 65543 [root@mckinley-01 ~]# vgchange --refresh seg_vg [root@mckinley-01 ~]# lvs -o +devices,seg_pe_ranges LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices PE Ranges lv1 seg_vg -wi-a----- 800.00m /dev/mapper/mpatha2(0) /dev/mapper/mpatha2:0-199 |