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

Should a raid image change request (specifying a device) pass if nothing was done

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • rhel-10.0
    • lvm2
    • None
    • No
    • Low
    • rhel-storage-lvm
    • ssg_platform_storage
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

      In the following lvconvert cmd, the user is requesting a conversion to a 3-way raid and specifies a specific device to be used. Since the raid is already a 3-way raid, the cmd reports that the volume was "successfully converted" even though nothing was actually done. Is there an argument that this should fail or warn since the device requested was not used in a raid conversion?

      kernel-6.12.0-38.el10    BUILT: Mon Jan  6 07:22:03 PM CET 2025
      lvm2-2.03.28-3.el10    BUILT: Thu Nov 14 10:40:47 AM CET 2024
      lvm2-libs-2.03.28-3.el10    BUILT: Thu Nov 14 10:40:47 AM CET 2024
      
      [root@virt-002 ~]# lvs -a -o +devices,segtype
        LV               VG            Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices                                               Type  
        my_lv            my_vg         rwi-a-r--- 100.00m                                    100.00           my_lv_rimage_0(0),my_lv_rimage_1(0),my_lv_rimage_2(0) raid1 
        [my_lv_rimage_0] my_vg         iwi-aor--- 100.00m                                                     /dev/sda(0)                                           linear
        [my_lv_rimage_1] my_vg         iwi-aor--- 100.00m                                                     /dev/sdb(0)                                           linear
        [my_lv_rimage_2] my_vg         iwi-aor--- 100.00m                                                     /dev/sdc(1)                                           linear
        [my_lv_rmeta_0]  my_vg         ewi-aor---   4.00m                                                     /dev/sda(25)                                          linear
        [my_lv_rmeta_1]  my_vg         ewi-aor---   4.00m                                                     /dev/sdb(25)                                          linear
        [my_lv_rmeta_2]  my_vg         ewi-aor---   4.00m                                                     /dev/sdc(0)                                           linear
      
      [root@virt-002 ~]# lvconvert -m 2 my_vg/my_lv /dev/sdd
      Are you sure you want to convert raid1 LV my_vg/my_lv to 3 images enhancing resilience? [y/n]: y
        WARNING: my_vg/my_lv already has image count of 3.
        Logical volume my_vg/my_lv successfully converted.
      [root@virt-002 ~]# echo $?
      0
      
      [root@virt-002 ~]# lvs -a -o +devices,segtype
        LV               VG            Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices                                               Type  
        my_lv            my_vg         rwi-a-r--- 100.00m                                    100.00           my_lv_rimage_0(0),my_lv_rimage_1(0),my_lv_rimage_2(0) raid1 
        [my_lv_rimage_0] my_vg         iwi-aor--- 100.00m                                                     /dev/sda(0)                                           linear
        [my_lv_rimage_1] my_vg         iwi-aor--- 100.00m                                                     /dev/sdb(0)                                           linear
        [my_lv_rimage_2] my_vg         iwi-aor--- 100.00m                                                     /dev/sdc(1)                                           linear
        [my_lv_rmeta_0]  my_vg         ewi-aor---   4.00m                                                     /dev/sda(25)                                          linear
        [my_lv_rmeta_1]  my_vg         ewi-aor---   4.00m                                                     /dev/sdb(25)                                          linear
        [my_lv_rmeta_2]  my_vg         ewi-aor---   4.00m                                                     /dev/sdc(0)                                           linear
       

              mcsontos@redhat.com Marian Csontos
              cmarthal@redhat.com Corey Marthaler
              lvm-team lvm-team
              Cluster QE Cluster QE
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: