Bug 1394427 - LVM RAID: upconverting linear to RAID1 ignores '-R|--regionsize' argument
Summary: LVM RAID: upconverting linear to RAID1 ignores '-R|--regionsize' argument
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Heinz Mauelshagen
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-11 23:22 UTC by Jonathan Earl Brassow
Modified: 2021-09-03 12:41 UTC (History)
8 users (show)

Fixed In Version: lvm2-2.02.169-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 21:49:49 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2222 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2017-08-01 18:42:41 UTC

Description Jonathan Earl Brassow 2016-11-11 23:22:45 UTC
# lvcreate -L 500M -n lv vg
  Logical volume "lv" created.
# lvconvert -m 1 -R 4M vg/lv
  Logical volume vg/lv successfully converted.
# lvs -o name,segtype,regionsize vg
  LV   Type  Region
  lv   raid1 512.00k

Comment 1 Heinz Mauelshagen 2016-11-16 17:13:17 UTC
Prepared for review/integration as lvconvert functionality on lvm2 upstream
branch dev-lvmguy-raid-takeover-reshape-resize_work

Comment 3 Heinz Mauelshagen 2017-02-28 17:22:28 UTC
Upstream commit 2574d3257ad4

Comment 5 Corey Marthaler 2017-05-10 23:11:15 UTC
Fix verified in the latest rpms.

3.10.0-657.el7.x86_64
lvm2-2.02.171-1.el7    BUILT: Wed May  3 07:05:13 CDT 2017
lvm2-libs-2.02.171-1.el7    BUILT: Wed May  3 07:05:13 CDT 2017
lvm2-cluster-2.02.171-1.el7    BUILT: Wed May  3 07:05:13 CDT 2017
device-mapper-1.02.140-1.el7    BUILT: Wed May  3 07:05:13 CDT 2017
device-mapper-libs-1.02.140-1.el7    BUILT: Wed May  3 07:05:13 CDT 2017
device-mapper-event-1.02.140-1.el7    BUILT: Wed May  3 07:05:13 CDT 2017
device-mapper-event-libs-1.02.140-1.el7    BUILT: Wed May  3 07:05:13 CDT 2017
device-mapper-persistent-data-0.7.0-0.1.rc6.el7    BUILT: Mon Mar 27 10:15:46 CDT 2017


[root@mckinley-02 ~]# lvcreate -aye -L 500M -n lv FOO
  Logical volume "lv" created.
[root@mckinley-02 ~]# lvconvert --type raid1 -m 1 -R 4M FOO/lv
Are you sure you want to convert linear LV FOO/lv to raid1 with 2 images enhancing resilience? [y/n]: y
  Logical volume FOO/lv successfully converted.
[root@mckinley-02 ~]# lvs -o name,segtype,regionsize FOO
  LV   Type  Region
  lv   raid1  4.00m

Comment 6 errata-xmlrpc 2017-08-01 21:49:49 UTC
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://access.redhat.com/errata/RHBA-2017:2222


Note You need to log in before you can comment on or make changes to this bug.