RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1432675 - raid0 -> raid6 conversion needs check for volume having just 2 legs
Summary: raid0 -> raid6 conversion needs check for volume having just 2 legs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.4
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Heinz Mauelshagen
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-15 23:06 UTC by Corey Marthaler
Modified: 2021-09-03 12:39 UTC (History)
7 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:
Embargoed:


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 Corey Marthaler 2017-03-15 23:06:02 UTC
Description of problem:

[root@host-087 ~]# lvcreate --type raid0 -i 2 -n raid0 -L 100M VG
  Using default stripesize 64.00 KiB.
  Rounding size 100.00 MiB (25 extents) up to stripe boundary size 104.00 MiB(26 extents).
  Logical volume "raid0" created.

[root@host-087 ~]# lvs -a -o +devices
  LV               VG  Attr       LSize   Cpy%Sync Convert Devices
  raid0            VG  rwi-a-r--- 104.00m                  raid0_rimage_0(0),raid0_rimage_1(0)
  [raid0_rimage_0] VG  iwi-aor---  52.00m                  /dev/sda1(0)
  [raid0_rimage_1] VG  iwi-aor---  52.00m                  /dev/sdb1(0)

[root@host-087 ~]# lvconvert --type raid6 VG/raid0
  Using default stripesize 64.00 KiB.
  Replaced LV type raid6 with possible type raid6_n_6.
Do you want to convert raid6 LV VG/raid0 to raid6_n_6? [y/n]: y
  LV raid0 invalid: minimum 5 areas required (is 4) for raid6_n_6 segment
  Internal error: LV segments corrupted in raid0.
  Write of VG VG failed.
  Internal error: Pre callout function failed.


Version-Release number of selected component (if applicable):
3.10.0-609.el7.x86_64


Latest nightly built test rpms:
lvm2-2.02.169-0.1248.el7    BUILT: Mon Feb 27 08:26:32 CST 2017
lvm2-libs-2.02.169-0.1248.el7    BUILT: Mon Feb 27 08:26:32 CST 2017
lvm2-cluster-2.02.169-0.1248.el7    BUILT: Mon Feb 27 08:26:32 CST 2017
device-mapper-1.02.138-0.1248.el7    BUILT: Mon Feb 27 08:26:32 CST 2017
device-mapper-libs-1.02.138-0.1248.el7    BUILT: Mon Feb 27 08:26:32 CST 2017
device-mapper-event-1.02.138-0.1248.el7    BUILT: Mon Feb 27 08:26:32 CST 2017
device-mapper-event-libs-1.02.138-0.1248.el7    BUILT: Mon Feb 27 08:26:32 CST 2017
device-mapper-persistent-data-0.6.3-1.el7    BUILT: Fri Jul 22 05:29:13 CDT 2016

Comment 2 Heinz Mauelshagen 2017-03-16 21:14:30 UTC
Upstream commit b0336e8b3cb04908119e4cea816e39cdccd1a115

Comment 4 Corey Marthaler 2017-03-28 18:15:10 UTC
Fix verified in latest rpms.
3.10.0-629.el7.x86_64
lvm2-2.02.169-1.el7    BUILT: Tue Mar 28 10:42:01 CDT 2017


[root@host-073 ~]# lvcreate --type raid0 -i 2 -n raid0 -L 100M test
  Using default stripesize 64.00 KiB.
  Rounding size 100.00 MiB (25 extents) up to stripe boundary size 104.00 MiB(26 extents).
  Logical volume "raid0" created.

[root@host-073 ~]# lvconvert --type raid6 test/raid0
  Using default stripesize 64.00 KiB.
  Replaced LV type raid6 with possible type raid6_n_6.
Do you want to convert raid6 LV test/raid0 to raid6_n_6? [y/n]: y
  Minimum of 3 stripes needed for conversion from raid0 to raid6_n_6.
3.10.0-629.el7.x86_64

Comment 5 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.