Fedora Account System
Red Hat Associate
Red Hat Customer
Commit acaf3a5d47fd65b2e385a516544f8e6ec8d89b2d caused a regression with older kernels. https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=acaf3a5d47fd65b2e385a516544f8e6ec8d89b2d 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: 100% Steps to Reproduce: 1. lvcreate -n LV -L 100M VG 2. lvconvert -y -m 1 --type raid1 VG/LV
It is ok if it says "Can't convert, upgrade your kernel!". It is not ok to attempt and have the kernel fail and be left with an unusable device. We'll need to add a kernel version check to this type of operation.
How hard to add this check and fix this bug? I'm very tempted just to close.
Closing, it's working on newer RHEL, e.g. 7.7