Bug 1186903
Summary: | 'Internal error: Performing unsafe table load' when splitting images from thinpool stacked on raid1 | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Corey Marthaler <cmarthal> | ||||
Component: | lvm2 | Assignee: | Zdenek Kabelac <zkabelac> | ||||
lvm2 sub component: | Mirroring and RAID | QA Contact: | cluster-qe <cluster-qe> | ||||
Status: | CLOSED ERRATA | Docs Contact: | |||||
Severity: | low | ||||||
Priority: | unspecified | CC: | agk, heinzm, jbrassow, msnitzer, prajnoha, prockai, zkabelac | ||||
Version: | 7.1 | ||||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | lvm2-2.02.125-1.el7 | Doc Type: | Bug Fix | ||||
Doc Text: |
Code for splitting raid and mirror legs tried to also rename thin pool volume and failed.
Fixed code takes handles pool properties and allows splitting operation to pass correctly.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-11-19 12:46:02 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: | |||||||
Attachments: |
|
Description
Corey Marthaler
2015-01-28 20:27:34 UTC
Created attachment 985335 [details]
-vvvv of the lvconvert --splitmirrors
Yep - it's the same problem as with cache pool where 'for_each_sub_lv()' internal lvm2 function needs at least 2 operation levels. However for plain cache pool there is currently a small workaround. There are different requirements when doing i.e. 'rename' and 'split' when in some case for thin/cache LV we want to proceed all sub volume while in other we want to stop at pool border. We need to do a bit of thinking how to do it in the best way so the device stacking operates properly in all cases. So should be addressed by todays for_each_sub_lv_except_pools() patchset: https://www.redhat.com/archives/lvm-devel/2015-January/msg00087.html Marking verified in the latest rpms. 3.10.0-302.el7.x86_64 lvm2-2.02.126-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 lvm2-libs-2.02.126-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 lvm2-cluster-2.02.126-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 device-mapper-1.02.103-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 device-mapper-libs-1.02.103-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 device-mapper-event-1.02.103-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 device-mapper-event-libs-1.02.103-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 device-mapper-persistent-data-0.5.4-1.el7 BUILT: Fri Jul 17 08:56:22 CDT 2015 cmirror-2.02.126-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 sanlock-3.2.4-1.el7 BUILT: Fri Jun 19 12:48:49 CDT 2015 sanlock-lib-3.2.4-1.el7 BUILT: Fri Jun 19 12:48:49 CDT 2015 lvm2-lockd-2.02.126-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 [root@harding-03 ~]# lvconvert --splitmirrors 1 --name new0 split_image/split_thin_tdata /dev/mapper/mpatha1 [root@harding-03 ~]# lvs -a -o +devices LV Attr LSize Pool Data% Meta% Cpy%Sync Devices [lvol0_pmspare] ewi------- 200.00m /dev/mapper/mpatha1(176) new0 -wi-a----- 500.00m /dev/mapper/mpatha1(1) split_thin twi---tz-- 500.00m 0.00 0.03 split_thin_tdata(0) [split_thin_tdata] rwi-aor--- 500.00m 100.00 split_thin_tdata_rimage_0(0),split_thin_tdata_rimage_1(0),split_thin_tdata_rimage_2(0),split_thin_tdata_rimage_3(0) [split_thin_tdata_rimage_0] iwi-aor--- 500.00m /dev/mapper/mpatha2(1) [split_thin_tdata_rimage_1] iwi-aor--- 500.00m /dev/mapper/mpathb1(1) [split_thin_tdata_rimage_2] iwi-aor--- 500.00m /dev/mapper/mpathb2(1) [split_thin_tdata_rimage_3] iwi-aor--- 500.00m /dev/mapper/mpathc1(1) [split_thin_tdata_rmeta_0] ewi-aor--- 4.00m /dev/mapper/mpatha2(0) [split_thin_tdata_rmeta_1] ewi-aor--- 4.00m /dev/mapper/mpathb1(0) [split_thin_tdata_rmeta_2] ewi-aor--- 4.00m /dev/mapper/mpathb2(0) [split_thin_tdata_rmeta_3] ewi-aor--- 4.00m /dev/mapper/mpathc1(0) [split_thin_tmeta] ewi-ao---- 200.00m /dev/mapper/mpatha1(126) virt Vwi-a-tz-- 100.00m split_thin 0.00 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-2015-2147.html |