Bug 1365286
Summary: | Converting thin pool_tdata containing virt LVs to/from raid1|10 results in failure | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Corey Marthaler <cmarthal> | |
Component: | lvm2 | Assignee: | Alasdair Kergon <agk> | |
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, nkshirsa, prajnoha, prockai, zkabelac | |
Version: | 7.3 | |||
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | lvm2-2.02.166-1.el7 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1380840 (view as bug list) | Environment: | ||
Last Closed: | 2016-11-04 04:16:34 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: | 1380840 |
Description
Corey Marthaler
2016-08-08 19:59:39 UTC
This may just be a dup of bug 1347048. Reproduced. Also getting 'Number of segments in active LV vg99/pool_tdata does not match metadata.' The second (snapshot) LV is unnecessary. The primary cause is that: lvconvert --type raid10 -m 1 test/POOL_tdata is not actually completing the conversion and leaves the on-disk metadata inconsistent with what's live in the kernel. A further lvchange --refresh is required to make it work. Additionally, if LVs are inactive, we see messages such as: Unable to determine sync status of vg99/lvol2. and the code proceeds regardless. We are missing some code in _add_lv_to_dtree to make sure that the underlying raid devices get added to the dtree when they are present in the metadata but not in the kernel. (It walks through and skips them.) For now, we will try to disable the lvconvert commands that do not work correctly. https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=1bc546269a7d2cae156827e282715410a4967d51 https://www.redhat.com/archives/lvm-devel/2016-September/msg00095.html It appears these operations are locked down now when the pool is active. Marking verified in the latest rpms. 3.10.0-510.el7.x86_64 lvm2-2.02.166-1.el7 BUILT: Wed Sep 28 02:26:52 CDT 2016 lvm2-libs-2.02.166-1.el7 BUILT: Wed Sep 28 02:26:52 CDT 2016 lvm2-cluster-2.02.166-1.el7 BUILT: Wed Sep 28 02:26:52 CDT 2016 device-mapper-1.02.135-1.el7 BUILT: Wed Sep 28 02:26:52 CDT 2016 device-mapper-libs-1.02.135-1.el7 BUILT: Wed Sep 28 02:26:52 CDT 2016 device-mapper-event-1.02.135-1.el7 BUILT: Wed Sep 28 02:26:52 CDT 2016 device-mapper-event-libs-1.02.135-1.el7 BUILT: Wed Sep 28 02:26:52 CDT 2016 device-mapper-persistent-data-0.6.3-1.el7 BUILT: Fri Jul 22 05:29:13 CDT 2016 # Attempt raid up conversion of active pool sub volumes [root@host-116 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Devices POOL snapper_thinp twi-aot--- 4.00g 0.00 1.37 POOL_tdata(0) [POOL_tdata] snapper_thinp Twi-ao---- 4.00g /dev/sdf1(1) [POOL_tmeta] snapper_thinp ewi-ao---- 4.00m /dev/sdh1(0) [lvol0_pmspare] snapper_thinp ewi------- 4.00m /dev/sdf1(0) origin snapper_thinp Vwi-a-t--- 1.00g POOL 0.01 pool_convert snapper_thinp Vwi-a-t--- 1.00g POOL origin 0.01 [root@host-116 ~]# lvconvert --type raid1 -m 1 snapper_thinp/POOL_tdata Can't add image to active thin pool LV snapper_thinp/POOL_tdata yet. Deactivate first. [root@host-116 ~]# lvconvert --type raid1 -m 1 snapper_thinp/POOL_tmeta Can't add image to active thin pool LV snapper_thinp/POOL_tmeta yet. Deactivate first. [root@host-116 ~]# lvconvert --type raid10 -m 1 snapper_thinp/POOL_tdata Using default stripesize 64.00 KiB. Conversion operation not yet supported. [root@host-116 ~]# lvconvert --type raid10 -m 1 snapper_thinp/POOL_tmeta Using default stripesize 64.00 KiB. Conversion operation not yet supported. [root@host-116 ~]# vgchange -an snapper_thinp 0 logical volume(s) in volume group "snapper_thinp" now active [root@host-116 ~]# lvconvert --type raid1 -m 1 snapper_thinp/POOL_tdata Logical volume snapper_thinp/POOL_tdata successfully converted. # Attempt down conversion of active raid10 pool sub volume [root@host-116 ~]# lvconvert --type raid1 snapper_thinp/POOL_tdata Unable to convert LV snapper_thinp/POOL_tdata from raid10 to raid1. Direct conversion of raid10 LV snapper_thinp/POOL_tdata is not possible. [root@host-116 ~]# lvconvert --type raid5 snapper_thinp/POOL_tdata Using default stripesize 64.00 KiB. Unable to convert LV snapper_thinp/POOL_tdata from raid10 to raid5. Direct conversion of raid10 LV snapper_thinp/POOL_tdata is not possible. 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 |