Bug 1459566 - Upconverting linear to RAID1 does not work with older kernels anymore (tested with dm-raid v1.7.0)
Upconverting linear to RAID1 does not work with older kernels anymore (tested...
Status: NEW
Product: LVM and device-mapper
Classification: Community
Component: lvm2 (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: LVM and device-mapper development team
Depends On:
  Show dependency treegraph
Reported: 2017-06-07 09:12 EDT by Marian Csontos
Modified: 2017-06-07 09:12 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
rule-engine: lvm‑technical‑solution?
rule-engine: lvm‑test‑coverage?

Attachments (Terms of Use)

  None (edit)
Description Marian Csontos 2017-06-07 09:12:18 EDT
Commit acaf3a5d47fd65b2e385a516544f8e6ec8d89b2d caused a regression with older kernels.


Description of problem:

With this change applied, older kernels (7.2, RHEL6.x, F21) upconverting linear to RAID1 now fails:

#lvchange-raid.sh:132+ lvconvert -y --type raid1 -m 1 @PREFIX@vg/LV1 /dev/mapper/@PREFIX@pv2
device-mapper: raid: Device 1 specified for rebuild: Clearing superblock
device-mapper: raid: 'rebuild' devices cannot be injected into an array with other first-time devices
device-mapper: table: 253:10: raid: Unable to assemble array: Invalid superblocks
device-mapper: ioctl: error adding target to table
device-mapper: reload ioctl on  (253:10) failed: Invalid argument
  Failed to lock logical volume @PREFIX@vg/LV1.

Version-Release number of selected component (if applicable):
upstream LVM2 (future 2.02.172 release)
dm-raid v1.7.0

How reproducible:

Steps to Reproduce:
1. lvcreate -n LV -L 100M VG
2. lvconvert -y -m 1 --type raid1 VG/LV

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