Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-8324

Attempting to extend a stripe using the remaining FREE space, but only specifying one of the images will core dump

    • lvm2-2.03.27-1.el9
    • None
    • Moderate
    • 83ae675f8df53010c984b78d0318d0d92d5ac83a
    • sst_logical_storage
    • ssg_filesystems_storage_and_HA
    • 7
    • 10
    • 2
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      This fails in rhel8.8 as well, so I'm not sure this ever worked.

      [root@virt-506 ~]# lvcreate --type raid0 -i 2 -L 200M -n stripe1 myvg
      Using default stripesize 64.00 KiB.
      Logical volume "stripe1" created.

      [root@virt-506 ~]# lvs -a -o +devices
      LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices
      stripe1 myvg rwi-a-r--- 200.00m stripe1_rimage_0(0),stripe1_rimage_1(0)
      [stripe1_rimage_0] myvg iwi-aor--- 100.00m /dev/sda(0)
      [stripe1_rimage_1] myvg iwi-aor--- 100.00m /dev/sdb(0)

      [root@virt-506 ~]# lvextend myvg/stripe1 -L 542G
      Using stripesize of last segment 64.00 KiB
      Insufficient free space: 138702 extents needed, but only 76745 available

      [root@virt-506 ~]# lvextend -i1 -l+100%FREE myvg/stripe1
      Segmentation fault (core dumped)

      Apr 24 17:17:01 virt-506 kernel: traps: lvextend[993422] general protection fault ip:5654ba5ccfaf sp:7ffee0f26a60 error:0 in lvm[5654ba506000+192000]

      Version-Release number of selected component (if applicable):
      kernel-5.14.0-283.el9 BUILT: Fri Feb 24 12:35:52 AM CET 2023
      lvm2-2.03.20-2.el9 BUILT: Thu Apr 6 01:40:29 PM CEST 2023
      lvm2-libs-2.03.20-2.el9 BUILT: Thu Apr 6 01:40:29 PM CEST 2023

            mcsontos@redhat.com Marian Csontos
            cmarthal@redhat.com Corey Marthaler
            Peter Rajnoha Peter Rajnoha
            Cluster QE Cluster QE
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: