Bug 1851451
| Summary: | Bus error in lvextend for RAID5 converted from RAID1 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Corey Marthaler <cmarthal> |
| Component: | lvm2 | Assignee: | Heinz Mauelshagen <heinzm> |
| lvm2 sub component: | Mirroring and RAID | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | high | ||
| Priority: | high | CC: | agk, bugzilla.redhat, cluster-qe, heinzm, jbrassow, mcsontos, msnitzer, pasik, prajnoha, zkabelac |
| Version: | 8.3 | Flags: | pm-rhel:
mirror+
|
| Target Milestone: | rc | ||
| Target Release: | 8.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.03.09-3.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1784351 | Environment: | |
| Last Closed: | 2020-11-04 02:00:38 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: | 1784351 | ||
| Bug Blocks: | |||
|
Description
Corey Marthaler
2020-06-26 14:44:28 UTC
Cloning to track this in rhel8.3. [root@host-087 ~]# lvconvert --type raid5 test/root Using default stripesize 64.00 KiB. --stripes not allowed for LV test/root when converting from raid1 to raid5. Are you sure you want to convert raid1 LV test/root to raid5 type? [y/n]: y Logical volume test/root successfully converted. [root@host-087 ~]# lvs -a -o name,lv_size,copy_percent,devices,lv_layout LV LSize Cpy%Sync Devices Layout root 8.00g 100.00 root_rimage_0(0),root_rimage_1(0) raid,raid5,raid5_ls [root_rimage_0] 8.00g /dev/sda(0) linear [root_rimage_1] 8.00g /dev/sdb(1) linear [root_rmeta_0] 4.00m /dev/sda(2048) linear [root_rmeta_1] 4.00m /dev/sdb(0) linear [root@host-087 ~]# lvextend -L+1G test/root Segmentation fault (core dumped) Jun 26 09:27:49 host-087 systemd[1]: Started Process Core Dump (PID 180473/UID 0). Jun 26 09:27:50 host-087 systemd-coredump[180474]: Process 180472 (lvextend) of user 0 dumped core.#012#012Stack trace of thread 180472:#012#0 0x0000563f675fddd8 lv_add_segment (lvm)#012#1 0x0000563f676061b7 _lv_extend_layered_lv (lvm)#012#2 0x0000563f67606983 lv_extend (lvm)#012#3 0x0000563f67607427 _lvresize_volume (lvm)#012#4 0x0000563f67607c92 lv_resize (lvm)#012#5 0x0000563f67587441 _lvresize_single (lvm)#012#6 0x0000563f675a1bea process_each_vg (lvm)#012#7 0x0000563f67587815 lvresize (lvm)#012#8 0x0000563f67584d5d lvm_run_command (lvm)#012#9 0x0000563f67586083 lvm2_main (lvm)#012#10 0x00007febc32aa7b3 __libc_start_main (libc.so.6)#012#11 0x0000563f675613ae _start (lvm) 4.18.0-219.el8.x86_64 kernel-4.18.0-219.el8 BUILT: Tue Jun 23 15:32:02 CDT 2020 lvm2-2.03.09-2.el8 BUILT: Fri May 29 11:29:58 CDT 2020 lvm2-libs-2.03.09-2.el8 BUILT: Fri May 29 11:29:58 CDT 2020 lvm2-lockd-2.03.09-2.el8 BUILT: Fri May 29 11:29:58 CDT 2020 device-mapper-1.02.171-2.el8 BUILT: Fri May 29 11:29:58 CDT 2020 device-mapper-libs-1.02.171-2.el8 BUILT: Fri May 29 11:29:58 CDT 2020 device-mapper-event-1.02.171-2.el8 BUILT: Fri May 29 11:29:58 CDT 2020 device-mapper-event-libs-1.02.171-2.el8 BUILT: Fri May 29 11:29:58 CDT 2020 Fix verified in the latest rpms. kernel-4.18.0-211.el8 BUILT: Thu Jun 4 03:33:39 CDT 2020 lvm2-2.03.09-3.el8 BUILT: Mon Jun 29 13:50:23 CDT 2020 lvm2-libs-2.03.09-3.el8 BUILT: Mon Jun 29 13:50:23 CDT 2020 lvm2-dbusd-2.03.09-3.el8 BUILT: Mon Jun 29 13:53:38 CDT 2020 lvm2-lockd-2.03.09-3.el8 BUILT: Mon Jun 29 13:50:23 CDT 2020 boom-boot-1.2-1.el8 BUILT: Sun Jun 7 07:20:03 CDT 2020 device-mapper-1.02.171-3.el8 BUILT: Mon Jun 29 13:50:23 CDT 2020 device-mapper-libs-1.02.171-3.el8 BUILT: Mon Jun 29 13:50:23 CDT 2020 device-mapper-event-1.02.171-3.el8 BUILT: Mon Jun 29 13:50:23 CDT 2020 device-mapper-event-libs-1.02.171-3.el8 BUILT: Mon Jun 29 13:50:23 CDT 2020 [root@hayes-02 ~]# lvcreate -L8G -n root test Logical volume "root" created. [root@hayes-02 ~]# lvconvert --type raid5 test/root Using default stripesize 64.00 KiB. Replaced LV type raid5 (same as raid5_ls) with possible type raid1. Repeat this command to convert to raid5 after an interim conversion has finished. Are you sure you want to convert linear LV test/root to raid1 type? [y/n]: y Logical volume test/root successfully converted. [root@hayes-02 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices root test rwi-a-r--- 8.00g 20.65 root_rimage_0(0),root_rimage_1(0) [root_rimage_0] test iwi-aor--- 8.00g /dev/sdb1(0) [root_rimage_1] test Iwi-aor--- 8.00g /dev/sdc1(1) [root_rmeta_0] test ewi-aor--- 4.00m /dev/sdb1(2048) [root_rmeta_1] test ewi-aor--- 4.00m /dev/sdc1(0) [root@hayes-02 ~]# lvconvert --type raid5 test/root Using default stripesize 64.00 KiB. --stripes not allowed for LV test/root when converting from raid1 to raid5. Are you sure you want to convert raid1 LV test/root to raid5 type? [y/n]: y Logical volume test/root successfully converted. [root@hayes-02 ~]# lvextend -L+1G test/root Cannot resize raid5 LV test/root. Convert to more stripes first. 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 (lvm2 bug fix and enhancement update), 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-2020:4546 |