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

LVM should recognize a degraded raid volume and know not to upconvert it

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.2
    • lvm2
    • None
    • Yes
    • None
    • rhel-storage-lvm
    • None
    • False
    • False
    • Hide

      None

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

      LVM should recognize a degraded raid volume and know not to attempt an upconvert (add mirrors to it). This recently broke in the latest rhel10.2

      # 10.1
      kernel-6.12.0-136.el10    BUILT: Mon Sep 29 12:56:30 PM CEST 2025
      lvm2-2.03.32-3.el10    BUILT: Wed Jun 11 10:55:10 AM CEST 2025
      lvm2-libs-2.03.32-3.el10    BUILT: Wed Jun 11 10:55:10 AM CEST 2025
       
      [root@virt-484 ~]# pvscan
        PV /dev/sda1   VG raid_sanity     lvm2 [17.49 GiB / <16.71 GiB free]
        PV /dev/sdb1   VG raid_sanity     lvm2 [17.49 GiB / 17.49 GiB free]
        PV /dev/sdc1   VG raid_sanity     lvm2 [17.49 GiB / 17.49 GiB free]
        PV /dev/sdd1   VG raid_sanity     lvm2 [17.49 GiB / 17.49 GiB free]
        PV /dev/sde1   VG raid_sanity     lvm2 [17.49 GiB / 17.49 GiB free]
        PV /dev/sdf1   VG raid_sanity     lvm2 [17.49 GiB / 17.49 GiB free]
        PV /dev/vda3   VG rhel_virt-484   lvm2 [<9.00 GiB / 0    free]
        Total: 7 [<113.95 GiB] / in use: 7 [<113.95 GiB] / in no VG: 0 [0   ]
      [root@virt-484 ~]# lvs -a -o +devices
        WARNING: RaidLV raid_sanity/degraded_upconvert needs to be refreshed!  See character 'r' at position 9 in the RaidLV's attributes and its SubLV(s).
        LV                            VG            Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices                                                      
        degraded_upconvert            raid_sanity   rwi-a-r-r- 800.00m                                    100.00           degraded_upconvert_rimage_0(0),degraded_upconvert_rimage_1(0)
        [degraded_upconvert_rimage_0] raid_sanity   iwi-aor--- 800.00m                                                     /dev/sda1(1)                                                 
        [degraded_upconvert_rimage_1] raid_sanity   vwi-aor-r- 800.00m                                                                                                                  
        [degraded_upconvert_rmeta_0]  raid_sanity   ewi-aor---   4.00m                                                     /dev/sda1(0)                                                 
        [degraded_upconvert_rmeta_1]  raid_sanity   ewi-aor-r-   4.00m                                                                                                                  
       
      # Attempting upconversion of degraded raid volume using failed PV /dev/sdf1 (SHOULD FAIL)
      [root@virt-484 ~]# lvconvert --yes -m 1 raid_sanity/degraded_upconvert /dev/sdf1
        Can't change number of mirrors of degraded raid_sanity/degraded_upconvert.
        Please run "lvconvert --repair raid_sanity/degraded_upconvert" first.
        WARNING: raid_sanity/degraded_upconvert already has image count of 2.
      [root@virt-484 ~]# echo $?
      5
       
      [root@virt-484 ~]# dmsetup table
      raid_sanity-degraded_upconvert: 0 1638400 raid raid1 3 0 region_size 4096 2 253:2 253:3 253:4 253:5
      raid_sanity-degraded_upconvert_rimage_0: 0 1638400 linear 8:1 16384
      raid_sanity-degraded_upconvert_rimage_1: 0 1638400 error 
      raid_sanity-degraded_upconvert_rmeta_0: 0 8192 linear 8:1 8192
      raid_sanity-degraded_upconvert_rmeta_1: 0 8192 error 
       
       
       
      # Regression 10.2
      kernel-6.12.0-126.el10    BUILT: Thu Sep  4 05:53:31 PM CEST 2025
      lvm2-2.03.35-1.el10    BUILT: Wed Sep 10 05:00:31 PM CEST 2025
      lvm2-libs-2.03.35-1.el10    BUILT: Wed Sep 10 05:00:31 PM CEST 2025
       
      [root@virt-496 ~]# pvscan
        PV /dev/sdb   VG raid_sanity   lvm2 [<35.00 GiB / <35.00 GiB free]
        PV /dev/sdc   VG raid_sanity   lvm2 [<35.00 GiB / <35.00 GiB free]
        PV /dev/sdd   VG raid_sanity   lvm2 [<35.00 GiB / <35.00 GiB free]
        PV /dev/sde   VG raid_sanity   lvm2 [<35.00 GiB / <35.00 GiB free]
        PV /dev/sdf   VG raid_sanity   lvm2 [<35.00 GiB / 34.21 GiB free]
        PV /dev/sda   VG raid_sanity   lvm2 [<35.00 GiB / <35.00 GiB free]
        Total: 6 [<209.98 GiB] / in use: 6 [<209.98 GiB] / in no VG: 0 [0   ]
      [root@virt-496 ~]# lvs -a -o +devices
        WARNING: RaidLV raid_sanity/degraded_upconvert needs to be refreshed!  See character 'r' at position 9 in the RaidLV's attributes and its SubLV(s).
        LV                            VG          Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices                                                      
        degraded_upconvert            raid_sanity rwi-a-r-r- 800.00m                                    100.00           degraded_upconvert_rimage_0(0),degraded_upconvert_rimage_1(0)
        [degraded_upconvert_rimage_0] raid_sanity vwi-aor-r- 800.00m                                                                                                                  
        [degraded_upconvert_rimage_1] raid_sanity iwi-aor--- 800.00m                                                     /dev/sdf(1)                                                  
        [degraded_upconvert_rmeta_0]  raid_sanity ewi-aor-r-   4.00m                                                                                                                  
        [degraded_upconvert_rmeta_1]  raid_sanity ewi-aor---   4.00m                                                     /dev/sdf(0)                                                  
       
      # Attempting upconversion of degraded raid volume using failed PV /dev/sda (SHOULD FAIL)
      [root@virt-496 ~]# lvconvert --yes -m 1 raid_sanity/degraded_upconvert /dev/sda
        Image count on raid_sanity/degraded_upconvert is 2 already.
        Logical volume raid_sanity/degraded_upconvert successfully converted.
      [root@virt-496 ~]# echo $?
      0
      [root@virt-496 ~]# lvs -a -o +devices
        WARNING: RaidLV raid_sanity/degraded_upconvert needs to be refreshed!  See character 'r' at position 9 in the RaidLV's attributes and its SubLV(s).
        LV                            VG          Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices                                                      
        degraded_upconvert            raid_sanity rwi-a-r-r- 800.00m                                    100.00           degraded_upconvert_rimage_0(0),degraded_upconvert_rimage_1(0)
        [degraded_upconvert_rimage_0] raid_sanity vwi-aor-r- 800.00m                                                                                                                  
        [degraded_upconvert_rimage_1] raid_sanity iwi-aor--- 800.00m                                                     /dev/sdf(1)                                                  
        [degraded_upconvert_rmeta_0]  raid_sanity ewi-aor-r-   4.00m                                                                                                                  
        [degraded_upconvert_rmeta_1]  raid_sanity ewi-aor---   4.00m                                                     /dev/sdf(0)                                                  
       
      [root@virt-496 ~]# dmsetup table
      raid_sanity-degraded_upconvert: 0 1638400 raid raid1 3 0 region_size 4096 2 253:2 253:3 253:4 253:5
      raid_sanity-degraded_upconvert_rimage_0: 0 1638400 error 
      raid_sanity-degraded_upconvert_rimage_1: 0 1638400 linear 8:80 16384
      raid_sanity-degraded_upconvert_rmeta_0: 0 8192 error 
      raid_sanity-degraded_upconvert_rmeta_1: 0 8192 linear 8:80 8192
      

              lvm-team lvm-team
              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: